tbx
0.7.6
|
Helper classes to display and edit data. More...
Classes | |
class | ClearSelectionCommand |
Command to clear selection from the current view. More... | |
class | FontItemRenderer |
ItemRenderer to render text with a given font in a fixed height. More... | |
class | GadgetListCopyRow |
Interface for copying from one row to another. More... | |
class | GadgetListView |
Class to create a list view with each line made up of one or more gadgets. More... | |
class | IconItemRenderer |
Class to render an icon with text similar to the normal view in the filer. More... | |
class | IndexItemViewStringValue |
Convenience template to return an item of a collection as the value for a view as a string. More... | |
class | IndexItemViewValue |
Convenience template to return an item of a collection as the value for a view. More... | |
class | InvertSelectionCommand |
Command to invert selection in an item view. More... | |
class | ItemRenderer |
Base class to render an indexed item. More... | |
class | ItemView |
Base class for views that show an indexed list of items. More... | |
class | ItemViewClearMenuSelection |
Helper class to clear selection when an object has been hidden if the selection was made by the menu button. More... | |
class | ItemViewClickEvent |
Event for click on ItemView. More... | |
class | ItemViewClickListener |
Listener for clicks on the item view. More... | |
class | ItemViewStringValue |
Base class to provide a value as a string. More... | |
class | ItemViewValue |
Base class to provide a value of a given type for an item view. More... | |
class | ListView |
Class to show items in a list down the window. More... | |
class | MethodItemPtrViewStringValue |
Convenience template to return a member of the class in a collection of pointers as the value for a view. More... | |
class | MethodItemPtrViewValue |
Convenience template to return a member of the class in a collection of pointers as the value for a view. More... | |
class | MethodItemViewStringValue |
Convenience template to return a member of the class in a collection as the value for a view. More... | |
class | MethodItemViewValue |
Convenience template to return a member of the class in a collection as the value for a view. More... | |
class | MultiSelection |
Class to implement multiple selections. More... | |
class | ReportView |
Class to handle the display/interaction with a list of items presented in columns. More... | |
class | SelectAllCommand |
Command to select all items in an item view. More... | |
class | Selection |
Base class for selections of one or more indices from a zero based range. More... | |
class | SelectionChangedEvent |
Class with the details of a select, deselect or toggle operation. More... | |
class | SelectionListener |
Listener for selection changed events. More... | |
class | SingleSelection |
Class to represent a single selection. More... | |
class | SpriteItemRenderer |
Item renderer to render a sprite in a cell. More... | |
class | TextView |
Class to display text in a window. More... | |
class | TileView |
Class to show items tiled in a window. More... | |
class | TypedItemRenderer |
Base class for item renderer that work on a specific type and use an ItemViewValue object to return the value to use. More... | |
class | ViewItems |
Template class to store a list of items for an item view and to call the item view update routines automatically where possible. More... | |
class | WimpFontItemRenderer |
Renderer base class to put text in a cell using the current wimp font. More... | |
Variables | |
const int | IV_MARGIN = 8 |
const int | IV_GAP = 8 |
const char | ROW_HEIGHT = 40 |
Helper classes to display and edit data.
The view namespace provides helper classes to make it easier to display and interact with formatted data.
There are two types of view provided, a text viewer and various item viewers.
The text viewer is a provided by the TextView class and is concerned with displaying multiple lines of text in a single font.
The item viewers display multiple items in a window.
The item viewers are derived from the ItemView class. There are classes to display the data in a list, a multiple column list and as tiled items (this is like the WIMP filer display).
A common selection model for all item viewers is provided by classes derived from the Selection class. TBX includes classed for single selection and the standard RISC OS type multiple selection.
The item viewers also use a concept of an item renderer to draw the items in the view. You can create your own or use the WimpFontItemRender for text, the SpriteItemRenderer for sprite or the IconItemRenderer to display text and sprites together.
Each of these item renderer classes uses a class derived from the templated ItemViewValue class to provide the data to render for a specific item.