Fixed text file permissions
[snark14.git] / tools / Display / displayprojection.hpp
1 /** @file displayprojection.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 DISPLAYPROJECTION_H
9 #define DISPLAYPROJECTION_H
10
11 #include "variables.hpp"
12 #include "displaywidget.hpp"
13 #include <qvariant.h>
14 #include <qdialog.h>
15 class QVBoxLayout; 
16 class QHBoxLayout; 
17 class QGridLayout; 
18 class QLabel;
19 class QLineEdit;
20 class QPushButton;
21 class QRadioButton;
22 class QSlider;
23 class QListBox;
24 class QImage;
25 class QPixmap;
26 class QScrollView;
27
28 class displayprojection : public QDialog
29
30     Q_OBJECT
31
32 public:
33     displayprojection( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, int x = 0, int y = 0 );
34     ~displayprojection();
35
36     QString windowname;
37     QString imagename;
38     double **proj;
39     double maxval,minval;
40     double lowthreshold,highthreshold;
41     double range;
42     int zoomval;
43     int maxzoom;
44     displayWidget* displaywidget;
45     QLabel* zoomlabel;
46     QSlider* zoomslider;
47     QLineEdit* zoom;
48     QPushButton* setzoombutton;
49     QRadioButton* globalthresholdbutton;
50     QRadioButton* differencebutton;
51     QRadioButton* intensitybutton;
52     QLabel* lowthreshlabel;
53     QSlider* lowthreshslider;
54     QLineEdit* lowthresh;
55     QPushButton* setlowthreshbutton;
56     QLabel* highthreshlabel;
57     QSlider* highthreshslider;
58     QLineEdit* highthresh;
59     QPushButton* sethighthreshbutton;
60     QLabel* pixelposlabel;
61     QLineEdit* pixelpos;
62     QLabel* pixelvaluelabel;
63     QLineEdit* pixelvalue;
64     QPushButton* profilebutton;
65     QPushButton* linesbutton;
66     QPushButton* savebutton;
67     QPushButton* closebutton;
68     QScrollView* scrollv;
69 public slots:
70     void updateClickedPixel(int cx,int cy);
71     void updateZoom();
72     void updateZoomslider();
73     void intensity();
74     void updateLowthresh();
75     double getLowthresh();
76     void updateLowthreshslider();
77     void updateHighthresh();
78     double getHighthresh();
79     void updateHighthreshslider();
80     void resetscroll();
81     void resetImage();
82     void resetImageRange();
83     void callLines();
84     void saveImage();
85 };
86
87 #endif // DISPLAYPROJECTION_H