Functions
om::Icons Namespace Reference

Functions

const char * Find (const char *fname)
 
const TGPicture * Rewind ()
 
const TGPicture * FastForward ()
 
const TGPicture * Pause ()
 
const TGPicture * Play ()
 
const TGPicture * Repeat ()
 
const TGPicture * FolderExplore ()
 
const TGPicture * Print ()
 
const TGPicture * Histo ()
 

Function Documentation

const TGPicture * om::Icons::FastForward ( )

Definition at line 41 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

42  {
43  static const std::string s = Find("control_fastforward_blue.png");
44  static const TGPicture* r = 0;
45  if (r==0) r = gClient->GetPicture(s.c_str());
46  return r;
47  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const char * om::Icons::Find ( const char *  fname)

Definition at line 12 of file Icons.cxx.

References plot_validation_datamc::fname, cet::getenv(), and path.

Referenced by genie::RSPPHadronicSystemGenerator::AddResonanceDecayProducts(), genie::PythiaDecayer::Decay(), FastForward(), FolderExplore(), genie::KNOHadronization::GenerateHadronCodes(), Histo(), InitializeEvent(), Pause(), Play(), Print(), Repeat(), and Rewind().

13  {
14  unsigned int itry;
15  static std::string path;
16  for (itry=0; itry<3; ++itry) {
17  switch (itry) {
18  case 0: path = "./"; break;
19  case 1: path = getenv("SRT_PRIVATE_CONTEXT"); break;
20  case 2: path = getenv("SRT_PUBLIC_CONTEXT"); break;
21  }
22  if (itry==1 || itry==2) path += "/OnlineMonitoring/viewer/";
23  path += fname;
24  if (access(path.c_str(), F_OK) != -1) return path.c_str();
25  }
26  return "";
27  }
const std::string path
Definition: plot_BEN.C:43
std::string getenv(std::string const &name)
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
const TGPicture * om::Icons::FolderExplore ( )

Definition at line 81 of file Icons.cxx.

References Find(), and r().

Referenced by om::ComparisonBox::LayoutReferenceFile().

82  {
83  static const std::string s = Find("folder_explore.png");
84  static const TGPicture* r = 0;
85  if (r==0) r = gClient->GetPicture(s.c_str());
86  return r;
87  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const TGPicture * om::Icons::Histo ( )

Definition at line 101 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

102  {
103  static const std::string s = Find("control_histogram_blue.png");
104  static const TGPicture* r = 0;
105  if (r==0) r = gClient->GetPicture(s.c_str());
106  return r;
107  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const TGPicture * om::Icons::Pause ( )

Definition at line 51 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

52  {
53  static const std::string s = Find("control_pause_blue.png");
54  static const TGPicture* r = 0;
55  if (r==0) r = gClient->GetPicture(s.c_str());
56  return r;
57  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const TGPicture * om::Icons::Play ( )

Definition at line 61 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

62  {
63  static const std::string s = Find("control_play_blue.png");
64  static const TGPicture* r = 0;
65  if (r==0) r = gClient->GetPicture(s.c_str());
66  return r;
67  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const TGPicture * om::Icons::Print ( )

Definition at line 91 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

92  {
93  static const std::string s = Find("control_print_blue.png");
94  static const TGPicture* r = 0;
95  if (r==0) r = gClient->GetPicture(s.c_str());
96  return r;
97  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const TGPicture * om::Icons::Repeat ( )

Definition at line 71 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

72  {
73  static const std::string s = Find("control_repeat_blue.png");
74  static const TGPicture* r = 0;
75  if (r==0) r = gClient->GetPicture(s.c_str());
76  return r;
77  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)
const TGPicture * om::Icons::Rewind ( )

Definition at line 31 of file Icons.cxx.

References Find(), and r().

Referenced by om::ButtonBank::ButtonBank().

32  {
33  static const std::string s = Find("control_rewind_blue.png");
34  static const TGPicture* r = 0;
35  if (r==0) r = gClient->GetPicture(s.c_str());
36  return r;
37  }
const XML_Char * s
Definition: expat.h:262
const char * Find(const char *fname)
Definition: Icons.cxx:12
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
TRandom3 r(0)