X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fgenericgui%2FBL_JobsTable.hxx;h=c6c7491f754999ca52b2e00c7be3eb4b0c7e22cc;hb=94317c743eafd6b6de89a47378e31410b4a8fdf3;hp=ace8b2f2fe7e1bc5c959f496e83809e20c22f9ef;hpb=97482df035ee6e97dde980312a5b02d356b03702;p=modules%2Fjobmanager.git diff --git a/src/genericgui/BL_JobsTable.hxx b/src/genericgui/BL_JobsTable.hxx index ace8b2f..c6c7491 100644 --- a/src/genericgui/BL_JobsTable.hxx +++ b/src/genericgui/BL_JobsTable.hxx @@ -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 +#include -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; }; }