![]() |
Computer Assited Medical Intervention Tool Kit
|
A simple user interface to interact with ObjectController. More...
#include <PropertyUI.h>
Public Member Functions | |
PropertyUI (QWidget *parent=0) | |
void | setPropertyObject (QObject *) |
set the property object to edit More... | |
Private Slots | |
void | changeViewMode (QString) |
called when the user wants to dynamically change the view mode of the object controller More... | |
void | print () |
print the currently edited object More... | |
Private Member Functions | |
QString | propertyToString (QString name, QVariant value) |
return a rich text QString that shows the name and property value More... | |
Private Attributes | |
QTextEdit * | console |
to see the property values More... | |
ObjectController * | theController |
the main object in the UI More... | |
A simple user interface to interact with ObjectController.
The tricky part of this class is in the print() method (it prints all static and dynamic property of any QObject in rich text and take into account QVariantMap as property group)
PropertyUI::PropertyUI | ( | QWidget * | parent = 0 | ) |
References changeViewMode(), console, print(), and theController.
|
privateslot |
called when the user wants to dynamically change the view mode of the object controller
References camitk::ObjectController::setViewMode(), and theController.
Referenced by PropertyUI().
|
privateslot |
print the currently edited object
References console, camitk::ObjectController::object(), propertyToString(), and theController.
Referenced by PropertyUI(), and setPropertyObject().
|
private |
return a rich text QString that shows the name and property value
Referenced by print().
void PropertyUI::setPropertyObject | ( | QObject * | object | ) |
set the property object to edit
References print(), camitk::ObjectController::setObject(), and theController.
Referenced by main().
|
private |
to see the property values
Referenced by print(), and PropertyUI().
|
private |
the main object in the UI
Referenced by changeViewMode(), print(), PropertyUI(), and setPropertyObject().