Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dbBrowseHelper Class Reference
[OOFILE GUI forms interface.Mac Specific]

#include <oofpp.h>

Inheritance diagram for dbBrowseHelper:

Inheritance graph
[legend]
Collaboration diagram for dbBrowseHelper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Concrete implementation for PowerPlant.


Public Member Functions

 dbBrowseHelper (dbView *adoptedView)
virtual ~dbBrowseHelper ()
virtual bool receiveMsg (OOFmsgT msg, unsigned long senderDefined)
 The default receiveMsg behaviour is to delete yourself when the broadcaster closes.

virtual dbViewview () const
virtual unsigned long highlightedRecNo () const
virtual dbSelection highlightedSelection () const
virtual void highlightNothing () const
virtual void highlightRecNo (unsigned long, bool bSelect=TRUE) const
virtual void updateBrowserSelection () const
virtual void refreshBrowser ()
void adoptView (dbView *)
void browseViewWithListBox (LListBox *)
void browseViewWithTable (LTextTableView *)
oidT highlightedOID () const
void gotoHighlightedRecord () const
void appendSelection (const dbSelection &)
void removeSelection (const dbSelection &)
void clearHighlightedSelection ()
void clearSelection ()
dbSelection currentSelection () const
virtual void deleteSelection (const dbSelection &inSel)
virtual dbTabletable () const
virtual void maybeChangeTargetLink (dbFieldLink *)
virtual void maybeDirty (dbFieldLink *)
virtual void subscribeTo (oofBroadcaster *)
virtual void unsubscribe (oofBroadcaster *from=0)
void suspendListening ()
void resumeListening ()

Protected Member Functions

void LoadBrowseData ()

Protected Attributes

oofBroadcastermListensTo
oofBroadcastermSuspendedListensTo
unsigned short mSuspendCount


Constructor & Destructor Documentation

dbBrowseHelper::dbBrowseHelper dbView adoptedView  ) 
 

dbBrowseHelper::~dbBrowseHelper  )  [virtual]
 


Member Function Documentation

void dbBrowseHelper::adoptView dbView  ) 
 

void dbBrowseHelper::appendSelection const dbSelection  ) 
 

void dbBrowseHelper::browseViewWithListBox LListBox *   ) 
 

void dbBrowseHelper::browseViewWithTable LTextTableView *   ) 
 

void dbBrowseHelper::clearHighlightedSelection  ) 
 

void dbBrowseHelper::clearSelection  ) 
 

dbSelection dbBrowseHelper::currentSelection  )  const
 

void dbAbstractBrowseHelper::deleteSelection const dbSelection inSel  )  [virtual, inherited]
 

void dbBrowseHelper::gotoHighlightedRecord  )  const
 

oidT dbBrowseHelper::highlightedOID  )  const
 

unsigned long dbBrowseHelper::highlightedRecNo  )  const [virtual]
 

Implements dbAbstractBrowseHelper.

dbSelection dbBrowseHelper::highlightedSelection  )  const [virtual]
 

Implements dbAbstractBrowseHelper.

void dbBrowseHelper::highlightNothing  )  const [virtual]
 

Implements dbAbstractBrowseHelper.

void dbBrowseHelper::highlightRecNo unsigned  long,
bool  bSelect = TRUE
const [virtual]
 

Implements dbAbstractBrowseHelper.

void dbBrowseHelper::LoadBrowseData  )  [protected]
 

void dbHelper::maybeChangeTargetLink dbFieldLink  )  [virtual, inherited]
 

Reimplemented in dbAbstractEditHelper.

void dbHelper::maybeDirty dbFieldLink  )  [virtual, inherited]
 

Reimplemented in dbAbstractEditHelper, and OOF_mixRepAbstractCellEditor.

bool dbBrowseHelper::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 dbAbstractBrowseHelper.

void dbBrowseHelper::refreshBrowser  )  [virtual]
 

Implements dbAbstractBrowseHelper.

void dbBrowseHelper::removeSelection const dbSelection  ) 
 

void oofSingleListener::resumeListening  )  [inherited]
 

void oofSingleListener::subscribeTo oofBroadcaster  )  [virtual, inherited]
 

Reimplemented from oofReceiver.

void oofSingleListener::suspendListening  )  [inherited]
 

dbTable * dbAbstractBrowseHelper::table  )  const [virtual, inherited]
 

Reimplemented from dbHelper.

void oofSingleListener::unsubscribe oofBroadcaster from = 0  )  [virtual, inherited]
 

Reimplemented from oofReceiver.

void dbBrowseHelper::updateBrowserSelection  )  const [virtual]
 

Implements dbAbstractBrowseHelper.

dbView * dbBrowseHelper::view  )  const [virtual]
 

Implements dbAbstractBrowseHelper.


Member Data Documentation

oofBroadcaster* oofSingleListener::mListensTo [protected, inherited]
 

unsigned short oofSingleListener::mSuspendCount [protected, inherited]
 

oofBroadcaster* oofSingleListener::mSuspendedListensTo [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:30:27 2004 for OOFILE by doxygen 1.3.5