Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
(
11
const
std::string
&
filename
,
const
std::string
&windowname,
const
TGWindow *
p
, UInt_t
w
, UInt_t
h
)
12
: TGTransientFrame(gClient->GetDefaultRoot(), p, w, h), m_helpHtml(new TGHtml(this, w, h)) {
13
AddFrame(
m_helpHtml
,
new
TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY));
14
SetWindowName(windowname.c_str());
15
16
TString dirPath =
"data/"
;
17
fireworks::setPath
(dirPath);
18
m_helpHtml
->SetBaseUri(dirPath.Data());
19
// printf("%s ... %s\n", m_helpHtml->GetBaseUri(), dirPath.Data());
20
21
TGText
text
;
22
TString
filePath
= dirPath +
filename
;
23
text.Load(filePath.Data());
24
25
m_helpHtml
->ParseText((
char
*)text.AsString().Data());
26
27
MapSubwindows();
28
m_helpHtml
->Layout();
29
}
30
31
CmsShowHelpPopup::~CmsShowHelpPopup
() {
delete
m_helpHtml
; }
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
w
const double w
Definition:
UKUtility.cc:23
fwPaths.h
CmsShowHelpPopup::m_helpHtml
TGHtml * m_helpHtml
Definition:
CmsShowHelpPopup.h:40
dt4ml_dqm_sourceclient-live_cfg.filePath
string filePath
DQM Environment
Definition:
dt4ml_dqm_sourceclient-live_cfg.py:46
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
runonSM.text
tuple text
Definition:
runonSM.py:43
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
CmsShowHelpPopup::~CmsShowHelpPopup
~CmsShowHelpPopup() override
Definition:
CmsShowHelpPopup.cc:31
CmsShowHelpPopup.h
lut2db_cfg.filename
tuple filename
Definition:
lut2db_cfg.py:20
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
fireworks::setPath
void setPath(TString &v)
Definition:
fwPaths.cc:15
Generated for CMSSW Reference Manual by
1.8.5