10 #include "TGComboBox.h"
12 #include "TGPicture.h"
13 #include "TGTextEntry.h"
16 #include "ImageDelete.xpm"
17 #include "ImageDraw.xpm"
18 #include "ImageDuplicate.xpm"
19 #include "ImageErase.xpm"
20 #include "ImageNameSmall.xpm"
29 TGCompositeFrame(p, w, h),
32 SetCleanup(kDeepCleanup);
35 AddFrame(
fDrawEraseFrame,
new TGLayoutHints(kLHintsCenterX, 0, 0, 0, 0));
40 fDrawButton->Connect(
"Clicked()",
"QGPlotEditButtonsFrame",
this,
"HandleDrawButton()");
45 fEraseButton->Connect(
"Clicked()",
"QGPlotEditButtonsFrame",
this,
"HandleEraseButton()");
48 AddFrame(
fWindowFrame,
new TGLayoutHints(kLHintsExpandX, 0, 0, 2, 0));
64 fNameButton->Connect(
"Clicked()",
"QGPlotEditButtonsFrame",
this,
"HandleNameButton()");
69 fNameEntryBox->SetToolTipText(
"Enter a new name for the plot and press Return. Leave blank to cancel.");
70 fNameEntryBox->Connect(
"ReturnPressed()",
"QGPlotEditButtonsFrame",
this,
"HandleNameEntryBox()");
75 fDeleteButton->Connect(
"Clicked()",
"QGPlotEditButtonsFrame",
this,
"HandleDeleteButton()");
80 fDuplicateButton->Connect(
"Clicked()",
"QGPlotEditButtonsFrame",
this,
"HandleDuplicateButton()");
92 list<QGWindow*>::const_iterator windowIter;
94 const QGWindow *window = *windowIter;
162 string windowName =
"Diana GUI: " + newName;
Window containing a ROOT canvas.
Base class for plot edit windows.
virtual QGPlot * GetPlot()=0
Get pointer to plot, pure virtual function must be overriden by derived classes.
static void Update()
Update the plot list.
virtual const char * GetName() const
Get plot name, should be overridden by derived classes.
virtual void Duplicate()
Duplicate the plot, should be overridden by derived classes.
virtual void Plot()
Plot this in the associated canvas window, generating it if necessary.
virtual QGCanvasWindow * GetCanvasWindow() const
Get pointer to the canvas window to which the plot is associated.
virtual void SetName(const char *name=0)
Set plot name.
virtual void Erase()
Erase plot, should be overridden by derived classes.
Base class for GUI windows.
static const std::list< QGWindow * > & GetWindows()
Get collection of windows.
virtual void SetWindowName(const char *name=0)
Set name of window.