// @(#)root/guihtml:$Id$
// Author: Bertrand Bellenot   26/09/2007

/*************************************************************************
 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGHtmlBrowser
#define ROOT_TGHtmlBrowser

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGHtmlBrowser                                                        //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TGFrame.h"

class TGMenuBar;
class TGPopupMenu;
class TGStatusBar;
class TGVerticalFrame;
class TGHorizontalFrame;
class TGComboBox;
class TGTextBuffer;
class TGTextEntry;
class TGPictureButton;
class TGHtml;

class TGHtmlBrowser : public TGMainFrame {

protected:

   TGMenuBar         *fMenuBar;           // menu bar
   TGPopupMenu       *fMenuFile;          // "File" menu entry
   TGPopupMenu       *fMenuFavorites;     // "Favorites" menu entry
   TGPopupMenu       *fMenuTools;         // "Tools" menu entry
   TGPopupMenu       *fMenuHelp;          // "Help" menu entry
   TGStatusBar       *fStatusBar;         // status bar
   TGVerticalFrame   *fVerticalFrame;     // main vertical frame
   TGHorizontalFrame *fHorizontalFrame;   // main horizontal frame
   TGPictureButton   *fBack;              // "Back" picture button
   TGPictureButton   *fForward;           // "Forward" picture button
   TGPictureButton   *fReload;            // "Reload Page" picture button
   TGPictureButton   *fStop;              // "Stop Loading" picture button
   TGPictureButton   *fHome;              // "Home" picture button
   TGComboBox        *fComboBox;          // combo box for URLs history
   TGTextBuffer      *fURLBuf;            // text buffer for current URL text entry
   TGTextEntry       *fURL;               // current URL text entry
   TGHtml            *fHtml;              // main TGHtml widget
   Int_t              fNbFavorites;       // number of favorites in the menu

public:
   TGHtmlBrowser(const char *filename = 0, const TGWindow *p = 0,
                 UInt_t w = 900, UInt_t h = 600);
   virtual ~TGHtmlBrowser() { ; }

   virtual Bool_t    ProcessMessage(Long_t msg, Long_t parm1, Long_t);
   void              Selected(const char *txt);
   void              URLChanged();
   void              Back();
   Bool_t            CheckAnchors(const char *);
   void              Forward();
   void              Reload();
   void              Stop();
   void              MouseOver(const char *);
   void              MouseDown(const char *);
   void              Clicked(char *uri) { Emit("Clicked(char *)",uri); } // *SIGNAL*

   ClassDef(TGHtmlBrowser, 0) // very simple html browser
};

#endif

 TGHtmlBrowser.h:1
 TGHtmlBrowser.h:2
 TGHtmlBrowser.h:3
 TGHtmlBrowser.h:4
 TGHtmlBrowser.h:5
 TGHtmlBrowser.h:6
 TGHtmlBrowser.h:7
 TGHtmlBrowser.h:8
 TGHtmlBrowser.h:9
 TGHtmlBrowser.h:10
 TGHtmlBrowser.h:11
 TGHtmlBrowser.h:12
 TGHtmlBrowser.h:13
 TGHtmlBrowser.h:14
 TGHtmlBrowser.h:15
 TGHtmlBrowser.h:16
 TGHtmlBrowser.h:17
 TGHtmlBrowser.h:18
 TGHtmlBrowser.h:19
 TGHtmlBrowser.h:20
 TGHtmlBrowser.h:21
 TGHtmlBrowser.h:22
 TGHtmlBrowser.h:23
 TGHtmlBrowser.h:24
 TGHtmlBrowser.h:25
 TGHtmlBrowser.h:26
 TGHtmlBrowser.h:27
 TGHtmlBrowser.h:28
 TGHtmlBrowser.h:29
 TGHtmlBrowser.h:30
 TGHtmlBrowser.h:31
 TGHtmlBrowser.h:32
 TGHtmlBrowser.h:33
 TGHtmlBrowser.h:34
 TGHtmlBrowser.h:35
 TGHtmlBrowser.h:36
 TGHtmlBrowser.h:37
 TGHtmlBrowser.h:38
 TGHtmlBrowser.h:39
 TGHtmlBrowser.h:40
 TGHtmlBrowser.h:41
 TGHtmlBrowser.h:42
 TGHtmlBrowser.h:43
 TGHtmlBrowser.h:44
 TGHtmlBrowser.h:45
 TGHtmlBrowser.h:46
 TGHtmlBrowser.h:47
 TGHtmlBrowser.h:48
 TGHtmlBrowser.h:49
 TGHtmlBrowser.h:50
 TGHtmlBrowser.h:51
 TGHtmlBrowser.h:52
 TGHtmlBrowser.h:53
 TGHtmlBrowser.h:54
 TGHtmlBrowser.h:55
 TGHtmlBrowser.h:56
 TGHtmlBrowser.h:57
 TGHtmlBrowser.h:58
 TGHtmlBrowser.h:59
 TGHtmlBrowser.h:60
 TGHtmlBrowser.h:61
 TGHtmlBrowser.h:62
 TGHtmlBrowser.h:63
 TGHtmlBrowser.h:64
 TGHtmlBrowser.h:65
 TGHtmlBrowser.h:66
 TGHtmlBrowser.h:67
 TGHtmlBrowser.h:68
 TGHtmlBrowser.h:69
 TGHtmlBrowser.h:70
 TGHtmlBrowser.h:71
 TGHtmlBrowser.h:72
 TGHtmlBrowser.h:73
 TGHtmlBrowser.h:74
 TGHtmlBrowser.h:75
 TGHtmlBrowser.h:76
 TGHtmlBrowser.h:77
 TGHtmlBrowser.h:78