Main Page
Namespaces
Classes
Package Documentation
Fireworks
Core
src
CmsShowHelpPopup.cc
Go to the documentation of this file.
1
#include <stdexcept>
2
#include <cassert>
3
#include "TGClient.h"
4
#include "TGHtml.h"
5
#include "TGText.h"
6
#include "TSystem.h"
7
#include "
Fireworks/Core/interface/CmsShowHelpPopup.h
"
8
#include "
Fireworks/Core/interface/fwPaths.h
"
9
10
CmsShowHelpPopup::CmsShowHelpPopup
(
const
std::string
&
filename
,
11
const
std::string
&windowname,
12
const
TGWindow*
p
, UInt_t
w
, UInt_t
h
)
13
: TGTransientFrame(gClient->GetDefaultRoot(), p, w, h),
14
m_helpHtml(new TGHtml(this, w, h))
15
{
16
AddFrame(
m_helpHtml
,
new
TGLayoutHints(kLHintsTop | kLHintsLeft |
17
kLHintsExpandX | kLHintsExpandY));
18
SetWindowName(windowname.c_str());
19
20
TString dirPath =
"data/"
;
21
fireworks::setPath
(dirPath);
22
m_helpHtml
->SetBaseUri(dirPath.Data());
23
// printf("%s ... %s\n", m_helpHtml->GetBaseUri(), dirPath.Data());
24
25
TGText
text
;
26
TString filePath = dirPath +
filename
;
27
text.Load(filePath.Data());
28
29
m_helpHtml
->ParseText((
char
*)text.AsString().Data());
30
31
MapSubwindows();
32
m_helpHtml
->Layout();
33
}
34
35
CmsShowHelpPopup::~CmsShowHelpPopup
()
36
{
37
delete
m_helpHtml
;
38
}
CmsShowHelpPopup::CmsShowHelpPopup
CmsShowHelpPopup(const std::string &filename, const std::string &windowname, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
Definition:
CmsShowHelpPopup.cc:10
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
w
const double w
Definition:
UKUtility.cc:23
fwPaths.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
h
Definition:
CSCDQM_HistoNames.h:23
CmsShowHelpPopup::m_helpHtml
TGHtml * m_helpHtml
Definition:
CmsShowHelpPopup.h:39
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:121
RecoTauValidation_cfi.text
text
Definition:
RecoTauValidation_cfi.py:334
CmsShowHelpPopup::~CmsShowHelpPopup
~CmsShowHelpPopup() override
Definition:
CmsShowHelpPopup.cc:35
CmsShowHelpPopup.h
fireworks::setPath
void setPath(TString &v)
Definition:
fwPaths.cc:15
Generated for CMSSW Reference Manual by
1.8.11