CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

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 ( const std::string &  filename,
const std::string &  windowname,
const TGWindow *  p = 0,
UInt_t  w = 1,
UInt_t  h = 1 
)

Definition at line 10 of file CmsShowHelpPopup.cc.

References lut2db_cfg::filename, m_helpHtml, fireworks::setPath(), and runonSM::text.

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 }
tuple text
Definition: runonSM.py:42
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
tuple filename
Definition: lut2db_cfg.py:20
T w() const
void setPath(TString &v)
Definition: fwPaths.cc:15
CmsShowHelpPopup::~CmsShowHelpPopup ( )
virtual

Definition at line 35 of file CmsShowHelpPopup.cc.

References m_helpHtml.

36 {
37  delete m_helpHtml;
38 }

Member Function Documentation

virtual void CmsShowHelpPopup::CloseWindow ( )
inlinevirtual

Definition at line 35 of file CmsShowHelpPopup.h.

35 { UnmapWindow(); }

Member Data Documentation

TGHtml* CmsShowHelpPopup::m_helpHtml
protected

Definition at line 39 of file CmsShowHelpPopup.h.

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