OOFILE  1.9
Public Member Functions | Protected Attributes | List of all members
dbAbstractBrowseHelper Class Referenceabstract

dbHelper for managing lists of records. More...

#include <oofgui.h>

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

Public Member Functions

 dbAbstractBrowseHelper (dbTable *)
 
virtual void deleteSelection (const dbSelection &inSel)
 
virtual unsigned long highlightedRecNo () const =0
 
virtual dbSelection highlightedSelection () const =0
 
virtual void highlightNothing () const =0
 
virtual void highlightRecNo (unsigned long inRecNo, bool bSelect=true) const =0
 
virtual void maybeChangeTargetLink (dbFieldLink *)
 
virtual void maybeDirty (dbFieldLink *)
 
virtual bool receiveMsg (OOFmsgT msg, unsigned long senderDefined)
 The default receiveMsg behaviour is to delete yourself when the broadcaster closes. More...
 
virtual void refreshBrowser ()=0
 
void resumeListening ()
 
virtual void subscribeTo (oofBroadcaster *)
 
void suspendListening ()
 
virtual dbTabletable () const
 
virtual void unsubscribe (oofBroadcaster *from=0)
 
virtual void updateBrowserSelection () const =0
 
virtual dbViewview () const =0
 
virtual ~dbAbstractBrowseHelper ()
 

Protected Attributes

oofBroadcastermListensTo
 
unsigned short mSuspendCount
 
oofBroadcastermSuspendedListensTo
 

Detailed Description

dbHelper for managing lists of records.

Abstracted cross-platform interface, subclassed for each framework.

Definition at line 372 of file oofgui.h.

Constructor & Destructor Documentation

dbAbstractBrowseHelper::dbAbstractBrowseHelper ( dbTable inTable)

Definition at line 302 of file oofgui.cpp.

virtual dbAbstractBrowseHelper::~dbAbstractBrowseHelper ( )
inlinevirtual

Definition at line 375 of file oofgui.h.

Member Function Documentation

void dbAbstractBrowseHelper::deleteSelection ( const dbSelection inSel)
virtual
virtual unsigned long dbAbstractBrowseHelper::highlightedRecNo ( ) const
pure virtual

Implemented in dbBrowseHelper, and dbHierBrowseHelper.

Referenced by dbGUI::goHighlightedRecord().

virtual dbSelection dbAbstractBrowseHelper::highlightedSelection ( ) const
pure virtual

Implemented in dbBrowseHelper, and dbHierBrowseHelper.

virtual void dbAbstractBrowseHelper::highlightNothing ( ) const
pure virtual

Implemented in dbBrowseHelper, and dbHierBrowseHelper.

Referenced by receiveMsg().

virtual void dbAbstractBrowseHelper::highlightRecNo ( unsigned long  inRecNo,
bool  bSelect = true 
) const
pure virtual
void dbHelper::maybeChangeTargetLink ( dbFieldLink )
virtualinherited

Reimplemented in dbAbstractEditHelper.

Definition at line 278 of file oofgui.cpp.

Referenced by dbFieldLink::maybeChangeTargetLink().

void dbHelper::maybeDirty ( dbFieldLink )
virtualinherited

Reimplemented in dbAbstractEditHelper, and OOF_mixRepAbstractCellEditor.

Definition at line 285 of file oofgui.cpp.

Referenced by dbFieldLink::maybeDirty().

bool dbAbstractBrowseHelper::receiveMsg ( OOFmsgT  msg,
unsigned long  senderDefined 
)
virtual

The default receiveMsg behaviour is to delete yourself when the broadcaster closes.

In many user subclasses oofSingleListener is a mixin and you have a class owned elsewhere, not self-deleting.

\warning If a subclass is not self-deleting it MUST override receiveMsg 
handling of the msg OOFmsg_BroadcasterClosing to prevent runtime error.

However it is still important to set mListensTo=0 otherwise when you finally get around to deleting your oofSingleListener, it will try to update a deleted oofBroadcaster and cause a crash.

Reimplemented from oofSingleListener.

Reimplemented in dbBrowseHelper, and dbHierBrowseHelper.

Definition at line 348 of file oofgui.cpp.

References dbTable::getGUI(), highlightNothing(), highlightRecNo(), dbGUI::mainTable(), OOFmsg_AttemptLeaveRecord, OOFmsg_AttemptSaveRecord, OOFmsg_ChangeSelection, OOFmsg_NewRecord, OOFmsg_RevertRecord, OOFmsg_SaveRecord, dbTable::recordNumber(), refreshBrowser(), dbView::table(), and view().

Referenced by dbBrowseHelper::receiveMsg().

virtual void dbAbstractBrowseHelper::refreshBrowser ( )
pure virtual

Implemented in dbBrowseHelper, and dbHierBrowseHelper.

Referenced by receiveMsg().

void oofSingleListener::resumeListening ( )
inherited
void oofSingleListener::subscribeTo ( oofBroadcaster broad)
virtualinherited
void oofSingleListener::suspendListening ( )
inherited
dbTable * dbAbstractBrowseHelper::table ( ) const
virtual

Reimplemented from dbHelper.

Definition at line 308 of file oofgui.cpp.

References dbView::table(), and view().

Referenced by deleteSelection().

void oofSingleListener::unsubscribe ( oofBroadcaster from = 0)
virtualinherited
virtual void dbAbstractBrowseHelper::updateBrowserSelection ( ) const
pure virtual

Implemented in dbBrowseHelper, and dbHierBrowseHelper.

virtual dbView* dbAbstractBrowseHelper::view ( ) const
pure virtual

Implemented in dbBrowseHelper, and dbHierBrowseHelper.

Referenced by deleteSelection(), receiveMsg(), and table().

Member Data Documentation

oofBroadcaster* oofSingleListener::mListensTo
protectedinherited
unsigned short oofSingleListener::mSuspendCount
protectedinherited
oofBroadcaster* oofSingleListener::mSuspendedListensTo
protectedinherited

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