Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#)root/guihtml:$Id$
0002 // Author: Bertrand Bellenot   26/09/2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2021, 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 #ifndef ROOT_TGHtmlBrowser
0013 #define ROOT_TGHtmlBrowser
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // TGHtmlBrowser                                                        //
0018 //                                                                      //
0019 //////////////////////////////////////////////////////////////////////////
0020 
0021 #include "TGFrame.h"
0022 
0023 class TGMenuBar;
0024 class TGPopupMenu;
0025 class TGStatusBar;
0026 class TGVerticalFrame;
0027 class TGHorizontalFrame;
0028 class TGComboBox;
0029 class TGTextBuffer;
0030 class TGTextEntry;
0031 class TGPictureButton;
0032 class TGHtml;
0033 
0034 class TGHtmlBrowser : public TGMainFrame {
0035 
0036 protected:
0037 
0038    TGMenuBar         *fMenuBar;           // menu bar
0039    TGPopupMenu       *fMenuFile;          // "File" menu entry
0040    TGPopupMenu       *fMenuFavorites;     // "Favorites" menu entry
0041    TGPopupMenu       *fMenuTools;         // "Tools" menu entry
0042    TGPopupMenu       *fMenuHelp;          // "Help" menu entry
0043    TGStatusBar       *fStatusBar;         // status bar
0044    TGVerticalFrame   *fVerticalFrame;     // main vertical frame
0045    TGHorizontalFrame *fHorizontalFrame;   // main horizontal frame
0046    TGPictureButton   *fBack;              // "Back" picture button
0047    TGPictureButton   *fForward;           // "Forward" picture button
0048    TGPictureButton   *fReload;            // "Reload Page" picture button
0049    TGPictureButton   *fStop;              // "Stop Loading" picture button
0050    TGPictureButton   *fHome;              // "Home" picture button
0051    TGComboBox        *fComboBox;          // combo box for URLs history
0052    TGTextBuffer      *fURLBuf;            // text buffer for current URL text entry
0053    TGTextEntry       *fURL;               // current URL text entry
0054    TGHtml            *fHtml;              // main TGHtml widget
0055    Int_t              fNbFavorites;       // number of favorites in the menu
0056 
0057 public:
0058    TGHtmlBrowser(const char *filename = nullptr, const TGWindow *p = nullptr,
0059                  UInt_t w = 900, UInt_t h = 600);
0060    ~TGHtmlBrowser() override {}
0061 
0062    Bool_t    ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override;
0063    void              Selected(const char *txt);
0064    void              URLChanged();
0065    void              Back();
0066    Bool_t            CheckAnchors(const char *);
0067    void              Forward();
0068    void              Reload();
0069    void              Stop();
0070    void              MouseOver(const char *);
0071    void              MouseDown(const char *);
0072    void              Clicked(char *uri) { Emit("Clicked(char *)",uri); } // *SIGNAL*
0073 
0074    ClassDefOverride(TGHtmlBrowser, 0) // very simple html browser
0075 };
0076 
0077 #endif
0078