00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEKGFREQ_H
00023 #define GEKGFREQ_H
00024
00025 #include <gtk--/eventbox.h>
00026 #include <gtk--/frame.h>
00027 #include <gtk--/pixmap.h>
00028 #include <gtk--/box.h>
00029 #include <gtk--/label.h>
00030 #include <gtk--/main.h>
00031 #include <unistd.h>
00032 #include <sstream>
00033 #include "EKGfreq.h"
00034 using namespace std;
00035
00036
00044 class gEKGfreq : public EKGfreq, public Gtk::EventBox
00045 {
00046 public:
00048 gEKGfreq();
00053 virtual void input( float * d );
00057 void reset();
00058 private:
00060 Gtk::Frame frame;
00062 Gtk::HBox hBox;
00064 Gtk::Label Pulse;
00066 Gtk::Pixmap Heart_bg;
00068 Gtk::Pixmap Heart_sm;
00073 int Hcount;
00075 static const float Htime = 0.2;
00080 virtual void handleQRS();
00081
00082
00083
00087 int Pipe[2];
00091 void drawRealtime( gint fd, GdkInputCondition );
00095 static const int psize = sizeof(int);
00096 };
00097
00098
00099 #endif
00100