Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/sierpinsky.git] / src / SierpinskyGUI / SierpinskyGUI_RunDlg.h
index c21a9943a469f4a6df28f32a9ed17c7226b60227..8b203457c13b36180196c859fc575134beebb59a 100644 (file)
@@ -1,21 +1,38 @@
+//  Copyright (C) 2005-2008  OPEN CASCADE
+//
+//  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 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
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 ///////////////////////////////////////////////////////////
 // File    : SierpinskyGUI_RunDlg.h
 // Author  : Vadim SANDLER (OCN)
 // Created : 13/07/05
-// Copyright (C) 2005 Open CASCADE
 ///////////////////////////////////////////////////////////
-
+//
 #ifndef __SIERPINSKYGUI_RUNDLG_H
 #define __SIERPINSKYGUI_RUNDLG_H
 
-#include <qdialog.h>
+#include <QDialog>
 
 class QLineEdit;
 class QCheckBox;
 class QSpinBox;
 class QPushButton;
 class QGroupBox;
-class QtxDblSpinBox;
+class QtxDoubleSpinBox;
 class MyThread;
 class QProgressBar;
 class SierpinskyGUI;
@@ -35,7 +52,7 @@ public:
 
 protected:
   // process progress event
-  void customEvent( QCustomEvent* );
+  void customEvent( QEvent* );
 
 protected slots:
   void accept();          // Called when user presses 'Start' button
@@ -46,44 +63,44 @@ protected slots:
 
 private:
   // module
-  SierpinskyGUI*  myModule;
+  SierpinskyGUI*     myModule;
   
   // widgets
-  QGroupBox*      box1;
-  QtxDblSpinBox*  myStartX;
-  QtxDblSpinBox*  myStartY;
-  QCheckBox*      myStartRandom;
-
-  QGroupBox*      box2;
-  QtxDblSpinBox*  myX1;
-  QtxDblSpinBox*  myY1;
-  QtxDblSpinBox*  myX2;
-  QtxDblSpinBox*  myY2;
-  QtxDblSpinBox*  myX3;
-  QtxDblSpinBox*  myY3;
-  QCheckBox*      myBaseRandom;
-  QCheckBox*      myBaseDefault;
-
-  QSpinBox*       myIter;
-
-  QGroupBox*      box3;
-  QCheckBox*      myJpegCheck;
-  QLineEdit*      myJpegFile;
-  QPushButton*    myJpegBtn;
-  QSpinBox*       myJpegSize;
-  QCheckBox*      myMedCheck;
-  QLineEdit*      myMedFile;
-  QPushButton*    myMedBtn;
-  QtxDblSpinBox*  myMedSize;
-  QCheckBox*      myVisuCheck;
-
-  QPushButton*    myStartBtn;
-  QPushButton*    myCancelBtn;
-
-  QProgressBar*   myProgress;
+  QGroupBox*         box1;
+  QtxDoubleSpinBox*  myStartX;
+  QtxDoubleSpinBox*  myStartY;
+  QCheckBox*         myStartRandom;
+
+  QGroupBox*         box2;
+  QtxDoubleSpinBox*  myX1;
+  QtxDoubleSpinBox*  myY1;
+  QtxDoubleSpinBox*  myX2;
+  QtxDoubleSpinBox*  myY2;
+  QtxDoubleSpinBox*  myX3;
+  QtxDoubleSpinBox*  myY3;
+  QCheckBox*         myBaseRandom;
+  QCheckBox*         myBaseDefault;
+
+  QSpinBox*          myIter;
+
+  QGroupBox*         box3;
+  QCheckBox*         myJpegCheck;
+  QLineEdit*         myJpegFile;
+  QPushButton*       myJpegBtn;
+  QSpinBox*          myJpegSize;
+  QCheckBox*         myMedCheck;
+  QLineEdit*         myMedFile;
+  QPushButton*       myMedBtn;
+  QtxDoubleSpinBox*  myMedSize;
+  QCheckBox*         myVisuCheck;
+
+  QPushButton*       myStartBtn;
+  QPushButton*       myCancelBtn;
+
+  QProgressBar*      myProgress;
 
   // progress thread
-  MyThread*       myThread;
+  MyThread*          myThread;
 };
 
 #endif // __SIERPINSKYGUI_RUNDLG_H