VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
IDataBrowserDelegate Class Referenceabstract

DataBrowser Interface. More...

+ Inheritance diagram for IDataBrowserDelegate:

Public Types

enum  Flags { kRowSelected = 1 << 1 }
 

Public Member Functions

virtual ~IDataBrowserDelegate () noexcept=default
 
Setup
virtual int32_t dbGetNumRows (CDataBrowser *browser)=0
 return number of rows for CDataBrowser browser More...
 
virtual int32_t dbGetNumColumns (CDataBrowser *browser)=0
 return number of columns for CDataBrowser browser More...
 
virtual bool dbGetColumnDescription (int32_t index, CCoord &minWidth, CCoord &maxWidth, CDataBrowser *browser)=0
 
virtual CCoord dbGetCurrentColumnWidth (int32_t index, CDataBrowser *browser)=0
 return current width of index column More...
 
virtual void dbSetCurrentColumnWidth (int32_t index, const CCoord &width, CDataBrowser *browser)=0
 the width of a column has changed More...
 
virtual CCoord dbGetRowHeight (CDataBrowser *browser)=0
 return height of one row More...
 
virtual CCoord dbGetHeaderHeight (CDataBrowser *browser)=0
 return height of header More...
 
virtual bool dbGetLineWidthAndColor (CCoord &width, CColor &color, CDataBrowser *browser)=0
 return the line width and color More...
 
virtual void dbAttached (CDataBrowser *browser)=0
 databrowser view was attached to a parent More...
 
virtual void dbRemoved (CDataBrowser *browser)=0
 databrowser view will be removed from its parent More...
 
Drawing
virtual void dbDrawHeader (CDrawContext *context, const CRect &size, int32_t column, int32_t flags, CDataBrowser *browser)=0
 draw the db header More...
 
virtual void dbDrawCell (CDrawContext *context, const CRect &size, int32_t row, int32_t column, int32_t flags, CDataBrowser *browser)=0
 draw a db cell More...
 
Mouse Handling
virtual CMouseEventResult dbOnMouseDown (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser)=0
 mouse button was pressed on a cell More...
 
virtual CMouseEventResult dbOnMouseMoved (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser)=0
 mouse was moved over a cell More...
 
virtual CMouseEventResult dbOnMouseUp (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser)=0
 mouse button was released on a cell More...
 
Drag'n Drop Handling
virtual void dbOnDragEnterBrowser (IDataPackage *drag, CDataBrowser *browser)=0
 
virtual void dbOnDragExitBrowser (IDataPackage *drag, CDataBrowser *browser)=0
 
virtual DragOperation dbOnDragEnterCell (int32_t row, int32_t column, const CPoint &where, IDataPackage *drag, CDataBrowser *browser)=0
 
virtual DragOperation dbOnDragMoveInCell (int32_t row, int32_t column, const CPoint &where, IDataPackage *drag, CDataBrowser *browser)=0
 
virtual void dbOnDragExitCell (int32_t row, int32_t column, IDataPackage *drag, CDataBrowser *browser)=0
 
virtual bool dbOnDropInCell (int32_t row, int32_t column, const CPoint &where, IDataPackage *drag, CDataBrowser *browser)=0
 
Selection
virtual void dbSelectionChanged (CDataBrowser *browser)=0
 the selection of the db changed More...
 
Cell Text Editing
virtual void dbCellTextChanged (int32_t row, int32_t column, UTF8StringPtr newText, CDataBrowser *browser)=0
 the text of the cell changed beginTextEdit was called for More...
 
virtual void dbCellSetupTextEdit (int32_t row, int32_t column, CTextEdit *textEditControl, CDataBrowser *browser)=0
 beginTextEdit calls this, so you can setup the textedit control More...
 
Keyboard Handling
virtual int32_t dbOnKeyDown (const VstKeyCode &key, CDataBrowser *browser)=0
 

Detailed Description

DataBrowser Interface.

Member Enumeration Documentation

◆ Flags

enum Flags
Enumerator
kRowSelected 

Constructor & Destructor Documentation

◆ ~IDataBrowserDelegate()

virtual ~IDataBrowserDelegate ( )
virtualdefaultnoexcept

Member Function Documentation

◆ dbAttached()

virtual void dbAttached ( CDataBrowser browser)
pure virtual

databrowser view was attached to a parent

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbCellSetupTextEdit()

virtual void dbCellSetupTextEdit ( int32_t  row,
int32_t  column,
CTextEdit textEditControl,
CDataBrowser browser 
)
pure virtual

beginTextEdit calls this, so you can setup the textedit control

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbCellTextChanged()

virtual void dbCellTextChanged ( int32_t  row,
int32_t  column,
UTF8StringPtr  newText,
CDataBrowser browser 
)
pure virtual

the text of the cell changed beginTextEdit was called for

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbDrawCell()

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

◆ dbDrawHeader()

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

draw the db header

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbGetColumnDescription()

virtual bool dbGetColumnDescription ( int32_t  index,
CCoord minWidth,
CCoord maxWidth,
CDataBrowser browser 
)
pure virtual

◆ dbGetCurrentColumnWidth()

virtual CCoord dbGetCurrentColumnWidth ( int32_t  index,
CDataBrowser browser 
)
pure virtual

return current width of index column

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbGetHeaderHeight()

virtual CCoord dbGetHeaderHeight ( CDataBrowser browser)
pure virtual

return height of header

Implemented in DataBrowserDelegateAdapter.

◆ dbGetLineWidthAndColor()

virtual bool dbGetLineWidthAndColor ( CCoord width,
CColor color,
CDataBrowser browser 
)
pure virtual

return the line width and color

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbGetNumColumns()

virtual int32_t dbGetNumColumns ( CDataBrowser browser)
pure virtual

return number of columns for CDataBrowser browser

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbGetNumRows()

virtual int32_t dbGetNumRows ( CDataBrowser browser)
pure virtual

return number of rows for CDataBrowser browser

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbGetRowHeight()

virtual CCoord dbGetRowHeight ( CDataBrowser browser)
pure virtual

return height of one row

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbOnDragEnterBrowser()

virtual void dbOnDragEnterBrowser ( IDataPackage drag,
CDataBrowser browser 
)
pure virtual

Implemented in DataBrowserDelegateAdapter.

◆ dbOnDragEnterCell()

virtual DragOperation dbOnDragEnterCell ( int32_t  row,
int32_t  column,
const CPoint where,
IDataPackage drag,
CDataBrowser browser 
)
pure virtual

Implemented in DataBrowserDelegateAdapter.

◆ dbOnDragExitBrowser()

virtual void dbOnDragExitBrowser ( IDataPackage drag,
CDataBrowser browser 
)
pure virtual

Implemented in DataBrowserDelegateAdapter.

◆ dbOnDragExitCell()

virtual void dbOnDragExitCell ( int32_t  row,
int32_t  column,
IDataPackage drag,
CDataBrowser browser 
)
pure virtual

Implemented in DataBrowserDelegateAdapter.

◆ dbOnDragMoveInCell()

virtual DragOperation dbOnDragMoveInCell ( int32_t  row,
int32_t  column,
const CPoint where,
IDataPackage drag,
CDataBrowser browser 
)
pure virtual

Implemented in DataBrowserDelegateAdapter.

◆ dbOnDropInCell()

virtual bool dbOnDropInCell ( int32_t  row,
int32_t  column,
const CPoint where,
IDataPackage drag,
CDataBrowser browser 
)
pure virtual

Implemented in DataBrowserDelegateAdapter.

◆ dbOnKeyDown()

virtual int32_t dbOnKeyDown ( const VstKeyCode key,
CDataBrowser browser 
)
pure virtual

◆ dbOnMouseDown()

virtual CMouseEventResult dbOnMouseDown ( const CPoint where,
const CButtonState buttons,
int32_t  row,
int32_t  column,
CDataBrowser browser 
)
pure virtual

mouse button was pressed on a cell

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbOnMouseMoved()

virtual CMouseEventResult dbOnMouseMoved ( const CPoint where,
const CButtonState buttons,
int32_t  row,
int32_t  column,
CDataBrowser browser 
)
pure virtual

mouse was moved over a cell

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbOnMouseUp()

virtual CMouseEventResult dbOnMouseUp ( const CPoint where,
const CButtonState buttons,
int32_t  row,
int32_t  column,
CDataBrowser browser 
)
pure virtual

mouse button was released on a cell

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbRemoved()

virtual void dbRemoved ( CDataBrowser browser)
pure virtual

databrowser view will be removed from its parent

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbSelectionChanged()

virtual void dbSelectionChanged ( CDataBrowser browser)
pure virtual

the selection of the db changed

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

◆ dbSetCurrentColumnWidth()

virtual void dbSetCurrentColumnWidth ( int32_t  index,
const CCoord width,
CDataBrowser browser 
)
pure virtual

the width of a column has changed

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.


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