![]() |
Diana Software
|
Base class for GUI windows. More...
Public Member Functions | |
| QGWindow (const TGWindow *p=0, UInt_t w=100, UInt_t h=100) | |
| Constructor. More... | |
| virtual | ~QGWindow () |
| Destructor. More... | |
| virtual void | SetWindowName (const char *name=0) |
| Set name of window. More... | |
Static Public Member Functions | |
| static QGWindow * | GetWindowByName (const std::string &name) |
| Get pointer to window with a given name. More... | |
| static const std::list< QGWindow * > & | GetWindows () |
| Get collection of windows. More... | |
| static bool | IsNameInUse (std::string name) |
| Check whether string is the name of any window. More... | |
| static std::string | GenerateWindowName (std::string baseName) |
| Generate a name for the window. More... | |
| static void | UpdateWindowDropDownBoxes () |
| Update window drop down boxes. More... | |
Protected Attributes | |
| UInt_t | fWidth |
| Width of window. More... | |
| UInt_t | fHeight |
| Height of window. More... | |
Static Protected Attributes | |
| static std::list< QGWindow * > | fWindows |
| Collection of pointers to all open QGWindows. More... | |
Base class for GUI windows.
Definition at line 15 of file QGWindow.hh.
| QGWindow::QGWindow | ( | const TGWindow * | p = 0, |
| UInt_t | w = 100, |
||
| UInt_t | h = 100 |
||
| ) |
|
virtual |
Destructor.
Definition at line 27 of file QGWindow.cc.
References fWindows, and UpdateWindowDropDownBoxes().
|
static |
Generate a name for the window.
Definition at line 82 of file QGWindow.cc.
References IsNameInUse().
Referenced by SetWindowName().
|
static |
Get pointer to window with a given name.
Definition at line 39 of file QGWindow.cc.
References fWindows.
Referenced by QGPlot::GetCanvasWindowFromEditWindow().
|
inlinestatic |
Get collection of windows.
Definition at line 27 of file QGWindow.hh.
References fWindows.
Referenced by QGPlotEditButtonsFrame::FillWindowDropDownBox().
|
static |
Check whether string is the name of any window.
Definition at line 69 of file QGWindow.cc.
References fWindows.
Referenced by GenerateWindowName(), and SetWindowName().
|
virtual |
Set name of window.
Definition at line 52 of file QGWindow.cc.
References GenerateWindowName(), and IsNameInUse().
Referenced by QGCanvasWindowButtonsFrame::HandleNameEntryBox(), QGPlotEditButtonsFrame::HandleNameEntryBox(), QGCalibrationWindow::QGCalibrationWindow(), QGCutsEditorWindow::QGCutsEditorWindow(), QGPlotListWindow::QGPlotListWindow(), QGWindow(), QGHistogramEditWindow::SetPlot(), QGPulseEditWindow::SetPlot(), and QGScatterPlotEditWindow::SetPlot().
|
static |
Update window drop down boxes.
Definition at line 95 of file QGWindow.cc.
References QGPlot::GetPlots().
Referenced by QGCanvasWindowButtonsFrame::HandleNameEntryBox(), QGCanvasWindowButtonsFrame::HandleNewWindowButton(), QGPlotIconsFrame::HandlePulsesButton(), QGCanvasWindow::QGCanvasWindow(), QGGraphicalCut::ViewPulses(), and ~QGWindow().
|
protected |
Height of window.
Definition at line 46 of file QGWindow.hh.
|
protected |
Width of window.
Definition at line 43 of file QGWindow.hh.
|
staticprotected |
Collection of pointers to all open QGWindows.
Definition at line 49 of file QGWindow.hh.
Referenced by GetWindowByName(), GetWindows(), IsNameInUse(), QGWindow(), and ~QGWindow().