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

Link a dbView to a single textual list control LTextTableView. More...

#include <oofppx.h>

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

Public Member Functions

virtual void appendRow ()
 
virtual void changeViewTo (dbView *)
 
 dbTableViewDisplay (LTextTableView *inTable, dbView *inView=0, unsigned short headingRows=0)
 
virtual void deleteRow (unsigned long zeroBasedRowNum)
 
virtual bool displayUsesControl (void *) const
 
virtual long highlightedRow () const
 
virtual void highlightNothing ()
 
virtual void highlightRow (unsigned long zeroBasedRowNum, bool bSelect=TRUE)
 
virtual void loadData ()
 
virtual long nextHighlightedRow (long afterRow) const
 
virtual bool receiveMsg (OOFmsgT msg, unsigned long senderDefined)
 The default receiveMsg behaviour is to delete yourself when the broadcaster closes. More...
 
virtual void refresh ()
 
void resumeListening ()
 
virtual void setDoubleClickMessage (MessageT)
 
virtual void subscribeTo (oofBroadcaster *)
 
void suspendListening ()
 
virtual void unsubscribe (oofBroadcaster *from=0)
 
virtual ~dbTableViewDisplay ()
 

Protected Attributes

unsigned short mHeadingRows
 
oofBroadcastermListensTo
 
unsigned short mSuspendCount
 
oofBroadcastermSuspendedListensTo
 

Detailed Description

Link a dbView to a single textual list control LTextTableView.

See also
dbViewAsTableStorage for the actual data transfer

Definition at line 61 of file oofppx.h.

Constructor & Destructor Documentation

dbTableViewDisplay::dbTableViewDisplay ( LTextTableView *  inTable,
dbView inView = 0,
unsigned short  headingRows = 0 
)

Definition at line 821 of file oofpp.cpp.

virtual dbTableViewDisplay::~dbTableViewDisplay ( )
inlinevirtual

Definition at line 64 of file oofppx.h.

Member Function Documentation

void dbTableViewDisplay::appendRow ( )
virtual

Implements dbTableDisplay.

Definition at line 901 of file oofpp.cpp.

void dbTableViewDisplay::changeViewTo ( dbView inView)
virtual

Implements dbTableDisplay.

Definition at line 883 of file oofpp.cpp.

References loadData().

void dbTableViewDisplay::deleteRow ( unsigned long  zeroBasedRowNum)
virtual

Implements dbTableDisplay.

Definition at line 931 of file oofpp.cpp.

bool dbTableViewDisplay::displayUsesControl ( void *  inControl) const
virtual

Implements dbTableDisplay.

Definition at line 846 of file oofpp.cpp.

long dbTableViewDisplay::highlightedRow ( ) const
virtual

Implements dbTableDisplay.

Definition at line 939 of file oofpp.cpp.

void dbTableViewDisplay::highlightNothing ( )
virtual

Implements dbTableDisplay.

Definition at line 923 of file oofpp.cpp.

void dbTableViewDisplay::highlightRow ( unsigned long  zeroBasedRowNum,
bool  bSelect = TRUE 
)
virtual

Implements dbTableDisplay.

Definition at line 909 of file oofpp.cpp.

void dbTableViewDisplay::loadData ( )
virtual

Implements dbTableDisplay.

Definition at line 870 of file oofpp.cpp.

References dbTableDisplay::mHeadingRows.

Referenced by changeViewTo().

long dbTableViewDisplay::nextHighlightedRow ( long  afterRow) const
virtual

Implements dbTableDisplay.

Definition at line 946 of file oofpp.cpp.

bool dbTableViewDisplay::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.

Definition at line 962 of file oofpp.cpp.

References OOFmsg_ChangeSelection, and refresh().

void dbTableViewDisplay::refresh ( )
virtual

Implements dbTableDisplay.

Definition at line 853 of file oofpp.cpp.

References dbTable::count(), dbTableDisplay::mHeadingRows, and dbView::source().

Referenced by receiveMsg().

void oofSingleListener::resumeListening ( )
inherited
void dbTableViewDisplay::setDoubleClickMessage ( MessageT  msg)
virtual

Implements dbTableDisplay.

Definition at line 837 of file oofpp.cpp.

void oofSingleListener::subscribeTo ( oofBroadcaster broad)
virtualinherited
void oofSingleListener::suspendListening ( )
inherited
void oofSingleListener::unsubscribe ( oofBroadcaster from = 0)
virtualinherited

Member Data Documentation

unsigned short dbTableDisplay::mHeadingRows
protectedinherited

Definition at line 568 of file oofgui.h.

Referenced by loadData(), and refresh().

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

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