51 # if !defined(QT_QTPROPERTYBROWSER_EXPORT) && !defined(QT_QTPROPERTYBROWSER_IMPORT)
52 # define QT_QTPROPERTYBROWSER_EXPORT
53 # elif defined(QT_QTPROPERTYBROWSER_IMPORT)
54 # if defined(QT_QTPROPERTYBROWSER_EXPORT)
55 # undef QT_QTPROPERTYBROWSER_EXPORT
57 # define QT_QTPROPERTYBROWSER_EXPORT __declspec(dllimport)
58 # elif defined(QT_QTPROPERTYBROWSER_EXPORT)
59 # undef QT_QTPROPERTYBROWSER_EXPORT
60 # define QT_QTPROPERTYBROWSER_EXPORT __declspec(dllexport)
63 # define QT_QTPROPERTYBROWSER_EXPORT
76 QList<QtProperty*> subProperties()
const;
80 QString toolTip()
const;
81 QString statusTip()
const;
82 QString whatsThis()
const;
83 QString propertyName()
const;
84 bool isEnabled()
const;
85 bool isModified()
const;
87 bool hasValue()
const;
88 QIcon valueIcon()
const;
89 QString valueText()
const;
90 QString displayText()
const;
92 void setToolTip(
const QString& text);
93 void setStatusTip(
const QString& text);
94 void setWhatsThis(
const QString& text);
95 void setPropertyName(
const QString& text);
96 void setEnabled(
bool enable);
97 void setModified(
bool modified);
104 void propertyChanged();
120 QSet<QtProperty*> properties()
const;
123 QtProperty* addProperty(
const QString& name = QString());
132 virtual bool hasValue(
const QtProperty* property)
const;
133 virtual QIcon valueIcon(
const QtProperty* property)
const;
134 virtual QString valueText(
const QtProperty* property)
const;
135 virtual QString displayText(
const QtProperty* property)
const;
137 virtual void initializeProperty(
QtProperty* property) = 0;
138 virtual void uninitializeProperty(
QtProperty* property);
151 virtual QWidget* createEditor(
QtProperty* property, QWidget* parent) = 0;
158 virtual void managerDestroyed(QObject* manager) = 0;
163 template <
class PropertyManager>
170 QSetIterator<PropertyManager*> it(m_managers);
174 PropertyManager* manager = it.next();
186 if (m_managers.contains(manager))
191 m_managers.insert(manager);
193 connect(manager, SIGNAL(destroyed(QObject*)),
198 if (!m_managers.contains(manager))
203 disconnect(manager, SIGNAL(destroyed(QObject*)),
206 m_managers.remove(manager);
215 QSetIterator<PropertyManager*> itManager(m_managers);
217 while (itManager.hasNext())
219 PropertyManager* m = itManager.next();
232 QWidget* parent) = 0;
236 QSetIterator<PropertyManager*> it(m_managers);
240 PropertyManager* m = it.next();
244 m_managers.remove(m);
252 QSetIterator<PropertyManager*> it(m_managers);
256 PropertyManager* m = it.next();
266 QSet<PropertyManager*> m_managers;
278 QList<QtBrowserItem*> children()
const;
297 QList<QtProperty*> properties()
const;
298 QList<QtBrowserItem*> items(
QtProperty* property)
const;
300 QList<QtBrowserItem*> topLevelItems()
const;
303 template <
class PropertyManager>
310 if (addFactory(abstractManager, abstractFactory))
337 virtual QWidget* createEditor(
QtProperty* property, QWidget* parent);
346 Q_PRIVATE_SLOT(d_func(),
void slotPropertyInserted(
QtProperty*,
348 Q_PRIVATE_SLOT(d_func(),
void slotPropertyRemoved(
QtProperty*,
350 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty*))
351 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDataChanged(
QtProperty*))