Salome HOME
65b01b40eb6717fda08271d3702233ff3ff27878
[modules/visu.git] / src / VISUGUI / VisuGUI_CacheDlg.h
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  VISU VISUGUI : GUI of VISU component
24 //  File   : VisuGUI_CacheDlg.h
25 //  Author : Oleg UVAROV
26 //  Module : VISU
27 //
28 #ifndef VISUGUI_CACHEDLG_H
29 #define VISUGUI_CACHEDLG_H
30
31 #include "SALOMEconfig.h"
32 #include CORBA_SERVER_HEADER(VISU_Gen)
33
34 #include <QDialog>
35
36 class QLineEdit;
37 class QRadioButton;
38 class SalomeApp_DoubleSpinBox;
39
40 class SalomeApp_Module;
41
42 class VisuGUI_CacheDlg : public QDialog
43 {
44   Q_OBJECT
45
46 public:
47   VisuGUI_CacheDlg( VISU::ColoredPrs3dCache_var aCache,
48                     SalomeApp_Module* theModule );
49   virtual ~VisuGUI_CacheDlg();
50
51 public:
52   bool            isLimitedMemory();
53   double          getLimitedMemory();
54
55 protected slots:
56   virtual void    accept();
57
58   void            onHelp();
59
60 private:
61   VISU::ColoredPrs3dCache_var myCache;
62
63   QRadioButton*   myMimimalMemoryButton;
64   QRadioButton*   myLimitedMemoryButton;
65   SalomeApp_DoubleSpinBox* myLimitedMemory;
66
67   QLineEdit*      myUsedMemory;
68   QLineEdit*      myFreeMemory;
69 };
70
71 #endif