Diana Software
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
QGPlotListWindow Class Reference

Singleton class for plot list window. More...

Inheritance diagram for QGPlotListWindow:
QGWindow

Public Member Functions

virtual ~QGPlotListWindow ()
 Destructor. More...
 
void AddEntry (QGPlot *plot)
 Add entry for plot. More...
 
void Clear (Option_t *opt="")
 Clear the plot list. More...
 
void GeneratePlotList ()
 Generate list of plots. More...
 
void Refresh ()
 Refresh the contents of the window. More...
 
void RemoveEntry (QGPlot *plot)
 Remove entry for plot. More...
 
- Public Member Functions inherited from QGWindow
 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 QGPlotListWindowInstance ()
 Singleton. More...
 
static bool IsVisible ()
 Returns true if the plot list window exists. More...
 
static void Update ()
 Update the plot list. More...
 
- Static Public Member Functions inherited from QGWindow
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...
 

Private Member Functions

 QGPlotListWindow (const TGWindow *p=0, UInt_t w=450, UInt_t h=300)
 Private constructor. More...
 

Private Attributes

TGVerticalFrame * fContainerFrame
 Container frame for scrollable frame. More...
 
std::map< QGPlot *, QGPlotListEntryFrame * > fEntries
 Map from plots to entries. More...
 
TGCanvas * fScrollableFrame
 Scrollable frame. More...
 

Static Private Attributes

static QGPlotListWindowfMe = 0
 Singleton. More...
 

Additional Inherited Members

- Protected Attributes inherited from QGWindow
UInt_t fWidth
 Width of window. More...
 
UInt_t fHeight
 Height of window. More...
 
- Static Protected Attributes inherited from QGWindow
static std::list< QGWindow * > fWindows
 Collection of pointers to all open QGWindows. More...
 

Detailed Description

Singleton class for plot list window.

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

Definition at line 19 of file QGPlotListWindow.hh.

Constructor & Destructor Documentation

◆ ~QGPlotListWindow()

QGPlotListWindow::~QGPlotListWindow ( )
virtual

Destructor.

Definition at line 54 of file QGPlotListWindow.cc.

References fContainerFrame, and fMe.

◆ QGPlotListWindow()

QGPlotListWindow::QGPlotListWindow ( const TGWindow *  p = 0,
UInt_t  w = 450,
UInt_t  h = 300 
)
private

Private constructor.

Definition at line 23 of file QGPlotListWindow.cc.

References fContainerFrame, fScrollableFrame, GeneratePlotList(), QStringHandler::Resize(), and QGWindow::SetWindowName().

Referenced by Instance().

Member Function Documentation

◆ AddEntry()

void QGPlotListWindow::AddEntry ( QGPlot plot)

Add entry for plot.

Definition at line 65 of file QGPlotListWindow.cc.

References fEntries, and fScrollableFrame.

Referenced by GeneratePlotList().

◆ Clear()

void QGPlotListWindow::Clear ( Option_t *  opt = "")

Clear the plot list.

Definition at line 74 of file QGPlotListWindow.cc.

References fEntries, and RemoveEntry().

Referenced by Update().

◆ GeneratePlotList()

void QGPlotListWindow::GeneratePlotList ( )

Generate list of plots.

Definition at line 87 of file QGPlotListWindow.cc.

References AddEntry(), and QGPlot::GetPlots().

Referenced by QGPlotListWindow(), and Update().

◆ Instance()

QGPlotListWindow * QGPlotListWindow::Instance ( )
static

Singleton.

Definition at line 17 of file QGPlotListWindow.cc.

References fMe, and QGPlotListWindow().

Referenced by QGPlot::ShowPlotsList(), and QGPlot::~QGPlot().

◆ IsVisible()

static bool QGPlotListWindow::IsVisible ( )
inlinestatic

Returns true if the plot list window exists.

Definition at line 37 of file QGPlotListWindow.hh.

References fMe.

Referenced by Update(), and QGPlot::~QGPlot().

◆ Refresh()

void QGPlotListWindow::Refresh ( )

Refresh the contents of the window.

Definition at line 96 of file QGPlotListWindow.cc.

Referenced by Update(), and QGPlot::~QGPlot().

◆ RemoveEntry()

void QGPlotListWindow::RemoveEntry ( QGPlot plot)

Remove entry for plot.

Definition at line 101 of file QGPlotListWindow.cc.

References fContainerFrame, and fEntries.

Referenced by Clear(), and QGPlot::~QGPlot().

◆ Update()

void QGPlotListWindow::Update ( )
static

Member Data Documentation

◆ fContainerFrame

TGVerticalFrame* QGPlotListWindow::fContainerFrame
private

Container frame for scrollable frame.

Definition at line 56 of file QGPlotListWindow.hh.

Referenced by QGPlotListWindow(), RemoveEntry(), and ~QGPlotListWindow().

◆ fEntries

std::map<QGPlot*, QGPlotListEntryFrame*> QGPlotListWindow::fEntries
private

Map from plots to entries.

Definition at line 59 of file QGPlotListWindow.hh.

Referenced by AddEntry(), Clear(), and RemoveEntry().

◆ fMe

QGPlotListWindow * QGPlotListWindow::fMe = 0
staticprivate

Singleton.

Definition at line 50 of file QGPlotListWindow.hh.

Referenced by Instance(), IsVisible(), Update(), and ~QGPlotListWindow().

◆ fScrollableFrame

TGCanvas* QGPlotListWindow::fScrollableFrame
private

Scrollable frame.

Definition at line 62 of file QGPlotListWindow.hh.

Referenced by AddEntry(), and QGPlotListWindow().


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