Diana Software
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
QGWindow Class Reference

Base class for GUI windows. More...

Inheritance diagram for QGWindow:
QGCalibrationWindow QGCanvasWindow QGCutsEditorWindow QGPlotEditWindow QGPlotListWindow QGHistogramEditWindow QGPulseEditWindow QGScatterPlotEditWindow

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 QGWindowGetWindowByName (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...
 

Detailed Description

Base class for GUI windows.

Author
Adam Bryant (adam_.nosp@m.brya.nosp@m.nt@be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u)

Definition at line 15 of file QGWindow.hh.

Constructor & Destructor Documentation

◆ QGWindow()

QGWindow::QGWindow ( const TGWindow *  p = 0,
UInt_t  w = 100,
UInt_t  h = 100 
)

Constructor.

Definition at line 18 of file QGWindow.cc.

References fWindows, and SetWindowName().

◆ ~QGWindow()

QGWindow::~QGWindow ( )
virtual

Destructor.

Definition at line 27 of file QGWindow.cc.

References fWindows, and UpdateWindowDropDownBoxes().

Member Function Documentation

◆ GenerateWindowName()

string QGWindow::GenerateWindowName ( std::string  baseName)
static

Generate a name for the window.

Definition at line 82 of file QGWindow.cc.

References IsNameInUse().

Referenced by SetWindowName().

◆ GetWindowByName()

QGWindow * QGWindow::GetWindowByName ( const std::string &  name)
static

Get pointer to window with a given name.

Definition at line 39 of file QGWindow.cc.

References fWindows.

Referenced by QGPlot::GetCanvasWindowFromEditWindow().

◆ GetWindows()

static const std::list<QGWindow*>& QGWindow::GetWindows ( )
inlinestatic

Get collection of windows.

Definition at line 27 of file QGWindow.hh.

References fWindows.

Referenced by QGPlotEditButtonsFrame::FillWindowDropDownBox().

◆ IsNameInUse()

bool QGWindow::IsNameInUse ( std::string  name)
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().

◆ SetWindowName()

void QGWindow::SetWindowName ( const char *  name = 0)
virtual

◆ UpdateWindowDropDownBoxes()

void QGWindow::UpdateWindowDropDownBoxes ( )
static

Member Data Documentation

◆ fHeight

UInt_t QGWindow::fHeight
protected

Height of window.

Definition at line 46 of file QGWindow.hh.

◆ fWidth

UInt_t QGWindow::fWidth
protected

Width of window.

Definition at line 43 of file QGWindow.hh.

◆ fWindows

list< QGWindow * > QGWindow::fWindows
staticprotected

Collection of pointers to all open QGWindows.

Definition at line 49 of file QGWindow.hh.

Referenced by GetWindowByName(), GetWindows(), IsNameInUse(), QGWindow(), and ~QGWindow().


The documentation for this class was generated from the following files: