Computer Assited Medical Intervention Tool Kit  version 5.0
qtpropertybrowser.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 **
6 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 **
8 ** This file is part of a Qt Solutions component.
9 **
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
13 ** modification, are permitted provided that the following conditions are
14 ** met:
15 ** * Redistributions of source code must retain the above copyright
16 ** notice, this list of conditions and the following disclaimer.
17 ** * Redistributions in binary form must reproduce the above copyright
18 ** notice, this list of conditions and the following disclaimer in
19 ** the documentation and/or other materials provided with the
20 ** distribution.
21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
22 ** the names of its contributors may be used to endorse or promote
23 ** products derived from this software without specific prior written
24 ** permission.
25 **
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
37 **
38 ****************************************************************************/
39 
40 
41 #ifndef QTPROPERTYBROWSER_H
42 #define QTPROPERTYBROWSER_H
43 
44 #include <QtWidgets/QWidget>
45 #include <QSet>
46 #include <QtWidgets/QLineEdit>
47 
48 #if QT_VERSION >= 0x040400
49 QT_BEGIN_NAMESPACE
50 #endif
51 
52 #if defined(_WIN32)
53 # if defined(COMPILE_QTPROPERTYBROWSER)
54 # define QT_QTPROPERTYBROWSER_EXPORT __declspec(dllexport)
55 # else
56 # define QT_QTPROPERTYBROWSER_EXPORT __declspec(dllimport)
57 # endif
58 #else
59 #define QT_QTPROPERTYBROWSER_EXPORT
60 #endif
61 
63 
65 class QtPropertyPrivate;
66 
114 public:
115  virtual ~QtProperty();
116 
117  QList<QtProperty*> subProperties() const;
118 
119  QtAbstractPropertyManager* propertyManager() const;
120 
121  QString toolTip() const;
122  QString statusTip() const;
123  QString whatsThis() const;
124  QString propertyName() const;
125  bool isEnabled() const;
126  bool isModified() const;
127 
128  bool hasValue() const;
129  QIcon valueIcon() const;
130  QString valueText() const;
131  QString displayText() const;
132 
133  void setToolTip(const QString& text);
134  void setStatusTip(const QString& text);
135  void setWhatsThis(const QString& text);
136  void setPropertyName(const QString& text);
137  void setEnabled(bool enable);
138  void setModified(bool modified);
139 
140  void addSubProperty(QtProperty* property);
141  void insertSubProperty(QtProperty* property, QtProperty* afterProperty);
142  void removeSubProperty(QtProperty* property);
143 protected:
144  explicit QtProperty(QtAbstractPropertyManager* manager);
145  void propertyChanged();
146 private:
149 };
150 
152 
154  Q_OBJECT
155 public:
156 
157  explicit QtAbstractPropertyManager(QObject* parent = nullptr);
158  ~QtAbstractPropertyManager() override;
159 
160  QSet<QtProperty*> properties() const;
161  void clear() const;
162 
163  QtProperty* addProperty(const QString& name = QString());
164 Q_SIGNALS:
165 
166  void propertyInserted(QtProperty* property,
167  QtProperty* parent, QtProperty* after);
168  void propertyChanged(QtProperty* property);
169  void propertyRemoved(QtProperty* property, QtProperty* parent);
170  void propertyDestroyed(QtProperty* property);
171 protected:
172  virtual bool hasValue(const QtProperty* property) const;
173  virtual QIcon valueIcon(const QtProperty* property) const;
174  virtual QString valueText(const QtProperty* property) const;
175  virtual QString displayText(const QtProperty* property) const;
176  virtual EchoMode echoMode(const QtProperty*) const;
177  virtual void initializeProperty(QtProperty* property) = 0;
178  virtual void uninitializeProperty(QtProperty* property);
179  virtual QtProperty* createProperty();
180 private:
181  friend class QtProperty;
183  Q_DECLARE_PRIVATE(QtAbstractPropertyManager)
184 #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
185  Q_DISABLE_COPY_MOVE(QtAbstractPropertyManager)
186 #else
187  Q_DISABLE_COPY(QtAbstractPropertyManager)
188 #endif
189 };
190 
192  Q_OBJECT
193 public:
194  virtual QWidget* createEditor(QtProperty* property, QWidget* parent) = 0;
195 protected:
196  explicit QtAbstractEditorFactoryBase(QObject* parent = nullptr)
197  : QObject(parent) {}
198 
199  virtual void breakConnection(QtAbstractPropertyManager* manager) = 0;
200 protected Q_SLOTS:
201  virtual void managerDestroyed(QObject* manager) = 0;
202 
204 };
205 
206 template <class PropertyManager>
208 public:
209  explicit QtAbstractEditorFactory(QObject* parent) : QtAbstractEditorFactoryBase(parent) {}
210  QWidget* createEditor(QtProperty* property, QWidget* parent) override {
211  QSetIterator<PropertyManager*> it(m_managers);
212  while (it.hasNext()) {
213  PropertyManager* manager = it.next();
214  if (manager == property->propertyManager()) {
215  return createEditor(manager, property, parent);
216  }
217  }
218  return nullptr;
219  }
220  void addPropertyManager(PropertyManager* manager) {
221  if (m_managers.contains(manager)) {
222  return;
223  }
224  m_managers.insert(manager);
225  connectPropertyManager(manager);
226  connect(manager, SIGNAL(destroyed(QObject*)),
227  this, SLOT(managerDestroyed(QObject*)));
228  }
229  void removePropertyManager(PropertyManager* manager) {
230  if (!m_managers.contains(manager)) {
231  return;
232  }
233  disconnect(manager, SIGNAL(destroyed(QObject*)),
234  this, SLOT(managerDestroyed(QObject*)));
235  disconnectPropertyManager(manager);
236  m_managers.remove(manager);
237  }
238  QSet<PropertyManager*> propertyManagers() const {
239  return m_managers;
240  }
241  PropertyManager* propertyManager(QtProperty* property) const {
242  QtAbstractPropertyManager* manager = property->propertyManager();
243  QSetIterator<PropertyManager*> itManager(m_managers);
244  while (itManager.hasNext()) {
245  PropertyManager* m = itManager.next();
246  if (m == manager) {
247  return m;
248  }
249  }
250  return 0;
251  }
252 protected:
253  virtual void connectPropertyManager(PropertyManager* manager) = 0;
254  virtual QWidget* createEditor(PropertyManager* manager, QtProperty* property,
255  QWidget* parent) = 0;
256  virtual void disconnectPropertyManager(PropertyManager* manager) = 0;
257  void managerDestroyed(QObject* manager) override {
258  QSetIterator<PropertyManager*> it(m_managers);
259  while (it.hasNext()) {
260  PropertyManager* m = it.next();
261  if (m == manager) {
262  m_managers.remove(m);
263  return;
264  }
265  }
266  }
267 private:
268  void breakConnection(QtAbstractPropertyManager* manager) override {
269  QSetIterator<PropertyManager*> it(m_managers);
270  while (it.hasNext()) {
271  PropertyManager* m = it.next();
272  if (m == manager) {
274  return;
275  }
276  }
277  }
278 private:
279  QSet<PropertyManager*> m_managers;
281 };
282 
285 
287 public:
288  QtProperty* property() const;
289  QtBrowserItem* parent() const;
290  QList<QtBrowserItem*> children() const;
291  QtAbstractPropertyBrowser* browser() const;
292 private:
293  explicit QtBrowserItem(QtAbstractPropertyBrowser* browser, QtProperty* property, QtBrowserItem* parent);
294  ~QtBrowserItem();
297 };
298 
300 
302  Q_OBJECT
303 public:
304 
305  explicit QtAbstractPropertyBrowser(QWidget* parent = nullptr);
306  ~QtAbstractPropertyBrowser() override;
307 
308  QList<QtProperty*> properties() const;
309  QList<QtBrowserItem*> items(QtProperty* property) const;
310  QtBrowserItem* topLevelItem(QtProperty* property) const;
311  QList<QtBrowserItem*> topLevelItems() const;
312  void clear();
313 
314  template <class PropertyManager>
315  void setFactoryForManager(PropertyManager* manager,
317  QtAbstractPropertyManager* abstractManager = manager;
318  QtAbstractEditorFactoryBase* abstractFactory = factory;
319 
320  if (addFactory(abstractManager, abstractFactory)) {
321  factory->addPropertyManager(manager);
322  }
323  }
324 
325  void unsetFactoryForManager(QtAbstractPropertyManager* manager);
326 
327  QtBrowserItem* currentItem() const;
328  void setCurrentItem(QtBrowserItem*);
329 
330 Q_SIGNALS:
331  void currentItemChanged(QtBrowserItem*);
332 
333 public Q_SLOTS:
334 
335  QtBrowserItem* addProperty(QtProperty* property);
336  QtBrowserItem* insertProperty(QtProperty* property, QtProperty* afterProperty);
337  void removeProperty(QtProperty* property);
338 
339 protected:
340 
341  virtual void itemInserted(QtBrowserItem* item, QtBrowserItem* afterItem) = 0;
342  virtual void itemRemoved(QtBrowserItem* item) = 0;
343  // can be tooltip, statustip, whatsthis, name, icon, text.
344  virtual void itemChanged(QtBrowserItem* item) = 0;
345 
346  virtual QWidget* createEditor(QtProperty* property, QWidget* parent);
347 private:
348 
349  bool addFactory(QtAbstractPropertyManager* abstractManager,
350  QtAbstractEditorFactoryBase* abstractFactory);
351 
353  Q_DECLARE_PRIVATE(QtAbstractPropertyBrowser)
354 #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
355  Q_DISABLE_COPY_MOVE(QtAbstractPropertyBrowser)
356 #else
357  Q_DISABLE_COPY(QtAbstractPropertyBrowser)
358 #endif
359  Q_PRIVATE_SLOT(d_func(), void slotPropertyInserted(QtProperty*,
361  Q_PRIVATE_SLOT(d_func(), void slotPropertyRemoved(QtProperty*,
362  QtProperty*))
363  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
364  Q_PRIVATE_SLOT(d_func(), void slotPropertyDataChanged(QtProperty*))
365 
366 };
367 
368 #if QT_VERSION >= 0x040400
369 QT_END_NAMESPACE
370 #endif
371 
372 #endif // QTPROPERTYBROWSER_H
QtAbstractPropertyBrowserPrivate::removeSubTree
void removeSubTree(QtProperty *property, QtProperty *parentProperty)
Definition: qtpropertybrowser.cpp:1266
QtProperty::hasValue
bool hasValue() const
Definition: qtpropertybrowser.cpp:259
QtAbstractPropertyManagerPrivate::q_ptr
QtAbstractPropertyManager * q_ptr
Definition: qtpropertybrowser.cpp:77
QtPropertyPrivate::QtPropertyPrivate
QtPropertyPrivate(QtAbstractPropertyManager *manager)
Definition: qtpropertybrowser.cpp:94
QtAbstractPropertyManagerPrivate::propertyRemoved
void propertyRemoved(QtProperty *property, QtProperty *parentProperty) const
Definition: qtpropertybrowser.cpp:509
QtBrowserItem::parent
QtBrowserItem * parent() const
Definition: qtpropertybrowser.cpp:1143
QtPropertyPrivate::m_whatsThis
QString m_whatsThis
Definition: qtpropertybrowser.cpp:105
QtBrowserItemPrivate::addChild
void addChild(QtBrowserItem *index, QtBrowserItem *after)
Definition: qtpropertybrowser.cpp:1091
QtProperty::setStatusTip
void setStatusTip(const QString &text)
Definition: qtpropertybrowser.cpp:318
QtAbstractPropertyManager::addProperty
QtProperty * addProperty(const QString &name=QString())
Definition: qtpropertybrowser.cpp:748
QtAbstractPropertyManager::QtAbstractPropertyManager
QtAbstractPropertyManager(QObject *parent=nullptr)
Definition: qtpropertybrowser.cpp:635
QtAbstractPropertyManager::QtProperty
friend class QtProperty
Definition: qtpropertybrowser.h:181
QtAbstractPropertyBrowserPrivate::m_propertyToParents
QMap< QtProperty *, QList< QtProperty * > > m_propertyToParents
Definition: qtpropertybrowser.cpp:1217
QtAbstractPropertyBrowserPrivate::m_topLevelPropertyToIndex
QMap< QtProperty *, QtBrowserItem * > m_topLevelPropertyToIndex
Definition: qtpropertybrowser.cpp:1219
QtAbstractPropertyBrowser::topLevelItem
QtBrowserItem * topLevelItem(QtProperty *property) const
Definition: qtpropertybrowser.cpp:1729
Map1
QMap< QtAbstractPropertyBrowser *, QMap< QtAbstractPropertyManager *, QtAbstractEditorFactoryBase * > > Map1
Definition: qtpropertybrowser.cpp:1187
QtAbstractPropertyBrowserPrivate::m_currentItem
QtBrowserItem * m_currentItem
Definition: qtpropertybrowser.cpp:1223
QtAbstractPropertyManagerPrivate::propertyInserted
void propertyInserted(QtProperty *property, QtProperty *parentProperty, QtProperty *afterProperty) const
Definition: qtpropertybrowser.cpp:514
QtAbstractPropertyManager::propertyRemoved
void propertyRemoved(QtProperty *property, QtProperty *parent)
QtProperty::subProperties
QList< QtProperty * > subProperties() const
Definition: qtpropertybrowser.cpp:189
QtAbstractEditorFactory::managerDestroyed
void managerDestroyed(QObject *manager) override
Definition: qtpropertybrowser.h:257
QtAbstractPropertyBrowserPrivate::q_ptr
QtAbstractPropertyBrowser * q_ptr
Definition: qtpropertybrowser.cpp:1194
QtAbstractPropertyBrowser::addFactory
bool addFactory(QtAbstractPropertyManager *abstractManager, QtAbstractEditorFactoryBase *abstractFactory)
Definition: qtpropertybrowser.cpp:1896
QtAbstractPropertyBrowserPrivate::m_topLevelIndexes
QList< QtBrowserItem * > m_topLevelIndexes
Definition: qtpropertybrowser.cpp:1220
QtAbstractEditorFactory::m_managers
QSet< PropertyManager * > m_managers
Definition: qtpropertybrowser.h:279
QtBrowserItemPrivate::m_browser
QtAbstractPropertyBrowser *const m_browser
Definition: qtpropertybrowser.cpp:1081
QtBrowserItemPrivate::removeChild
void removeChild(QtBrowserItem *index)
Definition: qtpropertybrowser.cpp:1099
QtAbstractPropertyManager::createProperty
virtual QtProperty * createProperty()
Definition: qtpropertybrowser.cpp:767
QtBrowserItem::QtBrowserItem
QtBrowserItem(QtAbstractPropertyBrowser *browser, QtProperty *property, QtBrowserItem *parent)
Definition: qtpropertybrowser.cpp:1174
QtAbstractPropertyBrowser
QtAbstractPropertyBrowser provides a base class for implementing property browsers.
Definition: qtpropertybrowser.h:301
QT_QTPROPERTYBROWSER_EXPORT
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:59
QtAbstractPropertyBrowserPrivate::removeBrowserIndex
void removeBrowserIndex(QtBrowserItem *index)
Definition: qtpropertybrowser.cpp:1395
QtProperty::setEnabled
void setEnabled(bool enable)
Definition: qtpropertybrowser.cpp:362
QtAbstractEditorFactory::addPropertyManager
void addPropertyManager(PropertyManager *manager)
Definition: qtpropertybrowser.h:220
QtProperty::QtProperty
QtProperty(QtAbstractPropertyManager *manager)
Definition: qtpropertybrowser.cpp:144
QtAbstractEditorFactoryBase::breakConnection
virtual void breakConnection(QtAbstractPropertyManager *manager)=0
QtAbstractPropertyBrowserPrivate::removeBrowserIndexes
void removeBrowserIndexes(QtProperty *property, QtProperty *parentProperty)
Definition: qtpropertybrowser.cpp:1371
QtProperty::whatsThis
QString whatsThis() const
Definition: qtpropertybrowser.cpp:223
QtAbstractPropertyBrowser::addProperty
QtBrowserItem * addProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:1771
QtBrowserItem
The QtBrowserItem class represents a property in a property browser instance.
Definition: qtpropertybrowser.h:286
QtAbstractEditorFactory::createEditor
QWidget * createEditor(QtProperty *property, QWidget *parent) override
Definition: qtpropertybrowser.h:210
QtProperty::~QtProperty
virtual ~QtProperty()
Definition: qtpropertybrowser.cpp:158
QtProperty
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:113
QtPropertyPrivate::m_parentItems
QSet< QtProperty * > m_parentItems
Definition: qtpropertybrowser.cpp:100
QtAbstractPropertyManagerPrivate::propertyDestroyed
void propertyDestroyed(QtProperty *property)
Definition: qtpropertybrowser.cpp:497
QtAbstractPropertyBrowserPrivate::clearIndex
void clearIndex(QtBrowserItem *index)
Definition: qtpropertybrowser.cpp:1421
QtAbstractPropertyBrowser::unsetFactoryForManager
void unsetFactoryForManager(QtAbstractPropertyManager *manager)
Definition: qtpropertybrowser.cpp:1926
QtAbstractPropertyManagerPrivate::m_properties
QSet< QtProperty * > m_properties
Definition: qtpropertybrowser.cpp:87
QtProperty::statusTip
QString statusTip() const
Definition: qtpropertybrowser.cpp:214
QtAbstractPropertyBrowserPrivate::QtAbstractPropertyBrowserPrivate
QtAbstractPropertyBrowserPrivate()
Definition: qtpropertybrowser.cpp:1226
QtAbstractPropertyBrowser::setCurrentItem
void setCurrentItem(QtBrowserItem *)
Definition: qtpropertybrowser.cpp:1963
qtpropertybrowser.h
QtAbstractEditorFactory::QtAbstractPropertyEditor
friend class QtAbstractPropertyEditor
Definition: qtpropertybrowser.h:280
EchoMode
QLineEdit::EchoMode EchoMode
Definition: qtpropertybrowser.h:62
QtProperty::isEnabled
bool isEnabled() const
Definition: qtpropertybrowser.cpp:241
QtAbstractPropertyManager::hasValue
virtual bool hasValue(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:680
QtBrowserItem::browser
QtAbstractPropertyBrowser * browser() const
Definition: qtpropertybrowser.cpp:1170
QtAbstractPropertyBrowser::setFactoryForManager
void setFactoryForManager(PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory)
Definition: qtpropertybrowser.h:315
QtBrowserItem::d_ptr
QtBrowserItemPrivate * d_ptr
Definition: qtpropertybrowser.h:295
QtAbstractEditorFactoryBase::createEditor
virtual QWidget * createEditor(QtProperty *property, QWidget *parent)=0
QtProperty::setWhatsThis
void setWhatsThis(const QString &text)
Definition: qtpropertybrowser.cpp:332
QtAbstractPropertyManager::echoMode
virtual EchoMode echoMode(const QtProperty *) const
Definition: qtpropertybrowser.cpp:735
QtAbstractPropertyManagerPrivate::propertyChanged
void propertyChanged(QtProperty *property) const
Definition: qtpropertybrowser.cpp:505
QtAbstractEditorFactoryBase
The QtAbstractEditorFactoryBase provides an interface for editor factories.
Definition: qtpropertybrowser.h:191
QtAbstractPropertyManager::d_ptr
QtAbstractPropertyManagerPrivate * d_ptr
Definition: qtpropertybrowser.h:182
QtAbstractPropertyBrowserPrivate
Definition: qtpropertybrowser.cpp:1193
QtAbstractPropertyBrowser::QtAbstractPropertyBrowser
QtAbstractPropertyBrowser(QWidget *parent=nullptr)
Definition: qtpropertybrowser.cpp:1667
QtAbstractEditorFactory::QtAbstractEditorFactory
QtAbstractEditorFactory(QObject *parent)
Definition: qtpropertybrowser.h:209
QtProperty::valueText
QString valueText() const
Definition: qtpropertybrowser.cpp:283
QtBrowserItemPrivate::QtBrowserItemPrivate
QtBrowserItemPrivate(QtAbstractPropertyBrowser *browser, QtProperty *property, QtBrowserItem *parent)
Definition: qtpropertybrowser.cpp:1075
QtAbstractPropertyManager::valueIcon
virtual QIcon valueIcon(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:694
QtAbstractPropertyBrowser::insertProperty
QtBrowserItem * insertProperty(QtProperty *property, QtProperty *afterProperty)
Definition: qtpropertybrowser.cpp:1795
QtAbstractPropertyManager::propertyDestroyed
void propertyDestroyed(QtProperty *property)
QtAbstractPropertyManager::displayText
virtual QString displayText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:722
QtProperty::setToolTip
void setToolTip(const QString &text)
Definition: qtpropertybrowser.cpp:304
QtAbstractPropertyBrowser::~QtAbstractPropertyBrowser
~QtAbstractPropertyBrowser() override
Definition: qtpropertybrowser.cpp:1686
QtBrowserItem::~QtBrowserItem
~QtBrowserItem()
Definition: qtpropertybrowser.cpp:1179
QtBrowserItemPrivate::m_children
QList< QtBrowserItem * > m_children
Definition: qtpropertybrowser.cpp:1087
QtBrowserItemPrivate::m_property
QtProperty * m_property
Definition: qtpropertybrowser.cpp:1082
QtAbstractPropertyBrowserPrivate::slotPropertyRemoved
void slotPropertyRemoved(QtProperty *property, QtProperty *parentProperty)
Definition: qtpropertybrowser.cpp:1440
QtBrowserItem::property
QtProperty * property() const
Definition: qtpropertybrowser.cpp:1132
QtAbstractEditorFactory
The QtAbstractEditorFactory is the base template class for editor factories.
Definition: qtpropertybrowser.h:207
QtAbstractPropertyManager::clear
void clear() const
Definition: qtpropertybrowser.cpp:656
QtAbstractPropertyBrowserPrivate::m_subItems
QList< QtProperty * > m_subItems
Definition: qtpropertybrowser.cpp:1215
QtAbstractPropertyBrowserPrivate::m_propertyToIndexes
QMap< QtProperty *, QList< QtBrowserItem * > > m_propertyToIndexes
Definition: qtpropertybrowser.cpp:1221
QtAbstractPropertyBrowser::itemChanged
virtual void itemChanged(QtBrowserItem *item)=0
QtPropertyPrivate::m_statusTip
QString m_statusTip
Definition: qtpropertybrowser.cpp:104
QtAbstractPropertyBrowser::currentItem
QtBrowserItem * currentItem() const
Definition: qtpropertybrowser.cpp:1954
QtAbstractPropertyBrowser::items
QList< QtBrowserItem * > items(QtProperty *property) const
Definition: qtpropertybrowser.cpp:1716
QtAbstractPropertyBrowserPrivate::slotPropertyInserted
void slotPropertyInserted(QtProperty *property, QtProperty *parentProperty, QtProperty *afterProperty)
Definition: qtpropertybrowser.cpp:1430
QtProperty::insertSubProperty
void insertSubProperty(QtProperty *property, QtProperty *afterProperty)
Definition: qtpropertybrowser.cpp:414
QtPropertyPrivate::m_subItems
QList< QtProperty * > m_subItems
Definition: qtpropertybrowser.cpp:101
QtProperty::isModified
bool isModified() const
Definition: qtpropertybrowser.cpp:250
QtBrowserItemPrivate::m_parent
QtBrowserItem * m_parent
Definition: qtpropertybrowser.cpp:1083
QtAbstractPropertyBrowser::removeProperty
void removeProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:1838
QtBrowserItemPrivate::q_ptr
QtBrowserItem * q_ptr
Definition: qtpropertybrowser.cpp:1085
QtAbstractPropertyManager::propertyChanged
void propertyChanged(QtProperty *property)
QtAbstractPropertyBrowser::itemInserted
virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem)=0
QtAbstractEditorFactoryBase::QtAbstractEditorFactoryBase
QtAbstractEditorFactoryBase(QObject *parent=nullptr)
Definition: qtpropertybrowser.h:196
QtAbstractPropertyBrowserPrivate::m_managerToProperties
QMap< QtAbstractPropertyManager *, QList< QtProperty * > > m_managerToProperties
Definition: qtpropertybrowser.cpp:1216
QtPropertyPrivate::m_modified
bool m_modified
Definition: qtpropertybrowser.cpp:108
QtAbstractPropertyBrowserPrivate::slotPropertyDestroyed
void slotPropertyDestroyed(QtProperty *property)
Definition: qtpropertybrowser.cpp:1450
Map2
QMap< QtAbstractPropertyManager *, QMap< QtAbstractEditorFactoryBase *, QList< QtAbstractPropertyBrowser * > > > Map2
Definition: qtpropertybrowser.cpp:1189
QtAbstractPropertyBrowser::currentItemChanged
void currentItemChanged(QtBrowserItem *)
QtPropertyPrivate::m_toolTip
QString m_toolTip
Definition: qtpropertybrowser.cpp:103
QtBrowserItemPrivate
Definition: qtpropertybrowser.cpp:1073
QtAbstractEditorFactory::breakConnection
void breakConnection(QtAbstractPropertyManager *manager) override
Definition: qtpropertybrowser.h:268
QtProperty::valueIcon
QIcon valueIcon() const
Definition: qtpropertybrowser.cpp:271
QtAbstractPropertyManager
The QtAbstractPropertyManager provides an interface for property managers.
Definition: qtpropertybrowser.h:153
QtAbstractPropertyManagerPrivate
Definition: qtpropertybrowser.cpp:76
QtAbstractPropertyBrowser::d_ptr
QtAbstractPropertyBrowserPrivate * d_ptr
Definition: qtpropertybrowser.h:352
QtAbstractPropertyBrowserPrivate::createBrowserIndexes
void createBrowserIndexes(QtProperty *property, QtProperty *parentProperty, QtProperty *afterProperty)
Definition: qtpropertybrowser.cpp:1306
QtProperty::setModified
void setModified(bool modified)
Definition: qtpropertybrowser.cpp:376
QtAbstractEditorFactory::propertyManager
PropertyManager * propertyManager(QtProperty *property) const
Definition: qtpropertybrowser.h:241
QtAbstractEditorFactory::connectPropertyManager
virtual void connectPropertyManager(PropertyManager *manager)=0
QtPropertyPrivate
Definition: qtpropertybrowser.cpp:55
QtAbstractPropertyBrowser::createEditor
virtual QWidget * createEditor(QtProperty *property, QWidget *parent)
Definition: qtpropertybrowser.cpp:1880
QtAbstractEditorFactory::removePropertyManager
void removePropertyManager(PropertyManager *manager)
Definition: qtpropertybrowser.h:229
QtAbstractPropertyBrowser::properties
QList< QtProperty * > properties() const
Definition: qtpropertybrowser.cpp:1703
QtBrowserItem::children
QList< QtBrowserItem * > children() const
Definition: qtpropertybrowser.cpp:1162
QtProperty::d_ptr
QtPropertyPrivate * d_ptr
Definition: qtpropertybrowser.h:148
QtAbstractEditorFactory::disconnectPropertyManager
virtual void disconnectPropertyManager(PropertyManager *manager)=0
QtProperty::displayText
QString displayText() const
Definition: qtpropertybrowser.cpp:295
QtProperty::setPropertyName
void setPropertyName(const QString &text)
Definition: qtpropertybrowser.cpp:348
QtAbstractEditorFactory::propertyManagers
QSet< PropertyManager * > propertyManagers() const
Definition: qtpropertybrowser.h:238
QtPropertyPrivate::m_name
QString m_name
Definition: qtpropertybrowser.cpp:106
QtPropertyPrivate::m_enabled
bool m_enabled
Definition: qtpropertybrowser.cpp:107
QtProperty::propertyManager
QtAbstractPropertyManager * propertyManager() const
Definition: qtpropertybrowser.cpp:196
QtAbstractPropertyManager::propertyInserted
void propertyInserted(QtProperty *property, QtProperty *parent, QtProperty *after)
QtAbstractPropertyManager::~QtAbstractPropertyManager
~QtAbstractPropertyManager() override
Definition: qtpropertybrowser.cpp:646
QtAbstractPropertyManager::uninitializeProperty
virtual void uninitializeProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:799
QtProperty::propertyChanged
void propertyChanged()
Definition: qtpropertybrowser.cpp:491
QtAbstractPropertyBrowserPrivate::createBrowserIndex
QtBrowserItem * createBrowserIndex(QtProperty *property, QtBrowserItem *parentIndex, QtBrowserItem *afterIndex)
Definition: qtpropertybrowser.cpp:1347
QtAbstractPropertyManager::initializeProperty
virtual void initializeProperty(QtProperty *property)=0
QtAbstractPropertyManager::valueText
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:708
QtAbstractPropertyBrowser::clear
void clear()
Definition: qtpropertybrowser.cpp:1749
QtProperty::toolTip
QString toolTip() const
Definition: qtpropertybrowser.cpp:205
QtProperty::addSubProperty
void addSubProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:393
QtPropertyPrivate::m_manager
QtAbstractPropertyManager *const m_manager
Definition: qtpropertybrowser.cpp:110
QtAbstractPropertyBrowser::topLevelItems
QList< QtBrowserItem * > topLevelItems() const
Definition: qtpropertybrowser.cpp:1739
QtAbstractPropertyManager::properties
QSet< QtProperty * > properties() const
Definition: qtpropertybrowser.cpp:669
QtAbstractPropertyBrowserPrivate::insertSubTree
void insertSubTree(QtProperty *property, QtProperty *parentProperty)
Definition: qtpropertybrowser.cpp:1229
QtPropertyPrivate::q_ptr
QtProperty * q_ptr
Definition: qtpropertybrowser.cpp:98
QtProperty::removeSubProperty
void removeSubProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:468
QtAbstractPropertyBrowser::itemRemoved
virtual void itemRemoved(QtBrowserItem *item)=0
QtProperty::propertyName
QString propertyName() const
Definition: qtpropertybrowser.cpp:232
QtAbstractPropertyBrowserPrivate::slotPropertyDataChanged
void slotPropertyDataChanged(QtProperty *property)
Definition: qtpropertybrowser.cpp:1457