64 "HTML files",
"*.htm*",
70"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd\"> ",
71"<HTML><HEAD><TITLE>RHTML cannot display the webpage</TITLE> ",
72"<META http-equiv=Content-Type content=\"text/html; charset=UTF-8\"></HEAD> ",
74"<TABLE cellSpacing=0 cellPadding=0 width=730 border=0> ",
77" <TD id=infoIconAlign vAlign=top align=left width=60 rowSpan=2> ",
78" <IMG src=\"info.gif\"> ",
80" <TD id=mainTitleAlign vAlign=center align=left width=*> ",
81" <H1 id=mainTitle>RHTML cannot display the webpage</H1></TD></TR> ",
83" <TD class=errorCodeAndDivider id=errorCodeAlign align=right> ",
84" <DIV class=divider></DIV></TD></TR> ",
89" <TD id=MostLikelyAlign vAlign=top align=left> ",
90" <H3 id=likelyCauses>Most likely causes:</H3> ",
92" <LI id=causeNotConnected>You are not connected to the Internet. ",
93" <LI id=causeSiteProblem>The website is encountering problems. ",
94" <LI id=causeErrorInAddress>There might be a typing error in the address. ",
95" <LI id=causeOtherError> ",
96" </LI></UL></TD></TR> ",
98" <TD id=infoBlockAlign vAlign=top align=right> </TD> ",
99" <TD id=moreInformationAlign vAlign=center align=left> ",
104" <TD vAlign=top><SPAN id=moreInfoContainer></SPAN><ID ",
105" id=moreInformation>More information</ID> ",
106" </TD></TR></TBODY></TABLE></H4> ",
107" <DIV class=infoBlock id=infoBlockID> ",
108" <P><ID id=errorExpl1>This problem can be caused by a variety of issues, ",
111" <LI id=errorExpl2>Internet connectivity has been lost. ",
112" <LI id=errorExpl3>The website is temporarily unavailable. ",
113" <LI id=errorExpl4>The Domain Name Server (DNS) is not reachable. ",
114" <LI id=errorExpl5>The Domain Name Server (DNS) does not have a listing ",
115" for the website's domain. ",
117" <P></P></DIV></TD></TR></TBODY></TABLE></BODY></HTML> ",
133 gClient->GetPicture(
"ed_open.png"));
135 gClient->GetPicture(
"ed_save.png"));
139 gClient->GetPicture(
"bld_exit.png"));
144 gClient->GetPicture(
"bld_plus.png"));
147 gClient->GetPicture(
"htmlfile.gif"));
152 gClient->GetPicture(
"ed_delete.png"));
175 fBack->
Connect(
"Clicked()",
"TGHtmlBrowser",
this,
"Back()");
193 fStop->
Connect(
"Clicked()",
"TGHtmlBrowser",
this,
"Stop()");
199 fHome->
Connect(
"Clicked()",
"TGHtmlBrowser",
this,
"Selected(=\"http://root.cern\")");
207 fURL->
Connect(
"ReturnPressed()",
"TGHtmlBrowser",
this,
"URLChanged()");
214 fComboBox->
Connect(
"Selected(char *)",
"TGHtmlBrowser",
this,
"Selected(char *)");
228 Int_t partsusBar[] = {75,25};
232 fHtml->
Connect(
"MouseOver(const char *)",
"TGHtmlBrowser",
this,
"MouseOver(const char *)");
233 fHtml->
Connect(
"MouseDown(const char *)",
"TGHtmlBrowser",
this,
"MouseDown(const char *)");
263 msg +=
"User-Agent: ROOT-TWebFile/1.1";
274 ::Error(
"ReadSize",
"library compiled without SSL, https not supported");
289 if (s->
RecvRaw(buf, 4096) == -1) {
310 static char *buf = 0;
334 ::Error(
"ReadRemote",
"library compiled without SSL, https not supported");
381 gROOT->ProcessLine(
Form(
"TFile::Open(\"%s\");", surl.
Data()));
383 gROOT->RefreshBrowsers();
403 snprintf(imgHtml, 1000,
"<IMG src=\"%s\"> ", surl.
Data());
446 buf = (
char *)
calloc(4096,
sizeof(
char));
448 while (fgets(buf, 4096,
f)) {
527 short1 = surl(0, idx);
529 short2 = actual(0, idy);
531 if (short1 == short2) {
561 if (index < fComboBox->GetNumberOfEntries()) {
659 gClient->GetPicture(
"htmlfile.gif"));
687 if (parm1 < 1000)
break;
690 const char *shortcut = entry->
GetName();
R__EXTERN const char gHelpAbout[]
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Ssiz_t ReadSize(const char *url)
Read (open) remote files.
static const char * gHtmlFTypes[]
static char * ReadRemote(const char *url)
Read (open) remote files.
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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
Using a TBrowser one can browse all ROOT objects.
const TGWindow * GetRoot() const
Returns current root (i.e.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual TGLBEntry * GetSelectedEntry() const
virtual TGTextEntry * GetTextEntry() const
virtual void AddEntry(TGString *s, Int_t id)
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
virtual TGLBEntry * FindEntry(const char *s) const
Find entry by name.
virtual Int_t GetNumberOfEntries() const
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
This class creates a file selection dialog.
char * fFilename
selected file name
const char ** fFileTypes
file types used to filter selectable files
char * fIniDir
on input: initial directory, on output: new directory
void SetIniDir(const char *inidir)
Set directory name.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
void MapWindow() override
map window
A composite frame that layout their children in horizontal way.
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...
void MouseOver(const char *)
Handle "MouseOver" TGHtml signal.
void Back()
Handle "Back" navigation button.
TGVerticalFrame * fVerticalFrame
TGHtmlBrowser(const char *filename=nullptr, const TGWindow *p=nullptr, UInt_t w=900, UInt_t h=600)
TGHtmlBrowser constructor.
void Selected(const char *txt)
Open (browse) selected URL.
void MouseDown(const char *)
Handle "MouseDown" TGHtml signal.
TGHorizontalFrame * fHorizontalFrame
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override
Process Events.
TGPopupMenu * fMenuFavorites
TGPictureButton * fForward
void Forward()
Handle "Forward" navigation button.
void Stop()
Handle "Reload" navigation button.
TGPictureButton * fReload
void URLChanged()
URL combobox has changed.
int GotoAnchor(const char *name)
Go to anchor position.
int ParseText(char *text, const char *index=nullptr)
Appends (or insert at the specified position) the given HTML text to the end of any HTML text that ma...
void SetBaseUri(const char *uri)
Sets base URI.
const char * GetBaseUri() const
void Clear(Option_t *="") override
Erase all HTML from this widget and clear the screen.
const char * GetText() const
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
virtual void CloseWindow()
Close and delete main frame.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
TGClient * fClient
Connection to display server.
Provides a StatusBar widget.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
TGTextBuffer * GetBuffer() const
const char * GetText() const
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
Text string listbox entries.
const char * GetTitle() const override
Returns title of object.
A TGText is a multi line text buffer.
Bool_t Save(const char *fn)
Save text buffer to file fn.
A composite frame that layout their children in vertical way.
void Layout() override
layout view
virtual void ScrollToPosition(TGLongPosition newPos)
Scroll the canvas to pos.
ROOT GUI Window base class.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
A TRootHelpDialog is used to display help text (or any text in a dialog window).
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
void Popup()
Show help dialog.
virtual Int_t RecvRaw(void *buffer, Int_t length, ESendRecvOptions opt=kDefault)
Receive a raw buffer of specified length bytes.
virtual Int_t SendRaw(const void *buffer, Int_t length, ESendRecvOptions opt=kDefault)
Send a raw buffer of specified length.
virtual Bool_t IsValid() const
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
Ssiz_t Last(char c) const
Find last occurrence of a character c.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Prepend(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
This class represents a WWW compatible URL.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
const char * GetFile() const
const char * GetHost() const
const char * GetProtocol() const