BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
BesAboutHelp Class Reference

#include <BesAboutHelp.h>

+ Inheritance diagram for BesAboutHelp:

Public Member Functions

 BesAboutHelp (const TGWindow *p, const TGWindow *main)
 
virtual ~BesAboutHelp ()
 
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm, Long_t)
 
virtual Pixmap_t GetPic (const char *file)
 

Detailed Description

Definition at line 26 of file BesAboutHelp.h.

Constructor & Destructor Documentation

◆ BesAboutHelp()

BesAboutHelp::BesAboutHelp ( const TGWindow *  p,
const TGWindow *  main 
)

◆ ~BesAboutHelp()

BesAboutHelp::~BesAboutHelp ( )
virtual

Definition at line 203 of file BesAboutHelp.cxx.

203 {
204 //
205 // BesAboutHelp default destructor
206
207 fWidgets->Delete();
208 delete fWidgets;
209
210 delete fCloseBtn;
211 delete fTitle;
212 //delete fIcon;
213 delete fMain;
214 delete fAbout;
215 delete fVersion;
216 delete fDescription1;
217 delete fDescription2;
218 delete fDescription3;
219 delete fDescription4;
220 delete fTitleFrame;
221 delete fBottomFrame;
222
223}

Member Function Documentation

◆ GetPic()

Pixmap_t BesAboutHelp::GetPic ( const char *  file)
virtual

Definition at line 246 of file BesAboutHelp.cxx.

247{
248 TString filePath = TString(getenv("BESVISLIBROOT"));
249 filePath += "/icons/";
250 filePath += file;
251
252 TASImage asImage(filePath);
253 Pixmap_t pic = asImage.GetPixmap();
254 //asImage->Draw();
255 return pic;
256}

◆ ProcessMessage()

Bool_t BesAboutHelp::ProcessMessage ( Long_t  msg,
Long_t  parm,
Long_t   
)
virtual

Definition at line 227 of file BesAboutHelp.cxx.

227 {
228 //
229 // Handle message send to the BesAboutHelp object
230 switch ( GET_MSG(msg) ) {
231 case kC_COMMAND:
232 switch ( GET_SUBMSG(msg) ) {
233 case kCM_BUTTON:
234 delete this;
235 break;
236 default:
237 break;
238 }
239 break;
240 default:
241 break;
242 }
243 return kTRUE;
244}

The documentation for this class was generated from the following files: