00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEKG_H
00023 #define GEKG_H
00024
00025 #include <pstreams/pstream.h>
00026 #include <unistd.h>
00027 #include <signal.h>
00028 #include <sys/types.h>
00029 #include <sys/wait.h>
00030 #include <iostream>
00031 #include <fstream>
00032 #include <gtk--/main.h>
00033 #include <gtk--/window.h>
00034 #include <gtk--/box.h>
00035 #include <gtk--/button.h>
00036 #include <gtk--/togglebutton.h>
00037 #include <gtk--/frame.h>
00038 #include <gtk--/tooltips.h>
00039 #include <bits/ios_base.h>
00040 #include <ext/stdio_filebuf.h>
00041 #include "EKGsource.h"
00042 #include "gEKGfreq.h"
00043 #include "gEKGdisplay.h"
00044 #include "EKGplotter.h"
00045 #include "EKGhfilter.h"
00046 #include "EKGlfilter.h"
00047 #include "gEKGPrintDialog.h"
00048 #include "gEKGFilterDialog.h"
00049 #include "gEKGhelp.h"
00050 using namespace std;
00051
00052 using SigC::slot;
00053
00054
00061 class gEKG : public Gtk::Window
00062 {
00063 public:
00065 gEKG( const char * ttyName );
00067 virtual int delete_event_impl(GdkEventAny *event);
00068 private:
00069
00070
00071
00072
00073 Gtk::VBox MainBox;
00074 Gtk::HBox UpperBox;
00075 Gtk::ToggleButton StartButton;
00076 Gtk::Button PrintButton;
00077 Gtk::Button FilterButton;
00078 Gtk::Button HelpButton;
00079 gEKGfreq Freq;
00080 Gtk::Frame DisplayFrame;
00081 Gtk::HBox FrameBox;
00082 Gtk::VBox LabelBox;
00083 Gtk::Label Label_I;
00084 Gtk::Label Label_II;
00085 Gtk::Label Label_III;
00086 Gtk::Label Label_aVR;
00087 Gtk::Label Label_aVL;
00088 Gtk::Label Label_aVF;
00089 Gtk::EventBox ebox_I;
00090 Gtk::EventBox ebox_II;
00091 Gtk::EventBox ebox_III;
00092 Gtk::EventBox ebox_aVR;
00093 Gtk::EventBox ebox_aVL;
00094 Gtk::EventBox ebox_aVF;
00095 gEKGdisplay Display;
00096 gEKGPrintDialog PrintDialog;
00097 gEKGFilterDialog FilterDialog;
00098 gEKGhelp HelpDialog;
00099
00100
00101
00102
00103
00104 EKGsource Source;
00105 EKGlfilter lFilter;
00106 EKGhfilter hFilter;
00107 EKGbuffer Buffer;
00108 Gtk::Tooltips Tips;
00109
00110
00111
00112
00113
00119 void startCallback();
00124 void printCallback();
00126 void printDialogCallback();
00128 void filterCallback();
00130 void filterApplyCallback();
00132 void helpCallback() { HelpDialog.show(); }
00142 gint keyCallback( GdkEventKey * e );
00144 void destroy_handler();
00145 };
00146
00147 #endif
00148