tbx  0.7.6
Classes | Enumerations | Variables
tbx::res Namespace Reference

Classes to use/edit toolbox resources in memory. More...

Classes

class  ResActionButton
 Class for ActionButton gadget template. More...
 
class  ResAdjuster
 Class for Adjuster gadget template. More...
 
class  ResBase
 Base class for objects, gadgets and menu items from ressources. More...
 
class  ResButton
 Class for Button gadget template. More...
 
class  ResColourDbox
 Class for ColourDbox object template. More...
 
class  ResColourMenu
 Class for ColourMenu object template. More...
 
struct  ResDataHeader
 This structure proceeds a resource object in a file to give its data. More...
 
class  ResDCS
 Class for DCS object template. More...
 
class  ResDisplayField
 Class for DisplayField gadget template. More...
 
class  ResDraggable
 Class for Draggable gadget template. More...
 
class  ResEditor
 Class to allow creation, loading, editing and saving of a toolbox resource file. More...
 
class  ResFile
 Load and give read only access to a resource file. More...
 
struct  ResFileHeader
 Structure representing the header of a resource file. More...
 
class  ResFileInfo
 Class for FileInfo object template. More...
 
class  ResFontDbox
 Class for FontDbox object template. More...
 
class  ResFontMenu
 Class for FontMenu object template. More...
 
class  ResGadget
 Base class for gadget memory resources. More...
 
class  ResGadgetExists
 Exception thrown when a window resource already contains a gadget with a component id. More...
 
class  ResGadgetNotFound
 Exception thrown when a gadget can't be found in a window. More...
 
class  ResGadgetTypeMismatch
 Exception thrown when a ResObject is assigned to a subclass with the wrong class id. More...
 
class  ResIconbar
 Class for Iconbar in memory template. More...
 
class  ResIteratorBase
 Base class for Resource component iterators. More...
 
class  ResLabel
 Class for Label gadget template. More...
 
class  ResLabelledBox
 Class for LabelledBox gadget template. More...
 
class  ResMenu
 Menu object template class. More...
 
class  ResMenuItem
 Menu item object. More...
 
class  ResMenuItemExists
 Exception thrown when a menu resource already contains an item with a component id. More...
 
class  ResMenuItemNotFound
 Exception thrown when an item can't be found in a menu. More...
 
class  ResNumberRange
 Class for NumberRange gadget template. More...
 
class  ResObject
 Base class for a resource object that can be edited. More...
 
class  ResObjectClassMismatch
 Exception thrown when a ResObject is assigned to a subclass with the wrong class id. More...
 
class  ResObjectExists
 Exception thrown when the ResEditor already contains an object with a given name. More...
 
struct  ResObjectHeader
 Common header for all resource objects. More...
 
class  ResObjectNotFound
 Exception thrown when an object can't be found in a ResEditor or ResFile. More...
 
class  ResOptionButton
 Class for OptionButton gadget template. More...
 
class  ResPopUp
 Class for PopUp gadget template. More...
 
class  ResPrintDbox
 Class for PrintDbox object template. More...
 
class  ResProgInfo
 Class to represent a ProgInfo resource. More...
 
class  ResQuit
 Class for Quit object template. More...
 
class  ResRadioButton
 Class for RadioButton gadget template. More...
 
struct  ResRelocation
 Structure for one relocation record. More...
 
class  ResSaveAs
 Class for SaveAs object template. More...
 
class  ResScale
 Class for Scale object template. More...
 
class  ResScrollList
 Class for ScrollList gadget template. More...
 
class  ResShortcut
 Keyboard short cut. More...
 
class  ResShortcutExists
 Exception thrown when a window resource already contains a shortcut with a key code. More...
 
class  ResShortcutNotFound
 Exception thrown when a shortcut key can't be found in a window. More...
 
class  ResSlider
 Class for Slider gadget template. More...
 
class  ResStringSet
 Class for StringSet gadget template. More...
 
class  ResTextArea
 Class for TextArea gadget template. More...
 
class  ResToolAction
 Class for ToolAction gadget template. More...
 
class  ResWindow
 Window resource object. More...
 
class  ResWritableField
 Class for WritableField gadget template. More...
 

Enumerations

enum  ResJustification { LEFT, RIGHT, CENTRE }
 Standard justification of resource gadget flags.
 

Variables

const int MENU_DATA_SIZE = 32
 
const int MENU_ITEM_SIZE = 40
 
const int SHORTCUT_SIZE = 16
 
const int RESF_MARKER = 0x46534552
 
const ComponentId FOCUS_TO_WINDOW = (ComponentId)-2
 Constant to put default focus to the window.
 

Detailed Description

Classes to use/edit toolbox resources in memory.

The res namespace provides classes to use/edit toolbox resources in memory.

Resource can be used from the "Res" file automatically loaded with the application, from a read only file using the ResFile class, from an editable set of resources created or loaded using the ResEditor class or by using the individual classes in this namespace that exist for each toolbox resource item type.

A class derived from ResObject can be used to create new objects of the same type. i.e. A ResMenu object can be used with the Menu class to create a new menu.

The ResGadget derived classes are used with the add_gadget method on the Window class to add a new gadget to a Window.

The ResMenuItem class is used with the add method on the Menu class to add new menu items to a menu.