fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 cursesrun.h - description 00003 ------------------- 00004 begin : Wed Jun 5 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 CURSESRUN_H 00019 #define CURSESRUN_H 00020 00021 //#include "feexplore.h" 00022 // Program switches 00023 //#define USE_DAQ_FORMAT // IMPORTANT: Enable the support for DAQ files 00024 //#define USE_ROOT 00025 //#define USE_FDANALYSIS 00026 00027 #include <FEdata/tscampaign.h> 00028 00029 #include "cursesevent.h" 00030 00031 00032 class SltTime; 00033 00034 00040 class CursesRun : public TsCampaign { 00041 public: 00042 CursesRun(); 00043 ~CursesRun(); 00044 00050 CursesEvent *getEvent(); 00051 00053 void explore(int n); 00054 00055 00057 void displayRunHeader(WINDOW *win); 00058 00059 00061 void handleKeyEvent(WINDOW *win, int key, bool focus=true); 00062 00063 00065 void help(FILE *fout); 00066 00067 private: 00068 00070 CursesEvent ev; 00071 00073 int actEv; 00074 00076 int dig; 00077 00079 int inc; 00080 00082 int incTime; 00083 00085 int curPos; 00086 00088 int timePos; 00089 00091 bool focusEventList; 00092 00093 bool focusTrigger; 00094 00095 SltTime tFirst; 00096 00097 }; 00098 00099 #endif