OOFILE  1.9
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dbGUIAdaptLControl Class Reference

Adapter for PowerPlant controls eg: buttons, sliders, checkboxes. More...

#include <oofpp.h>

Inheritance diagram for dbGUIAdaptLControl:
Inheritance graph
[legend]
Collaboration diagram for dbGUIAdaptLControl:
Collaboration graph
[legend]

Public Member Functions

virtual bool adaptsControl (void *) const
 
virtual dbGUIAdapterclone () const
 
 dbGUIAdaptLControl (LControl *)
 
dbFieldLinkfieldLink () const
 in case someone needs to access it More...
 
virtual int getValue () const
 
bool isValuePicker () const
 
virtual void readOnly (bool)
 
virtual void setFieldLink (dbFieldLink *)
 
virtual void setValue (int)
 
virtual void setValueList (dbView &)
 Null virtual method for subclasses to override, eg dbGUIAdaptLPopupButton. More...
 
generic Adapter mandatory overrides
virtual oofString getString () const
 
virtual void setString (const oofString &)
 
generic Adapter optional overrides
virtual bool equalsString (const oofString &) const
 
generic Adapter optional overrides
virtual void highlightContents ()
 
Control Adapter overrides- defaults defined in terms of string methods
virtual bool equalsValue (int) const
 

Protected Member Functions

virtual void ExecuteSelf (MessageT inMessage, void *ioParam)
 
bool IsReadOnly () const
 

Protected Attributes

LControl * mControl
 
dbFieldLinkmFieldLink
 reference, maybe null More...
 
bool mIsValuePicker
 set at construction to indicate behaviour is picking from list vs entry More...
 

Detailed Description

Adapter for PowerPlant controls eg: buttons, sliders, checkboxes.

All PowerPlant controls descend from LControl and provide an int value interface like GetValue called from dbGUIAdaptLControl::getValue().

Definition at line 137 of file oofpp.h.

Constructor & Destructor Documentation

dbGUIAdaptLControl::dbGUIAdaptLControl ( LControl *  inControl)

Definition at line 88 of file oofpplk.cpp.

Referenced by clone().

Member Function Documentation

bool dbGUIAdaptLControl::adaptsControl ( void *  inControl) const
virtual

Reimplemented from dbGUIAdapter.

Definition at line 160 of file oofpplk.cpp.

References mControl.

dbGUIAdapter * dbGUIAdaptLControl::clone ( ) const
virtual

Implements dbGUIAdapter.

Definition at line 128 of file oofpplk.cpp.

References dbGUIAdaptLControl().

bool dbGUIAdaptControl::equalsString ( const oofString inString) const
virtualinherited

Reimplemented from dbGUIAdapter.

Definition at line 946 of file oofgui.cpp.

References oofString::asLong(), and dbGUIAdapter::getValue().

bool dbGUIAdapter::equalsValue ( int  inValue) const
virtualinherited

Definition at line 899 of file oofgui.cpp.

References dbGUIAdapter::getValue().

void dbGUIAdaptLControl::ExecuteSelf ( MessageT  inMessage,
void *  ioParam 
)
protectedvirtual
dbFieldLink * dbGUIAdapter::fieldLink ( ) const
inlineinherited

in case someone needs to access it

Definition at line 723 of file oofgui.h.

References dbGUIAdapter::mFieldLink.

oofString dbGUIAdaptControl::getString ( ) const
virtualinherited

Implements dbGUIAdapter.

Definition at line 928 of file oofgui.cpp.

References oofString::convertNumber(), and dbGUIAdapter::getValue().

int dbGUIAdaptLControl::getValue ( ) const
virtual

Reimplemented from dbGUIAdapter.

Definition at line 108 of file oofpplk.cpp.

References mControl.

virtual void dbGUIAdapter::highlightContents ( )
inlinevirtualinherited

Reimplemented in dbGUIAdaptEditPane.

Definition at line 94 of file oofgui.h.

Referenced by dbFieldLink::highlightLink().

bool dbGUIAdapter::IsReadOnly ( ) const
inlineprotectedinherited

Definition at line 716 of file oofgui.h.

References dbFieldLink::isReadOnly(), and dbGUIAdapter::mFieldLink.

Referenced by dbGUIAdaptEditPane::ExecuteSelf().

bool dbGUIAdapter::isValuePicker ( ) const
inlineinherited
void dbGUIAdaptLControl::readOnly ( bool  becomeReadOnly)
virtual

Reimplemented from dbGUIAdapter.

Definition at line 135 of file oofpplk.cpp.

References mControl.

void dbGUIAdaptLControl::setFieldLink ( dbFieldLink inLink)
virtual
void dbGUIAdaptControl::setString ( const oofString inString)
virtualinherited

Implements dbGUIAdapter.

Definition at line 938 of file oofgui.cpp.

References oofString::asLong(), and dbGUIAdapter::setValue().

void dbGUIAdaptLControl::setValue ( int  inValue)
virtual

Reimplemented from dbGUIAdapter.

Definition at line 117 of file oofpplk.cpp.

References mControl.

void dbGUIAdapter::setValueList ( dbView )
virtualinherited

Null virtual method for subclasses to override, eg dbGUIAdaptLPopupButton.

Reimplemented in dbGUIAdaptLPopupButton, and dbGUIAdaptLStdPopupMenu.

Definition at line 918 of file oofgui.cpp.

Referenced by dbFieldPickLink::copyFieldToLink().

Member Data Documentation

LControl* dbGUIAdaptLControl::mControl
protected

Definition at line 155 of file oofpp.h.

Referenced by adaptsControl(), ExecuteSelf(), getValue(), readOnly(), setFieldLink(), and setValue().

dbFieldLink* dbGUIAdapter::mFieldLink
protectedinherited
bool dbGUIAdapter::mIsValuePicker
protectedinherited

set at construction to indicate behaviour is picking from list vs entry

Definition at line 113 of file oofgui.h.

Referenced by dbGUIAdaptLPopupButton::dbGUIAdaptLPopupButton(), dbGUIAdaptLStdPopupMenu::dbGUIAdaptLStdPopupMenu(), and dbGUIAdapter::isValuePicker().


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