Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Javier Galan
rest-framework
Commits
95e854d4
Commit
95e854d4
authored
Nov 22, 2020
by
Javier Galan
Browse files
TRestBrowser::OpenFile now supports http (although it will not check if it exists)
parent
88e2344a
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/restcore/src/TRestBrowser.cxx
View file @
95e854d4
...
...
@@ -108,7 +108,7 @@ void TRestBrowser::setButtons() {
fVFrame
->
Resize
(
300
,
200
);
// row in the tree
fEventRowLabel
=
new
TGLabel
(
fVFrame
,
"
Row
:"
);
fEventRowLabel
=
new
TGLabel
(
fVFrame
,
"
Entry
:"
);
fVFrame
->
AddFrame
(
fEventRowLabel
,
new
TGLayoutHints
(
kLHintsExpandX
|
kLHintsExpandY
));
fEventRowNumberBox
=
new
TGNumberEntry
(
fVFrame
,
fEventRow
);
...
...
@@ -273,7 +273,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t id, Int_t subid) {
}
Bool_t
TRestBrowser
::
OpenFile
(
TString
filename
)
{
if
(
TRestTools
::
fileExists
(
filename
.
Data
()))
{
if
(
filename
.
Contains
(
"http"
)
||
TRestTools
::
fileExists
(
filename
.
Data
()))
{
fInputFileName
=
filename
;
r
->
OpenInputFile
(
fInputFileName
);
TFile
*
f
=
r
->
GetInputFile
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment