00001 #ifndef _QG_WINDOW_HH_ 00002 #define _QG_WINDOW_HH_ 00003 00011 #include <list> 00012 #include <string> 00013 #include "TGFrame.h" 00014 00015 class QGWindow : public TGMainFrame { 00016 public: 00018 QGWindow(const TGWindow *p = 0, UInt_t w = 100, UInt_t h = 100); 00019 00021 virtual ~QGWindow(); 00022 00024 static QGWindow *GetWindowByName(const std::string& name); 00025 00027 static const std::list<QGWindow*>& GetWindows() {return fWindows;} 00028 00030 virtual void SetWindowName(const char *name = 0); 00031 00033 static bool IsNameInUse(std::string name); 00034 00036 static std::string GenerateWindowName(std::string baseName); 00037 00039 static void UpdateWindowDropDownBoxes(); 00040 00041 protected: 00043 UInt_t fWidth; 00044 00046 UInt_t fHeight; 00047 00049 static std::list<QGWindow*> fWindows; 00050 00051 ClassDef(QGWindow, 0) 00052 }; 00053 00054 #endif