Salome HOME
bc953e0257a0fa0e4f5e22244c5d0f0a28b63477
[modules/jobmanager.git] / src / genericgui / BL_JobTab.hxx
1 // Copyright (C) 2009-2014  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 _BL_JOBTAB_HXX_
21 #define _BL_JOBTAB_HXX_
22
23 #include <QtGui>
24
25 #include "BL_JobsManager_QT.hxx"
26
27 namespace BL
28 {
29   class JobTab: public QTabWidget
30   {
31     Q_OBJECT
32
33     public:
34       JobTab(QWidget *parent, BL::JobsManager_QT * jobs_manager);
35       virtual ~JobTab();
36
37       void setModel(QStandardItemModel * model);
38
39       void createJobSummaryTab();
40       void createJobFilesTab();
41       void job_selected(const QModelIndex & index);
42
43     public slots:
44       void itemChanged(QStandardItem * item);
45       void reset(QString job_name);
46
47     protected:
48       QWidget* _parent;
49       QStandardItemModel * _model;
50       BL::JobsManager_QT * _jobs_manager;
51
52       QWidget * _summary_tab;
53       QWidget * _files_tab;
54
55       // Main Values
56       QFormLayout * _main_values_form;
57       QLabel * _job_name_label_value;
58       QLabel * _job_type_label_value;
59       QLabel * _job_state_label_value;
60       QLabel * _job_launcher_label_value;
61       QLabel * _job_resource_label_value;
62       QLabel * _job_jobfile_label_value;
63       QLabel * _job_envfile_label_value;
64
65       // Run Values
66       QFormLayout * _run_values_form;
67       QFormLayout * _other_run_values_form;
68       QLabel * _job_nif_label_value;
69       QLabel * _job_nof_label_value;
70       QLabel * _job_bd_label_value;
71       QLabel * _job_rd_label_value;
72       QLabel * _job_mdt_label_value;
73       QLabel * _job_em_label_value;
74       QLabel * _job_nop_label_value;
75       QLabel * _job_excl_label_value;
76
77       // Specific Values
78       QLabel * _yacs_dump_state_label;
79       QLabel * _yacs_dump_state_value;
80       QLabel * _batch_queue_label;
81       QLabel * _batch_queue_value;
82       QLabel * _ll_jobtype_label;
83       QLabel * _ll_jobtype_value;
84
85       QListWidget * _input_files_list;
86       QListWidget * _output_files_list;
87
88           // Parameters for COORM
89       QLabel * _job_lf_label_value;
90       QLabel * _job_la_label_value;
91   };
92 }
93
94 #endif
95