itom 2.2.1
|
00001 /* ******************************************************************** 00002 itom measurement system 00003 URL: http://www.uni-stuttgart.de/ito 00004 Copyright (C) 2016, Institut fuer Technische Optik (ITO), 00005 Universitaet Stuttgart, Germany 00006 00007 This file is part of itom. 00008 00009 itom is free software: you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation, either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 itom is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with itom. If not, see <http://www.gnu.org/licenses/>. 00021 *********************************************************************** */ 00022 00023 #ifndef SEARCHBOXPLUGIN_H 00024 #define SEARCHBOXPLUGIN_H 00025 00026 #include "qglobal.h" 00027 #if QT_VERSION < 0x050500 //hex-code must be used since Qt4 moc process does not understand QT_VERSION_CHECK(5,5,0) 00028 #include <QtDesigner/QDesignerCustomWidgetInterface> 00029 #else 00030 #include <QtUiPlugin/QDesignerCustomWidgetInterface> 00031 #endif 00032 00033 00034 class SearchBoxFactory : public QObject, public QDesignerCustomWidgetInterface 00035 { 00036 Q_OBJECT 00037 Q_INTERFACES(QDesignerCustomWidgetInterface) 00038 00039 public: 00040 SearchBoxFactory(QObject *parent = 0); 00041 00042 bool isContainer() const; 00043 bool isInitialized() const { return initialized; } 00044 QIcon icon() const; 00045 QString domXml() const; 00046 QString group() const; 00047 QString includeFile() const; 00048 QString name() const; 00049 QString toolTip() const; 00050 QString whatsThis() const; 00051 QWidget *createWidget(QWidget *parent); 00052 void initialize(QDesignerFormEditorInterface *core); 00053 00054 private: 00055 bool initialized; 00056 }; 00057 00058 #endif