00001
00002
00003
00004
00005 static char* rcsname="$Name: BesVisClient-00-04-04 $";
00006 static char* rcsdate="$Date: 2014/04/18 02:12:32 $";
00007
00008 #include "BesVisClient/BesMdcPalette.h"
00009 #include <iostream>
00010
00011 #include <TGLabel.h>
00012 #include <TList.h>
00013 #include <TEnv.h>
00014 #include <TVirtualX.h>
00015 #include <TGButton.h>
00016 #include <TGClient.h>
00017 #include <TGTab.h>
00018 #include <TGLayout.h>
00019 #include <TGListBox.h>
00020 #include <TString.h>
00021 #include <TGIcon.h>
00022 #include <TGPicture.h>
00023 #include <TASImage.h>
00024 #include <stdio.h>
00025 #include <stdlib.h>
00026 using namespace std;
00027
00028
00029
00030 ClassImp(BesMdcPalette)
00031
00032
00033
00034
00035
00036
00037
00038
00039 BesMdcPalette::BesMdcPalette(const TGWindow *p, const TGWindow *main) :
00040 TGTransientFrame(p, main, 200, 600) {
00041
00042
00043 TString filePath = TString(getenv("BESVISLIBROOT"));
00044 filePath += "/icons/MdcPalette.gif";
00045 TASImage asImage(filePath);
00046 this->SetBackgroundPixmap(asImage.GetPixmap());
00047
00048
00049 SetWindowName("Mdc Wire Palette");
00050 Resize(GetDefaultSize());
00051 Resize(200,600);
00052 MapWindow();
00053 }
00055
00056
00057
00058
00059