00001
00013
00014 #ifndef IMEDGINETHRESHOLD_CONFIG_WIDGET_H
00015 #define IMEDGINETHRESHOLD_CONFIG_WIDGET_H
00016
00017 #include "../../gui/config_widget.h"
00018 #include "../../exceptions/invalid_cast_exception.h"
00019
00020 #include <limits>
00021
00022 class QGridLayout;
00023 class QSpinBox;
00024
00025 namespace imedgine
00026 {
00027
00028
00036
00037 class ThresholdConfigWidget : public ConfigWidget
00038 {
00039 Q_OBJECT
00040 public:
00041
00043
00044 ThresholdConfigWidget();
00045
00046
00048
00049 ~ThresholdConfigWidget();
00050
00051
00056 virtual void applyConfiguration()
00057 throw(InvalidCastException);
00058
00059
00062
00063 bool showConfiguration();
00064 private:
00065 QGridLayout* layout_;
00066
00067 QSpinBox* lower_spin_box_;
00068 QSpinBox* upper_spin_box_;
00069 QSpinBox* default_spin_box_;
00070
00071 void setupUi();
00072 };
00073
00074 }
00075
00076
00077 #endif