IDataBrowser Class Reference

DataBrowser Interface. More...

#include <cdatabrowser.h>

List of all members.

Public Types

enum  { kRowSelected = 1 << 1 }

Public Member Functions

virtual long dbGetNumRows (CDataBrowser *browser)=0
 return number of rows for CDataBrowser browser
virtual long dbGetNumColumns (CDataBrowser *browser)=0
 return number of columns for CDataBrowser browser
virtual bool dbGetColumnDescription (long index, CCoord &minWidth, CCoord &maxWidth, CDataBrowser *browser)
virtual CCoord dbGetCurrentColumnWidth (long index, CDataBrowser *browser)=0
 return current width of index column
virtual void dbSetCurrentColumnWidth (long index, const CCoord &width, CDataBrowser *browser)
 the width of a column has changed
virtual CCoord dbGetRowHeight (CDataBrowser *browser)=0
 return height of one row
virtual bool dbGetLineWidthAndColor (CCoord &width, CColor &color, CDataBrowser *browser)
 return the line width and color
virtual void dbDrawHeader (CDrawContext *context, const CRect &size, long column, long flags, CDataBrowser *browser)=0
 draw the db header
virtual void dbDrawCell (CDrawContext *context, const CRect &size, long row, long column, long flags, CDataBrowser *browser)=0
 draw a db cell
virtual CMouseEventResult dbOnMouseDown (const CPoint &where, const long &buttons, long row, long column, CDataBrowser *browser)
 mouse button was pressed on a cell
virtual CMouseEventResult dbOnMouseMoved (const CPoint &where, const long &buttons, long row, long column, CDataBrowser *browser)
 mouse was moved over a cell
virtual CMouseEventResult dbOnMouseUp (const CPoint &where, const long &buttons, long row, long column, CDataBrowser *browser)
 mouse button was released on a cell
virtual void dbSelectionChanged (CDataBrowser *browser)
 the selection of the db changed
virtual void dbCellTextChanged (long row, long column, const char *newText, CDataBrowser *browser)
 the text of the cell changed beginTextEdit was called for
virtual void dbCellSetupTextEdit (long row, long column, CTextEdit *textEditControl, CDataBrowser *browser)
 beginTextEdit calls this, so you can setup the textedit control
virtual ~IDataBrowser ()

Detailed Description

DataBrowser Interface.


Member Enumeration Documentation

anonymous enum
Enumerator:
kRowSelected 

Constructor & Destructor Documentation

virtual ~IDataBrowser (  )  [inline, virtual]

Member Function Documentation

virtual long dbGetNumRows ( CDataBrowser browser  )  [pure virtual]

return number of rows for CDataBrowser browser

virtual long dbGetNumColumns ( CDataBrowser browser  )  [pure virtual]

return number of columns for CDataBrowser browser

virtual bool dbGetColumnDescription ( long  index,
CCoord minWidth,
CCoord maxWidth,
CDataBrowser browser 
) [inline, virtual]
virtual CCoord dbGetCurrentColumnWidth ( long  index,
CDataBrowser browser 
) [pure virtual]

return current width of index column

virtual void dbSetCurrentColumnWidth ( long  index,
const CCoord width,
CDataBrowser browser 
) [inline, virtual]

the width of a column has changed

virtual CCoord dbGetRowHeight ( CDataBrowser browser  )  [pure virtual]

return height of one row

virtual bool dbGetLineWidthAndColor ( CCoord width,
CColor color,
CDataBrowser browser 
) [inline, virtual]

return the line width and color

virtual void dbDrawHeader ( CDrawContext context,
const CRect size,
long  column,
long  flags,
CDataBrowser browser 
) [pure virtual]

draw the db header

virtual void dbDrawCell ( CDrawContext context,
const CRect size,
long  row,
long  column,
long  flags,
CDataBrowser browser 
) [pure virtual]

draw a db cell

virtual CMouseEventResult dbOnMouseDown ( const CPoint where,
const long &  buttons,
long  row,
long  column,
CDataBrowser browser 
) [inline, virtual]

mouse button was pressed on a cell

virtual CMouseEventResult dbOnMouseMoved ( const CPoint where,
const long &  buttons,
long  row,
long  column,
CDataBrowser browser 
) [inline, virtual]

mouse was moved over a cell

virtual CMouseEventResult dbOnMouseUp ( const CPoint where,
const long &  buttons,
long  row,
long  column,
CDataBrowser browser 
) [inline, virtual]

mouse button was released on a cell

virtual void dbSelectionChanged ( CDataBrowser browser  )  [inline, virtual]

the selection of the db changed

virtual void dbCellTextChanged ( long  row,
long  column,
const char *  newText,
CDataBrowser browser 
) [inline, virtual]

the text of the cell changed beginTextEdit was called for

virtual void dbCellSetupTextEdit ( long  row,
long  column,
CTextEdit textEditControl,
CDataBrowser browser 
) [inline, virtual]

beginTextEdit calls this, so you can setup the textedit control


The documentation for this class was generated from the following file:
Generated on Fri Apr 9 10:19:33 2010 for VSTGUI by  doxygen 1.6.3