Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omgalgorithmmanager.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Peter Brewer   *
00003  *   peter@pembshideaway.co.uk   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef OMGALGORITHMMANAGER_H
00022 #define OMGALGORITHMMANAGER_H
00023 
00024 #include <ui_omgalgorithmmanagerbase.h>
00025 #include <omgalgorithm.h>
00026 #include <omgalgorithmset.h>
00027 //
00028 // QT includes
00029 #include <QScrollArea>
00030 #include <QGridLayout>
00031 #include <QVBoxLayout>
00032 #include <QMap>
00033 #include <QResizeEvent>
00034 
00038 class OmgAlgorithmManager : public QDialog, private Ui::OmgAlgorithmManager
00039 {
00040   Q_OBJECT;
00041 
00042 public:
00043   OmgAlgorithmManager(QWidget* parent = 0, Qt::WFlags fl = 0 );
00044   ~OmgAlgorithmManager();
00045   /*$PUBLIC_FUNCTIONS$*/
00046 
00047 public slots:
00048   /*$PUBLIC_SLOTS$*/
00049 
00050   void cellClicked(int theRow, int theColumn);
00051   void selectAlgorithm(QString theProfileName);
00052   void on_pbnClone_clicked();
00053   void on_pbnDelete_clicked();
00054   void on_pbnApply_clicked();
00055   void on_pbnDefaults_clicked();
00061   void refreshAlgorithmTable(QString theGuid="");
00062 protected:
00063   /*$PROTECTED_FUNCTIONS$*/
00064 
00065 protected slots:
00066   /*$PROTECTED_SLOTS$*/
00067   void resizeEvent ( QResizeEvent * theEvent );
00068 signals:
00069 
00070 
00071 private:
00073   bool saveAlgorithm(OmgAlgorithm &theAlgorithm);
00074 
00075   void setParametersGui( OmgAlgorithm &theAlgorithm);
00077   QVBoxLayout * mpLayout2;
00079   QScrollArea * mpScrollArea3;
00081   QFrame * mpQFrame4;
00083   QGridLayout * mpLayout5;
00084 
00086   typedef QMap<QString, QWidget *> ParametersMap;
00088   ParametersMap mParametersMap;
00090   typedef QMap<QString, QString> DefaultParametersMap;
00091   DefaultParametersMap mDefaultParametersMap;
00093   typedef QMap<QString, QWidget *> ParameterLabels;
00094   ParameterLabels mLabelsMap;
00096   typedef QMap<QString, QWidget *> DescriptionLabels;
00097   DescriptionLabels mDescriptionLabelsMap;
00098 
00100   OmgAlgorithmSet mAlgorithmSet;
00101 };
00102 
00103 #endif
00104 

Generated on Mon Apr 28 15:07:07 2008 for openModellerDesktop by  doxygen 1.4.1-20050210