|
VSTGUI
4.3
Graphical User Interface Framework not only for VST plugins
|
Generic string list data browser source. More...
Inheritance diagram for GenericStringListDataBrowserSource:
Collaboration diagram for GenericStringListDataBrowserSource:Public Types | |
| typedef std::vector< std::string > | StringVector |
| enum | { kRowSelected = 1 << 1 } |
Public Member Functions | |
| GenericStringListDataBrowserSource (const StringVector *stringList, IGenericStringListDataBrowserSourceSelectionChanged *delegate=0) | |
| ~GenericStringListDataBrowserSource () | |
| void | setStringList (const StringVector *stringList) |
| const StringVector * | getStringList () const |
| void | setupUI (const CColor &selectionColor, const CColor &fontColor, const CColor &rowlineColor, const CColor &rowBackColor, const CColor &rowAlteranteBackColor, CFontRef font=0, int32_t rowHeight=-1, CCoord textInset=2.) |
| virtual void | beforeDelete () |
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) |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember () |
| increase refcount More... | |
| virtual int32_t | getNbReference () const |
| get refcount More... | |
Protected Member Functions | |
| int32_t | dbGetNumRows (CDataBrowser *browser) |
| return number of rows for CDataBrowser browser More... | |
| int32_t | dbGetNumColumns (CDataBrowser *browser) |
| return number of columns for CDataBrowser browser More... | |
| bool | dbGetColumnDescription (int32_t index, CCoord &minWidth, CCoord &maxWidth, CDataBrowser *browser) |
| CCoord | dbGetCurrentColumnWidth (int32_t index, CDataBrowser *browser) |
| return current width of index column More... | |
| void | dbSetCurrentColumnWidth (int32_t index, const CCoord &width, CDataBrowser *browser) |
| the width of a column has changed More... | |
| CCoord | dbGetRowHeight (CDataBrowser *browser) |
| return height of one row More... | |
| bool | dbGetLineWidthAndColor (CCoord &width, CColor &color, CDataBrowser *browser) |
| return the line width and color More... | |
| void | dbDrawHeader (CDrawContext *context, const CRect &size, int32_t column, int32_t flags, CDataBrowser *browser) |
| draw the db header More... | |
| void | dbDrawCell (CDrawContext *context, const CRect &size, int32_t row, int32_t column, int32_t flags, CDataBrowser *browser) |
| CMouseEventResult | dbOnMouseDown (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) |
| mouse button was pressed on a cell More... | |
| CMouseEventResult | dbOnMouseMoved (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) |
| mouse was moved over a cell More... | |
| CMouseEventResult | dbOnMouseUp (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) |
| void | dbSelectionChanged (CDataBrowser *browser) |
| void | dbCellTextChanged (int32_t row, int32_t column, UTF8StringPtr newText, CDataBrowser *browser) |
| the text of the cell changed beginTextEdit was called for More... | |
| void | dbCellSetupTextEdit (int32_t row, int32_t column, CTextEdit *textEditControl, CDataBrowser *browser) |
| beginTextEdit calls this, so you can setup the textedit control More... | |
| int32_t | dbOnKeyDown (const VstKeyCode &key, CDataBrowser *browser) |
| void | dbAttached (CDataBrowser *browser) |
| databrowser view was attached to a parent More... | |
| void | dbRemoved (CDataBrowser *browser) |
| CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Protected Attributes | |
| const StringVector * | stringList |
| int32_t | rowHeight |
| CColor | fontColor |
| CColor | selectionColor |
| CColor | rowlineColor |
| CColor | rowBackColor |
| CColor | rowAlternateBackColor |
| CPoint | textInset |
| CHoriTxtAlign | textAlignment |
| CFontRef | drawFont |
| CDataBrowser * | dataBrowser |
| IGenericStringListDataBrowserSourceSelectionChanged * | delegate |
| CVSTGUITimer * | timer |
| std::string | keyDownFindString |
Generic string list data browser source.
| typedef std::vector<std::string> StringVector |
| GenericStringListDataBrowserSource | ( | const StringVector * | stringList, |
| IGenericStringListDataBrowserSourceSelectionChanged * | delegate = 0 |
||
| ) |
Here is the call graph for this function:
Here is the call graph for this function:
|
inlinevirtualinherited |
|
protectedvirtual |
databrowser view was attached to a parent
Reimplemented from IDataBrowserDelegate.
|
inlineprotectedvirtual |
beginTextEdit calls this, so you can setup the textedit control
Reimplemented from IDataBrowserDelegate.
|
inlineprotectedvirtual |
the text of the cell changed beginTextEdit was called for
Reimplemented from IDataBrowserDelegate.
|
protectedvirtual |
|
protectedvirtual |
draw the db header
Implements IDataBrowserDelegate.
|
inlineprotectedvirtual |
Reimplemented from IDataBrowserDelegate.
|
protectedvirtual |
return current width of index column
Implements IDataBrowserDelegate.
Here is the call graph for this function:
|
protectedvirtual |
return the line width and color
Reimplemented from IDataBrowserDelegate.
|
inlineprotectedvirtual |
return number of columns for CDataBrowser browser
Implements IDataBrowserDelegate.
|
protectedvirtual |
return number of rows for CDataBrowser browser
Implements IDataBrowserDelegate.
|
protectedvirtual |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
protectedvirtual |
|
protectedvirtual |
mouse button was pressed on a cell
Reimplemented from IDataBrowserDelegate.
Here is the call graph for this function:
|
inlineprotectedvirtual |
mouse was moved over a cell
Reimplemented from IDataBrowserDelegate.
|
inlineprotectedvirtual |
mouse button was released on a cell
Reimplemented from IDataBrowserDelegate.
|
protectedvirtual |
databrowser view will be removed from its parent
Reimplemented from IDataBrowserDelegate.
|
protectedvirtual |
the selection of the db changed
Reimplemented from IDataBrowserDelegate.
Here is the call graph for this function:
|
inlineprotectedvirtual |
the width of a column has changed
Reimplemented from IDataBrowserDelegate.
|
inlinevirtualinherited |
decrease refcount and delete object if refcount == 0
Here is the call graph for this function:
|
inlinevirtualinherited |
get refcount
|
inline |
|
protectedvirtual |
|
inlinevirtualinherited |
increase refcount
Here is the caller graph for this function:| void setStringList | ( | const StringVector * | stringList | ) |
Here is the call graph for this function:| void setupUI | ( | const CColor & | selectionColor, |
| const CColor & | fontColor, | ||
| const CColor & | rowlineColor, | ||
| const CColor & | rowBackColor, | ||
| const CColor & | rowAlteranteBackColor, | ||
| CFontRef | font = 0, |
||
| int32_t | rowHeight = -1, |
||
| CCoord | textInset = 2. |
||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |