Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
PropertyUI Class Reference

A simple user interface to interact with ObjectController. More...

#include <PropertyUI.h>

+ Inheritance diagram for PropertyUI:

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...
 
ObjectControllertheController
 the main object in the UI More...
 

Detailed Description

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)

Constructor & Destructor Documentation

PropertyUI::PropertyUI ( QWidget *  parent = 0)

Member Function Documentation

void PropertyUI::changeViewMode ( QString  mode)
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().

void PropertyUI::print ( )
privateslot

print the currently edited object

References console, camitk::ObjectController::object(), propertyToString(), and theController.

Referenced by PropertyUI(), and setPropertyObject().

QString PropertyUI::propertyToString ( QString  name,
QVariant  value 
)
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().

Member Data Documentation

QTextEdit* PropertyUI::console
private

to see the property values

Referenced by print(), and PropertyUI().

ObjectController* PropertyUI::theController
private

the main object in the UI

Referenced by changeViewMode(), print(), PropertyUI(), and setPropertyObject().


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