28                          "July",    
"August",   
"September", 
"October", 
"November", 
"December"};
 
   50HtmlDayName::HtmlDayName(
const char *
day)
 
   51   : 
fDay(
day), fAlign(
"middle"), fBgColor(
"#000000"), fFontSize(
"4"), fFontColor(
"#FFFFFF")
 
   55   fHtml += 
"<TH  width=14%";
 
   56   fHtml += 
" align=" + fAlign;
 
   57   fHtml += 
" bgcolor=" + fBgColor + 
">";
 
   58   fHtml += 
"<font size=" + fFontSize;
 
   59   fHtml += 
" color=" + fFontColor + 
">";
 
   61   fHtml += 
"</font></TH>\n";
 
  121void HtmlMonthTable::Build()
 
  125   fHtml = 
"<TABLE width=100%";
 
  126   fHtml += 
" border=" + fBorder;
 
  127   fHtml += 
" bgcolor=" + fBgColor;
 
  134   fHtml += 
"</TBODY></TABLE>\n";
 
  138void HtmlMonthTable::BuildDayNames()
 
  154void HtmlMonthTable::BuildDays()
 
  158   static Int_t maxdays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
 
  176         fHtml += 
"<TD align=left width=14% ";
 
  188            fHtml += 
" </TD>";
 
  194         fHtml += 
"</font></TD>\n";
 
  257void HtmlCalendar::MakeHeader()
 
  262   fHeader = 
"<html><head><title>";
 
  264   fHeader += 
"</title></head><body>\n";
 
  265   fHeader += 
"<center><H2>" + fTitle + 
"</H2></center>";
 
  269void HtmlCalendar::MakeFooter()
 
  273   fFooter = 
"<br><p><br><center><strong><font size=2 color=#2222ee>";
 
  274   fFooter += 
"Example of using Html widget to display tabular data.";
 
  275   fFooter += 
"</font></strong></center></body></html>";
 
  301CalendarWindow::~CalendarWindow()
 
  310CalendarWindow::CalendarWindow()
 
  326   fHtml = 
new TGHtml(fMain, 1, 1);
 
  330   fHtml->ParseText((
char *)
fHtmlText->Html().Data());
 
  337   for (
int i = 0; i < 12; i++) {
 
  374   fMonthBox->Connect(
"Selected(Int_t)", 
"CalendarWindow", 
this, 
"UpdateHTML()");
 
  375   fYearEntry->GetNumberEntry()->Connect(
"TextChanged(char*)", 
"CalendarWindow", 
this, 
"UpdateHTML()");
 
  376   fFontEntry->GetNumberEntry()->Connect(
"TextChanged(char*)", 
"CalendarWindow", 
this, 
"UpdateHTML()");
 
  377   fTableColor->Connect(
"ColorSelected(Pixel_t)", 
"CalendarWindow", 
this, 
"UpdateHTML()");
 
  378   fCellColor->Connect(
"ColorSelected(Pixel_t)", 
"CalendarWindow", 
this, 
"UpdateHTML()");
 
  381   fMain->Connect(
"CloseWindow()", 
"TApplication", 
gApplication, 
"Terminate()");
 
  382   fMain->DontCallClose();
 
  384   fMain->MapSubwindows();
 
  385   fMain->Resize(600, 333);
 
  388   fMain->SetWMSizeHints(
controls->GetDefaultWidth(), fMain->GetDefaultHeight(), 1000, 1000, 0, 0);
 
  390   TString title = 
"Calendar for ";
 
  392   fMain->SetWindowName(title.
Data());
 
  397void CalendarWindow::UpdateHTML()
 
  429   fHtml->ParseText((
char *)
fHtmlText->Html().Data());
 
  433   TString title = 
"Calendar for ";
 
  435   fMain->SetWindowName(title.
Data());
 
ULong_t Pixel_t
Pixel value.
#define ClassDef(name, id)
R__EXTERN TApplication * gApplication
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pixel
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
const char * AsHexString() const
Return color as hexadecimal string.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
TGNumberEntry is a number entry input widget with up/down buttons.
const char * Data() const
Bool_t IsLeapYear(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Is the year a leap year.
Int_t GetDayOfWeek(Bool_t inUTC=kTRUE, Int_t secOffset=0) const
Method is using Zeller's formula for calculating the day number.