ASPiK SDK
|
DataBrowser Interface. More...
#include <cdatabrowser.h>
Public Types | |
enum | { kRowSelected = 1 << 1 } |
Public Member Functions | |
Setup | |
virtual int32_t | dbGetNumRows (CDataBrowser *browser)=0 |
return number of rows for CDataBrowser browser | |
virtual int32_t | dbGetNumColumns (CDataBrowser *browser)=0 |
return number of columns for CDataBrowser browser | |
virtual bool | dbGetColumnDescription (int32_t index, CCoord &minWidth, CCoord &maxWidth, CDataBrowser *browser) |
virtual CCoord | dbGetCurrentColumnWidth (int32_t index, CDataBrowser *browser)=0 |
return current width of index column | |
virtual void | dbSetCurrentColumnWidth (int32_t 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 CCoord | dbGetHeaderHeight (CDataBrowser *browser) |
return height of header | |
virtual bool | dbGetLineWidthAndColor (CCoord &width, CColor &color, CDataBrowser *browser) |
return the line width and color | |
virtual void | dbAttached (CDataBrowser *browser) |
databrowser view was attached to a parent | |
virtual void | dbRemoved (CDataBrowser *browser) |
databrowser view will be removed from its parent | |
Drawing | |
virtual void | dbDrawHeader (CDrawContext *context, const CRect &size, int32_t column, int32_t flags, CDataBrowser *browser)=0 |
draw the db header | |
virtual void | dbDrawCell (CDrawContext *context, const CRect &size, int32_t row, int32_t column, int32_t flags, CDataBrowser *browser)=0 |
draw a db cell | |
Mouse Handling | |
virtual CMouseEventResult | dbOnMouseDown (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) |
mouse button was pressed on a cell | |
virtual CMouseEventResult | dbOnMouseMoved (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) |
mouse was moved over a cell | |
virtual CMouseEventResult | dbOnMouseUp (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) |
mouse button was released on a cell | |
Drag'n Drop Handling | |
virtual void | dbOnDragEnterBrowser (IDataPackage *drag, CDataBrowser *browser) |
virtual void | dbOnDragExitBrowser (IDataPackage *drag, CDataBrowser *browser) |
virtual void | dbOnDragEnterCell (int32_t row, int32_t column, const CPoint &where, IDataPackage *drag, CDataBrowser *browser) |
virtual void | dbOnDragMoveInCell (int32_t row, int32_t column, const CPoint &where, IDataPackage *drag, CDataBrowser *browser) |
virtual void | dbOnDragExitCell (int32_t row, int32_t column, IDataPackage *drag, CDataBrowser *browser) |
virtual bool | dbOnDropInCell (int32_t row, int32_t column, const CPoint &where, IDataPackage *drag, CDataBrowser *browser) |
Selection | |
virtual void | dbSelectionChanged (CDataBrowser *browser) |
the selection of the db changed | |
Cell Text Editing | |
virtual void | dbCellTextChanged (int32_t row, int32_t column, UTF8StringPtr newText, CDataBrowser *browser) |
the text of the cell changed beginTextEdit was called for | |
virtual void | dbCellSetupTextEdit (int32_t row, int32_t column, CTextEdit *textEditControl, CDataBrowser *browser) |
beginTextEdit calls this, so you can setup the textedit control | |
Keyboard Handling | |
virtual int32_t | dbOnKeyDown (const VstKeyCode &key, CDataBrowser *browser) |
DataBrowser Interface.