Computer Assisted Medical Intervention Tool Kit  version 5.2
QtButtonPropertyBrowser Class Reference

The description of this class will come soon ! More...

#include <qtbuttonpropertybrowser.h>

+ Inheritance diagram for QtButtonPropertyBrowser:
+ Collaboration diagram for QtButtonPropertyBrowser:

Signals

void collapsed (QtBrowserItem *item)
 
void expanded (QtBrowserItem *item)
 
- Signals inherited from QtAbstractPropertyBrowser
void currentItemChanged (QtBrowserItem *)
 

Public Member Functions

bool isExpanded (QtBrowserItem *item) const
 
 QtButtonPropertyBrowser (QWidget *parent=nullptr)
 
void setExpanded (QtBrowserItem *item, bool expanded)
 
 ~QtButtonPropertyBrowser () override
 
- Public Member Functions inherited from QtAbstractPropertyBrowser
void clear ()
 
QtBrowserItemcurrentItem () const
 
QList< QtBrowserItem * > items (QtProperty *property) const
 
QList< QtProperty * > properties () const
 
 QtAbstractPropertyBrowser (QWidget *parent=nullptr)
 
void setCurrentItem (QtBrowserItem *)
 
template<class PropertyManager >
void setFactoryForManager (PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory)
 
QtBrowserItemtopLevelItem (QtProperty *property) const
 
QList< QtBrowserItem * > topLevelItems () const
 
void unsetFactoryForManager (QtAbstractPropertyManager *manager)
 
 ~QtAbstractPropertyBrowser () override
 

Protected Member Functions

void itemChanged (QtBrowserItem *item) override
 
void itemInserted (QtBrowserItem *item, QtBrowserItem *afterItem) override
 
void itemRemoved (QtBrowserItem *item) override
 
- Protected Member Functions inherited from QtAbstractPropertyBrowser
virtual QWidget * createEditor (QtProperty *property, QWidget *parent)
 

Additional Inherited Members

- Public Slots inherited from QtAbstractPropertyBrowser
QtBrowserItemaddProperty (QtProperty *property)
 
QtBrowserIteminsertProperty (QtProperty *property, QtProperty *afterProperty)
 
void removeProperty (QtProperty *property)
 

Detailed Description

The description of this class will come soon !

The QtButtonPropertyBrowser class provides a drop down QToolButton based property browser.

A property browser is a widget that enables the user to edit a given set of properties. Each property is represented by a label specifying the property's name, and an editing widget (e.g. a line edit or a combobox) holding its value. A property can have zero or more subproperties.

QtButtonPropertyBrowser provides drop down button for all nested properties, i.e. subproperties are enclosed by a container associated with the drop down button. The parent property's name is displayed as button text. For example:

Use the QtAbstractPropertyBrowser API to add, insert and remove properties from an instance of the QtButtonPropertyBrowser class. The properties themselves are created and managed by implementations of the QtAbstractPropertyManager class.

See also
QtTreePropertyBrowser, QtAbstractPropertyBrowser

Constructor & Destructor Documentation

◆ QtButtonPropertyBrowser()

QtButtonPropertyBrowser::QtButtonPropertyBrowser ( QWidget *  parent = nullptr)

Creates a property browser with the given parent.

References QtButtonPropertyBrowserPrivate::init().

+ Here is the call graph for this function:

◆ ~QtButtonPropertyBrowser()

QtButtonPropertyBrowser::~QtButtonPropertyBrowser ( )
override

Destroys this property browser.

Note that the properties that were inserted into this browser are not destroyed since they may still be used in other browsers. The properties are owned by the manager that created them.

See also
QtProperty, QtAbstractPropertyManager

Member Function Documentation

◆ collapsed

void QtButtonPropertyBrowser::collapsed ( QtBrowserItem item)
signal

This signal is emitted when the item is collapsed.

See also
expanded(), setExpanded()

Referenced by QtButtonPropertyBrowserPrivate::slotToggled().

+ Here is the caller graph for this function:

◆ expanded

void QtButtonPropertyBrowser::expanded ( QtBrowserItem item)
signal

This signal is emitted when the item is expanded.

See also
collapsed(), setExpanded()

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

+ Here is the caller graph for this function:

◆ isExpanded()

bool QtButtonPropertyBrowser::isExpanded ( QtBrowserItem item) const

Returns true if the item is expanded; otherwise returns false.

See also
setExpanded()

References QtButtonPropertyBrowserPrivate::WidgetItem::expanded.

◆ itemChanged()

void QtButtonPropertyBrowser::itemChanged ( QtBrowserItem item)
overrideprotectedvirtual

\reimp

Implements QtAbstractPropertyBrowser.

References QtButtonPropertyBrowserPrivate::propertyChanged().

+ Here is the call graph for this function:

◆ itemInserted()

void QtButtonPropertyBrowser::itemInserted ( QtBrowserItem item,
QtBrowserItem afterItem 
)
overrideprotectedvirtual

\reimp

Implements QtAbstractPropertyBrowser.

References QtButtonPropertyBrowserPrivate::propertyInserted().

+ Here is the call graph for this function:

◆ itemRemoved()

void QtButtonPropertyBrowser::itemRemoved ( QtBrowserItem item)
overrideprotectedvirtual

\reimp

Implements QtAbstractPropertyBrowser.

References QtButtonPropertyBrowserPrivate::propertyRemoved().

+ Here is the call graph for this function:

◆ setExpanded()

void QtButtonPropertyBrowser::setExpanded ( QtBrowserItem item,
bool  expanded 
)

Sets the item to either collapse or expanded, depending on the value of expanded.

See also
isExpanded(), expanded(), collapsed()

References expanded().


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