BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcPalette.cxx
Go to the documentation of this file.
1//
2// BesMdcPalette.cxx
3//
4
5#include <string>
6
7static std::string rcsname = "$Name: BesVisClient-00-05-00 $";
8static std::string rcsdate = "$Date: 2022/03/04 04:06:25 $";
9
10#include "BesMdcPalette.h"
11#include <iostream>
12
13#include <TASImage.h>
14#include <TEnv.h>
15#include <TGButton.h>
16#include <TGClient.h>
17#include <TGIcon.h>
18#include <TGLabel.h>
19#include <TGLayout.h>
20#include <TGListBox.h>
21#include <TGPicture.h>
22#include <TGTab.h>
23#include <TList.h>
24#include <TString.h>
25#include <TVirtualX.h>
26#include <stdio.h>
27#include <stdlib.h>
28using namespace std;
29
30// #ifndef __CINT__
32 // #endif
33
34 //_________________________________________________________________
35 // BesMdcPalette
36 // Information about Bes Vis Info
37 //
38 //
39 BesMdcPalette::BesMdcPalette( const TGWindow* p, const TGWindow* main )
40 : TGTransientFrame( p, main, 200, 600 ) {
41 //
42 // BesMdcPalette normal constructor
43 TString filePath = TString( getenv( "BESVISLIBROOT" ) );
44 filePath += "/icons/MdcPalette.gif";
45 TASImage asImage( filePath );
46 this->SetBackgroundPixmap( asImage.GetPixmap() );
47
48 // Widget layout
49 SetWindowName( "Mdc Wire Palette" );
50 Resize( GetDefaultSize() );
51 Resize( 200, 600 );
52 MapWindow();
53}
54////_________________________________________________________________
55//
56// BesMdcPalette::~BesMdcPalette() {
57// //
58// // BesMdcPalette default destructor
59//}
ClassImp(BesMdcPalette) BesMdcPalette
BesMdcPalette(const TGWindow *p, const TGWindow *main)