38 #include "TGMimeTypes.h"
49 TString which = whichpath;
51 if ( which.Contains(
"Version",TString::kIgnoreCase) ) {
54 if ( which.Contains(
"LibraryPath",TString::kIgnoreCase) ) {
57 if ( which.Contains(
"BinaryPath",TString::kIgnoreCase) ) {
60 if ( which.Contains(
"IncludePath",TString::kIgnoreCase) ) {
63 if ( which.Contains(
"IconsPath",TString::kIgnoreCase) ) {
66 if ( which.Contains(
"NdbPath",TString::kIgnoreCase) ) {
69 if ( which.Contains(
"MacrosPath",TString::kIgnoreCase) ) {
83 static Bool_t has_done =
false; TGMimeTypes* mineTypes = gClient->GetMimeTypeList();
85 if ( has_done ==
false ) {
86 char action[256] = {0}; Int_t added = 0;
87 if ( !mineTypes->GetAction(
"Gw::GCond1D",action) ) {
88 mineTypes->AddType(
"[gw/gwgcond1d]",
" Gw::GCond1D",
"selection_t.xpm",
"selection_t.xpm",
"->Draw()");
91 if ( !mineTypes->GetAction(
"Gw::GCond2D",action) ) {
92 mineTypes->AddType(
"[gw/gwgcond2d]",
" Gw::GCond2D",
"cut.xpm",
"cut.xpm",
"->Draw()");
95 if ( !mineTypes->GetAction(
"*.spe",action) ) {
96 mineTypes->AddType(
"[root/file]",
" *.eg *.spe *.s",
"hdb_s.xpm",
"hdb_t.xpm",
"Gw::HistoConverter::DrawSpectrum(\"%s\")");
101 mineTypes->SaveMimes();
static const char * GetVersion()
to get the current gammaware version
static void AddRMimeType()
check mime type and add those proper to gw
to set informations about the gammaware configuration
static void SetDebug(short global_debug_level=0)
header file for GwLogMessage.cpp
LogMessage & debug(LogMessage &)
static void SetDebug(short)
change the global level
to get information about the gammaware configuration
static const char * GetPath(const char *)
to get a particular GW environment variable