Diana Software
QGPlotEditButtonsFrame.hh
Go to the documentation of this file.
1 #ifndef _QG_PLOT_EDIT_BUTTONS_FRAME_HH_
2 #define _QG_PLOT_EDIT_BUTTONS_FRAME_HH_
3 
11 #include <string>
12 #include "TGFrame.h"
13 
14 class QGPlotEditWindow;
15 class TGComboBox;
16 class TGLabel;
17 class TGPictureButton;
18 class TGTextEntry;
19 
20 class QGPlotEditButtonsFrame : public TGCompositeFrame {
21 public:
23  QGPlotEditButtonsFrame(QGPlotEditWindow *p, UInt_t w = 100, UInt_t h = 100);
24 
26  virtual ~QGPlotEditButtonsFrame();
27 
29  void FillWindowDropDownBox();
30 
32  std::string GetCanvasWindowName();
33 
35  TGComboBox *GetWindowDropDownBox() {return fWindowDropDownBox;}
36 
38  void HandleDeleteButton();
39 
41  void HandleDrawButton();
42 
44  void HandleDuplicateButton();
45 
47  void HandleEraseButton();
48 
50  void HandleNameButton();
51 
53  void HandleNameEntryBox();
54 
56  void ShowDefaultDisplay();
57 
58 private:
60  TGPictureButton *fDrawButton;
61 
63  TGHorizontalFrame *fDrawEraseFrame;
64 
66  TGPictureButton *fDeleteButton;
67 
69  TGPictureButton *fDuplicateButton;
70 
72  TGPictureButton *fEraseButton;
73 
75  TGPictureButton *fNameButton;
76 
78  TGHorizontalFrame *fNameDeleteDuplicateFrame;
79 
81  TGTextEntry *fNameEntryBox;
82 
85 
87  TGComboBox *fWindowDropDownBox;
88 
90  TGHorizontalFrame *fWindowFrame;
91 
93  TGLabel *fWindowLabel;
94 
95  ClassDef(QGPlotEditButtonsFrame, 0)
96 };
97 
98 #endif
Frame to hold control buttons for plot edit window.
void HandleEraseButton()
Handle erase button.
void HandleDrawButton()
Handle draw button.
virtual ~QGPlotEditButtonsFrame()
Destructor.
TGPictureButton * fNameButton
Name button.
TGLabel * fWindowLabel
Window label.
void HandleNameEntryBox()
Handle name entry box.
TGTextEntry * fNameEntryBox
Name entry box.
void HandleDuplicateButton()
Handle duplicate button.
void ShowDefaultDisplay()
Show default display.
QGPlotEditWindow * fPlotEditWindow
Pointer to parent plot edit window.
TGPictureButton * fDeleteButton
Delete button.
std::string GetCanvasWindowName()
Get name of selected canvas window.
TGPictureButton * fDrawButton
Draw button.
TGPictureButton * fDuplicateButton
Duplicate button.
void HandleNameButton()
Handle name button.
TGHorizontalFrame * fWindowFrame
Horizontal frame for selecting canvas window.
TGComboBox * GetWindowDropDownBox()
Get pointer to the window drop down box.
TGComboBox * fWindowDropDownBox
Drop down box for selection canvas window.
TGPictureButton * fEraseButton
Erase button.
TGHorizontalFrame * fNameDeleteDuplicateFrame
Horizontal frame for Name/Delete/Duplicate buttons.
QGPlotEditButtonsFrame(QGPlotEditWindow *p, UInt_t w=100, UInt_t h=100)
Constructor.
void HandleDeleteButton()
Handle delete button.
TGHorizontalFrame * fDrawEraseFrame
Horizontal frame for Draw/Erase buttons.
void FillWindowDropDownBox()
Fill drop down box with names of canvas windows.
Base class for plot edit windows.