41 #ifndef QTEDITORFACTORY_H 42 #define QTEDITORFACTORY_H 46 #include <QtGui/QSpinBox> 47 #include <QtGui/QScrollBar> 48 #include <QtGui/QLabel> 49 #include <QtGui/QComboBox> 50 #include <QtGui/QAbstractItemView> 51 #include <QtGui/QLineEdit> 52 #include <QtGui/QDateTimeEdit> 53 #include <QtGui/QHBoxLayout> 54 #include <QtGui/QMenu> 55 #include <QtGui/QKeyEvent> 56 #include <QtGui/QApplication> 57 #include <QtGui/QToolButton> 58 #include <QtGui/QColorDialog> 59 #include <QtGui/QFontDialog> 60 #include <QtGui/QSpacerItem> 61 #include <QtGui/QStyleOption> 62 #include <QtGui/QPainter> 63 #include <QtCore/QMap> 65 #if QT_VERSION >= 0x040400 71 template <
class Editor>
96 void slotPropertyChanged(
QtProperty *property,
int value);
97 void slotRangeChanged(
QtProperty *property,
int min,
int max);
98 void slotSingleStepChanged(
QtProperty *property,
int step);
99 void slotSetValue(
int value);
117 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
int))
118 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
int,
int))
119 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty *,
int))
120 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
int))
131 void slotPropertyChanged(
QtProperty *property,
int value);
132 void slotRangeChanged(
QtProperty *property,
int min,
int max);
133 void slotSingleStepChanged(
QtProperty *property,
int step);
134 void slotSetValue(
int value);
152 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
int))
153 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
int,
int))
154 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty *,
int))
155 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
int))
166 void slotPropertyChanged(
QtProperty *property,
int value);
167 void slotRangeChanged(
QtProperty *property,
int min,
int max);
168 void slotSingleStepChanged(
QtProperty *property,
int step);
169 void slotSetValue(
int value);
187 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
int))
188 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
int,
int))
189 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty *,
int))
190 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
int))
201 void slotPropertyChanged(
QtProperty *property,
bool value);
202 void slotSetValue(
bool value);
220 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
bool))
221 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
bool))
233 void slotPropertyChanged(
QtProperty *property,
double value);
234 void slotRangeChanged(
QtProperty *property,
double min,
double max);
235 void slotSingleStepChanged(
QtProperty *property,
double step);
236 void slotDecimalsChanged(
QtProperty *property,
int prec);
237 void slotSetValue(
double value);
255 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
double))
256 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
double,
double))
257 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty *,
double))
258 Q_PRIVATE_SLOT(d_func(),
void slotDecimalsChanged(
QtProperty *,
int))
259 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
double))
271 void slotPropertyChanged(
QtProperty *property,
const QString &value);
272 void slotRegExpChanged(
QtProperty *property,
const QRegExp ®Exp);
273 void slotEditFinished();
292 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QString &))
293 Q_PRIVATE_SLOT(d_func(),
void slotRegExpChanged(
QtProperty *,
const QRegExp &))
294 Q_PRIVATE_SLOT(d_func(),
void slotEchoModeChanged(
QtProperty *,
int))
295 Q_PRIVATE_SLOT(d_func(),
void slotEditFinished())
307 void slotPropertyChanged(
QtProperty *property,
const QDate &value);
308 void slotRangeChanged(
QtProperty *property,
const QDate &min,
const QDate &max);
309 void slotSetValue(
const QDate &value);
327 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QDate &))
328 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
329 const QDate &,
const QDate &))
330 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QDate &))
342 void slotPropertyChanged(
QtProperty *property,
const QTime &value);
343 void slotSetValue(
const QTime &value);
361 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QTime &))
362 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QTime &))
374 void slotPropertyChanged(
QtProperty *property,
const QDateTime &value);
375 void slotSetValue(
const QDateTime &value);
395 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QDateTime &))
396 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QDateTime &))
408 void slotPropertyChanged(
QtProperty *property,
const QKeySequence &value);
409 void slotSetValue(
const QKeySequence &value);
427 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QKeySequence &))
428 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QKeySequence &))
439 bool eventFilter(QObject *o, QEvent *e);
441 void setValue(
const QChar &value);
443 void valueChanged(
const QChar &value);
445 void focusInEvent(QFocusEvent *e);
446 void focusOutEvent(QFocusEvent *e);
447 void keyPressEvent(QKeyEvent *e);
448 void keyReleaseEvent(QKeyEvent *e);
449 void paintEvent(QPaintEvent *);
450 bool event(QEvent *e);
452 void slotClearChar();
454 void handleKeyEvent(QKeyEvent *e);
457 QLineEdit *m_lineEdit;
468 void slotPropertyChanged(
QtProperty *property,
const QChar &value);
469 void slotSetValue(
const QChar &value);
488 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QChar &))
489 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QChar &))
501 void slotPropertyChanged(
QtProperty *property,
int value);
502 void slotEnumNamesChanged(
QtProperty *property,
const QStringList &);
503 void slotEnumIconsChanged(
QtProperty *property,
const QMap<int, QIcon> &);
504 void slotSetValue(
int value);
522 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
int))
523 Q_PRIVATE_SLOT(d_func(),
void slotEnumNamesChanged(
QtProperty *,
524 const QStringList &))
525 Q_PRIVATE_SLOT(d_func(),
void slotEnumIconsChanged(
QtProperty *,
526 const QMap<int, QIcon> &))
527 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
int))
540 void slotPropertyChanged(
QtProperty *property,
const QCursor &cursor);
541 void slotEnumChanged(
QtProperty *property,
int value);
569 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QCursor &))
570 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
580 bool eventFilter(QObject *obj, QEvent *ev);
583 void setValue(
const QColor &value);
586 void valueChanged(
const QColor &value);
589 void paintEvent(QPaintEvent *);
592 void buttonClicked();
596 QLabel *m_pixmapLabel;
598 QToolButton *m_button;
618 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QColor &))
620 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QColor &))
629 void slotPropertyChanged(
QtProperty *property,
const QColor &value);
630 void slotSetValue(
const QColor &value);
639 bool eventFilter(QObject *obj, QEvent *ev);
642 void setValue(
const QFont &value);
645 void valueChanged(
const QFont &value);
648 void paintEvent(QPaintEvent *);
651 void buttonClicked();
655 QLabel *m_pixmapLabel;
657 QToolButton *m_button;
668 void slotPropertyChanged(
QtProperty *property,
const QFont &value);
669 void slotSetValue(
const QFont &value);
687 Q_PRIVATE_SLOT(d_func(),
void slotPropertyChanged(
QtProperty *,
const QFont &))
689 Q_PRIVATE_SLOT(d_func(),
void slotSetValue(
const QFont &))
692 #if QT_VERSION >= 0x040400 The QtDoublePropertyManager provides and manages double properties.
Definition: qtpropertymanager.h:300
Definition: qteditorfactory.h:336
QList< Editor * > EditorList
Definition: qteditorfactory.h:76
The QtLineEditFactory class provides QLineEdit widgets for properties created by QtStringPropertyMana...
Definition: qteditorfactory.h:277
The QtKeySequenceEditorFactory class provides editor widgets for properties created by QtKeySequenceP...
Definition: qteditorfactory.h:412
Definition: qteditorfactory.h:662
Definition: qteditorfactory.h:623
Definition: qteditorfactory.h:402
virtual void slotEditorDestroyed(QObject *object)
Definition: qteditorfactory.cpp:85
The QtDateTimeEditFactory class provides QDateTimeEdit widgets for properties created by QtDateTimePr...
Definition: qteditorfactory.h:380
void initializeEditor(QtProperty *property, Editor *e)
Definition: qteditorfactory.cpp:75
Definition: qteditorfactory.h:432
The QtKeySequencePropertyManager provides and manages QKeySequence properties.
Definition: qtpropertymanager.h:531
QtEnumEditorFactory * m_enumEditorFactory
Definition: qteditorfactory.h:544
QMap< QtProperty *, QtProperty * > m_propertyToEnum
Definition: qteditorfactory.h:547
The QtCheckBoxFactory class provides QCheckBox widgets for properties created by QtBoolPropertyManage...
Definition: qteditorfactory.h:205
The QtTimeEditFactory class provides QTimeEdit widgets for properties created by QtTimePropertyManage...
Definition: qteditorfactory.h:346
QMap< QtProperty *, QtProperty * > m_enumToProperty
Definition: qteditorfactory.h:548
The QtStringPropertyManager provides and manages QString properties.
Definition: qtpropertymanager.h:357
Editor * createEditor(QtProperty *property, QWidget *parent)
Definition: qteditorfactory.cpp:67
QMap< Editor *, QtProperty * > EditorToPropertyMap
Definition: qteditorfactory.h:78
The QtCharPropertyManager provides and manages QChar properties.
Definition: qtpropertymanager.h:566
The QtDoubleSpinBoxFactory class provides QDoubleSpinBox widgets for properties created by QtDoublePr...
Definition: qteditorfactory.h:240
bool m_updatingEnum
Definition: qteditorfactory.h:551
The QtAbstractEditorFactory is the base template class for editor factories.
Definition: qtpropertybrowser.h:205
The QtFontPropertyManager provides and manages QFont properties.
Definition: qtpropertymanager.h:1246
The QtIntPropertyManager provides and manages int properties.
Definition: qtpropertymanager.h:207
QMap< QtProperty *, EditorList > PropertyToEditorListMap
Definition: qteditorfactory.h:77
The QtCursorPropertyManager provides and manages QCursor properties.
Definition: qtpropertymanager.h:1348
The QtTimePropertyManager provides and manages QTime properties.
Definition: qtpropertymanager.h:457
Definition: qteditorfactory.h:533
Definition: qteditorfactory.h:462
The QtFontEditorFactory class provides font editing for properties created by QtFontPropertyManager o...
Definition: qteditorfactory.h:672
Definition: qteditorfactory.h:227
The QtDatePropertyManager provides and manages QDate properties.
Definition: qtpropertymanager.h:389
The QtColorPropertyManager provides and manages QColor properties.
Definition: qtpropertymanager.h:1307
QMap< QWidget *, QtProperty * > m_editorToEnum
Definition: qteditorfactory.h:550
Definition: qteditorfactory.h:196
The QtCursorEditorFactory class provides QComboBox widgets for properties created by QtCursorProperty...
Definition: qteditorfactory.h:554
Definition: qteditorfactory.h:265
The QtBoolPropertyManager class provides and manages boolean properties.
Definition: qtpropertymanager.h:250
QtEnumPropertyManager * m_enumPropertyManager
Definition: qteditorfactory.h:545
Definition: qteditorfactory.h:90
Definition: qteditorfactory.h:368
Definition: qteditorfactory.h:126
The QtColorEditorFactory class provides color editing for properties created by QtColorPropertyManage...
Definition: qteditorfactory.h:603
The QtCharEditorFactory class provides editor widgets for properties created by QtCharPropertyManager...
Definition: qteditorfactory.h:473
Definition: qteditorfactory.h:301
EditorToPropertyMap m_editorToProperty
Definition: qteditorfactory.h:85
virtual ~EditorFactoryPrivate()
Definition: qteditorfactory.h:87
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:66
Definition: qteditorfactory.h:72
QMap< QtProperty *, QList< QWidget * > > m_enumToEditors
Definition: qteditorfactory.h:549
The QtDateTimePropertyManager provides and manages QDateTime properties.
Definition: qtpropertymanager.h:494
The QtSpinBoxFactory class provides QSpinBox widgets for properties created by QtIntPropertyManager o...
Definition: qteditorfactory.h:102
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:74
PropertyToEditorListMap m_createdEditors
Definition: qteditorfactory.h:84
The QtSliderFactory class provides QSlider widgets for properties created by QtIntPropertyManager obj...
Definition: qteditorfactory.h:137
Definition: qteditorfactory.h:495
The QtEnumPropertyManager provides and manages enum properties.
Definition: qtpropertymanager.h:1053
The QtDateEditFactory class provides QDateEdit widgets for properties created by QtDatePropertyManage...
Definition: qteditorfactory.h:312
The QtEnumEditorFactory class provides QComboBox widgets for properties created by QtEnumPropertyMana...
Definition: qteditorfactory.h:507