1 /** @file chooseYVar.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
11 #include "variables.hpp"
12 #include "displaywidget.hpp"
16 #include <qbuttongroup.h>
18 #include <qcheckbox.h>
19 #include <qcombobox.h>
20 #include <qfiledialog.h>
26 #include <qlineedit.h>
28 #include <qmessagebox.h>
33 #include <qpushbutton.h>
34 #include <qradiobutton.h>
37 #include <qwhatsthis.h>
55 class chooseYVarWindow : public QDialog
60 chooseYVarWindow( QWidget* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0 ,int x = 0 , int y = 0 );
66 // double maxval,minval,diffmaxval,diffminval;
67 displayWidget* displaywidget;
68 QBoxLayout* topLayout;
69 QBoxLayout* yaxisbuttonLayout;
70 QBoxLayout* x_extrema_layout;
71 QBoxLayout* y_extrema_layout;
72 QButtonGroup* yaxisbuttongroup;
73 QCheckBox* sameExtremaForAllCheckBox;
74 QRadioButton* globalbutton;
75 QComboBox* globalerrors;
76 QRadioButton* pointbutton;
77 QComboBox* pointerrors;
86 QPushButton* proceedbutton;
87 QPushButton* closebutton;
88 QButtonGroup* colorbuttongroup;
89 QRadioButton* grayScaleButton;
90 QRadioButton* colorButton;
92 void spawnPlots(bool plotPBP, int minXVal, int maxXVal, double minYVal, double maxYVal);
93 void spawnDialogs(bool plotPBP);
94 void activateExtremaFields();
95 void deactivateExtremaFields();
96 void getCalculatedExtrema();
98 void activateGlobalErrors();
99 void activatePointErrors();
100 void maybeGetCalculatedExtrema();
101 void sameExtremaClicked();
104 // jk 2/2/2009 adding grayScale option for graphs
105 bool isGrayScaleChecked();
107 virtual void closeEvent(QCloseEvent *e);
109 #endif // CHOOSEYVAR_H