Version: 6.3.1

src/VISUGUI/VisuGUI_BuildProgressDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VISUGUI : GUI of VISU component
00024 //  File   : VisuGUI_BuildProgressDlg.h
00025 //  Author : Oleg UVAROV
00026 //  Module : VISU
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/VISUGUI/VisuGUI_BuildProgressDlg.h,v 1.7.16.1.8.1 2011-06-02 06:00:20 vsr Exp $
00028 //
00029 #ifndef VISUGUI_BUILDPROGRESSDLG_H
00030 #define VISUGUI_BUILDPROGRESSDLG_H
00031 
00032 #include "VISU_Gen_i.hh"
00033 
00034 #include <QDateTime>
00035 #include <QDialog>
00036 
00037 class QCheckBox;
00038 class QGroupBox;
00039 class QLCDNumber;
00040 class QLineEdit;
00041 class QPushButton;
00042 class QTimer;
00043 
00044 
00046 class VisuGUI_BuildProgressDlg : public QDialog
00047 {
00048   Q_OBJECT
00049 
00050 public:
00051   VisuGUI_BuildProgressDlg( QWidget* );
00052   ~VisuGUI_BuildProgressDlg();
00053 
00054   virtual void     setGenerator( VISU::VISU_Gen_i* theGenerator ) { myGenerator = theGenerator; }
00055   virtual void     show();
00056 
00057   QString          fileName() const { return myFileName; }
00058   void             setFileName( const QString& theFileName );
00059 
00060 private:
00061   void             keyPressEvent( QKeyEvent* e );
00062 
00063 protected slots:
00064   void             done( int );
00065 
00066   void             onStart();
00067   void             onClose();
00068   void             onHelp();
00069 
00070   bool             onBrowseFile();
00071   void             onTimer();
00072 
00073   void             onBuildCheckBoxClicked();
00074 
00075 private:
00076   void             updateButton( QPushButton*, bool );
00077 
00078 private:
00079   VISU::Result_var myResult;
00080   VISU::VISU_Gen_i* myGenerator;
00081 
00082   QString          myFileName;
00083   QTime            myTime;
00084   QTimer*          myTimer;
00085 
00086   QGroupBox*       mySettingsBox;
00087 
00088   QLineEdit*       myFileNameLineEdit;
00089   QCheckBox*       myBuildAllCheckBox;
00090   QCheckBox*       myBuildAtOnceCheckBox;
00091 
00092   QGroupBox*       myProgressBox;
00093 
00094   QPushButton*  myBuildEntitiesButton;
00095 
00096   QCheckBox*       myBuildFieldsCheckBox;
00097   QPushButton*     myBuildFieldsButton;
00098 
00099   QCheckBox*       myBuildMinMaxCheckBox;
00100   QPushButton*     myBuildMinMaxButton;
00101 
00102   QCheckBox*       myBuildGroupsCheckBox;
00103   QPushButton*     myBuildGroupsButton;
00104 
00105   QGroupBox*       myTimeBox;
00106   QLCDNumber*      myTimeLCDNumber;
00107 
00108   QCheckBox*       myCloseCheckBox;
00109 
00110   QPushButton*     myStartButton;
00111 
00112   double           myCurrentTime;
00113   bool             myIsRaiseColor;
00114 };
00115 
00116 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS