VSTGUI
4.10
Graphical User Interface Framework not only for VST plugins
|
DataBrowser Interface. More...
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 |
DataBrowser Interface.
enum Flags |
|
virtualdefaultnoexcept |
|
pure virtual |
databrowser view was attached to a parent
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
beginTextEdit calls this, so you can setup the textedit control
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
the text of the cell changed beginTextEdit was called for
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
draw a db cell
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
draw the db header
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
return current width of index column
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
return height of header
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
return the line width and color
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
return number of columns for CDataBrowser browser
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
return number of rows for CDataBrowser browser
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
return height of one row
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter.
|
pure virtual |
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
mouse button was pressed on a cell
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
mouse was moved over a cell
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
mouse button was released on a cell
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
databrowser view will be removed from its parent
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
the selection of the db changed
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.
|
pure virtual |
the width of a column has changed
Implemented in DataBrowserDelegateAdapter, and GenericStringListDataBrowserSource.