VSTGUI 4.10 Graphical User Interface Framework not only for VST plugins

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
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
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)=0
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)=0
| the width of a column has changed
virtual CCoord | dbGetRowHeight (CDataBrowser *browser)=0
| return height of one row
virtual CCoord | dbGetHeaderHeight (CDataBrowser *browser)=0
| return height of header
virtual bool | dbGetLineWidthAndColor (CCoord &width, CColor &color, CDataBrowser *browser)=0
| return the line width and color
virtual void | dbAttached (CDataBrowser *browser)=0
| databrowser view was attached to a parent
virtual void | dbRemoved (CDataBrowser *browser)=0
| 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)=0
| mouse button was pressed on a cell
virtual CMouseEventResult | dbOnMouseMoved (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser)=0
| mouse was moved over a cell
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
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
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
virtual void | dbCellSetupTextEdit (int32_t row, int32_t column, CTextEdit *textEditControl, CDataBrowser *browser)=0
| beginTextEdit calls this, so you can setup the textedit control
Keyboard Handling
virtual void | dbOnKeyboardEvent (KeyboardEvent &event, CDataBrowser *browser)=0

## Detailed Description

DataBrowser Interface.

## Member Enumeration Documentation

enum Flags

Enumerator
kRowSelected |

## Constructor & Destructor Documentation

virtual ~IDataBrowserDelegate | ( |  | ) |
| virtual default noexcept

## Member Function Documentation

virtual void dbAttached | ( | CDataBrowser * | browser | ) |
| pure virtual

databrowser view was attached to a parent

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

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.

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.

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

draw a db cell

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

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.

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

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

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

return current width of index column

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

virtual CCoord dbGetHeaderHeight | ( | CDataBrowser * | browser | ) |
| pure virtual

return height of header

Implemented in DataBrowserDelegateAdapter.

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

return the line width and color

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

virtual int32_t dbGetNumColumns | ( | CDataBrowser * | browser | ) |
| pure virtual

return number of columns for CDataBrowser browser

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

virtual int32_t dbGetNumRows | ( | CDataBrowser * | browser | ) |
| pure virtual

return number of rows for CDataBrowser browser

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

virtual CCoord dbGetRowHeight | ( | CDataBrowser * | browser | ) |
| pure virtual

return height of one row

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

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

Implemented in DataBrowserDelegateAdapter.

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

Implemented in DataBrowserDelegateAdapter.

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

Implemented in DataBrowserDelegateAdapter.

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

Implemented in DataBrowserDelegateAdapter.

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

Implemented in DataBrowserDelegateAdapter.

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

Implemented in DataBrowserDelegateAdapter.

virtual void dbOnKeyboardEvent | ( | KeyboardEvent & | event,
|  | CDataBrowser * | browser
| ) |  |
| pure virtual

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

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.

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.

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.

virtual void dbRemoved | ( | CDataBrowser * | browser | ) |
| pure virtual

databrowser view will be removed from its parent

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

virtual void dbSelectionChanged | ( | CDataBrowser * | browser | ) |
| pure virtual

the selection of the db changed

Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.

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:

- idatabrowserdelegate.h