30 "May",
"June",
"July",
"August",
"September",
31 "October",
"November",
"December"};
53HtmlDayName::HtmlDayName(
const char *
day) :
fDay(
day), fAlign(
"middle"),
54 fBgColor(
"#000000"), fFontSize(
"4"), fFontColor(
"#FFFFFF")
58 fHtml +=
"<TH width=14%";
59 fHtml +=
" align=" + fAlign;
60 fHtml +=
" bgcolor=" + fBgColor +
">";
61 fHtml +=
"<font size=" + fFontSize;
62 fHtml +=
" color=" + fFontColor +
">";
64 fHtml +=
"</font></TH>\n";
119void HtmlMonthTable::Build()
123 fHtml =
"<TABLE width=100%";
124 fHtml +=
" border=" + fBorder;
125 fHtml +=
" bgcolor=" + fBgColor;
132 fHtml +=
"</TBODY></TABLE>\n";
136void HtmlMonthTable::BuildDayNames()
152void HtmlMonthTable::BuildDays()
156 static Int_t maxdays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
172 fHtml +=
"<TD align=left width=14% ";
186 fHtml +=
" </TD>";
192 fHtml +=
"</font></TD>\n";
256void HtmlCalendar::MakeHeader()
261 fHeader =
"<html><head><title>";
263 fHeader +=
"</title></head><body>\n";
264 fHeader +=
"<center><H2>" + fTitle +
"</H2></center>";
268void HtmlCalendar::MakeFooter()
272 fFooter =
"<br><p><br><center><strong><font size=2 color=#2222ee>";
273 fFooter +=
"Example of using Html widget to display tabular data.";
274 fFooter +=
"</font></strong></center></body></html>";
303CalendarWindow::~CalendarWindow()
312CalendarWindow::CalendarWindow()
328 fHtml =
new TGHtml(fMain, 1, 1);
333 fHtml->ParseText((
char*)
fHtmlText->Html().Data());
341 for (
int i = 0; i < 12; i++) {
387 fMonthBox->Connect(
"Selected(Int_t)",
"CalendarWindow",
this,
389 fYearEntry->GetNumberEntry()->Connect(
"TextChanged(char*)",
"CalendarWindow",
390 this,
"UpdateHTML()");
391 fFontEntry->GetNumberEntry()->Connect(
"TextChanged(char*)",
"CalendarWindow",
392 this,
"UpdateHTML()");
393 fTableColor->Connect(
"ColorSelected(Pixel_t)",
"CalendarWindow",
this,
395 fCellColor->Connect(
"ColorSelected(Pixel_t)",
"CalendarWindow",
this,
399 fMain->Connect(
"CloseWindow()",
"TApplication",
gApplication,
"Terminate()");
400 fMain->DontCallClose();
402 fMain->MapSubwindows();
403 fMain->Resize(600, 333);
406 fMain->SetWMSizeHints(
controls->GetDefaultWidth(), fMain->GetDefaultHeight(),
409 TString title =
"Calendar for ";
411 fMain->SetWindowName(title.
Data());
416void CalendarWindow::UpdateHTML()
448 fHtml->ParseText((
char*)
fHtmlText->Html().Data());
452 TString title =
"Calendar for ";
454 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.