BOSS 7.0.7
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 206 of file BesAboutHelp.cxx.

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

Member Function Documentation

◆ GetPic()

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

Definition at line 249 of file BesAboutHelp.cxx.

250{
251 TString filePath = TString(getenv("BESVISLIBROOT"));
252 filePath += "/icons/";
253 filePath += file;
254
255 TASImage asImage(filePath);
256 Pixmap_t pic = asImage.GetPixmap();
257 //asImage->Draw();
258 return pic;
259}
char * file
Definition: DQA_TO_DB.cxx:15

◆ ProcessMessage()

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

Definition at line 230 of file BesAboutHelp.cxx.

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

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