BOSS 7.0.2
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)
 
 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

Constructor & Destructor Documentation

◆ BesAboutHelp() [1/2]

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

◆ ~BesAboutHelp() [1/2]

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}

◆ BesAboutHelp() [2/2]

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

◆ ~BesAboutHelp() [2/2]

virtual BesAboutHelp::~BesAboutHelp ( )
virtual

Member Function Documentation

◆ GetPic() [1/2]

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}
char * file
Definition: DQA_TO_DB.cxx:15

◆ GetPic() [2/2]

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

◆ ProcessMessage() [1/2]

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}

◆ ProcessMessage() [2/2]

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

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