Salome HOME
eec3f7481d793a4e634e9c5a1ab216c9cbbb6ca6
[modules/yacs.git] / src / genericgui / FormAdvParamContainer.hxx
1 // Copyright (C) 2006-2020  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef _FORMADVPARAMCONTAINER_HXX_
21 #define _FORMADVPARAMCONTAINER_HXX_
22
23 #include "ui_FormAdvParamContainer.h"
24
25 #include <QIcon>
26 #include <map>
27 #include <string>
28
29 namespace YACS
30 {
31   namespace ENGINE
32   {
33     class Container;
34   }
35 }
36
37 class FormAdvParamContainer : public QWidget, public Ui::fm_advparamcontainer
38 {
39   Q_OBJECT
40
41 public:
42   FormAdvParamContainer(std::map<std::string, std::string>& prop, QWidget *parent = 0);
43   virtual ~FormAdvParamContainer();
44
45   void FillPanel(const std::string& resource, YACS::ENGINE::Container *container);
46   virtual void onModified();
47   void updateResource(const std::string &resource);
48   void setModeText(const std::string& mode);
49
50 public slots:
51 //  void onModifyName(const QString &text);
52   void onModifyResource(const QString &text);
53   void onModifyPolicy(const QString &text);
54   void onModifyWorkDir(const QString &text);
55   void onModifyContName(const QString &text);
56   void onModifyOS(const QString &text);
57   void onModifyParLib(const QString &text);
58   void onModifyIsMPI(bool isMpi);
59   void onModifyMem(const QString &text);
60   void onModifyClock(const QString &text);
61   void onModifyNodes(const QString &text);
62   void onModifyProcs(const QString &text);
63   void onModifyCompos(const QString &text);
64   void onModifyProcPar(const QString &text);
65   void onModifyResourceName(const QString &text);
66   void onModifyHostName(const QString &text);
67   void onModifyProcRes(const QString &text);
68   void onModifyCompoList(const QString &text);
69   void onModifyResourceList(const QString &text);
70   void onModifyUsePyCache(int val);
71
72 protected:
73   bool _advanced;
74   YACS::ENGINE::Container *_container;
75   std::map<std::string, std::string>& _properties;
76
77 private:
78 };
79
80 #endif