00001 // @(#)root/test/rhtml/:$Id: rhtml.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Bertrand Bellenot 09/05/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 void CloseWindow(); 00063 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t); 00064 void Selected(const char *txt); 00065 void URLChanged(); 00066 void Back(); 00067 void Forward(); 00068 void Reload(); 00069 void Stop(); 00070 void MouseOver(char *); 00071 void MouseDown(char *); 00072 00073 ClassDef(TGHtmlBrowser, 0) // very simple html browser 00074 }; 00075 00076 #endif 00077