00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ROOT_TRootGuiFactory
00014 #define ROOT_TRootGuiFactory
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef ROOT_TGuiFactory
00026 #include "TGuiFactory.h"
00027 #endif
00028
00029 class TApplicationImp;
00030 class TCanvasImp;
00031 class TBrowserImp;
00032 class TContextMenuImp;
00033 class TContextMenu;
00034 class TControlBarImp;
00035 class TControlBar;
00036
00037
00038 class TRootGuiFactory : public TGuiFactory {
00039
00040 public:
00041 TRootGuiFactory(const char *name = "Root", const char *title = "ROOT GUI Factory");
00042 virtual ~TRootGuiFactory() { }
00043
00044 virtual TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv);
00045
00046 virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height);
00047 virtual TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height);
00048
00049 virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="");
00050 virtual TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="");
00051
00052 virtual TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title);
00053
00054 virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title);
00055 virtual TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y);
00056
00057 ClassDef(TRootGuiFactory,0)
00058 };
00059
00060 #endif