Salome HOME
Copyrights update 2015.
[samples/sierpinsky.git] / src / SierpinskyGUI / SierpinskyGUI_RunDlg.h
index 5e3a70d0c14b761cf19e5fb20c2556342b779073..31684c7c9b5cd97e92f399e81cf1584aa114450c 100644 (file)
@@ -1,31 +1,52 @@
+// Copyright (C) 2005-2015  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, or (at your option) any later version.
+//
+// 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 "SierpinskyGUI.hxx"
+
+#include <QDialog>
 
 class QLineEdit;
 class QCheckBox;
 class QSpinBox;
 class QPushButton;
 class QGroupBox;
-class QtxDblSpinBox;
+class QtxDoubleSpinBox;
 class MyThread;
 class QProgressBar;
+class SierpinskyGUI;
 
-class SierpinskyGUI_RunDlg : public QDialog
+class SIERPINSKY_EXPORT SierpinskyGUI_RunDlg : public QDialog
 {
   Q_OBJECT
 
 public:
   // Constructor
-  SierpinskyGUI_RunDlg( QWidget* );
+  SierpinskyGUI_RunDlg( QWidget*, SierpinskyGUI* );
   // Destructor
   ~SierpinskyGUI_RunDlg();
 
@@ -34,7 +55,7 @@ public:
 
 protected:
   // process progress event
-  void customEvent( QCustomEvent* );
+  void customEvent( QEvent* );
 
 protected slots:
   void accept();          // Called when user presses 'Start' button
@@ -44,42 +65,45 @@ protected slots:
   void toggled();         // Toggle 'Base points' mode
 
 private:
+  // module
+  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