JG ROOT Tools libraries  version 5.0 - august 2014
RGZoomPanel1D.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RGZoomPanel1D.hh
3  *
4  * Include file for class RGZoomPanel1D
5  */
6 //======================================================================
7 
8 #ifndef RG_ZOOM_PANEL_HH
9 #define RG_ZOOM_PANEL_HH
10 
11 #include <TGFrame.h>
12 #include <TGButton.h>
13 
14 #include "RBaseFunctions.hh"
15 
16 ///! RGZoomPanel1D widget options
18 {
19  rgZPHorizontalLayout = 0x00000000,
20  rgZPVerticalLayout = 0x00000001,
21  rgZPCompactLayout = 0x00000002
22 };
23 
24 
25 //======================================================================
26 /*! class RGZoomPanel1D
27  *
28  * Defines a set of buttons for zoom and left/right shift view (for plots).
29  * The buttons can be arranged according to the following options:
30  * - rgZPHorizontalLayout horizontal buttons layout
31  * - rgZPVerticalLayout vertical buttons layout
32  * - rgZPCompactLayout compact buttons layout
33  */
34 class RGZoomPanel1D : public TGCompositeFrame
35 {
36  //------------------------------------------------------------
37  /*! \object_doc{RGZoomPanel1D} */
39  //------------------------------------------------------------
40 
41  protected:
42 
43  TGCompositeFrame * w_zoom_frame; ///< Zoom buttons frame
44  TGCompositeFrame * w_move_frame; ///< Frames for left / right sets of buttons
45  TGCompositeFrame * w_left_frame; ///< Frame for left move buttons
46  TGCompositeFrame * w_right_frame; ///< Frame for right move buttons
47 
48  TGTextButton * w_zoom_in; ///< Zoom in button
49  TGTextButton * w_zoom_out; ///< Zoom out button
50  TGTextButton * w_left_end; ///< Move to left end button
51  TGTextButton * w_left_page; ///< Move one screen left button
52  TGTextButton * w_left_half; ///< Move half screen left button
53  TGTextButton * w_right_half; ///< Move half screen right button
54  TGTextButton * w_right_page; ///< Move one screen right button
55  TGTextButton * w_right_end; ///< Move to right end button
56 
57  //------------------------------------------------------------
58  // Constructors / affectation / destructor
59  public:
60  RGZoomPanel1D ( TGWindow *p, const UInt_t opts );
61 
62  protected:
63  RGZoomPanel1D ( const RGZoomPanel1D &original );
64 
65  public:
66  virtual ~RGZoomPanel1D ( );
67 
68  //------------------------------------------------------------
69  // Signals
70  virtual void ZoomClicked ( Int_t d ); // *SIGNAL*
71  virtual void MoveClicked ( Int_t d ); // *SIGNAL*
72 
73  //------------------------------------------------------------
74  // Slots
75 
76 
77  //------------------------------------------------------------
78  /*! For ROOT dictionary.*/
80 };
81 
82 //----------------------------------------------------------------------
83 // Inline functions
84 #include "icc/RGZoomPanel1D.icc"
85 
86 
87 //----------------------------------------------------------------------
88 #endif
TGTextButton * w_right_half
Move half screen right button.
Definition: RGZoomPanel1D.hh:53
RGZoomPanel1D(TGWindow *p, const UInt_t opts)
Definition: RGZoomPanel1D.cpp:16
virtual void ZoomClicked(Int_t d)
Definition: RGZoomPanel1D.icc:12
virtual void MoveClicked(Int_t d)
Definition: RGZoomPanel1D.icc:20
GObject(RGZoomPanel1D)
TGCompositeFrame * w_zoom_frame
Zoom buttons frame.
Definition: RGZoomPanel1D.hh:43
virtual ~RGZoomPanel1D()
Definition: RGZoomPanel1D.cpp:154
TGTextButton * w_zoom_in
Zoom in button.
Definition: RGZoomPanel1D.hh:48
TGTextButton * w_left_end
Move to left end button.
Definition: RGZoomPanel1D.hh:50
TGTextButton * w_zoom_out
Zoom out button.
Definition: RGZoomPanel1D.hh:49
RGZoomPanel1DOptions
! RGZoomPanel1D widget options
Definition: RGZoomPanel1D.hh:17
TGTextButton * w_left_half
Move half screen left button.
Definition: RGZoomPanel1D.hh:52
TGCompositeFrame * w_move_frame
Frames for left / right sets of buttons.
Definition: RGZoomPanel1D.hh:44
TGTextButton * w_right_end
Move to right end button.
Definition: RGZoomPanel1D.hh:55
TGCompositeFrame * w_left_frame
Frame for left move buttons.
Definition: RGZoomPanel1D.hh:45
ClassDef(RGZoomPanel1D, 0)
TGTextButton * w_right_page
Move one screen right button.
Definition: RGZoomPanel1D.hh:54
TGTextButton * w_left_page
Move one screen left button.
Definition: RGZoomPanel1D.hh:51
TGCompositeFrame * w_right_frame
Frame for right move buttons.
Definition: RGZoomPanel1D.hh:46
Definition: RGZoomPanel1D.hh:34