00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEKGPRINTDIALOG_H
00023 #define GEKGPRINTDIALOG_H
00024 #include <unistd.h>
00025 #include <pwd.h>
00026 #include <sys/types.h>
00027 #include <cstdlib>
00028 #include <list>
00029 #include <gtk--/base.h>
00030 #include <gtk--/box.h>
00031 #include <gtk--/button.h>
00032 #include <gtk--/buttonbox.h>
00033 #include <gtk--/checkbutton.h>
00034 #include <gtk--/combo.h>
00035 #include <gtk--/dialog.h>
00036 #include <gtk--/entry.h>
00037 #include <gtk--/label.h>
00038 #include <gtk--/separator.h>
00039 #include <gtk--/table.h>
00040 using namespace std;
00041
00042 using SigC::slot;
00043
00056 class gEKGPrintDialog : public Gtk::Dialog
00057 {
00058 public:
00060 gEKGPrintDialog();
00062 float ts;
00064 float vs;
00066 bool toFile;
00068 string fname;
00070 string pname;
00072 string pdate;
00074 bool state;
00075
00077 Gtk::Button * get_ok_button() { return & OKButton; }
00079 Gtk::Button* get_cancel_button() { return & CButton; }
00080
00081 private:
00082
00083
00084
00085
00087 Gtk::Combo tCombo;
00089 Gtk::Combo vCombo;
00091 Gtk::CheckButton tfCButton;
00093 Gtk::Entry fName;
00095 Gtk::Button OKButton;
00097 Gtk::Button CButton;
00099 Gtk::Entry pName;
00101 Gtk::Entry pDate;
00102
00104 Gtk::Label tLabel;
00106 Gtk::Label vLabel;
00108 Gtk::Label nLabel;
00110 Gtk::Label pnLabel;
00112 Gtk::Label pdLabel;
00113
00114 Gtk::HSeparator separator;
00115 Gtk::HButtonBox bBox;
00116 Gtk::Table table;
00117
00118
00119
00120
00121
00123 int delete_event_impl(GdkEventAny *event)
00124 { Ccallback(); return true; }
00126 void OKcallback();
00128 void Ccallback();
00130 gint keyCallback( GdkEventKey * e );
00131 };
00132
00133 #endif
00134