JG ROOT Tools libraries  version 5.0 - august 2014
RGTestWidget.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RGTestWidget.hh
3  *
4  * Include file for class RGTestWidget
5  */
6 //======================================================================
7 
8 #ifndef RG_TEST_WIDGET_HH
9 #define RG_TEST_WIDGET_HH
10 
11 #include <TGFrame.h>
12 #include <TGLabel.h>
13 #include <TGButton.h>
14 
15 #include "RBaseFunctions.hh"
16 
17 //======================================================================
18 /*! \class RGTestWidget
19  *
20  * Class for widget tests: it creates a request window with the widget
21  * to be tested.
22  */
23 class RGTestWidget : public TGTransientFrame
24 {
25  //------------------------------------------------------------
26  /*! \object_doc{RGTestWidget} */
28  //------------------------------------------------------------
29 
30  protected:
31  TGFrame *w_test; ///< Pointer to widget to be tested
32 
33  //------------------------------------------------------------
34  // Constructors / affectation / destructor
35  public:
36  RGTestWidget ( const TGWindow * parent,
37  const TGWindow * main,
38  TGFrame * widget = NULL,
39  const UInt_t layout = kLHintsExpandX | kLHintsExpandY );
40 
41  protected:
42  RGTestWidget ( const RGTestWidget & req );
43 
44  public:
45  virtual ~RGTestWidget();
46 
47  //------------------------------------------------------------
48  protected:
49  // setting widget to test
50  virtual void SetTestedWidget ( TGFrame * wid, const UInt_t layout = kLHintsExpandX | kLHintsExpandY );
51 
52  //------------------------------------------------------------
53  public:
54  /*! Get the tested widget pointer.*/
55  TGFrame * GetTestedWidget ( )
56  { return (w_test); }
57 
58  // request start
59  virtual void Request ( );
60 
61  // Slot called by close window
62  virtual void Quit ( );
63 
64  //------------------------------------------------------------
65  /*! For ROOT dictionary.*/
67 };
68 
69 //======================================================================
70 #endif
71 
virtual void Request()
Definition: RGTestWidget.cpp:75
ClassDef(RGTestWidget, 0)
RGTestWidget(const TGWindow *parent, const TGWindow *main, TGFrame *widget=NULL, const UInt_t layout=kLHintsExpandX|kLHintsExpandY)
Definition: RGTestWidget.cpp:16
TGFrame * w_test
Pointer to widget to be tested.
Definition: RGTestWidget.hh:31
virtual void Quit()
Definition: RGTestWidget.cpp:99
TGFrame * GetTestedWidget()
Definition: RGTestWidget.hh:55
Definition: RGTestWidget.hh:23
GObject(RGTestWidget)
virtual ~RGTestWidget()
Definition: RGTestWidget.cpp:42
virtual void SetTestedWidget(TGFrame *wid, const UInt_t layout=kLHintsExpandX|kLHintsExpandY)
Definition: RGTestWidget.cpp:54