ROOT
v6-26
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
23
class
TGMenuBar
;
24
class
TGPopupMenu
;
25
class
TGStatusBar
;
26
class
TGVerticalFrame
;
27
class
TGHorizontalFrame
;
28
class
TGComboBox
;
29
class
TGTextBuffer
;
30
class
TGTextEntry
;
31
class
TGPictureButton
;
32
class
TGHtml
;
33
34
class
TGHtmlBrowser
:
public
TGMainFrame
{
35
36
protected
:
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
57
public
:
58
TGHtmlBrowser
(
const
char
*filename =
nullptr
,
const
TGWindow
*p =
nullptr
,
59
UInt_t
w = 900,
UInt_t
h
= 600);
60
virtual
~TGHtmlBrowser
() {}
61
62
virtual
Bool_t
ProcessMessage
(
Longptr_t
msg,
Longptr_t
parm1,
Longptr_t
);
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
ClassDef
(
TGHtmlBrowser
, 0)
// very simple html browser
75
};
76
77
#endif
78
h
#define h(i)
Definition
RSha256.hxx:106
Longptr_t
long Longptr_t
Definition
RtypesCore.h:82
Bool_t
bool Bool_t
Definition
RtypesCore.h:63
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
TGFrame.h
TGComboBox
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
TGHorizontalFrame
A composite frame that layout their children in horizontal way.
Definition
TGFrame.h:386
TGHtmlBrowser
A very simple HTML browser.
Definition
TGHtmlBrowser.h:34
TGHtmlBrowser::~TGHtmlBrowser
virtual ~TGHtmlBrowser()
Definition
TGHtmlBrowser.h:60
TGHtmlBrowser::Reload
void Reload()
Handle "Reload" navigation button.
Definition
TGHtmlBrowser.cxx:573
TGHtmlBrowser::fHtml
TGHtml * fHtml
Definition
TGHtmlBrowser.h:54
TGHtmlBrowser::CheckAnchors
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...
Definition
TGHtmlBrowser.cxx:513
TGHtmlBrowser::fURLBuf
TGTextBuffer * fURLBuf
Definition
TGHtmlBrowser.h:52
TGHtmlBrowser::MouseOver
void MouseOver(const char *)
Handle "MouseOver" TGHtml signal.
Definition
TGHtmlBrowser.cxx:590
TGHtmlBrowser::Back
void Back()
Handle "Back" navigation button.
Definition
TGHtmlBrowser.cxx:491
TGHtmlBrowser::fVerticalFrame
TGVerticalFrame * fVerticalFrame
Definition
TGHtmlBrowser.h:44
TGHtmlBrowser::fMenuHelp
TGPopupMenu * fMenuHelp
Definition
TGHtmlBrowser.h:42
TGHtmlBrowser::fNbFavorites
Int_t fNbFavorites
Definition
TGHtmlBrowser.h:55
TGHtmlBrowser::fStop
TGPictureButton * fStop
Definition
TGHtmlBrowser.h:49
TGHtmlBrowser::fMenuBar
TGMenuBar * fMenuBar
Definition
TGHtmlBrowser.h:38
TGHtmlBrowser::Selected
void Selected(const char *txt)
Open (browse) selected URL.
Definition
TGHtmlBrowser.cxx:360
TGHtmlBrowser::MouseDown
void MouseDown(const char *)
Handle "MouseDown" TGHtml signal.
Definition
TGHtmlBrowser.cxx:598
TGHtmlBrowser::fHome
TGPictureButton * fHome
Definition
TGHtmlBrowser.h:50
TGHtmlBrowser::fHorizontalFrame
TGHorizontalFrame * fHorizontalFrame
Definition
TGHtmlBrowser.h:45
TGHtmlBrowser::Clicked
void Clicked(char *uri)
Definition
TGHtmlBrowser.h:72
TGHtmlBrowser::fMenuFile
TGPopupMenu * fMenuFile
Definition
TGHtmlBrowser.h:39
TGHtmlBrowser::fBack
TGPictureButton * fBack
Definition
TGHtmlBrowser.h:46
TGHtmlBrowser::fStatusBar
TGStatusBar * fStatusBar
Definition
TGHtmlBrowser.h:43
TGHtmlBrowser::fMenuFavorites
TGPopupMenu * fMenuFavorites
Definition
TGHtmlBrowser.h:40
TGHtmlBrowser::fForward
TGPictureButton * fForward
Definition
TGHtmlBrowser.h:47
TGHtmlBrowser::ProcessMessage
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t)
Process Events.
Definition
TGHtmlBrowser.cxx:606
TGHtmlBrowser::Forward
void Forward()
Handle "Forward" navigation button.
Definition
TGHtmlBrowser.cxx:552
TGHtmlBrowser::Stop
void Stop()
Handle "Reload" navigation button.
Definition
TGHtmlBrowser.cxx:583
TGHtmlBrowser::fReload
TGPictureButton * fReload
Definition
TGHtmlBrowser.h:48
TGHtmlBrowser::fURL
TGTextEntry * fURL
Definition
TGHtmlBrowser.h:53
TGHtmlBrowser::URLChanged
void URLChanged()
URL combobox has changed.
Definition
TGHtmlBrowser.cxx:480
TGHtmlBrowser::fComboBox
TGComboBox * fComboBox
Definition
TGHtmlBrowser.h:51
TGHtmlBrowser::fMenuTools
TGPopupMenu * fMenuTools
Definition
TGHtmlBrowser.h:41
TGHtml
The ROOT HTML widget.
Definition
TGHtml.h:873
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition
TGFrame.h:398
TGMenuBar
The TGMenu.h header contains all different menu classes.
Definition
TGMenu.h:282
TGPictureButton
Yield an action as soon as it is clicked.
Definition
TGButton.h:228
TGPopupMenu
This class creates a popup menu object.
Definition
TGMenu.h:110
TGStatusBar
Provides a StatusBar widget.
Definition
TGStatusBar.h:21
TGTextBuffer
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Definition
TGTextBuffer.h:19
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition
TGTextEntry.h:24
TGVerticalFrame
A composite frame that layout their children in vertical way.
Definition
TGFrame.h:375
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
TQObject::Emit
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition
TQObject.h:164
int
unsigned int
gui
guihtml
inc
TGHtmlBrowser.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:30 (GVA Time) using Doxygen 1.9.8