c7439aa4a31efee71dd19bd68264a0da701d0599
[snark14.git] / tools / Display / chooseRanges.hpp
1 /** @file chooseRanges.hpp
2     @package snark14Display
3     @author Bruno M. Carvalho and Deniz Sarioz
4     licensed under (open-source) QPL v1.0
5     which accompanies this distribution in the file QPL
6 */
7
8 #ifndef CHOOSERANGES_H
9 #define CHOOSERANGES_H
10
11 #include "variables.hpp"
12 #include "displaywidget.hpp"
13
14 #include <qdialog.h>
15
16 #include <qbuttongroup.h>
17 #include <qcolor.h>
18 #include <qcheckbox.h>
19 #include <qcombobox.h>
20 #include <qfiledialog.h>
21 #include <qfont.h>
22 #include <qframe.h>
23 #include <qimage.h>
24 #include <qlabel.h>
25 #include <qlayout.h>
26 #include <qlineedit.h>
27 #include <qlistbox.h>
28 #include <qmessagebox.h>
29 #include <qpainter.h>
30 #include <qpen.h>
31 #include <qpixmap.h>
32 #include <qpoint.h>
33 #include <qpushbutton.h>
34 #include <qradiobutton.h>
35 #include <qtooltip.h>
36 #include <qvariant.h>
37 #include <qwhatsthis.h>
38 #include <qwidget.h>
39
40 class QVBoxLayout;
41 class QHBoxLayout;
42 class QButtonGroup;
43 class QCheckBox;
44 class QComboBox;
45 class QFrame;
46 class QGridLayout; 
47 class QLabel;
48 class QLineEdit;
49 class QListBox;
50 class QListBoxItem;
51 class QPushButton;
52 class QRadioButton;
53 class QPixmap;
54
55 class chooseRangesDialog : public QDialog
56 {
57   Q_OBJECT
58
59 public:
60   chooseRangesDialog( QWidget* parent=0, const char* name=0, bool modal=true, WFlags fl=0, int x=0 , int y=0, 
61                       unsigned ee_index=0, bool forPBP=0, unsigned PBPYVar=0, globalYVar_t GlobalYVar=VARIANCE,
62                       int minX=0, int maxX=0, double minY= -1.0, double maxY= -1.0);
63   ~chooseRangesDialog();
64   int id;
65   bool status;
66   //  double maxval,minval,diffmaxval,diffminval;
67   QString YVarName;
68   QString fullname;
69   displayWidget* displaywidget;
70   QBoxLayout* topLayout;
71   //  QBoxLayout* yaxisbuttonLayout;
72   QBoxLayout* x_extrema_layout;
73   QBoxLayout* y_extrema_layout;
74   //  QButtonGroup* yaxisbuttongroup;
75   QLabel* minxlabel;
76   QLabel* maxxlabel;
77   QLabel* minylabel;
78   QLabel* maxylabel;
79   QLineEdit* minx;
80   QLineEdit* maxx;
81   QLineEdit* miny;
82   QLineEdit* maxy;
83   QPushButton* plotbutton;
84   QPushButton* closebutton;
85 private:
86   unsigned ee_index;
87   bool forPBP; // as opposed to forGlobal
88   unsigned PBPYVar;
89   globalYVar_t GlobalYVar;
90 public slots:
91   void proceed();
92   void closeWindow();
93 protected:
94   virtual void closeEvent(QCloseEvent *e);
95 };
96 #endif // CHOOSERANGES_H