#include <FXTable.h>
Public Types | |
enum | { SELECTED, FOCUS, DISABLED, DRAGGABLE, RESERVED1, RESERVED2, ICONOWNED, RIGHT, LEFT, CENTER_X, TOP, BOTTOM, CENTER_Y, BEFORE, AFTER, ABOVE, BELOW, LBORDER, RBORDER, TBORDER, BBORDER } |
Public Member Functions | |
FXComboTableItem (const FXString &text, FXIcon *ic=NULL, void *ptr=NULL) | |
virtual FXWindow * | getControlFor (FXTable *table) |
virtual void | setFromControl (FXWindow *control) |
void | setSelections (const FXString &strings) |
const FXString & | getSelections () const |
virtual void | setText (const FXString &txt) |
virtual FXString | getText () const |
virtual void | setIcon (FXIcon *icn, FXbool owned=FALSE) |
virtual FXIcon * | getIcon () const |
void | setData (void *ptr) |
void * | getData () const |
virtual void | setFocus (FXbool focus) |
FXbool | hasFocus () const |
virtual void | setSelected (FXbool selected) |
FXbool | isSelected () const |
virtual void | setEnabled (FXbool enabled) |
FXbool | isEnabled () const |
virtual void | setDraggable (FXbool draggable) |
FXbool | isDraggable () const |
virtual void | setJustify (FXuint justify=RIGHT|CENTER_Y) |
FXuint | getJustify () const |
virtual void | setIconPosition (FXuint mode) |
FXuint | getIconPosition () const |
virtual void | setBorders (FXuint borders=0) |
FXuint | getBorders () const |
virtual void | setStipple (FXStipplePattern pattern) |
FXStipplePattern | getStipple () const |
virtual FXint | getWidth (const FXTable *table) const |
virtual FXint | getHeight (const FXTable *table) const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () const |
bool | isMemberOf (const FXMetaClass *metaclass) const |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
QTransString | tr (const char *text, const char *hint=0) |
virtual void * | getPythonObject () const |
virtual void | decouplePythonObject () const |
Protected Member Functions | |
virtual void | draw (const FXTable *table, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual void | drawBorders (const FXTable *table, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual void | drawContent (const FXTable *table, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual void | drawPattern (const FXTable *table, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual void | drawBackground (const FXTable *table, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
Protected Attributes | |
FXString | selections |
FXString | label |
FXIcon * | icon |
void * | data |
FXuint | state |
anonymous enum [inherited] |
FX::FXComboTableItem::FXComboTableItem | ( | const FXString & | text, | |
FXIcon * | ic = NULL , |
|||
void * | ptr = NULL | |||
) |
Construct new table item.
virtual void FX::FXComboTableItem::setFromControl | ( | FXWindow * | control | ) | [virtual] |
void FX::FXComboTableItem::setSelections | ( | const FXString & | strings | ) |
Set selections as newline-separated strings.
const FXString& FX::FXComboTableItem::getSelections | ( | ) | const [inline] |
Return selections.
virtual void FX::FXTableItem::setText | ( | const FXString & | txt | ) | [virtual, inherited] |
Change item's text label.
virtual FXString FX::FXTableItem::getText | ( | ) | const [inline, virtual, inherited] |
Return item's text label.
virtual void FX::FXTableItem::setIcon | ( | FXIcon * | icn, | |
FXbool | owned = FALSE | |||
) | [virtual, inherited] |
Change item's icon, deleting the old icon if it was owned.
virtual FXIcon* FX::FXTableItem::getIcon | ( | ) | const [inline, virtual, inherited] |
Return item's icon.
void FX::FXTableItem::setData | ( | void * | ptr | ) | [inline, inherited] |
Change item's user data.
void* FX::FXTableItem::getData | ( | ) | const [inline, inherited] |
Get item's user data.
virtual void FX::FXTableItem::setFocus | ( | FXbool | focus | ) | [virtual, inherited] |
Make item draw as focused.
FXbool FX::FXTableItem::hasFocus | ( | ) | const [inline, inherited] |
Return true if item has focus.
virtual void FX::FXTableItem::setSelected | ( | FXbool | selected | ) | [virtual, inherited] |
Select item.
FXbool FX::FXTableItem::isSelected | ( | ) | const [inline, inherited] |
Return true if this item is selected.
virtual void FX::FXTableItem::setEnabled | ( | FXbool | enabled | ) | [virtual, inherited] |
Enable or disable item.
FXbool FX::FXTableItem::isEnabled | ( | ) | const [inline, inherited] |
Return true if this item is enabled.
virtual void FX::FXTableItem::setDraggable | ( | FXbool | draggable | ) | [virtual, inherited] |
Make item draggable.
FXbool FX::FXTableItem::isDraggable | ( | ) | const [inline, inherited] |
Return true if this item is draggable.
virtual void FX::FXTableItem::setJustify | ( | FXuint | justify = RIGHT|CENTER_Y |
) | [virtual, inherited] |
Change item content justification.
FXuint FX::FXTableItem::getJustify | ( | ) | const [inline, inherited] |
Return item content justification.
virtual void FX::FXTableItem::setIconPosition | ( | FXuint | mode | ) | [virtual, inherited] |
Change item icon position.
FXuint FX::FXTableItem::getIconPosition | ( | ) | const [inline, inherited] |
Return item icon position.
virtual void FX::FXTableItem::setBorders | ( | FXuint | borders = 0 |
) | [virtual, inherited] |
Change item borders.
FXuint FX::FXTableItem::getBorders | ( | ) | const [inline, inherited] |
Return item borders.
virtual void FX::FXTableItem::setStipple | ( | FXStipplePattern | pattern | ) | [virtual, inherited] |
Change item background stipple.
FXStipplePattern FX::FXTableItem::getStipple | ( | ) | const [inherited] |
Return item background stipple.
virtual FXint FX::FXTableItem::getWidth | ( | const FXTable * | table | ) | const [virtual, inherited] |
Return width of item.
virtual FXint FX::FXTableItem::getHeight | ( | const FXTable * | table | ) | const [virtual, inherited] |
Return height of item.
virtual void FX::FXTableItem::create | ( | ) | [virtual, inherited] |
Create server-side resources.
virtual void FX::FXTableItem::detach | ( | ) | [virtual, inherited] |
Detach server-side resources.
virtual void FX::FXTableItem::destroy | ( | ) | [virtual, inherited] |
Destroy server-side resources.
virtual void FX::FXTableItem::save | ( | FXStream & | store | ) | const [virtual, inherited] |
virtual void FX::FXTableItem::load | ( | FXStream & | store | ) | [virtual, inherited] |
virtual long FX::FXObject::onDefault | ( | FXObject * | , | |
FXSelector | , | |||
void * | ||||
) | [virtual, inherited] |
Called for unhandled messages.
Reimplemented in FX::FXDelegator, FX::FXGLViewer, FX::FXMDIChild, and FX::FXMDIClient.
const FXchar* FX::FXObject::getClassName | ( | ) | const [inherited] |
Get class name of some object.
bool FX::FXObject::isMemberOf | ( | const FXMetaClass * | metaclass | ) | const [inherited] |
Check if object is member of metaclass.
virtual long FX::FXObject::tryHandle | ( | FXObject * | sender, | |
FXSelector | sel, | |||
void * | ptr | |||
) | [virtual, inherited] |
Try handle message safely.
QTransString FX::FXObject::tr | ( | const char * | text, | |
const char * | hint = 0 | |||
) | [inherited] |
Returns a human translated version of the text to the locale language (warning: uses a virtual method call, so can't use before construction)
virtual void* FX::FXObject::getPythonObject | ( | ) | const [inline, virtual, inherited] |
Returns the python object representing this instance (if created in python).
virtual void FX::FXObject::decouplePythonObject | ( | ) | const [inline, virtual, inherited] |
Causes decoupling of python object from this object (deletes self).