1 // Copyright (C) 2010-2016 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // Author: Adrien Bruneton (CEA)
21 #ifndef PLVIEWWIDGET_H_
22 #define PLVIEWWIDGET_H_
24 #include <QMainWindow>
25 #include "ui_light_para.h"
28 class pqPVApplicationCore;
29 class pqPipelineSource;
34 class PVViewer_GUIElements;
36 /** Main window of the application.
38 class PLMainWindow: public QMainWindow {
42 PLMainWindow(QWidget * parent=0);
43 virtual ~PLMainWindow() {}
49 void doManagePlugins();
55 void cleanAllButSource();
58 void changedCurrentFile(QString fileName);
59 void apply(); // convenience signal to forward to the real ParaView apply
62 void autoApplyCheck(bool);
64 void showPipeline(bool);
70 void onFileOpen() { doOpenFile(); };
71 void slice() { doSlice(); };
72 void shrink() { doShrink(); };
73 void managePlugins() { doManagePlugins(); };
75 void insertSingleView(PLViewTab *);
76 void insertMultiView(PLViewTab *);
77 void insertSpreadsheetView(PLViewTab *);
79 void currentTabChanged(int);
81 void onBuildFilterMenu();
84 Ui::MainWindow _mainWindow;
86 PVViewer_GUIElements * _pvgui;
88 pqPVApplicationCore * _pAppC;
89 //pqServer * _activeServer;
90 //pqPipelineSource * _activeSource; // last pipeline element
91 QStack<pqPipelineSource *> _simplePipeline;
98 #endif /* PLVIEWWIDGET_H_ */