CMS 3D CMS Logo

Public Member Functions | Protected Attributes

CmsShowHelpPopup Class Reference

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

List of all members.

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 30 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, 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]

Definition at line 35 of file CmsShowHelpPopup.cc.

References m_helpHtml.

{
   delete m_helpHtml;
}

Member Function Documentation

virtual void CmsShowHelpPopup::CloseWindow ( ) [inline, virtual]

Definition at line 36 of file CmsShowHelpPopup.h.

{ UnmapWindow(); }

Member Data Documentation

TGHtml* CmsShowHelpPopup::m_helpHtml [protected]

Definition at line 40 of file CmsShowHelpPopup.h.

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