17 #include <TApplication.h>
20 #include <TGColorSelect.h>
21 #include <TGComboBox.h>
24 #include <TGNumberEntry.h>
26 #include <TTimeStamp.h>
41 Widget( map<string, string> md );
43 TString
Html()
const {
return fHtml_text; }
47 fHeader =
"<html><head><title>Meta Data Viewer</title></head>";
48 fHeader +=
"<body>\n";
49 fHeader +=
"<center><H2>Meta Data Viewer</H2></center>";
57 map<string, string>::iterator iter;
60 fHtml_text +=
"<table border='1' style='width:100%'>";
62 for ( iter = md.begin(); iter != md.end(); iter++ ) {
63 fHtml_text +=
"<tr><td><font color='black'><b>";
64 fHtml_text += iter->first;
65 fHtml_text +=
"</b></font></td><td><font color='blue'><b>";
66 fHtml_text += iter->second;
67 fHtml_text +=
"</b></font></td></tr>";
69 fHtml_text +=
"</table>";
70 fHtml_text += fFooter;
73 fMain =
new TGMainFrame( gClient->GetRoot(), 10, 10, kVerticalFrame );
74 fMain->SetCleanup( kDeepCleanup );
76 fHtml =
new TGHtml( fMain, 1, 1 );
77 fMain->AddFrame( fHtml,
new TGLayoutHints( kLHintsExpandX | kLHintsExpandY, 5, 5, 2, 2 ) );
78 fHtml->ParseText( (
char*)fHtml_text.Data() );
80 fMain->Connect(
"CloseWindow()",
"TApplication", gApplication,
"Terminate()" );
81 fMain->DontCallClose();
83 fMain->MapSubwindows();
84 fMain->Resize( 700, 700 );
87 fMain->SetWMSizeHints( fMain->GetDefaultWidth(), fMain->GetDefaultHeight(), 1000, 1000, 0, 0 );
92 TFile mFile(
"TupleEx.root" );
93 map<string, string>* mdMap = (map<string, string>*)mFile.Get(
"info" );
94 map<string, string> newMap = *mdMap;