00001 /*************************************************************************** 00002 ** 00003 ** This file is part of dinverext. 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 or 3 as published by the Free 00007 ** Software Foundation and appearing in the file LICENSE.GPL included 00008 ** in the packaging of this file. 00009 ** 00010 ** This file is distributed in the hope that it will be useful, but WITHOUT 00011 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 ** more details. 00014 ** 00015 ** You should have received a copy of the GNU General Public License 00016 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 ** 00018 ** See http://www.geopsy.org for more information. 00019 ** 00020 ** Created : 2007-04-10 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (LGIT, Grenoble, France) 00024 ** 00025 ***************************************************************************/ 00026 00027 #ifndef EXTPLUGIN_H 00028 #define EXTPLUGIN_H 00029 00030 #include <QObject> 00031 00032 #include <DinverGui.h> 00033 00034 #include "dinverextInstallPath.h" 00035 00036 class ExtTargetWidget; 00037 class ExtTarget; 00038 class ExtInversion; 00039 00040 class ExtPlugin : public DinverInterface 00041 { 00042 Q_OBJECT 00043 Q_INTERFACES(DinverCore::DinverInterface); 00044 public: 00045 ExtPlugin(); 00046 ~ExtPlugin(); 00047 00048 virtual QString tag() const; 00049 virtual QString title() const ; 00050 virtual QString version() const ; 00051 virtual QString description() const ; 00052 00053 virtual QWidget * createTargetWidget(); 00054 virtual QWidget * createParamWidget(); 00055 00056 virtual bool xmlSupport() const {return true;} 00057 virtual void xml_writeChildren(XML_WRITECHILDREN_ARGS) const; 00058 virtual XMLMember xml_member(XML_MEMBER_ARGS); 00059 virtual bool xml_polishChild(XML_POLISHCHILD_ARGS); 00060 virtual const char * interfaceVersion() const {return DINVERCORE_VERSION;} 00061 00062 virtual AbstractForward * createForward(); 00063 virtual bool initForward(AbstractForward * forward); 00064 virtual void setCurrentForward(AbstractForward * forwards, const QString& ); 00065 private slots: 00066 void checkScript(); 00067 private: 00068 ParamSpaceEditor * _paramWidget; 00069 ExtTargetWidget * _targetWidget; 00070 // Global and batch definition of parameters and target 00071 // Null when global selection is active 00072 ParamSpaceScript * _param; 00073 ExtTarget * _target; 00074 }; 00075 00076 #endif // EXTPLUGIN_H