00001 #ifndef MAINWINDOW_H 00002 #define MAINWINDOW_H 00003 00004 #include <QtGui/QMainWindow> 00005 #include <QTimer> 00006 #include <dc1394/dc1394.h> 00007 #include <QDoubleSpinBox> 00008 #include <QCheckBox> 00009 00010 namespace Ui 00011 { 00012 class Dc1394Dialog; 00013 } 00014 00015 class Dc1394Dialog : public QMainWindow 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 Dc1394Dialog(dc1394camera_t *camera =0, QWidget *parent = 0); 00021 ~Dc1394Dialog(); 00022 00023 private: 00024 Ui::Dc1394Dialog *ui; 00025 00026 dc1394camera_t *camera; 00027 dc1394video_frame_t *frame; 00028 dc1394featureset_t features; 00029 00030 int timer; 00031 bool initialize(); 00032 void setupFeature(QString name, dc1394feature_t feature, QDoubleSpinBox *spin); 00033 void updateFeature(dc1394feature_t feature, QDoubleSpinBox *spin, QCheckBox *checkbox); 00034 00035 private slots: 00036 void on_manualBrightness_toggled(bool checked); 00037 void on_autoShutter_clicked(); 00038 void on_shutterSpin_valueChanged(double ); 00039 void on_manualShutter_toggled(bool checked); 00040 void on_whiteBalSliderRed_sliderMoved(int position); 00041 void on_whiteBalSliderBlue_sliderMoved(int position); 00042 void on_manualWhiteBal_toggled(bool checked); 00043 void on_manualExposure_toggled(bool checked); 00044 void on_autoExposure_clicked(); 00045 void on_exposureSpin_valueChanged(double ); 00046 void timerEvent( QTimerEvent * ); 00047 void on_gainSpin_valueChanged(int ); 00048 void on_manualGain_toggled(bool checked); 00049 void on_autoGain_clicked(); 00050 }; 00051 00052 #endif // MAINWINDOW_H