ASPiK SDK
VSTGUI::GenericStringListDataBrowserSource Class Reference

Generic string list data browser source. More...

#include <cdatabrowser.h>

Inheritance diagram for VSTGUI::GenericStringListDataBrowserSource:
VSTGUI::IDataBrowserDelegate VSTGUI::CBaseObject VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Public Types

using StringVector = std::vector< UTF8String >
 
- Public Types inherited from VSTGUI::IDataBrowserDelegate
enum  { kRowSelected = 1 << 1 }
 

Public Member Functions

 GenericStringListDataBrowserSource (const StringVector *stringList, IGenericStringListDataBrowserSourceSelectionChanged *delegate=nullptr)
 
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=nullptr, int32_t rowHeight=-1, CCoord textInset=2.)
 
- Public Member Functions inherited from VSTGUI::IDataBrowserDelegate
virtual CCoord dbGetHeaderHeight (CDataBrowser *browser)
 return height of header
 
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)
 
- Public Member Functions inherited from VSTGUI::CBaseObject
 CBaseObject (const CBaseObject &o)
 
CBaseObjectoperator= (const CBaseObject &obj)
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0
 
void remember () override
 increase refcount
 
virtual int32_t getNbReference () const
 get refcount
 
virtual void beforeDelete ()
 

Protected Member Functions

void drawRowBackground (CDrawContext *context, const CRect &size, int32_t row, int32_t flags, CDataBrowser *browser) const
 
void drawRowString (CDrawContext *context, const CRect &size, int32_t row, int32_t flags, CDataBrowser *browser) const
 
int32_t dbGetNumRows (CDataBrowser *browser) override
 return number of rows for CDataBrowser browser
 
int32_t dbGetNumColumns (CDataBrowser *browser) override
 return number of columns for CDataBrowser browser
 
bool dbGetColumnDescription (int32_t index, CCoord &minWidth, CCoord &maxWidth, CDataBrowser *browser) override
 
CCoord dbGetCurrentColumnWidth (int32_t index, CDataBrowser *browser) override
 return current width of index column
 
void dbSetCurrentColumnWidth (int32_t index, const CCoord &width, CDataBrowser *browser) override
 the width of a column has changed
 
CCoord dbGetRowHeight (CDataBrowser *browser) override
 return height of one row
 
bool dbGetLineWidthAndColor (CCoord &width, CColor &color, CDataBrowser *browser) override
 return the line width and color
 
void dbDrawHeader (CDrawContext *context, const CRect &size, int32_t column, int32_t flags, CDataBrowser *browser) override
 draw the db header
 
void dbDrawCell (CDrawContext *context, const CRect &size, int32_t row, int32_t column, int32_t flags, CDataBrowser *browser) override
 draw a db cell
 
CMouseEventResult dbOnMouseDown (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) override
 mouse button was pressed on a cell
 
CMouseEventResult dbOnMouseMoved (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) override
 mouse was moved over a cell
 
CMouseEventResult dbOnMouseUp (const CPoint &where, const CButtonState &buttons, int32_t row, int32_t column, CDataBrowser *browser) override
 mouse button was released on a cell
 
void dbSelectionChanged (CDataBrowser *browser) override
 the selection of the db changed
 
void dbCellTextChanged (int32_t row, int32_t column, UTF8StringPtr newText, CDataBrowser *browser) override
 the text of the cell changed beginTextEdit was called for
 
void dbCellSetupTextEdit (int32_t row, int32_t column, CTextEdit *textEditControl, CDataBrowser *browser) override
 beginTextEdit calls this, so you can setup the textedit control
 
int32_t dbOnKeyDown (const VstKeyCode &key, CDataBrowser *browser) override
 
void dbAttached (CDataBrowser *browser) override
 databrowser view was attached to a parent
 
void dbRemoved (CDataBrowser *browser) override
 databrowser view will be removed from its parent
 
CMessageResult notify (CBaseObject *sender, IdStringPtr message) override
 

Protected Attributes

const StringVector * stringList
 
int32_t rowHeight
 
CColor fontColor
 
CColor selectionColor
 
CColor rowlineColor
 
CColor rowBackColor
 
CColor rowAlternateBackColor
 
CPoint textInset
 
CHoriTxtAlign textAlignment
 
SharedPointer< CFontDescdrawFont
 
CDataBrowserdataBrowser
 
IGenericStringListDataBrowserSourceSelectionChangeddelegate
 
SharedPointer< CVSTGUITimertimer
 
std::string keyDownFindString
 

Detailed Description

Generic string list data browser source.


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