All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::PropertyBrowser Class Reference

Manage properties variants values. Maps the QProperty properties (Qt) and Property (Layout) and add to a tree (QtTreePropertyBrowser) for presentation to the user, allowing the modification and interactive update. More...

#include <PropertyBrowser.h>

Inheritance diagram for te::layout::PropertyBrowser:

Signals

void changePropertyValue (QtProperty *property, QList< QtBrowserItem * > items)
 
void changePropertyValue (Property property)
 

Public Member Functions

virtual QtProperty * addProperty (Property property)
 
virtual bool addSubProperty (QtProperty *prop, QtProperty *subProp)
 
virtual bool addSubProperty (Property prop, Property subProp)
 
virtual void clearAll ()
 
virtual void closeAllWindows ()
 
virtual QtProperty * findProperty (std::string name)
 
DialogPropertiesBrowsergetDialogPropertiesBrowser ()
 
virtual PropertiesgetProperties ()
 
QtTreePropertyBrowser * getPropertyEditor ()
 
VariantPropertiesBrowsergetVariantPropertiesBrowser ()
 
 PropertyBrowser (QObject *parent=0)
 
virtual bool removeProperty (Property property)
 
virtual void selectProperty (std::string name)
 
virtual void setHasWindows (bool hasWindows=false)
 
virtual void updateProperties (Properties *props)
 
virtual bool updateProperty (Property property)
 
virtual ~PropertyBrowser ()
 

Protected Member Functions

virtual void addPropertyItem (QtProperty *property, const QString &id)
 
virtual void blockOpenWindows (bool block)
 
virtual void changeVisibility (QList< QtBrowserItem * > items, bool visible)
 
virtual void createManager ()
 
virtual void updateExpandState ()
 

Protected Attributes

bool m_changeQtPropertyVariantValue
 
DialogPropertiesBrowserm_dialogPropertiesBrowser
 
bool m_hasWindows
 
QMap< QString, bool > m_idToExpanded
 
QMap< QString, QtProperty * > m_idToProperty
 
QtTreePropertyBrowser * m_propertyEditor
 
QMap< QtProperty *, QString > m_propertyToId
 
VariantPropertiesBrowserm_variantPropertiesBrowser
 

Private Slots

virtual void onChangeDlgProperty (Property property)
 
void onChangeFilter (const QString &filter)
 
void propertyEditorValueChanged (QtProperty *property, const QVariant &value)
 

Detailed Description

Manage properties variants values. Maps the QProperty properties (Qt) and Property (Layout) and add to a tree (QtTreePropertyBrowser) for presentation to the user, allowing the modification and interactive update.

Definition at line 64 of file PropertyBrowser.h.

Constructor & Destructor Documentation

te::layout::PropertyBrowser::PropertyBrowser ( QObject *  parent = 0)

Definition at line 52 of file PropertyBrowser.cpp.

References createManager().

te::layout::PropertyBrowser::~PropertyBrowser ( )
virtual

Definition at line 63 of file PropertyBrowser.cpp.

Member Function Documentation

QtProperty * te::layout::PropertyBrowser::addProperty ( Property  property)
virtual
void te::layout::PropertyBrowser::addPropertyItem ( QtProperty *  property,
const QString &  id 
)
protectedvirtual

Definition at line 165 of file PropertyBrowser.cpp.

bool te::layout::PropertyBrowser::addSubProperty ( QtProperty *  prop,
QtProperty *  subProp 
)
virtual

Definition at line 381 of file PropertyBrowser.cpp.

bool te::layout::PropertyBrowser::addSubProperty ( Property  prop,
Property  subProp 
)
virtual

Definition at line 393 of file PropertyBrowser.cpp.

References te::layout::Property::isNull().

void te::layout::PropertyBrowser::blockOpenWindows ( bool  block)
protectedvirtual

Definition at line 290 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::changePropertyValue ( QtProperty *  property,
QList< QtBrowserItem * >  items 
)
signal
void te::layout::PropertyBrowser::changePropertyValue ( Property  property)
signal
void te::layout::PropertyBrowser::changeVisibility ( QList< QtBrowserItem * >  items,
bool  visible 
)
protectedvirtual

Definition at line 195 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::clearAll ( )
virtual

Definition at line 146 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::closeAllWindows ( )
virtual

Definition at line 344 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::createManager ( )
protectedvirtual

Definition at line 86 of file PropertyBrowser.cpp.

Referenced by PropertyBrowser().

QtProperty * te::layout::PropertyBrowser::findProperty ( std::string  name)
virtual

Definition at line 369 of file PropertyBrowser.cpp.

te::layout::DialogPropertiesBrowser * te::layout::PropertyBrowser::getDialogPropertiesBrowser ( )

Definition at line 339 of file PropertyBrowser.cpp.

te::layout::Properties * te::layout::PropertyBrowser::getProperties ( )
virtual

Definition at line 349 of file PropertyBrowser.cpp.

References te::layout::Properties::addProperty().

QtTreePropertyBrowser * te::layout::PropertyBrowser::getPropertyEditor ( )
te::layout::VariantPropertiesBrowser * te::layout::PropertyBrowser::getVariantPropertiesBrowser ( )

Definition at line 334 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::onChangeDlgProperty ( Property  property)
privatevirtualslot

Definition at line 126 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::onChangeFilter ( const QString &  filter)
privateslot

Definition at line 174 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::propertyEditorValueChanged ( QtProperty *  property,
const QVariant &  value 
)
privateslot

Definition at line 106 of file PropertyBrowser.cpp.

References te::layout::Property::isNull().

bool te::layout::PropertyBrowser::removeProperty ( Property  property)
virtual

Definition at line 252 of file PropertyBrowser.cpp.

References te::layout::Property::getName().

void te::layout::PropertyBrowser::selectProperty ( std::string  name)
virtual

Definition at line 295 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::setHasWindows ( bool  hasWindows = false)
virtual

Definition at line 284 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::updateExpandState ( )
protectedvirtual

Definition at line 135 of file PropertyBrowser.cpp.

void te::layout::PropertyBrowser::updateProperties ( Properties props)
virtual

Definition at line 326 of file PropertyBrowser.cpp.

References te::layout::Properties::getProperties().

bool te::layout::PropertyBrowser::updateProperty ( Property  property)
virtual

Definition at line 315 of file PropertyBrowser.cpp.

Member Data Documentation

bool te::layout::PropertyBrowser::m_changeQtPropertyVariantValue
protected

Definition at line 142 of file PropertyBrowser.h.

DialogPropertiesBrowser* te::layout::PropertyBrowser::m_dialogPropertiesBrowser
protected

Definition at line 134 of file PropertyBrowser.h.

bool te::layout::PropertyBrowser::m_hasWindows
protected

Definition at line 141 of file PropertyBrowser.h.

QMap<QString, bool> te::layout::PropertyBrowser::m_idToExpanded
protected

Definition at line 137 of file PropertyBrowser.h.

QMap<QString, QtProperty*> te::layout::PropertyBrowser::m_idToProperty
protected

Definition at line 136 of file PropertyBrowser.h.

QtTreePropertyBrowser* te::layout::PropertyBrowser::m_propertyEditor
protected

Definition at line 132 of file PropertyBrowser.h.

QMap<QtProperty*, QString> te::layout::PropertyBrowser::m_propertyToId
protected

Definition at line 135 of file PropertyBrowser.h.

VariantPropertiesBrowser* te::layout::PropertyBrowser::m_variantPropertiesBrowser
protected

Definition at line 133 of file PropertyBrowser.h.


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