TGHtmlBrowser.h

Go to the documentation of this file.
00001 // @(#)root/guihtml:$Id: TGHtmlBrowser.h 27987 2009-03-30 12:35:36Z bellenot $
00002 // Author: Bertrand Bellenot   26/09/2007
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGHtmlBrowser
00013 #define ROOT_TGHtmlBrowser
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TGHtmlBrowser                                                        //
00018 //                                                                      //
00019 //////////////////////////////////////////////////////////////////////////
00020 
00021 #include "TGFrame.h"
00022 
00023 class TGMenuBar;
00024 class TGPopupMenu;
00025 class TGStatusBar;
00026 class TGVerticalFrame;
00027 class TGHorizontalFrame;
00028 class TGComboBox;
00029 class TGTextBuffer;
00030 class TGTextEntry;
00031 class TGPictureButton;
00032 class TGHtml;
00033 
00034 class TGHtmlBrowser : public TGMainFrame {
00035 
00036 protected:
00037 
00038    TGMenuBar         *fMenuBar;           // menu bar
00039    TGPopupMenu       *fMenuFile;          // "File" menu entry
00040    TGPopupMenu       *fMenuFavorites;     // "Favorites" menu entry
00041    TGPopupMenu       *fMenuTools;         // "Tools" menu entry
00042    TGPopupMenu       *fMenuHelp;          // "Help" menu entry
00043    TGStatusBar       *fStatusBar;         // status bar
00044    TGVerticalFrame   *fVerticalFrame;     // main vertical frame
00045    TGHorizontalFrame *fHorizontalFrame;   // main horizontal frame
00046    TGPictureButton   *fBack;              // "Back" picture button
00047    TGPictureButton   *fForward;           // "Forward" picture button
00048    TGPictureButton   *fReload;            // "Reload Page" picture button
00049    TGPictureButton   *fStop;              // "Stop Loading" picture button
00050    TGPictureButton   *fHome;              // "Home" picture button
00051    TGComboBox        *fComboBox;          // combo box for URLs history
00052    TGTextBuffer      *fURLBuf;            // text buffer for current URL text entry
00053    TGTextEntry       *fURL;               // current URL text entry
00054    TGHtml            *fHtml;              // main TGHtml widget
00055    Int_t              fNbFavorites;       // number of favorites in the menu
00056 
00057 public:
00058    TGHtmlBrowser(const char *filename = 0, const TGWindow *p = 0,
00059                  UInt_t w = 900, UInt_t h = 600);
00060    virtual ~TGHtmlBrowser() { ; }
00061 
00062    virtual Bool_t    ProcessMessage(Long_t msg, Long_t parm1, Long_t);
00063    void              Selected(const char *txt);
00064    void              URLChanged();
00065    void              Back();
00066    Bool_t            CheckAnchors(const char *);
00067    void              Forward();
00068    void              Reload();
00069    void              Stop();
00070    void              MouseOver(const char *);
00071    void              MouseDown(const char *);
00072    void              Clicked(char *uri) { Emit("Clicked(char *)",uri); } // *SIGNAL*
00073    
00074    ClassDef(TGHtmlBrowser, 0) // very simple html browser
00075 };
00076 
00077 #endif
00078 

Generated on Tue Jul 5 14:22:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1