00001 00021 #ifndef CHEEZYPAGE_H 00022 #define CHEEZYPAGE_H 00023 00024 #include <Midad/Base/CanvasPage.h> 00025 #include <Registry/Registry.h> 00026 00027 class CheezyDisplay; 00028 class Mint; 00029 00030 class CheezyPage : public CanvasPage 00031 { 00032 00033 public: 00034 00035 CheezyPage(); 00036 ~CheezyPage(); 00037 00038 // We override this so as to get the canvas as soon as possible 00039 virtual TObject* Init(Mint* mint, PageDisplay* pd, GuiBox& box); 00040 00041 // Notifications. These get called at various times of 00042 // interactive use. 00043 void Clear(); // called just before Update() 00044 void Update(); // called when new data is available 00045 00046 00047 // Not required for to be a Page, but we use this to pass a 00048 // Registry full of config info. 00049 void Configure(const Registry& reg); 00050 00051 00052 private: 00053 00054 CheezyDisplay* fDisplay; // the actual display 00055 Mint* fMint; // Midad interface 00056 std::string fListPlex; // name of CandDigitList to use (plex'ed) 00057 std::string fListTruth; // name of CandDigitList to use as truth 00058 bool fDrawEmpty; // true if we draw empty events 00059 Registry fConfig, fConfigPossibles; 00060 00061 00062 // Some helper routines 00063 void BuildMenus(PageDisplay* pd); 00064 void InitConfig(); 00065 void ApplyConfig(); 00066 void SpawnConfigurator(void); 00067 00068 }; // end of class CheezyPage 00069 00070 #endif // CHEEZYPAGE_H
1.3.9.1