BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
BALL::VIEW::PropertyEditor Class Reference

#include <BALL/VIEW/WIDGETS/propertyEditor.h>

Inheritance diagram for BALL::VIEW::PropertyEditor:
QWidget

List of all members.

Public Slots

void apply ()
void reset ()

Signals

void valueChanged ()

Public Member Functions

 PropertyEditor (QWidget *parent=0, bool editable=true)
 PropertyEditor (PropertyManager *manager, QWidget *parent, bool editable=true)
void setPropertyManager (PropertyManager *man)
void setEditable (bool mode)
bool isEditable () const
bool hasChanges () const

Protected Slots

void scheduleDelete_ ()
void scheduleDuplicate_ ()
void valueChanged_ ()
void createNewBool_ ()
void createNewInt_ ()
void createNewUInt_ ()
void createNewFloat_ ()
void createNewDouble_ ()
void createNewString_ ()

Protected Member Functions

void setupUi_ ()
PropEditorWidgetaddProperty_ (const NamedProperty &prop)
PropEditorWidgetaddProperty_ (PropEditorWidget *editor)
PropEditorWidgetcreateEditorWidget_ (const NamedProperty &prop)
QString chooseName_ (const QString &initial)
void deleteProperty_ (PropEditorWidget *editor)

Private Attributes

bool has_changes_
bool is_editable_
PropertyManagermanager_
QList< PropEditorWidget * > new_properties_
QList< PropEditorWidget * > deleted_properties_
Ui::PropertyEditor ui_

Detailed Description

A widget providing editor capabilities for arbitrary PropertyManager objects. The widget provides a read-only mode as well as controls to add, delete and duplicate properties. Currently only NamedProperties are supported.

Definition at line 281 of file propertyEditor.h.


Constructor & Destructor Documentation

BALL::VIEW::PropertyEditor::PropertyEditor ( QWidget parent = 0,
bool  editable = true 
) [explicit]

Construct a PropertyEditor

Parameters:
parentthe parent widget of this widget.
editableshould the properties be editable?
BALL::VIEW::PropertyEditor::PropertyEditor ( PropertyManager manager,
QWidget parent,
bool  editable = true 
)

Construct a PropertyEditor

Parameters:
mangera pointer to the PropertyManager object which should be edited
parentthe parent widget of this widget.
editableshould the properties be editable?

Member Function Documentation

Apply all available changes

QString BALL::VIEW::PropertyEditor::chooseName_ ( const QString &  initial) [protected]
void BALL::VIEW::PropertyEditor::createNewBool_ ( ) [protected, slot]
void BALL::VIEW::PropertyEditor::createNewFloat_ ( ) [protected, slot]
void BALL::VIEW::PropertyEditor::createNewInt_ ( ) [protected, slot]
void BALL::VIEW::PropertyEditor::createNewUInt_ ( ) [protected, slot]

Are there changes to the properties available

Are the displayed Properties user-editable

Reread all property values from the PropertyManager

void BALL::VIEW::PropertyEditor::scheduleDelete_ ( ) [protected, slot]

Control the editablity of the widget.

Set a different PropertyManager object to display/edit This function can also be used to explicitly update the view on the current PropertyManager.

Emitted upon the first user made change to the editors

void BALL::VIEW::PropertyEditor::valueChanged_ ( ) [protected, slot]

Member Data Documentation

Definition at line 368 of file propertyEditor.h.

Definition at line 364 of file propertyEditor.h.

Definition at line 365 of file propertyEditor.h.

Definition at line 366 of file propertyEditor.h.

Definition at line 367 of file propertyEditor.h.

Ui::PropertyEditor BALL::VIEW::PropertyEditor::ui_ [private]

Definition at line 370 of file propertyEditor.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines