fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 cursesfltpulse.h - description 00003 ------------------- 00004 begin : Tue Jul 23 2002 00005 copyright : (C) 2002 by Andreas Kopmann 00006 email : kopmann@ipe.fzk.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef CURSESFLTPULSE_H 00019 #define CURSESFLTPULSE_H 00020 00021 #include <ncurses.h> 00022 00023 #include <Hw/fltpulse.h> 00024 00025 00030 class CursesFltPulse : public FltPulse { 00031 public: 00032 CursesFltPulse(); 00033 ~CursesFltPulse(); 00034 00036 int setFirstTimeBin(int bin); 00037 00038 00041 void display(WINDOW *win, unsigned short *mem, int n=1000, int iFirst=0); 00042 00052 void handleKeyEvent(WINDOW *win, int key, bool focus=true); 00053 00054 00055 private: 00056 00057 // GUI parameters 00058 00060 int mode; 00061 00063 int kMin; 00064 00065 00067 int maxBins; 00068 00069 }; 00070 00071 #endif