Added GUI elements on Setup Dialog
[EconoBoard.git] / src / setupdialog.h
blobccde565a11768d4fafe123efa005d5f578b90ba3
1 /*************************************************************************
2 Copyright 2009, Matthew Thompson, Lee Hicks
4 This file is part of EconoBoard.
6 EconoBoard is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 EconoBoard is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with EconoBoard. If not, see <http://www.gnu.org/licenses/>.
18 *************************************************************************/
20 #ifndef EBSETUPDIALOG_H
21 #define EBSETUPDIALOG_H
23 #include <QDialog>
25 class QSlider;
26 class QComboBox;
27 class QLabel;
28 class QPushButton;
30 namespace eb
33 class CameraThread;
34 class CameraView;
36 class SetupDialog : public QDialog
38 Q_OBJECT
40 public:
41 SetupDialog(CameraThread *camthread);
42 ~SetupDialog();
44 public slots:
45 void accept();
46 void reject();
47 void updateFPS(int);
48 void updateThreshold(int);
50 signals:
51 void settingsChanged(int threshold, int cameraIdx);
53 protected:
54 void showEvent(QShowEvent *event);
55 void hideEvent(QHideEvent *event);
57 private:
58 CameraThread *camThread;
59 CameraView *camView;
61 QComboBox *camera;
62 QSlider *threshold;
63 QLabel *thresholdNum;
64 QLabel *FPSNum;
65 QPushButton *toggleThreshold;
67 int oldCamera, oldThreshold;
72 #endif // EBSETUPDIALOG_H