Computer Assited Medical Intervention Tool Kit  version 5.0
QtButtonPropertyBrowserPrivate Class Reference
+ Collaboration diagram for QtButtonPropertyBrowserPrivate:

Classes

struct  WidgetItem
 

Public Member Functions

QWidget * createEditor (QtProperty *property, QWidget *parent) const
 
void init (QWidget *parent)
 
void propertyChanged (QtBrowserItem *index)
 
void propertyInserted (QtBrowserItem *index, QtBrowserItem *afterIndex)
 
void propertyRemoved (QtBrowserItem *index)
 
void slotEditorDestroyed ()
 
void slotToggled (bool checked)
 
void slotUpdate ()
 

Private Member Functions

QToolButton * createButton (QWidget *panret=nullptr) const
 
int gridRow (WidgetItem *item) const
 
int gridSpan (WidgetItem *item) const
 
void insertRow (QGridLayout *layout, int row) const
 
void removeRow (QGridLayout *layout, int row) const
 
void setExpanded (WidgetItem *item, bool expanded)
 
void updateItem (WidgetItem *item)
 
void updateLater ()
 

Private Attributes

QMap< QObject *, WidgetItem * > m_buttonToItem
 
QList< WidgetItem * > m_children
 
QMap< QtBrowserItem *, WidgetItem * > m_indexToItem
 
QMap< WidgetItem *, QtBrowserItem * > m_itemToIndex
 
QGridLayout * m_mainLayout
 
QList< WidgetItem * > m_recreateQueue
 
QMap< QWidget *, WidgetItem * > m_widgetToItem
 
QtButtonPropertyBrowserq_ptr
 

Member Function Documentation

◆ createButton()

QToolButton * QtButtonPropertyBrowserPrivate::createButton ( QWidget *  panret = nullptr) const
private

Referenced by propertyInserted().

+ Here is the caller graph for this function:

◆ createEditor()

QWidget* QtButtonPropertyBrowserPrivate::createEditor ( QtProperty property,
QWidget *  parent 
) const
inline

Referenced by propertyInserted().

+ Here is the caller graph for this function:

◆ gridRow()

int QtButtonPropertyBrowserPrivate::gridRow ( WidgetItem item) const
private

References QtButtonPropertyBrowserPrivate::WidgetItem::children, m_children, and QtButtonPropertyBrowserPrivate::WidgetItem::parent.

Referenced by propertyInserted(), propertyRemoved(), setExpanded(), and slotUpdate().

+ Here is the caller graph for this function:

◆ gridSpan()

int QtButtonPropertyBrowserPrivate::gridSpan ( WidgetItem item) const
private

References QtButtonPropertyBrowserPrivate::WidgetItem::container, and QtButtonPropertyBrowserPrivate::WidgetItem::expanded.

Referenced by propertyInserted(), and propertyRemoved().

+ Here is the caller graph for this function:

◆ init()

void QtButtonPropertyBrowserPrivate::init ( QWidget *  parent)

References m_mainLayout.

Referenced by QtButtonPropertyBrowser::QtButtonPropertyBrowser().

+ Here is the caller graph for this function:

◆ insertRow()

void QtButtonPropertyBrowserPrivate::insertRow ( QGridLayout *  layout,
int  row 
) const
private

Referenced by propertyInserted(), and setExpanded().

+ Here is the caller graph for this function:

◆ propertyChanged()

void QtButtonPropertyBrowserPrivate::propertyChanged ( QtBrowserItem index)

References m_indexToItem, and updateItem().

Referenced by QtButtonPropertyBrowser::itemChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propertyInserted()

◆ propertyRemoved()

void QtButtonPropertyBrowserPrivate::propertyRemoved ( QtBrowserItem index)

◆ removeRow()

void QtButtonPropertyBrowserPrivate::removeRow ( QGridLayout *  layout,
int  row 
) const
private

Referenced by propertyRemoved(), and setExpanded().

+ Here is the caller graph for this function:

◆ setExpanded()

void QtButtonPropertyBrowserPrivate::setExpanded ( WidgetItem item,
bool  expanded 
)
private

References QtButtonPropertyBrowserPrivate::WidgetItem::button, QtButtonPropertyBrowserPrivate::WidgetItem::container, QtButtonPropertyBrowserPrivate::WidgetItem::expanded, gridRow(), insertRow(), QtButtonPropertyBrowserPrivate::WidgetItem::layout, m_mainLayout, QtButtonPropertyBrowserPrivate::WidgetItem::parent, and removeRow().

Referenced by QtButtonPropertyBrowser::setExpanded(), and slotToggled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ slotEditorDestroyed()

void QtButtonPropertyBrowserPrivate::slotEditorDestroyed ( )

References m_widgetToItem, and q_ptr.

Referenced by propertyInserted().

+ Here is the caller graph for this function:

◆ slotToggled()

void QtButtonPropertyBrowserPrivate::slotToggled ( bool  checked)

References QtButtonPropertyBrowser::collapsed(), QtButtonPropertyBrowser::expanded(), m_buttonToItem, m_itemToIndex, q_ptr, and setExpanded().

Referenced by propertyInserted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ slotUpdate()

void QtButtonPropertyBrowserPrivate::slotUpdate ( )

References QtButtonPropertyBrowserPrivate::WidgetItem::container, gridRow(), QtButtonPropertyBrowserPrivate::WidgetItem::label, QtButtonPropertyBrowserPrivate::WidgetItem::layout, m_mainLayout, m_recreateQueue, QtButtonPropertyBrowserPrivate::WidgetItem::parent, q_ptr, updateItem(), QtButtonPropertyBrowserPrivate::WidgetItem::widget, and QtButtonPropertyBrowserPrivate::WidgetItem::widgetLabel.

Referenced by updateLater().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateItem()

void QtButtonPropertyBrowserPrivate::updateItem ( WidgetItem item)
private

References QtButtonPropertyBrowserPrivate::WidgetItem::button, QtButtonPropertyBrowserPrivate::WidgetItem::label, m_itemToIndex, QtButtonPropertyBrowserPrivate::WidgetItem::widget, and QtButtonPropertyBrowserPrivate::WidgetItem::widgetLabel.

Referenced by propertyChanged(), propertyInserted(), and slotUpdate().

+ Here is the caller graph for this function:

◆ updateLater()

void QtButtonPropertyBrowserPrivate::updateLater ( )
private

References q_ptr, and slotUpdate().

Referenced by propertyRemoved().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_buttonToItem

QMap<QObject*, WidgetItem*> QtButtonPropertyBrowserPrivate::m_buttonToItem
private

◆ m_children

QList<WidgetItem*> QtButtonPropertyBrowserPrivate::m_children
private

◆ m_indexToItem

◆ m_itemToIndex

QMap<WidgetItem*, QtBrowserItem*> QtButtonPropertyBrowserPrivate::m_itemToIndex
private

◆ m_mainLayout

QGridLayout* QtButtonPropertyBrowserPrivate::m_mainLayout
private

◆ m_recreateQueue

QList<WidgetItem*> QtButtonPropertyBrowserPrivate::m_recreateQueue
private

◆ m_widgetToItem

QMap<QWidget*, WidgetItem*> QtButtonPropertyBrowserPrivate::m_widgetToItem
private

◆ q_ptr


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