rock_widget_collection  0.1
StreamAlignerWidgetPlugin.h
Go to the documentation of this file.
1 #ifndef STREAMALIGNERWIDGETPLUGIN_H
2 #define STREAMALIGNERWIDGETPLUGIN_H
3 
4 #include <QObject>
5 #include <QtDesigner/QDesignerCustomWidgetInterface>
6 
7 class StreamAlignerWidgetPlugin : public QObject , public QDesignerCustomWidgetInterface
8 {
9  Q_OBJECT
10  Q_INTERFACES(QDesignerCustomWidgetInterface)
11 
12  public:
13  StreamAlignerWidgetPlugin(QObject *parent = 0);
15 
16  bool isContainer() const;
17  bool isInitialized() const;
18  QIcon icon() const;
19  QString domXml() const;
20  QString group() const;
21  QString includeFile() const;
22  QString name() const;
23  QString toolTip() const;
24  QString whatsThis() const;
25  QWidget *createWidget(QWidget *parent);
26  void initialize(QDesignerFormEditorInterface *core);
27 
28  private:
29  bool initialized;
30 };
31 
32 
33 class AggregatorCollection: public QObject, public QDesignerCustomWidgetCollectionInterface
34 {
35  Q_OBJECT
36  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
37 
38 public:
39  AggregatorCollection(QObject *parent = 0);
40  virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
41 
42 private:
43  QList<QDesignerCustomWidgetInterface*> widgets;
44 };
45 
46 #endif // STREAMALIGNERWIDGETPLUGIN_H
void initialize(QDesignerFormEditorInterface *core)
StreamAlignerWidgetPlugin(QObject *parent=0)
QWidget * createWidget(QWidget *parent)
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const
AggregatorCollection(QObject *parent=0)