Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TRootGuiFactory.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gui:$Id$
0002 // Author: Fons Rademakers   15/01/98
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 
0013 #ifndef ROOT_TRootGuiFactory
0014 #define ROOT_TRootGuiFactory
0015 
0016 
0017 #include "TGuiFactory.h"
0018 
0019 class TApplicationImp;
0020 class TCanvasImp;
0021 class TBrowserImp;
0022 class TContextMenuImp;
0023 class TContextMenu;
0024 class TControlBarImp;
0025 class TControlBar;
0026 
0027 class TRootGuiFactory : public TGuiFactory {
0028 
0029 protected:
0030    void ShowWebCanvasWarning();
0031 
0032 public:
0033    TRootGuiFactory(const char *name = "Root", const char *title = "ROOT GUI Factory");
0034    ~TRootGuiFactory() override {}
0035 
0036    TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv) override;
0037 
0038    TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height) override;
0039    TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height) override;
0040 
0041    TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="") override;
0042    TBrowserImp *CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt="") override;
0043 
0044    TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title) override;
0045 
0046    TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title) override;
0047    TControlBarImp *CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y) override;
0048 
0049    ClassDefOverride(TRootGuiFactory,0)  //Factory for ROOT GUI components
0050 };
0051 
0052 #endif