7 #include "TApplication.h"
14 using std::stringstream;
24 SetCleanup(kDeepCleanup);
35 gApplication->Terminate(0);
42 list<QGWindow*>::const_iterator windowIter;
43 for (windowIter =
fWindows.begin(); windowIter !=
fWindows.end(); ++windowIter) {
44 if ((*windowIter)->GetWindowName() == name) {
55 string oldName = GetWindowName();
56 string newName = name;
57 if (newName != oldName) {
61 TGMainFrame::SetWindowName(newName.c_str());
72 list<QGWindow*>::const_iterator windowIter;
73 for (windowIter =
fWindows.begin(); windowIter !=
fWindows.end(); ++windowIter) {
74 if ((*windowIter)->GetWindowName() == name) {
90 name = baseName + index.str();
97 list<QGPlot*>::const_iterator plotIter;
99 if ((*plotIter)->GetEditWindow()) {
100 (*plotIter)->GetEditWindow()->GetButtonsFrame()->FillWindowDropDownBox();
static const std::list< QGPlot * > & GetPlots()
Get collection of plots.
Base class for GUI windows.
static std::list< QGWindow * > fWindows
Collection of pointers to all open QGWindows.
static bool IsNameInUse(std::string name)
Check whether string is the name of any window.
static std::string GenerateWindowName(std::string baseName)
Generate a name for the window.
static void UpdateWindowDropDownBoxes()
Update window drop down boxes.
static QGWindow * GetWindowByName(const std::string &name)
Get pointer to window with a given name.
virtual void SetWindowName(const char *name=0)
Set name of window.
QGWindow(const TGWindow *p=0, UInt_t w=100, UInt_t h=100)
Constructor.
virtual ~QGWindow()
Destructor.