92e1ee7de5ac945890747dcb756712325c64128d
[snark14.git] / tools / Display / SnarkDisplay.hpp
1 /** @file SnarkDisplay.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 SNARKDISPLAY_H
9 #define SNARKDISPLAY_H
10
11 // #include <qvariant.h>
12 #include <qwidget.h>
13
14 class QVBoxLayout; 
15 class QHBoxLayout; 
16 class QGridLayout; 
17 class QFrame;
18 class QPushButton;
19 class rangewindow;
20 class openimageswindow;
21 class displaywindow;
22 class displayprojection;
23
24 class SnarkDisplay : public QWidget
25
26     Q_OBJECT
27
28 public:
29     SnarkDisplay( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
30     ~SnarkDisplay();
31     void allocSnarkimages(int ni);
32     void freeSnarkimages(int ni);
33     void allocDisplaywindows(int ni);
34     void freeDisplaywindows(int ni);
35     QFrame* Line1;
36     QPushButton* linesbutton;
37     QPushButton* imagesbutton;
38     QPushButton* recfilbutton;
39     QPushButton* rangebutton;
40     QPushButton* projfilbutton;
41     QPushButton* evalbutton;
42     QPushButton* quitbutton;
43     QPushButton* helpbutton;
44 private:
45     rangewindow* myRangeWinP;
46     openimageswindow* myOpenImagesWinP;
47     displaywindow** displaywindowset;
48     displayprojection* projwin;
49
50 public slots:
51     void signalAllGlobals(bool on);
52     void signalAllDifference(bool on);
53     void signalAllIntensity(bool on);
54     void updateGlobalThreshs();
55 private slots: 
56     void callLines();
57     void callOpenImages();
58     void openRecfilFile(); 
59     void callRange();
60     void openPrjfilFile(); 
61     void openEvalFile();
62     void about();
63 };
64
65 #endif // SNARKDISPLAY_H