GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GRootGuiFactory.h
Go to the documentation of this file.
1#ifndef ROOT_GRootGuiFactory
2#define ROOT_GRootGuiFactory
3
4///////////////////////////////////////////////////////////////////////////
5///
6/// \class GRootGuiFactory
7///
8/// This class is a factory for ROOT GUI components. It overrides
9/// the member functions of the ABS TGuiFactory. This is necessary
10/// in order to override the native root canvas and fully take control
11/// of the users interface with objects drawn to the screen pcb.
12///
13///////////////////////////////////////////////////////////////////////////
14
15#ifndef ROOT_TGuiFactory
16#include "TGuiFactory.h"
17#endif
18
19class TApplicationImp;
20class TCanvasImp;
21class TBrowserImp;
22class TContextMenuImp;
23class TContextMenu;
24class TControlBarImp;
25class TControlBar;
26
27class GRootGuiFactory : public TGuiFactory {
28
29public:
30 static void Init();
31
32 explicit GRootGuiFactory(const char* name = "Root", const char* title = "GRUT GUI Factory");
34 GRootGuiFactory(GRootGuiFactory&&) noexcept = default;
35 GRootGuiFactory& operator=(const GRootGuiFactory&) = default;
36 GRootGuiFactory& operator=(GRootGuiFactory&&) noexcept = default;
37 ~GRootGuiFactory() = default;
38
39 TApplicationImp* CreateApplicationImp(const char* classname, int* argc, char** argv) override;
40
41 TCanvasImp* CreateCanvasImp(TCanvas* c, const char* title, UInt_t width, UInt_t height) override;
42 TCanvasImp* CreateCanvasImp(TCanvas* c, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height) override;
43
44 TBrowserImp* CreateBrowserImp(TBrowser* b, const char* title, UInt_t width, UInt_t height,
45 Option_t* opt = "") override;
46 TBrowserImp* CreateBrowserImp(TBrowser* b, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height,
47 Option_t* opt = "") override;
48
49 TContextMenuImp* CreateContextMenuImp(TContextMenu* c, const char* name, const char* title) override;
50
51 TControlBarImp* CreateControlBarImp(TControlBar* c, const char* title) override;
52 TControlBarImp* CreateControlBarImp(TControlBar* c, const char* title, Int_t x, Int_t y) override;
53
54 /// \cond CLASSIMP
55 ClassDefOverride(GRootGuiFactory, 0) // NOLINT(readability-else-after-return)
56 /// \endcond
57};
58
59#endif
GRootGuiFactory(GRootGuiFactory &&) noexcept=default
TBrowserImp * CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="") override
GRootGuiFactory(const char *name="Root", const char *title="GRUT GUI Factory")
TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height) override
TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv) override
static void Init()
GRootGuiFactory(const GRootGuiFactory &)=default
TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title) override
TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title) override