#include <Fireworks/Core/interface/CmsShowHelpPopup.h>
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 |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 30 of file CmsShowHelpPopup.h.
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, UserOptions_cff::filePath, m_helpHtml, fireworks::setPath(), and runonSM::text.
: TGTransientFrame(gClient->GetDefaultRoot(), p, w, h), m_helpHtml(new TGHtml(this, w, h)) { AddFrame(m_helpHtml, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY)); SetWindowName(windowname.c_str()); TGText text; TString filePath = "data/" + filename; text.Load(filePath.Data()); TString dirPath = "data/"; fireworks::setPath(dirPath); m_helpHtml->SetBaseUri(dirPath.Data()); // printf("%s ... \n", m_helpHtml->GetBaseUri()); m_helpHtml->ParseText((char *)text.AsString().Data()); MapSubwindows(); m_helpHtml->Layout(); }
CmsShowHelpPopup::~CmsShowHelpPopup | ( | ) | [virtual] |
virtual void CmsShowHelpPopup::CloseWindow | ( | ) | [inline, virtual] |
Definition at line 36 of file CmsShowHelpPopup.h.
{ UnmapWindow(); }
TGHtml* CmsShowHelpPopup::m_helpHtml [protected] |
Definition at line 40 of file CmsShowHelpPopup.h.
Referenced by CmsShowHelpPopup(), and ~CmsShowHelpPopup().