QHexEdit: /media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/QHexEditPlugin.h Source File

QHexEdit

QHexEditPlugin.h
1 #ifndef QHEXEDITPLUGIN_H
2 #define QHEXEDITPLUGIN_H
3
4 #include <QObject>
5
6 #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
7 #include <QtDesigner/QDesignerCustomWidgetInterface>
8 #else
9 #include <QDesignerCustomWidgetInterface>
10 #endif
11
12 class QHexEditPlugin : public QObject, public QDesignerCustomWidgetInterface
13 {
14 Q_OBJECT
15 Q_INTERFACES(QDesignerCustomWidgetInterface)
16 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
17 Q_PLUGIN_METADATA(IID "com.qt-project.Qt.QHexEditPlugin")
18 #endif
19
20 public:
21 QHexEditPlugin(QObject * parent = 0);
22
23 bool isContainer() const;
24 bool isInitialized() const;
25 QIcon icon() const;
26 QString domXml() const;
27 QString group() const;
28 QString includeFile() const;
29 QString name() const;
30 QString toolTip() const;
31 QString whatsThis() const;
32 QWidget *createWidget(QWidget *parent);
33 void initialize(QDesignerFormEditorInterface *core);
34
35 private:
36 bool initialized;
37
38 };
39
40 #endif
QHexEditPlugin
Definition: QHexEditPlugin.h:12