CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
CmsShowHelpPopup Class Reference

#include <Fireworks/Core/interface/CmsShowHelpPopup.h>

Inheritance diagram for CmsShowHelpPopup:

Public Member Functions

void CloseWindow () override
 
 CmsShowHelpPopup (const std::string &filename, const std::string &windowname, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
 
 ~CmsShowHelpPopup () override
 

Protected Attributes

TGHtml * m_helpHtml
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 29 of file CmsShowHelpPopup.h.

Constructor & Destructor Documentation

◆ CmsShowHelpPopup()

CmsShowHelpPopup::CmsShowHelpPopup ( const std::string &  filename,
const std::string &  windowname,
const TGWindow *  p = nullptr,
UInt_t  w = 1,
UInt_t  h = 1 
)

Definition at line 10 of file CmsShowHelpPopup.cc.

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 }

References corrVsCorr::filename, dt4ml_dqm_sourceclient-live_cfg::filePath, m_helpHtml, fireworks::setPath(), and runonSM::text.

◆ ~CmsShowHelpPopup()

CmsShowHelpPopup::~CmsShowHelpPopup ( )
override

Definition at line 31 of file CmsShowHelpPopup.cc.

31 { delete m_helpHtml; }

References m_helpHtml.

Member Function Documentation

◆ CloseWindow()

void CmsShowHelpPopup::CloseWindow ( )
inlineoverride

Definition at line 37 of file CmsShowHelpPopup.h.

37 { UnmapWindow(); }

Member Data Documentation

◆ m_helpHtml

TGHtml* CmsShowHelpPopup::m_helpHtml
protected

Definition at line 40 of file CmsShowHelpPopup.h.

Referenced by CmsShowHelpPopup(), and ~CmsShowHelpPopup().

h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
w
const double w
Definition: UKUtility.cc:23
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
dt4ml_dqm_sourceclient-live_cfg.filePath
filePath
CUSTOMIZE FOR ML.
Definition: dt4ml_dqm_sourceclient-live_cfg.py:45
h
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CmsShowHelpPopup::m_helpHtml
TGHtml * m_helpHtml
Definition: CmsShowHelpPopup.h:40
runonSM.text
text
Definition: runonSM.py:43
fireworks::setPath
void setPath(TString &v)
Definition: fwPaths.cc:15