FX::FXDataTargetI< T > Class Template Reference

#include <FXDataTarget.h>

Inheritance diagram for FX::FXDataTargetI< T >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<typename T>
class FX::FXDataTargetI< T >

A data target with storage

Public Types

enum  {
  DT_VOID, DT_CHAR, DT_UCHAR, DT_SHORT,
  DT_USHORT, DT_INT, DT_UINT, DT_LONG,
  DT_ULONG, DT_FLOAT, DT_DOUBLE, DT_STRING,
  DT_LAST
}
enum  { ID_VALUE, ID_OPTION, ID_LAST }

Public Member Functions

 FXDataTargetI (FXObject *tgt=NULL, FXSelector sel=0)
const T & operator* () const
Returner operator* ()
long onCmdValue (FXObject *, FXSelector, void *)
long onUpdValue (FXObject *, FXSelector, void *)
long onCmdOption (FXObject *, FXSelector, void *)
long onUpdOption (FXObject *, FXSelector, void *)
void setTarget (FXObject *t)
FXObjectgetTarget () const
void setSelector (FXSelector sel)
FXSelector getSelector () const
FXuint getType () const
void * getData () const
Generic::BoundFunctorVaddUpcall (FXAutoPtr< Generic::BoundFunctorV > upcall)
bool removeUpcall (Generic::BoundFunctorV *upcall)
void connect ()
void connect (FXchar &value)
void connect (FXuchar &value)
void connect (FXshort &value)
void connect (FXushort &value)
void connect (FXint &value)
void connect (FXuint &value)
void connect (FXlong &value)
void connect (FXulong &value)
void connect (FXfloat &value)
void connect (FXdouble &value)
void connect (FXString &value)
void connect (FXObject *tgt, FXSelector sel)
void connect (FXchar &value, FXObject *tgt, FXSelector sel)
void connect (FXuchar &value, FXObject *tgt, FXSelector sel)
void connect (FXshort &value, FXObject *tgt, FXSelector sel)
void connect (FXushort &value, FXObject *tgt, FXSelector sel)
void connect (FXint &value, FXObject *tgt, FXSelector sel)
void connect (FXuint &value, FXObject *tgt, FXSelector sel)
void connect (FXlong &value, FXObject *tgt, FXSelector sel)
void connect (FXulong &value, FXObject *tgt, FXSelector sel)
void connect (FXfloat &value, FXObject *tgt, FXSelector sel)
void connect (FXdouble &value, FXObject *tgt, FXSelector sel)
void connect (FXString &value, FXObject *tgt, FXSelector sel)
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)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Protected Attributes

FXObjecttarget
void * data
FXSelector message
FXuint type
QPtrVector
< Generic::BoundFunctorV
upcalls

Friends

struct Returner

Classes

struct  Returner
 Strawman structure to manage setting. More...

Member Enumeration Documentation

anonymous enum [inherited]

Enumerator:
ID_OPTION  Will cause the FXDataTarget to ask sender for value.
ID_LAST  ID_OPTION+i will set the value to i where -10000<=i<=10000.


Constructor & Destructor Documentation

template<typename T>
FX::FXDataTargetI< T >::FXDataTargetI ( FXObject tgt = NULL,
FXSelector  sel = 0 
) [inline]

Constructs an instance targeting the specified item.


Member Function Documentation

template<typename T>
const T& FX::FXDataTargetI< T >::operator* (  )  const [inline]

Retrieves the value.

template<typename T>
Returner FX::FXDataTargetI< T >::operator* (  )  [inline]

Permits retrieval or setting of the value.

void FX::FXDataTarget::setTarget ( FXObject t  )  [inline, inherited]

Set the message target object for this data target.

FXObject* FX::FXDataTarget::getTarget (  )  const [inline, inherited]

Get the message target object for this data target, if any.

void FX::FXDataTarget::setSelector ( FXSelector  sel  )  [inline, inherited]

Set the message identifier for this data target.

FXSelector FX::FXDataTarget::getSelector (  )  const [inline, inherited]

Get the message identifier for this data target.

FXuint FX::FXDataTarget::getType (  )  const [inline, inherited]

Return type of data its connected to.

void* FX::FXDataTarget::getData (  )  const [inline, inherited]

Return pointer to data its connected to.

Generic::BoundFunctorV* FX::FXDataTarget::addUpcall ( FXAutoPtr< Generic::BoundFunctorV upcall  )  [inherited]

Adds a bound functor to be called when the data changes.

bool FX::FXDataTarget::removeUpcall ( Generic::BoundFunctorV upcall  )  [inherited]

Removes a bound functor being called when the data changes.

void FX::FXDataTarget::connect (  )  [inline, inherited]

Associate with nothing.

void FX::FXDataTarget::connect ( FXchar &  value  )  [inline, inherited]

Associate with character variable.

void FX::FXDataTarget::connect ( FXuchar &  value  )  [inline, inherited]

Associate with unsigned character variable.

void FX::FXDataTarget::connect ( FXshort &  value  )  [inline, inherited]

Associate with signed short variable.

void FX::FXDataTarget::connect ( FXushort &  value  )  [inline, inherited]

Associate with unsigned short variable.

void FX::FXDataTarget::connect ( FXint &  value  )  [inline, inherited]

Associate with int variable.

void FX::FXDataTarget::connect ( FXuint &  value  )  [inline, inherited]

Associate with unsigned int variable.

void FX::FXDataTarget::connect ( FXlong &  value  )  [inline, inherited]

Associate with long variable.

void FX::FXDataTarget::connect ( FXulong &  value  )  [inline, inherited]

Associate with unsigned long variable.

void FX::FXDataTarget::connect ( FXfloat &  value  )  [inline, inherited]

Associate with float variable.

void FX::FXDataTarget::connect ( FXdouble &  value  )  [inline, inherited]

Associate with double variable.

void FX::FXDataTarget::connect ( FXString value  )  [inline, inherited]

Associate with string variable.

void FX::FXDataTarget::connect ( FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with nothing; also set target and message.

void FX::FXDataTarget::connect ( FXchar &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with character variable; also set target and message.

void FX::FXDataTarget::connect ( FXuchar &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with unsigned character variable; also set target and message.

void FX::FXDataTarget::connect ( FXshort &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with signed short variable; also set target and message.

void FX::FXDataTarget::connect ( FXushort &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with unsigned short variable; also set target and message.

void FX::FXDataTarget::connect ( FXint &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with int variable; also set target and message.

void FX::FXDataTarget::connect ( FXuint &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with unsigned int variable; also set target and message.

void FX::FXDataTarget::connect ( FXlong &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with long variable; also set target and message.

void FX::FXDataTarget::connect ( FXulong &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with unsigned long variable; also set target and message.

void FX::FXDataTarget::connect ( FXfloat &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with float variable; also set target and message.

void FX::FXDataTarget::connect ( FXdouble &  value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with double variable; also set target and message.

void FX::FXDataTarget::connect ( FXString value,
FXObject tgt,
FXSelector  sel 
) [inline, inherited]

Associate with string variable; also set target and message.

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.

virtual void FX::FXObject::save ( FXStream store  )  const [virtual, inherited]

Save object to stream.

Reimplemented in FX::FX4Splitter, FX::FX7Segment, FX::FXAccelTable, FX::FXApp, FX::FXArrowButton, FX::FXBitmap, FX::FXBitmapFrame, FX::FXBitmapView, FX::FXCheckButton, FX::FXChoiceBox, FX::FXColorBar, FX::FXColorDialog, FX::FXColorRing, FX::FXColorSelector, FX::FXColorWell, FX::FXColorWheel, FX::FXComboBox, FX::FXCursor, FX::FXDial, FX::FXDirBox, FX::FXDirDialog, FX::FXDirList, FX::FXDirSelector, FX::FXDockBar, FX::FXDockHandler, FX::FXDockTitle, FX::FXDocument, FX::FXDragCorner, FX::FXDrawable, FX::FXDriveBox, FX::FXFileDialog, FX::FXFileDict, FX::FXFileList, FX::FXFileSelector, FX::FXFoldingItem, FX::FXFoldingList, FX::FXFont, FX::FXFontDialog, FX::FXFontSelector, FX::FXFrame, FX::FXGLCanvas, FX::FXGLCone, FX::FXGLContext, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLGroup, FX::FXGLShape, FX::FXGLSphere, FX::FXGLTriangleMesh, FX::FXGLVertices, FX::FXGLViewer, FX::FXGLVisual, FX::FXGradientBar, FX::FXGroupBox, FX::FXHeaderItem, FX::FXHeader, FX::FXIconDict, FX::FXIconItem, FX::FXIconList, FX::FXIconSource, FX::FXId, FX::FXImage, FX::FXImageFrame, FX::FXImageView, FX::FXKnob, FX::FXLabel, FX::FXListItem, FX::FXList, FX::FXListBox, FX::FXMDIChild, FX::FXMDIClient, FX::FXMenuButton, FX::FXMenuCaption, FX::FXMenuCascade, FX::FXMenuCheck, FX::FXMenuCommand, FX::FXMenuRadio, FX::FXMenuSeparator, FX::FXMenuTitle, FX::FXOptionMenu, FX::FXPacker, FX::FXPrimaryButton, FX::FXPrintDialog, FX::FXProgressBar, FX::FXRadioButton, FX::FXRealSlider, FX::FXRealSpinner, FX::FXRecentFiles, FX::FXReplaceDialog, FX::FXRuler, FX::FXRulerView, FX::FXScrollBar, FX::FXSlider, FX::FXSpinner, FX::FXSplashWindow, FX::FXSplitter, FX::FXSpring, FX::FXStatusBar, FX::FXStatusLine, FX::FXSwitcher, FX::FXTabBar, FX::FXTableItem, FX::FXTable, FX::FXText, FX::FXTextField, FX::FXToggleButton, FX::FXToolBarGrip, FX::FXToolBarShell, FX::FXToolBarTab, FX::FXToolTip, FX::FXTopWindow, FX::FXTreeItem, FX::FXTreeList, FX::FXTreeListBox, FX::FXTriStateButton, FX::FXVisual, FX::FXWindow, and FX::FXWizard.

virtual void FX::FXObject::load ( FXStream store  )  [virtual, inherited]

Load object from stream.

Reimplemented in FX::FX4Splitter, FX::FX7Segment, FX::FXAccelTable, FX::FXApp, FX::FXArrowButton, FX::FXBitmap, FX::FXBitmapFrame, FX::FXBitmapView, FX::FXCheckButton, FX::FXChoiceBox, FX::FXColorBar, FX::FXColorDialog, FX::FXColorRing, FX::FXColorSelector, FX::FXColorWell, FX::FXColorWheel, FX::FXComboBox, FX::FXCursor, FX::FXDial, FX::FXDirBox, FX::FXDirDialog, FX::FXDirList, FX::FXDirSelector, FX::FXDockBar, FX::FXDockHandler, FX::FXDockTitle, FX::FXDocument, FX::FXDragCorner, FX::FXDrawable, FX::FXDriveBox, FX::FXFileDialog, FX::FXFileDict, FX::FXFileList, FX::FXFileSelector, FX::FXFoldingItem, FX::FXFoldingList, FX::FXFont, FX::FXFontDialog, FX::FXFontSelector, FX::FXFrame, FX::FXGLCanvas, FX::FXGLCone, FX::FXGLContext, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLGroup, FX::FXGLShape, FX::FXGLSphere, FX::FXGLTriangleMesh, FX::FXGLVertices, FX::FXGLViewer, FX::FXGLVisual, FX::FXGradientBar, FX::FXGroupBox, FX::FXHeaderItem, FX::FXHeader, FX::FXIconDict, FX::FXIconItem, FX::FXIconList, FX::FXIconSource, FX::FXId, FX::FXImage, FX::FXImageFrame, FX::FXImageView, FX::FXKnob, FX::FXLabel, FX::FXListItem, FX::FXList, FX::FXListBox, FX::FXMDIChild, FX::FXMDIClient, FX::FXMenuButton, FX::FXMenuCaption, FX::FXMenuCascade, FX::FXMenuCheck, FX::FXMenuCommand, FX::FXMenuRadio, FX::FXMenuSeparator, FX::FXMenuTitle, FX::FXOptionMenu, FX::FXPacker, FX::FXPrimaryButton, FX::FXPrintDialog, FX::FXProgressBar, FX::FXRadioButton, FX::FXRealSlider, FX::FXRealSpinner, FX::FXRecentFiles, FX::FXReplaceDialog, FX::FXRuler, FX::FXRulerView, FX::FXScrollBar, FX::FXSlider, FX::FXSpinner, FX::FXSplashWindow, FX::FXSplitter, FX::FXSpring, FX::FXStatusBar, FX::FXStatusLine, FX::FXSwitcher, FX::FXTabBar, FX::FXTableItem, FX::FXTable, FX::FXText, FX::FXTextField, FX::FXToggleButton, FX::FXToolBarGrip, FX::FXToolBarShell, FX::FXToolBarTab, FX::FXToolTip, FX::FXTopWindow, FX::FXTreeItem, FX::FXTreeList, FX::FXTreeListBox, FX::FXTriStateButton, FX::FXVisual, FX::FXWindow, and FX::FXWizard.

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).


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:57:33 2008 for TnFOX by doxygen v1.5.6