VCF::ListViewControl Class Reference
#include <vcf/ApplicationKit/ListViewControl.h>
Inheritance diagram for VCF::ListViewControl:

Public Types | |
| enum | { COLUMN_MOUSE_EVENT_CLICK = Control::CONTROL_EVENTS_LAST + 200 } |
Public Member Functions | |
| ListViewControl () | |
| virtual | ~ListViewControl () |
| ColumnModel * | getColumnModel () |
| virtual void | paint (GraphicsContext *context) |
| Paints the control. | |
| ColumnItem * | addHeaderColumn (const String &columnName, const double &width=100.0) |
| void | addHeaderColumn (ColumnItem *column) |
| ColumnItem * | insertHeaderColumn (const uint32 &index, const String &columnName, const double &width=100.0) |
| Enumerator< ColumnItem * > * | getColumnItems () |
| ColumnItem * | getColumnItem (const uint32 &index) |
| void | setColumnItem (const uint32 &index, ColumnItem *item) |
| void | insertHeaderColumn (const uint32 &index, ColumnItem *column) |
| void | deleteHeaderColumn (const uint32 &index) |
| String | getColumnName (const uint32 &index) |
| void | setColumnName (const uint32 &index, const String &columnName) |
| double | getColumnWidth (const uint32 &index) |
| void | setColumnWidth (const uint32 &index, const double &width, ColumnAutosizeType type=casAutoSizeNone) |
| void | setColumnsWidth (const double &width, ColumnAutosizeType type=casAutoSizeNone) |
| virtual double | getItemWidth (ColumnItem *item) |
| virtual void | setItemWidth (ColumnItem *item, const double &val) |
| virtual TextAlignmentType | getItemTextAlignment (ColumnItem *item) |
| virtual void | setItemTextAlignment (ColumnItem *item, const TextAlignmentType &val) |
| IconStyleType | getIconStyle () |
| void | setIconStyle (const IconStyleType &iconStyle) |
| IconAlignType | getIconAlignment () |
| void | setIconAlignment (const IconAlignType &iconAlignType) |
| bool | getAllowLabelEditing () |
| void | setAllowLabelEditing (const bool &allowLabelEditing) |
| ImageList * | getStateImageList () |
| void | setStateImageList (ImageList *imageList) |
| int32 | getDisplayOptions () |
| void | setDisplayOptions (const int32 &displayOptions) |
| ListItem * | addItem (const String &caption, const uint32 imageIndex=0) |
| ListItem * | insertItem (const uint32 &index, const String &caption, const uint32 imageIndex=0) |
| ListItem * | getItem (const uint32 &index) |
| void | setItem (const uint32 &index, ListItem *item) |
| Enumerator< ListItem * > * | getItems () |
| virtual void | handleEvent (Event *event) |
| This gets called by the ControlPeer for any windowing system mouse events, as well as for any windowing system keyboard events and for any windowing system events like size changes, position changes, etc. | |
| virtual void | insertItemSubItem (ListItem *item, const uint32 &index, ListSubItem *subItem) |
| virtual void | removeItemSubItem (ListItem *item, ListSubItem *subItem) |
| virtual bool | getItemSubItems (ListItem *item, std::vector< ListSubItem * > &subItems) |
| virtual ListSubItem * | getItemSubItem (ListItem *item, const uint32 &index) |
| virtual uint32 | getItemSubItemIndex (ListItem *item, ListSubItem *subItem) |
| virtual uint32 | getItemSubItemCount (ListItem *item) |
| virtual void | paintSubItem (GraphicsContext *ctx, const Rect &itemRect, const uint32 &index, const uint32 &subItemIndex, const DrawUIState &state) |
Public Attributes | |
| VCF::Delegate | MouseDelegate |
| ColumnItemClicked | |
Protected Types | |
| typedef std::multimap< ListItem *, ListSubItem * > | SubItemMap |
| typedef std::pair< SubItemMap::iterator, SubItemMap::iterator > | SubItemIteratorPair |
| typedef SubItemMap::value_type | SubItemPair |
Protected Member Functions | |
| void | onColumnItemAdded (ListModelEvent *event) |
| void | onColumnItemDeleted (ListModelEvent *event) |
| void | onColumnItemChanged (ItemEvent *event) |
| virtual void | removeSubItemsForItem (ListItem *item) |
Protected Attributes | |
| ListviewPeer * | listviewPeer_ |
| ColumnModel * | columnModel_ |
| IconStyleType | iconStyle_ |
| Array< ColumnItem * > | columnItems_ |
| SubItemMap | subItems_ |
Member Typedef Documentation
|
|
|
|
|
|
|
|
|
Member Enumeration Documentation
|
|
Reimplemented from VCF::Control. |
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Reimplemented from VCF::ListControl. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from VCF::ListControl. |
|
|
|
|
||||||||||||
|
Reimplemented from VCF::ListControl. |
|
|
Reimplemented from VCF::ListControl. |
|
||||||||||||
|
Reimplemented from VCF::ListControl. |
|
||||||||||||
|
Reimplemented from VCF::ListControl. |
|
|
Implements VCF::ColumnController. |
|
|
Implements VCF::ColumnController. |
|
|
Reimplemented from VCF::ListControl. |
|
|
This gets called by the ControlPeer for any windowing system mouse events, as well as for any windowing system keyboard events and for any windowing system events like size changes, position changes, etc. Once inside the event the Control determines the type, and behaves accordingly, as well as notifying any appropriate listeners. Reimplemented from VCF::ListControl. |
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Reimplemented from VCF::ListControl. |
|
||||||||||||||||
|
Reimplemented from VCF::ListControl. |
|
|
|
|
|
|
|
|
|
|
|
Paints the control. Called by the underlying windowing system whenever the control needs to be painted. Note that in some cases the GraphicsContext passed in to this method may not be the same pointer as the GraphicsContext that the control holds itself. During the paint() method you should only use the context value for all your drawing and not the one returned in getContext(). The value returned by getContext() should be used for drawing that takes place outside of the paint() method. If the control allows paint notification, then the framework will fire an event to the BeforeControlPainted delegate prior to calling the control's paint() method. After the paint() method has returned, if the control allows paint notification, the framework will fire an event to the AfterControlPainted delegate. This allows outside observers to take part in the paint cycle, but beware that this does come at a bit of a cost, so use this feature sparingly. Note: This should NEVER be called by programmers using the VCF, it will be called for you during the course of your applications native event loop, and is only here for providing custom drawing routines for controls. In other words: you implement it, you never call it yourself.
Implements VCF::Control. |
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
Reimplemented from VCF::ListControl. |
|
|
Reimplemented from VCF::ListControl. |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Reimplemented from VCF::ListControl. |
|
||||||||||||
|
Implements VCF::ColumnController. |
|
||||||||||||
|
Implements VCF::ColumnController. |
|
|
Reimplemented from VCF::ListControl. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from VCF::Control. |
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/ListViewControl.h
