![]() |
An open-source, flexible 3D physical simulation framework
|
A helper class with a tabbed view. More...
#include <PropertyDialog.h>
Public Member Functions | |
TabPropertyDialog (QWidget *parent=0) | |
The constructor initializes the PropertyDialog and hides the buttons inside the tab. More... | |
![]() | |
PropertyDialog (QWidget *parent) | |
A contructor. More... | |
virtual | ~PropertyDialog () |
A destructor. More... | |
QtVariantProperty * | addGenericProperty (const std::string &path, int type, const QVariant &value, std::map< QString, QVariant > *attributes=NULL, QStringList *options=NULL) |
Creates a property. More... | |
QtVariantProperty * | addGenericProperty (QtVariantProperty *parent, QtVariantProperty *property) |
Adds the property to the parent's subproperties. More... | |
QtVariantProperty * | addTabbedProperty (const std::string &path, int type, const QVariant &value, std::map< QString, QVariant > *attributes=NULL, QStringList *options=NULL) |
Creates a PropertyDialog tab widget and adds the generic property to it. More... | |
QtVariantProperty * | insertGenericProperty (QtVariantProperty *parent, QtVariantProperty *property, QtVariantProperty *after) |
Inserts the property to the parent's subproperties after the after property. More... | |
void | removeGenericProperty (QtVariantProperty *property) |
Removes the property. More... | |
void | removeAllSubProperties (QtVariantProperty *parent) |
Removes all subproperties of the parent property. More... | |
void | destroyAllSubProperties (QtProperty *parent) |
Detaches and destroys all subproperties of the parent. More... | |
void | addAllSubProperties (QtVariantProperty *parent, QList< QtVariantProperty *> list) |
Adds all properties from the list to the parent's subproperties. More... | |
void | setPropertyColor (QtVariantProperty *property, QColor color) |
Sets the background color of a property in the Tree Property Browser. More... | |
QColor | getPropertyColor (QtVariantProperty *property) const |
Returns the background color of the property in the Tree Property Browser. More... | |
QtProperty * | activeItem (void) |
Returns the item that is currently focused on. More... | |
QtProperty * | currentItem (void) |
Returns the top level item that is currently focused on. More... | |
void | setCurrentItem (QtProperty *property) |
Sets the focus on the top level item property in the Tree Property Browser. More... | |
QPushButton * | addGenericButton (const char *name, const QObject *recv, const char *method) |
Creates a QPushButton with the given name and connects its clicked() slot with the method of the receiver recv . More... | |
void | setViewButtonVisibility (bool visible) |
Sets the visibility of the view button. More... | |
void | setButtonBoxVisibility (bool visible) |
Sets the visibility of the button box. More... | |
void | clearButtonBox (void) |
Removes all buttons from the button box. More... | |
void | hideAllButtons (void) |
Hides the view button and the button box. More... | |
void | setViewMode (const ViewMode &mode) |
Sets the view mode to either tree or button view mode. More... | |
void | setPropCallback (PropertyCallback *pc) |
Sets the callback object. More... | |
ViewMode | getViewMode (void) const |
Returns the current view mode. More... | |
void | expandTree (QtProperty *item) |
Expands the branch of the property item . More... | |
void | collapseTree (QtProperty *item) |
Collapses the branch of the property item . More... | |
bool | isPropertyVisible (QtProperty *prop) const |
Additional Inherited Members | |
![]() | |
virtual void | accept () |
Associated with the OK button. More... | |
virtual void | reject () |
Associated with the Cancel button. More... | |
![]() | |
void | geometryChanged () |
Emitted when paintEvent is received. More... | |
void | closeSignal () |
Emitted when a QCloseEvent has been received. More... | |
void | tabValueChanged (QtProperty *property, const QVariant &value) |
Emitted when a property in a tab has changed its value. More... | |
![]() | |
virtual void | valueChanged (QtProperty *property, const QVariant &value) |
Called every time a property has changed its value. More... | |
virtual void | currentItemChanged (QtBrowserItem *current) |
Called every time another branch of a QtTreePropertyBrowser has been selected. More... | |
void | toggleView () |
Switches between tree an button view modes. More... | |
![]() | |
void | customizeItem (QtVariantProperty *item, int type, const QVariant &value, std::map< QString, QVariant > *attributes=NULL, QStringList *options=NULL) |
Adjusts the attributes and value of a property. More... | |
virtual void | closeEvent (QCloseEvent *event) |
Cleans up before closing. More... | |
void | resizeEvent (QResizeEvent *event) |
Used for geometry handling. More... | |
void | moveEvent (QMoveEvent *event) |
Used for geometry handling. More... | |
![]() | |
QVBoxLayout * | vBoxLayout |
A vertical layout. More... | |
QHBoxLayout * | hBoxLayout |
A horizontal layout. More... | |
QDialogButtonBox * | buttonBox |
A container for the buttons. More... | |
QPushButton * | viewButton |
A button that toggles the view mode. More... | |
QTabWidget * | tabWidget |
A tab widget handling the tabbed view. More... | |
QScrollArea * | scrollArea |
A scroll area for the property editors. More... | |
QtVariantEditorFactory * | variantFactory |
The factory for the properties. More... | |
QtVariantPropertyManager * | variantManager |
The manager of the properties. More... | |
QtTreePropertyBrowser * | variantEditorTree |
The tree property browser. More... | |
QtButtonPropertyBrowser * | variantEditorButton |
The button property browser. More... | |
PropertyCallback * | propertyCallback |
The callback instance associated with this instance. More... | |
QList< QtProperty * > | myProperties |
Top level properties. More... | |
std::map< QString, PropertyDialog * > | myTabs |
Tabs with their names. More... | |
int | tabView |
An indicator for the tabbed view. More... | |
ViewMode | viewMode |
The view mode of the dialog. More... | |
A helper class with a tabbed view.
Definition at line 340 of file PropertyDialog.h.
mars::main_gui::TabPropertyDialog::TabPropertyDialog | ( | QWidget * | parent = 0 | ) |
The constructor initializes the PropertyDialog and hides the buttons inside the tab.
Definition at line 37 of file PropertyDialog.cpp.