Displays a given node class name within the node library.
Definition at line 15 of file VuoNodeClassListItemDelegate.hh.
Public Member Functions | |
VuoNodeClassListItemDelegate (QObject *parent=0) | |
Creates a Node Library class list rendering delegate. More... | |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Display a given node class name within the node library. More... | |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
Returns the size needed to display the node name specified by index . More... | |
bool | getHumanReadable () const |
Returns a boolean indicating whether node class names are currently displayed in "human-readable" mode (i.e., using default node titles rather than class names). More... | |
void | setHumanReadable (bool humanReadable) |
Sets the boolean indicating whether node class names are currently displayed in "human-readable" mode (i.e., using default node titles rather than class names). More... | |
void | setFilterText (QString filterText) |
Sets the filter text used to search for node classes within the library. More... | |
Static Public Attributes | |
static const int | humanReadableNameIndex = Qt::UserRole |
The node's title. More... | |
static const int | classNameIndex = Qt::UserRole+1 |
The node's class name. More... | |
static const int | nodeClassPointerIndex = Qt::UserRole+2 |
A VuoCompilerNodeClass instance. More... | |
static const int | baseTitleFontPt = 12 |
The size (in typographic points) to render the node title. More... | |
static const int | disambiguatingTitleFontPt = 10 |
The size (in typographic points) to render the node class name. More... | |
|
explicit |
Creates a Node Library class list rendering delegate.
Definition at line 23 of file VuoNodeClassListItemDelegate.cc.
bool VuoNodeClassListItemDelegate::getHumanReadable | ( | ) | const |
Returns a boolean indicating whether node class names are currently displayed in "human-readable" mode (i.e., using default node titles rather than class names).
Definition at line 173 of file VuoNodeClassListItemDelegate.cc.
void VuoNodeClassListItemDelegate::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Display a given node class name within the node library.
Definition at line 33 of file VuoNodeClassListItemDelegate.cc.
void VuoNodeClassListItemDelegate::setFilterText | ( | QString | filterText | ) |
Sets the filter text used to search for node classes within the library.
Definition at line 190 of file VuoNodeClassListItemDelegate.cc.
void VuoNodeClassListItemDelegate::setHumanReadable | ( | bool | humanReadable | ) |
Sets the boolean indicating whether node class names are currently displayed in "human-readable" mode (i.e., using default node titles rather than class names).
Definition at line 182 of file VuoNodeClassListItemDelegate.cc.
QSize VuoNodeClassListItemDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, |
const QModelIndex & | index | ||
) | const |
Returns the size needed to display the node name specified by index
.
Definition at line 157 of file VuoNodeClassListItemDelegate.cc.
|
static |
The size (in typographic points) to render the node title.
Definition at line 29 of file VuoNodeClassListItemDelegate.hh.
|
static |
The node's class name.
Definition at line 27 of file VuoNodeClassListItemDelegate.hh.
|
static |
The size (in typographic points) to render the node class name.
Definition at line 30 of file VuoNodeClassListItemDelegate.hh.
|
static |
The node's title.
Definition at line 26 of file VuoNodeClassListItemDelegate.hh.
|
static |
A VuoCompilerNodeClass
instance.
Definition at line 28 of file VuoNodeClassListItemDelegate.hh.