7 #include "TApplication.h" 10 #include "TGColorSelect.h" 11 #include "TGComboBox.h" 14 #include "TGNumberEntry.h" 16 #include "TTimeStamp.h" 33 TString
Html()
const {
return fHtml_text; }
37 fHeader =
"<html><head><title>Meta Data Viewer</title></head>";
38 fHeader +=
"<body>\n";
39 fHeader +=
"<center><H2>Meta Data Viewer</H2></center>";
50 fHtml_text +=
"<table border='1' style='width:100%'>";
52 for ( iter = md.
begin(); iter != md.
end(); iter++ ) {
53 fHtml_text +=
"<tr><td><font color='black'><b>";
54 fHtml_text += iter->first;
55 fHtml_text +=
"</b></font></td><td><font color='blue'><b>";
56 fHtml_text += iter->second;
57 fHtml_text +=
"</b></font></td></tr>";
59 fHtml_text +=
"</table>";
60 fHtml_text += fFooter;
63 fMain =
new TGMainFrame( gClient->GetRoot(), 10, 10, kVerticalFrame );
64 fMain->SetCleanup( kDeepCleanup );
66 fHtml =
new TGHtml( fMain, 1, 1 );
67 fMain->AddFrame( fHtml,
new TGLayoutHints( kLHintsExpandX | kLHintsExpandY, 5, 5, 2, 2 ) );
68 fHtml->ParseText( (
char*)fHtml_text.Data() );
70 fMain->Connect(
"CloseWindow()",
"TApplication", gApplication,
"Terminate()" );
71 fMain->DontCallClose();
73 fMain->MapSubwindows();
74 fMain->Resize( 700, 700 );
77 fMain->SetWMSizeHints( fMain->GetDefaultWidth(), fMain->GetDefaultHeight(), 1000, 1000, 0, 0 );
82 TFile mFile(
"TupleEx.root" );