1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
5 | **
|
---|
6 | ** This file is part of the tools applications of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | #ifndef QTEDITORFACTORY_H
|
---|
43 | #define QTEDITORFACTORY_H
|
---|
44 |
|
---|
45 | #include "qtpropertymanager.h"
|
---|
46 |
|
---|
47 | #if QT_VERSION >= 0x040400
|
---|
48 | QT_BEGIN_NAMESPACE
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | class QtSpinBoxFactoryPrivate;
|
---|
52 |
|
---|
53 | class QtSpinBoxFactory : public QtAbstractEditorFactory<QtIntPropertyManager>
|
---|
54 | {
|
---|
55 | Q_OBJECT
|
---|
56 | public:
|
---|
57 | QtSpinBoxFactory(QObject *parent = 0);
|
---|
58 | ~QtSpinBoxFactory();
|
---|
59 | protected:
|
---|
60 | void connectPropertyManager(QtIntPropertyManager *manager);
|
---|
61 | QWidget *createEditor(QtIntPropertyManager *manager, QtProperty *property,
|
---|
62 | QWidget *parent);
|
---|
63 | void disconnectPropertyManager(QtIntPropertyManager *manager);
|
---|
64 | private:
|
---|
65 | QtSpinBoxFactoryPrivate *d_ptr;
|
---|
66 | Q_DECLARE_PRIVATE(QtSpinBoxFactory)
|
---|
67 | Q_DISABLE_COPY(QtSpinBoxFactory)
|
---|
68 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, int))
|
---|
69 | Q_PRIVATE_SLOT(d_func(), void slotRangeChanged(QtProperty *, int, int))
|
---|
70 | Q_PRIVATE_SLOT(d_func(), void slotSingleStepChanged(QtProperty *, int))
|
---|
71 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(int))
|
---|
72 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
73 | };
|
---|
74 |
|
---|
75 | class QtSliderFactoryPrivate;
|
---|
76 |
|
---|
77 | class QtSliderFactory : public QtAbstractEditorFactory<QtIntPropertyManager>
|
---|
78 | {
|
---|
79 | Q_OBJECT
|
---|
80 | public:
|
---|
81 | QtSliderFactory(QObject *parent = 0);
|
---|
82 | ~QtSliderFactory();
|
---|
83 | protected:
|
---|
84 | void connectPropertyManager(QtIntPropertyManager *manager);
|
---|
85 | QWidget *createEditor(QtIntPropertyManager *manager, QtProperty *property,
|
---|
86 | QWidget *parent);
|
---|
87 | void disconnectPropertyManager(QtIntPropertyManager *manager);
|
---|
88 | private:
|
---|
89 | QtSliderFactoryPrivate *d_ptr;
|
---|
90 | Q_DECLARE_PRIVATE(QtSliderFactory)
|
---|
91 | Q_DISABLE_COPY(QtSliderFactory)
|
---|
92 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, int))
|
---|
93 | Q_PRIVATE_SLOT(d_func(), void slotRangeChanged(QtProperty *, int, int))
|
---|
94 | Q_PRIVATE_SLOT(d_func(), void slotSingleStepChanged(QtProperty *, int))
|
---|
95 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(int))
|
---|
96 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
97 | };
|
---|
98 |
|
---|
99 | class QtScrollBarFactoryPrivate;
|
---|
100 |
|
---|
101 | class QtScrollBarFactory : public QtAbstractEditorFactory<QtIntPropertyManager>
|
---|
102 | {
|
---|
103 | Q_OBJECT
|
---|
104 | public:
|
---|
105 | QtScrollBarFactory(QObject *parent = 0);
|
---|
106 | ~QtScrollBarFactory();
|
---|
107 | protected:
|
---|
108 | void connectPropertyManager(QtIntPropertyManager *manager);
|
---|
109 | QWidget *createEditor(QtIntPropertyManager *manager, QtProperty *property,
|
---|
110 | QWidget *parent);
|
---|
111 | void disconnectPropertyManager(QtIntPropertyManager *manager);
|
---|
112 | private:
|
---|
113 | QtScrollBarFactoryPrivate *d_ptr;
|
---|
114 | Q_DECLARE_PRIVATE(QtScrollBarFactory)
|
---|
115 | Q_DISABLE_COPY(QtScrollBarFactory)
|
---|
116 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, int))
|
---|
117 | Q_PRIVATE_SLOT(d_func(), void slotRangeChanged(QtProperty *, int, int))
|
---|
118 | Q_PRIVATE_SLOT(d_func(), void slotSingleStepChanged(QtProperty *, int))
|
---|
119 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(int))
|
---|
120 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
121 | };
|
---|
122 |
|
---|
123 | class QtCheckBoxFactoryPrivate;
|
---|
124 |
|
---|
125 | class QtCheckBoxFactory : public QtAbstractEditorFactory<QtBoolPropertyManager>
|
---|
126 | {
|
---|
127 | Q_OBJECT
|
---|
128 | public:
|
---|
129 | QtCheckBoxFactory(QObject *parent = 0);
|
---|
130 | ~QtCheckBoxFactory();
|
---|
131 | protected:
|
---|
132 | void connectPropertyManager(QtBoolPropertyManager *manager);
|
---|
133 | QWidget *createEditor(QtBoolPropertyManager *manager, QtProperty *property,
|
---|
134 | QWidget *parent);
|
---|
135 | void disconnectPropertyManager(QtBoolPropertyManager *manager);
|
---|
136 | private:
|
---|
137 | QtCheckBoxFactoryPrivate *d_ptr;
|
---|
138 | Q_DECLARE_PRIVATE(QtCheckBoxFactory)
|
---|
139 | Q_DISABLE_COPY(QtCheckBoxFactory)
|
---|
140 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, bool))
|
---|
141 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(bool))
|
---|
142 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
143 | };
|
---|
144 |
|
---|
145 | class QtDoubleSpinBoxFactoryPrivate;
|
---|
146 |
|
---|
147 | class QtDoubleSpinBoxFactory : public QtAbstractEditorFactory<QtDoublePropertyManager>
|
---|
148 | {
|
---|
149 | Q_OBJECT
|
---|
150 | public:
|
---|
151 | QtDoubleSpinBoxFactory(QObject *parent = 0);
|
---|
152 | ~QtDoubleSpinBoxFactory();
|
---|
153 | protected:
|
---|
154 | void connectPropertyManager(QtDoublePropertyManager *manager);
|
---|
155 | QWidget *createEditor(QtDoublePropertyManager *manager, QtProperty *property,
|
---|
156 | QWidget *parent);
|
---|
157 | void disconnectPropertyManager(QtDoublePropertyManager *manager);
|
---|
158 | private:
|
---|
159 | QtDoubleSpinBoxFactoryPrivate *d_ptr;
|
---|
160 | Q_DECLARE_PRIVATE(QtDoubleSpinBoxFactory)
|
---|
161 | Q_DISABLE_COPY(QtDoubleSpinBoxFactory)
|
---|
162 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, double))
|
---|
163 | Q_PRIVATE_SLOT(d_func(), void slotRangeChanged(QtProperty *, double, double))
|
---|
164 | Q_PRIVATE_SLOT(d_func(), void slotSingleStepChanged(QtProperty *, double))
|
---|
165 | Q_PRIVATE_SLOT(d_func(), void slotDecimalsChanged(QtProperty *, int))
|
---|
166 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(double))
|
---|
167 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
168 | };
|
---|
169 |
|
---|
170 | class QtLineEditFactoryPrivate;
|
---|
171 |
|
---|
172 | class QtLineEditFactory : public QtAbstractEditorFactory<QtStringPropertyManager>
|
---|
173 | {
|
---|
174 | Q_OBJECT
|
---|
175 | public:
|
---|
176 | QtLineEditFactory(QObject *parent = 0);
|
---|
177 | ~QtLineEditFactory();
|
---|
178 | protected:
|
---|
179 | void connectPropertyManager(QtStringPropertyManager *manager);
|
---|
180 | QWidget *createEditor(QtStringPropertyManager *manager, QtProperty *property,
|
---|
181 | QWidget *parent);
|
---|
182 | void disconnectPropertyManager(QtStringPropertyManager *manager);
|
---|
183 | private:
|
---|
184 | QtLineEditFactoryPrivate *d_ptr;
|
---|
185 | Q_DECLARE_PRIVATE(QtLineEditFactory)
|
---|
186 | Q_DISABLE_COPY(QtLineEditFactory)
|
---|
187 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QString &))
|
---|
188 | Q_PRIVATE_SLOT(d_func(), void slotRegExpChanged(QtProperty *, const QRegExp &))
|
---|
189 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QString &))
|
---|
190 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
191 | };
|
---|
192 |
|
---|
193 | class QtDateEditFactoryPrivate;
|
---|
194 |
|
---|
195 | class QtDateEditFactory : public QtAbstractEditorFactory<QtDatePropertyManager>
|
---|
196 | {
|
---|
197 | Q_OBJECT
|
---|
198 | public:
|
---|
199 | QtDateEditFactory(QObject *parent = 0);
|
---|
200 | ~QtDateEditFactory();
|
---|
201 | protected:
|
---|
202 | void connectPropertyManager(QtDatePropertyManager *manager);
|
---|
203 | QWidget *createEditor(QtDatePropertyManager *manager, QtProperty *property,
|
---|
204 | QWidget *parent);
|
---|
205 | void disconnectPropertyManager(QtDatePropertyManager *manager);
|
---|
206 | private:
|
---|
207 | QtDateEditFactoryPrivate *d_ptr;
|
---|
208 | Q_DECLARE_PRIVATE(QtDateEditFactory)
|
---|
209 | Q_DISABLE_COPY(QtDateEditFactory)
|
---|
210 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QDate &))
|
---|
211 | Q_PRIVATE_SLOT(d_func(), void slotRangeChanged(QtProperty *,
|
---|
212 | const QDate &, const QDate &))
|
---|
213 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QDate &))
|
---|
214 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
215 | };
|
---|
216 |
|
---|
217 | class QtTimeEditFactoryPrivate;
|
---|
218 |
|
---|
219 | class QtTimeEditFactory : public QtAbstractEditorFactory<QtTimePropertyManager>
|
---|
220 | {
|
---|
221 | Q_OBJECT
|
---|
222 | public:
|
---|
223 | QtTimeEditFactory(QObject *parent = 0);
|
---|
224 | ~QtTimeEditFactory();
|
---|
225 | protected:
|
---|
226 | void connectPropertyManager(QtTimePropertyManager *manager);
|
---|
227 | QWidget *createEditor(QtTimePropertyManager *manager, QtProperty *property,
|
---|
228 | QWidget *parent);
|
---|
229 | void disconnectPropertyManager(QtTimePropertyManager *manager);
|
---|
230 | private:
|
---|
231 | QtTimeEditFactoryPrivate *d_ptr;
|
---|
232 | Q_DECLARE_PRIVATE(QtTimeEditFactory)
|
---|
233 | Q_DISABLE_COPY(QtTimeEditFactory)
|
---|
234 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QTime &))
|
---|
235 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QTime &))
|
---|
236 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
237 | };
|
---|
238 |
|
---|
239 | class QtDateTimeEditFactoryPrivate;
|
---|
240 |
|
---|
241 | class QtDateTimeEditFactory : public QtAbstractEditorFactory<QtDateTimePropertyManager>
|
---|
242 | {
|
---|
243 | Q_OBJECT
|
---|
244 | public:
|
---|
245 | QtDateTimeEditFactory(QObject *parent = 0);
|
---|
246 | ~QtDateTimeEditFactory();
|
---|
247 | protected:
|
---|
248 | void connectPropertyManager(QtDateTimePropertyManager *manager);
|
---|
249 | QWidget *createEditor(QtDateTimePropertyManager *manager, QtProperty *property,
|
---|
250 | QWidget *parent);
|
---|
251 | void disconnectPropertyManager(QtDateTimePropertyManager *manager);
|
---|
252 | private:
|
---|
253 | QtDateTimeEditFactoryPrivate *d_ptr;
|
---|
254 | Q_DECLARE_PRIVATE(QtDateTimeEditFactory)
|
---|
255 | Q_DISABLE_COPY(QtDateTimeEditFactory)
|
---|
256 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QDateTime &))
|
---|
257 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QDateTime &))
|
---|
258 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
259 | };
|
---|
260 |
|
---|
261 | class QtKeySequenceEditorFactoryPrivate;
|
---|
262 |
|
---|
263 | class QtKeySequenceEditorFactory : public QtAbstractEditorFactory<QtKeySequencePropertyManager>
|
---|
264 | {
|
---|
265 | Q_OBJECT
|
---|
266 | public:
|
---|
267 | QtKeySequenceEditorFactory(QObject *parent = 0);
|
---|
268 | ~QtKeySequenceEditorFactory();
|
---|
269 | protected:
|
---|
270 | void connectPropertyManager(QtKeySequencePropertyManager *manager);
|
---|
271 | QWidget *createEditor(QtKeySequencePropertyManager *manager, QtProperty *property,
|
---|
272 | QWidget *parent);
|
---|
273 | void disconnectPropertyManager(QtKeySequencePropertyManager *manager);
|
---|
274 | private:
|
---|
275 | QtKeySequenceEditorFactoryPrivate *d_ptr;
|
---|
276 | Q_DECLARE_PRIVATE(QtKeySequenceEditorFactory)
|
---|
277 | Q_DISABLE_COPY(QtKeySequenceEditorFactory)
|
---|
278 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QKeySequence &))
|
---|
279 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QKeySequence &))
|
---|
280 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
281 | };
|
---|
282 |
|
---|
283 | class QtCharEditorFactoryPrivate;
|
---|
284 |
|
---|
285 | class QtCharEditorFactory : public QtAbstractEditorFactory<QtCharPropertyManager>
|
---|
286 | {
|
---|
287 | Q_OBJECT
|
---|
288 | public:
|
---|
289 | QtCharEditorFactory(QObject *parent = 0);
|
---|
290 | ~QtCharEditorFactory();
|
---|
291 | protected:
|
---|
292 | void connectPropertyManager(QtCharPropertyManager *manager);
|
---|
293 | QWidget *createEditor(QtCharPropertyManager *manager, QtProperty *property,
|
---|
294 | QWidget *parent);
|
---|
295 | void disconnectPropertyManager(QtCharPropertyManager *manager);
|
---|
296 | private:
|
---|
297 | QtCharEditorFactoryPrivate *d_ptr;
|
---|
298 | Q_DECLARE_PRIVATE(QtCharEditorFactory)
|
---|
299 | Q_DISABLE_COPY(QtCharEditorFactory)
|
---|
300 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QChar &))
|
---|
301 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QChar &))
|
---|
302 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
303 | };
|
---|
304 |
|
---|
305 | class QtEnumEditorFactoryPrivate;
|
---|
306 |
|
---|
307 | class QtEnumEditorFactory : public QtAbstractEditorFactory<QtEnumPropertyManager>
|
---|
308 | {
|
---|
309 | Q_OBJECT
|
---|
310 | public:
|
---|
311 | QtEnumEditorFactory(QObject *parent = 0);
|
---|
312 | ~QtEnumEditorFactory();
|
---|
313 | protected:
|
---|
314 | void connectPropertyManager(QtEnumPropertyManager *manager);
|
---|
315 | QWidget *createEditor(QtEnumPropertyManager *manager, QtProperty *property,
|
---|
316 | QWidget *parent);
|
---|
317 | void disconnectPropertyManager(QtEnumPropertyManager *manager);
|
---|
318 | private:
|
---|
319 | QtEnumEditorFactoryPrivate *d_ptr;
|
---|
320 | Q_DECLARE_PRIVATE(QtEnumEditorFactory)
|
---|
321 | Q_DISABLE_COPY(QtEnumEditorFactory)
|
---|
322 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, int))
|
---|
323 | Q_PRIVATE_SLOT(d_func(), void slotEnumNamesChanged(QtProperty *,
|
---|
324 | const QStringList &))
|
---|
325 | Q_PRIVATE_SLOT(d_func(), void slotEnumIconsChanged(QtProperty *,
|
---|
326 | const QMap<int, QIcon> &))
|
---|
327 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(int))
|
---|
328 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
329 | };
|
---|
330 |
|
---|
331 | class QtCursorEditorFactoryPrivate;
|
---|
332 |
|
---|
333 | class QtCursorEditorFactory : public QtAbstractEditorFactory<QtCursorPropertyManager>
|
---|
334 | {
|
---|
335 | Q_OBJECT
|
---|
336 | public:
|
---|
337 | QtCursorEditorFactory(QObject *parent = 0);
|
---|
338 | ~QtCursorEditorFactory();
|
---|
339 | protected:
|
---|
340 | void connectPropertyManager(QtCursorPropertyManager *manager);
|
---|
341 | QWidget *createEditor(QtCursorPropertyManager *manager, QtProperty *property,
|
---|
342 | QWidget *parent);
|
---|
343 | void disconnectPropertyManager(QtCursorPropertyManager *manager);
|
---|
344 | private:
|
---|
345 | QtCursorEditorFactoryPrivate *d_ptr;
|
---|
346 | Q_DECLARE_PRIVATE(QtCursorEditorFactory)
|
---|
347 | Q_DISABLE_COPY(QtCursorEditorFactory)
|
---|
348 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QCursor &))
|
---|
349 | Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
|
---|
350 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
351 | };
|
---|
352 |
|
---|
353 | class QtColorEditorFactoryPrivate;
|
---|
354 |
|
---|
355 | class QtColorEditorFactory : public QtAbstractEditorFactory<QtColorPropertyManager>
|
---|
356 | {
|
---|
357 | Q_OBJECT
|
---|
358 | public:
|
---|
359 | QtColorEditorFactory(QObject *parent = 0);
|
---|
360 | ~QtColorEditorFactory();
|
---|
361 | protected:
|
---|
362 | void connectPropertyManager(QtColorPropertyManager *manager);
|
---|
363 | QWidget *createEditor(QtColorPropertyManager *manager, QtProperty *property,
|
---|
364 | QWidget *parent);
|
---|
365 | void disconnectPropertyManager(QtColorPropertyManager *manager);
|
---|
366 | private:
|
---|
367 | QtColorEditorFactoryPrivate *d_ptr;
|
---|
368 | Q_DECLARE_PRIVATE(QtColorEditorFactory)
|
---|
369 | Q_DISABLE_COPY(QtColorEditorFactory)
|
---|
370 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QColor &))
|
---|
371 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
372 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QColor &))
|
---|
373 | };
|
---|
374 |
|
---|
375 | class QtFontEditorFactoryPrivate;
|
---|
376 |
|
---|
377 | class QtFontEditorFactory : public QtAbstractEditorFactory<QtFontPropertyManager>
|
---|
378 | {
|
---|
379 | Q_OBJECT
|
---|
380 | public:
|
---|
381 | QtFontEditorFactory(QObject *parent = 0);
|
---|
382 | ~QtFontEditorFactory();
|
---|
383 | protected:
|
---|
384 | void connectPropertyManager(QtFontPropertyManager *manager);
|
---|
385 | QWidget *createEditor(QtFontPropertyManager *manager, QtProperty *property,
|
---|
386 | QWidget *parent);
|
---|
387 | void disconnectPropertyManager(QtFontPropertyManager *manager);
|
---|
388 | private:
|
---|
389 | QtFontEditorFactoryPrivate *d_ptr;
|
---|
390 | Q_DECLARE_PRIVATE(QtFontEditorFactory)
|
---|
391 | Q_DISABLE_COPY(QtFontEditorFactory)
|
---|
392 | Q_PRIVATE_SLOT(d_func(), void slotPropertyChanged(QtProperty *, const QFont &))
|
---|
393 | Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed(QObject *))
|
---|
394 | Q_PRIVATE_SLOT(d_func(), void slotSetValue(const QFont &))
|
---|
395 | };
|
---|
396 |
|
---|
397 | #if QT_VERSION >= 0x040400
|
---|
398 | QT_END_NAMESPACE
|
---|
399 | #endif
|
---|
400 |
|
---|
401 | #endif
|
---|