1 ///////////////////////////////////////////////////////////
2 // File : SierpinskyGUI_RunDlg.h
3 // Author : Vadim SANDLER (OCN)
5 // Copyright (C) 2005 Open CASCADE
6 ///////////////////////////////////////////////////////////
8 #ifndef __SIERPINSKYGUI_RUNDLG_H
9 #define __SIERPINSKYGUI_RUNDLG_H
23 class SierpinskyGUI_RunDlg : public QDialog
29 SierpinskyGUI_RunDlg( QWidget*, SierpinskyGUI* );
31 ~SierpinskyGUI_RunDlg();
33 // Progress thread calls this method to update progress bar state
34 void nextStep( const int );
37 // process progress event
38 void customEvent( QCustomEvent* );
41 void accept(); // Called when user presses 'Start' button
42 void stop(); // Called when user presses 'Stop' button
43 void onBrowse(); // Browse file
44 void updateState(); // Update widgets state
45 void toggled(); // Toggle 'Base points' mode
49 SierpinskyGUI* myModule;
53 QtxDblSpinBox* myStartX;
54 QtxDblSpinBox* myStartY;
55 QCheckBox* myStartRandom;
64 QCheckBox* myBaseRandom;
65 QCheckBox* myBaseDefault;
70 QCheckBox* myJpegCheck;
71 QLineEdit* myJpegFile;
72 QPushButton* myJpegBtn;
74 QCheckBox* myMedCheck;
76 QPushButton* myMedBtn;
77 QtxDblSpinBox* myMedSize;
78 QCheckBox* myVisuCheck;
80 QPushButton* myStartBtn;
81 QPushButton* myCancelBtn;
83 QProgressBar* myProgress;
89 #endif // __SIERPINSKYGUI_RUNDLG_H