GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GRootGuiFactory.h
Go to the documentation of this file.
1 
2 #ifndef ROOT_GRootGuiFactory
3 #define ROOT_GRootGuiFactory
4 
6 // //
7 // GRootGuiFactory //
8 // //
9 // This class is a factory for ROOT GUI components. It overrides //
10 // the member functions of the ABS TGuiFactory. This is necessary //
11 // in order to override the native root canvas and fully take control //
12 // of the users interface with objects drawn to the screen pcb. //
13 // //
15 
16 #ifndef ROOT_TGuiFactory
17 #include "TGuiFactory.h"
18 #endif
19 
20 class TApplicationImp;
21 class TCanvasImp;
22 class TBrowserImp;
23 class TContextMenuImp;
24 class TContextMenu;
25 class TControlBarImp;
26 class TControlBar;
27 
28 
29 class GRootGuiFactory : public TGuiFactory {
30 
31 public:
32  static void Init();
33 
34  GRootGuiFactory(const char *name = "Root", const char *title = "GRUT GUI Factory");
35  virtual ~GRootGuiFactory() { }
36 
37  virtual TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv);
38 
39  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
40  virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
41 
42  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="");
43  virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="");
44 
45  virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
46 
47  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
48  virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
49 
50  ClassDef(GRootGuiFactory,0) //Factory for ROOT GUI components
51 };
52 
53 #endif