Vuo  2.0.2
Public Member Functions | Static Public Attributes | List of all members
VuoNodeClassListItemDelegate Class Reference

Description

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...
 

Constructor & Destructor Documentation

◆ VuoNodeClassListItemDelegate()

VuoNodeClassListItemDelegate::VuoNodeClassListItemDelegate ( QObject *  parent = 0)
explicit

Creates a Node Library class list rendering delegate.

Definition at line 23 of file VuoNodeClassListItemDelegate.cc.

Member Function Documentation

◆ getHumanReadable()

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.

◆ paint()

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.

◆ setFilterText()

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.

◆ setHumanReadable()

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.

◆ sizeHint()

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.

Member Data Documentation

◆ baseTitleFontPt

const int VuoNodeClassListItemDelegate::baseTitleFontPt = 12
static

The size (in typographic points) to render the node title.

Definition at line 29 of file VuoNodeClassListItemDelegate.hh.

◆ classNameIndex

const int VuoNodeClassListItemDelegate::classNameIndex = Qt::UserRole+1
static

The node's class name.

Definition at line 27 of file VuoNodeClassListItemDelegate.hh.

◆ disambiguatingTitleFontPt

const int VuoNodeClassListItemDelegate::disambiguatingTitleFontPt = 10
static

The size (in typographic points) to render the node class name.

Definition at line 30 of file VuoNodeClassListItemDelegate.hh.

◆ humanReadableNameIndex

const int VuoNodeClassListItemDelegate::humanReadableNameIndex = Qt::UserRole
static

The node's title.

Definition at line 26 of file VuoNodeClassListItemDelegate.hh.

◆ nodeClassPointerIndex

const int VuoNodeClassListItemDelegate::nodeClassPointerIndex = Qt::UserRole+2
static

A VuoCompilerNodeClass instance.

Definition at line 28 of file VuoNodeClassListItemDelegate.hh.


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