00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEKGFILTERDIALOG_H
00023 #define GEKGFILTERDIALOG_H
00024 #include <gtk--/dialog.h>
00025 #include <gtk--/label.h>
00026 #include <gtk--/buttonbox.h>
00027 #include <gtk--/button.h>
00028 #include <gtk--/checkbutton.h>
00029 #include <gtk--/table.h>
00030 #include <gtk--/spinbutton.h>
00031 #include <gtk--/table.h>
00032 #include <gtk--/separator.h>
00033 #include <gtk--/label.h>
00034 #include <gtk--/adjustment.h>
00035 #include "calibrate.h"
00036 using namespace std;
00037
00038 using SigC::slot;
00039
00040
00046 class gEKGFilterDialog : public Gtk::Dialog
00047 {
00048 public:
00050 gEKGFilterDialog();
00051
00059 void setValues( bool low, float lowVal, bool high, float highVal );
00061 bool getLow() const { return LowCheck.get_active(); }
00063 float getLowVal() const { return LowSpin->get_value_as_float(); }
00065 bool getHigh() const { return HighCheck.get_active(); }
00067 float getHighVal() const { return HighSpin->get_value_as_float(); }
00068
00070 Gtk::Button OKButton;
00072 Gtk::Button AButton;
00074 Gtk::Button CButton;
00075 private:
00076
00077
00078
00079
00081 Gtk::CheckButton LowCheck;
00083 Gtk::CheckButton HighCheck;
00085 Gtk::SpinButton * LowSpin;
00087 Gtk::SpinButton * HighSpin;
00088
00089
00090
00091
00092
00094 Gtk::HButtonBox bBox;
00096 Gtk::Table table;
00098 Gtk::Label LowLabel;
00100 Gtk::Label HighLabel;
00102 Gtk::HSeparator separator;
00103
00104
00105
00106
00107
00109 void buttonCallback() { hide(); }
00111 gint keyCallback( GdkEventKey * e );
00113 int delete_event_impl(GdkEventAny *event)
00114 { buttonCallback(); return true; }
00115
00116 };
00117
00118 #endif