![]() |
Diana Software
|
Singleton class for plot list window. More...
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 QGPlotListWindow * | Instance () |
| 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 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... | |
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 QGPlotListWindow * | fMe = 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... | |
Singleton class for plot list window.
Definition at line 19 of file QGPlotListWindow.hh.
|
virtual |
|
private |
Private constructor.
Definition at line 23 of file QGPlotListWindow.cc.
References fContainerFrame, fScrollableFrame, GeneratePlotList(), QStringHandler::Resize(), and QGWindow::SetWindowName().
Referenced by Instance().
| void QGPlotListWindow::AddEntry | ( | QGPlot * | plot | ) |
Add entry for plot.
Definition at line 65 of file QGPlotListWindow.cc.
References fEntries, and fScrollableFrame.
Referenced by GeneratePlotList().
| 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().
| 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().
|
static |
Singleton.
Definition at line 17 of file QGPlotListWindow.cc.
References fMe, and QGPlotListWindow().
Referenced by QGPlot::ShowPlotsList(), and QGPlot::~QGPlot().
|
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().
| void QGPlotListWindow::Refresh | ( | ) |
Refresh the contents of the window.
Definition at line 96 of file QGPlotListWindow.cc.
Referenced by Update(), and QGPlot::~QGPlot().
| 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().
|
static |
Update the plot list.
Definition at line 111 of file QGPlotListWindow.cc.
References Clear(), fMe, GeneratePlotList(), IsVisible(), and Refresh().
Referenced by QGGraphicalCut::HandleCanvasEvent(), QGPlotEditButtonsFrame::HandleDrawButton(), QGPlotEditButtonsFrame::HandleDuplicateButton(), QGPlotIconsFrame::HandleHistogramButton(), QGPlotEditButtonsFrame::HandleNameEntryBox(), QGPlotIconsFrame::HandlePulsesButton(), QGPlotIconsFrame::HandleScatterPlotButton(), and QGGraphicalCut::ViewPulses().
|
private |
Container frame for scrollable frame.
Definition at line 56 of file QGPlotListWindow.hh.
Referenced by QGPlotListWindow(), RemoveEntry(), and ~QGPlotListWindow().
|
private |
Map from plots to entries.
Definition at line 59 of file QGPlotListWindow.hh.
Referenced by AddEntry(), Clear(), and RemoveEntry().
|
staticprivate |
Singleton.
Definition at line 50 of file QGPlotListWindow.hh.
Referenced by Instance(), IsVisible(), Update(), and ~QGPlotListWindow().
|
private |
Scrollable frame.
Definition at line 62 of file QGPlotListWindow.hh.
Referenced by AddEntry(), and QGPlotListWindow().