Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

MonthView.h

00001 
00002 
00003 #ifndef __MONTH_VIEW_H
00004 #define __MONTH_VIEW_H
00005 
00006 #include "GDateTime.h"
00007 
00009 extern char *ShortDayNames[7];
00010 extern char *FullDayNames[7];
00011 extern char *ShortMonthNames[12];
00012 extern char *FullMonthNames[12];
00013 
00014 class MonthView
00015 {
00016     static char Buf[256];
00017 
00018     GDateTime Cursor;
00019     GDateTime First;    // of month
00020     GDateTime Start;    // of visible
00021     GDateTime Cell;
00022 
00023     int Sx, Sy;
00024     int MonthX, MonthY;
00025 
00026 public:
00027     MonthView(GDateTime *dt = 0);
00028 
00029     // Set
00030     void Set(GDateTime *dt);
00031     GDateTime &Get();
00032     void SetCursor(int x, int y);
00033     void SelectCell(int x, int y);
00034     
00035     // Get
00036     char *Title();
00037     char *Day(bool FromCursor = false);
00038     char *Date(bool FromCursor = false);
00039     int X();
00040     int Y();
00041     bool IsMonth();
00042     bool IsToday();
00043     bool IsSelected();
00044 };
00045 
00046 #endif

Generated on Wed Oct 26 14:46:51 2005 for Lgi by  doxygen 1.4.1