28 #ifndef __TERRALIB_LAYOUT_INTERNAL_DIALOG_PROPERTIES_BROWSER_H
29 #define __TERRALIB_LAYOUT_INTERNAL_DIALOG_PROPERTIES_BROWSER_H
33 #include "../../../core/property/Property.h"
34 #include "../../../core/Config.h"
44 #include <QtPropertyBrowser/QtStringPropertyManager>
45 #include <QtPropertyBrowser/qteditorfactory.h>
46 #include <QtPropertyBrowser/QtProperty>
76 QtStringPropertyManager* getStringPropertyManager();
78 QtDlgEditorFactory* getDlgEditorFactory();
80 std::map<std::string, Property> getDlgProps();
82 virtual void closeAllWindows();
84 virtual bool changeQtPropertyValue(QtProperty* pproperty,
Property property);
86 virtual QtProperty* addProperty(
Property property);
88 virtual bool updateProperty(
Property property);
90 virtual bool checkDlgType(
Property prop);
92 virtual Property findDlgProperty(std::string name);
96 virtual Property getProperty(std::string name);
98 virtual EnumType* getLayoutType(QVariant::Type type, std::string name =
"");
100 virtual int getVariantType(
EnumType* dataType);
109 virtual void onSetDlg(QWidget *parent, QtProperty * prop);
111 virtual void updateOutside(
Property prop);
113 virtual void onShowGridSettingsDlg();
115 virtual void onShowImageDlg();
117 virtual void onShowTextGridSettingsDlg();
121 void changeDlgProperty(
Property property);
125 virtual void createManager();
127 virtual void changeValueQtPropertyDlg(std::string name, QVariant variant);
129 virtual QWidget* createOutside(
EnumType* enumType);
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Property m_currentPropertyClicked
QtStringPropertyManager * m_strDlgManager
Manage properties dialogs values.
std::map< std::string, Property > m_dlgProps
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
QtDlgEditorFactory * m_dlgEditorFactory
Manage properties variants values.
A property acts like a attribute member of a object and stores the state of this attribute. A set of properties stores the state of an object. Any data type, not included in the convertValue method in the class te::layout::Variant, it will be by default "std::string" value.