]> SALOME platform Git repositories - modules/visu.git/blob - src/VISUGUI/VisuGUI.h
Salome HOME
Preferences for VISU module.
[modules/visu.git] / src / VISUGUI / VisuGUI.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
21 //
22 //
23 //
24 //  File   : VisuGUI.h
25 //  Author : Laurent CORNABE & Hubert ROLLAND
26 //  Module : VISU
27 //  $Header$
28
29 #ifndef VisuGUI_HeaderFile
30 #define VisuGUI_HeaderFile
31
32 #include "SalomeApp_Module.h"
33
34 class VisuGUI: public SalomeApp_Module
35 {
36   Q_OBJECT;
37
38 public:
39
40   VisuGUI();
41   virtual ~VisuGUI();
42
43   virtual void initialize( CAM_Application* );
44   virtual void windows( QMap<int, int>& ) const;
45   virtual void viewManagers( QStringList& ) const;
46
47   virtual QString engineIOR() const;
48
49   virtual void  studyActivated();
50
51   virtual void  contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
52
53   virtual void createPreferences();
54   virtual void preferencesChanged( const QString&, const QString& );
55
56 public slots:
57   virtual bool deactivateModule( SUIT_Study* );
58   virtual bool activateModule( SUIT_Study* );
59
60 protected slots:
61   void OnImportFromFile();
62   void OnExploreMEDFile();
63   void OnImportTableFromFile();
64   void OnExportTableToFile();
65   void OnImportMedField();
66
67   void OnCreateMesh();
68   void OnCreateScalarMap();
69   void OnCreateDeformedShape();
70   void OnCreateVectors();
71   void OnCreateIsoSurfaces();
72   void OnCreateCutPlanes();
73   void OnCreateCutLines();
74   void OnCreateStreamLines();
75   void OnCreatePlot3D();
76   void OnCreateManyMesh();
77   void OnCreatePlot2dView();
78
79   void OnEditPrs();
80
81   void OnDisplayPrs();
82   void OnDisplayOnlyPrs();
83   void OnErasePrs();
84   void OnEraseAll();
85
86   void OnMakeSurfaceframe();
87   void OnMakeInsideframe();
88   void OnMakeWireframe();
89   void OnMakeSurface();
90   void OnMakePoints();
91   void OnMakeShrink();
92
93   void OnChangeColor();
94   void OnChangeWireframeColor();
95   void OnChangeOpacity();
96   void OnChangeLines();
97
98   void OnShowTable();
99   void OnCreateTable();
100   void OnDeleteObjects();
101   void OnPlotData();
102   void OnCurveProperties();
103   void OnClearContainer();
104   void OnEditContainer();
105
106   void OnMergeScalarBars();
107   void OnFreeScalarBars();
108
109   void OnSaveViewParams();
110   void OnRestoreViewParams();
111
112   void OnRename();
113   void OnClippingPlanes();
114   void OnSweep();
115   void OnTimeAnimation();
116   void OnShowAnimation();
117
118   void OnCopyPresentation();
119
120   void OnSelectionInfo();
121
122   void OnTranslatePrs();
123   void OnArrangeActors();
124
125   void OnScaling();
126   void OnCubeAxes();
127
128 protected:
129   virtual SalomeApp_Selection* createSelection() const;
130
131 private:
132   void createActions();
133   void createMenus();
134   void createToolBars();
135   void createPopupMenus();
136 };
137
138 #endif