Salome HOME
Update copyrights
[modules/jobmanager.git] / src / genericgui / BL_JobsTable.hxx
index ace8b2f2fe7e1bc5c959f496e83809e20c22f9ef..c6c7491f754999ca52b2e00c7be3eb4b0c7e22cc 100644 (file)
@@ -1,29 +1,33 @@
-//  Copyright (C) 2009 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2019  CEA/DEN, EDF R&D
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef _BL_JOBSTABLE_HXX_
 #define _BL_JOBSTABLE_HXX_
 
-#include <QtGui>
+#include <QTableView>
 
-namespace BL 
+class QItemSelection;
+class QModelIndex;
+
+namespace BL
 {
+  class GenericGui;
   class JobsTable: public QTableView
   {
     Q_OBJECT
@@ -32,9 +36,20 @@ namespace BL
       JobsTable(QWidget *parent);
       virtual ~JobsTable();
 
+      bool selectCurrent();
+      bool isMultipleSelected();
+      QModelIndexList getSelectedIndexes();
+      void set_main_gui(BL::GenericGui * main_gui);
+
     protected:
       QWidget* _parent;
 
+    protected slots:
+      void selectionChanged ( const QItemSelection & selected, const QItemSelection & deselected );
+      void currentChanged(const QModelIndex & current, const QModelIndex & previous);
+
+    private:
+      BL::GenericGui * _main_gui;
   };
 }