Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGHtmlBrowser.h
Go to the documentation of this file.
1// @(#)root/guihtml:$Id$
2// Author: Bertrand Bellenot 26/09/2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGHtmlBrowser
13#define ROOT_TGHtmlBrowser
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TGHtmlBrowser //
18// //
19//////////////////////////////////////////////////////////////////////////
20
21#include "TGFrame.h"
22
23class TGMenuBar;
24class TGPopupMenu;
25class TGStatusBar;
26class TGVerticalFrame;
28class TGComboBox;
29class TGTextBuffer;
30class TGTextEntry;
31class TGPictureButton;
32class TGHtml;
33
34class TGHtmlBrowser : public TGMainFrame {
35
36protected:
37
38 TGMenuBar *fMenuBar; // menu bar
39 TGPopupMenu *fMenuFile; // "File" menu entry
40 TGPopupMenu *fMenuFavorites; // "Favorites" menu entry
41 TGPopupMenu *fMenuTools; // "Tools" menu entry
42 TGPopupMenu *fMenuHelp; // "Help" menu entry
43 TGStatusBar *fStatusBar; // status bar
44 TGVerticalFrame *fVerticalFrame; // main vertical frame
45 TGHorizontalFrame *fHorizontalFrame; // main horizontal frame
46 TGPictureButton *fBack; // "Back" picture button
47 TGPictureButton *fForward; // "Forward" picture button
48 TGPictureButton *fReload; // "Reload Page" picture button
49 TGPictureButton *fStop; // "Stop Loading" picture button
50 TGPictureButton *fHome; // "Home" picture button
51 TGComboBox *fComboBox; // combo box for URLs history
52 TGTextBuffer *fURLBuf; // text buffer for current URL text entry
53 TGTextEntry *fURL; // current URL text entry
54 TGHtml *fHtml; // main TGHtml widget
55 Int_t fNbFavorites; // number of favorites in the menu
56
57public:
58 TGHtmlBrowser(const char *filename = nullptr, const TGWindow *p = nullptr,
59 UInt_t w = 900, UInt_t h = 600);
60 ~TGHtmlBrowser() override {}
61
63 void Selected(const char *txt);
64 void URLChanged();
65 void Back();
66 Bool_t CheckAnchors(const char *);
67 void Forward();
68 void Reload();
69 void Stop();
70 void MouseOver(const char *);
71 void MouseDown(const char *);
72 void Clicked(char *uri) { Emit("Clicked(char *)",uri); } // *SIGNAL*
73
74 ClassDefOverride(TGHtmlBrowser, 0) // very simple html browser
75};
76
77#endif
78
#define h(i)
Definition RSha256.hxx:106
bool Bool_t
Definition RtypesCore.h:63
long Longptr_t
Definition RtypesCore.h:82
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition TGComboBox.h:47
A composite frame that layout their children in horizontal way.
Definition TGFrame.h:385
A very simple HTML browser.
void Reload()
Handle "Reload" navigation button.
Bool_t CheckAnchors(const char *)
Check if we just change position in the page (using anchor) and return kTRUE if any anchor has been f...
TGTextBuffer * fURLBuf
void MouseOver(const char *)
Handle "MouseOver" TGHtml signal.
void Back()
Handle "Back" navigation button.
TGVerticalFrame * fVerticalFrame
TGPopupMenu * fMenuHelp
TGPictureButton * fStop
TGMenuBar * fMenuBar
void Selected(const char *txt)
Open (browse) selected URL.
void MouseDown(const char *)
Handle "MouseDown" TGHtml signal.
TGPictureButton * fHome
TGHorizontalFrame * fHorizontalFrame
void Clicked(char *uri)
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override
Process Events.
TGPopupMenu * fMenuFile
TGPictureButton * fBack
TGStatusBar * fStatusBar
TGPopupMenu * fMenuFavorites
TGPictureButton * fForward
void Forward()
Handle "Forward" navigation button.
void Stop()
Handle "Reload" navigation button.
~TGHtmlBrowser() override
TGPictureButton * fReload
TGTextEntry * fURL
void URLChanged()
URL combobox has changed.
TGComboBox * fComboBox
TGPopupMenu * fMenuTools
The ROOT HTML widget.
Definition TGHtml.h:873
Defines top level windows that interact with the system Window Manager.
Definition TGFrame.h:397
The TGMenu.h header contains all different menu classes.
Definition TGMenu.h:282
Yield an action as soon as it is clicked.
Definition TGButton.h:228
This class creates a popup menu object.
Definition TGMenu.h:110
Provides a StatusBar widget.
Definition TGStatusBar.h:21
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
A composite frame that layout their children in vertical way.
Definition TGFrame.h:374
ROOT GUI Window base class.
Definition TGWindow.h:23
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition TQObject.h:164