home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 February / Chip_2004-02_cd1.bin / program / delphi / navody / d56 / ec1vr2.exe / #setuppath# / CB5 / CalendarMaker / Main.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-09  |  5.8 KB  |  168 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef MainH
  3. #define MainH
  4. //---------------------------------------------------------------------------
  5. #include <vcl\sysutils.hpp>
  6. #include <vcl\windows.hpp>
  7. #include <vcl\messages.hpp>
  8. #include <vcl\sysutils.hpp>
  9. #include <vcl\classes.hpp>
  10. #include <vcl\graphics.hpp>
  11. #include <vcl\controls.hpp>
  12. #include <vcl\forms.hpp>
  13. #include <vcl\dialogs.hpp>
  14. #include <vcl\stdctrls.hpp>
  15. #include <vcl\buttons.hpp>
  16. #include <vcl\extctrls.hpp>
  17. #include <vcl\menus.hpp>
  18. #include <Buttons.hpp>
  19. #include <Classes.hpp>
  20. #include <Controls.hpp>
  21. #include <Dialogs.hpp>
  22. #include <ExtCtrls.hpp>
  23. #include <Menus.hpp>
  24. #include <ComCtrls.hpp>
  25. #include <StdCtrls.hpp>
  26. #include <ActnList.hpp>
  27. #include <ImgList.hpp>
  28. #include <ToolWin.hpp>
  29. #include <DBGrids.hpp>
  30. #include <Grids.hpp>
  31. #include <ExtDlgs.hpp>
  32. #include <Graphics.hpp>
  33. #include <Mask.hpp>
  34. #include <Db.hpp>
  35. #include <DBTables.hpp>
  36. #include "VReport.h"
  37. #include "vrpage.h"
  38. #include <Forms.hpp>
  39. #include "Vrctrl.h"
  40. #include "Vrctrlr.h"
  41. #include "Vrlabel.h"
  42. #include "Vrgrid.h"
  43. #include "Vrprev.h"
  44. #include "Vrprogr.h"
  45. //---------------------------------------------------------------------------
  46. class TMainForm : public TForm
  47. {
  48. __published:
  49.     TMainMenu *MainMenu;
  50.     TMenuItem *FilePrintItem;
  51.     TMenuItem *FilePrintSetupItem;
  52.     TMenuItem *FileExitItem;
  53.     TMenuItem *HelpAboutItem;
  54.         TMenuItem *Preview;
  55.         TActionList *ActionList;
  56.         TToolBar *ToolBar1;
  57.         TToolButton *ToolButton1;
  58.         TAction *ExitAction;
  59.         TImageList *ImageList;
  60.         TAction *PrintSetupAction;
  61.         TAction *PrintAction;
  62.         TAction *PrintPreviewAction;
  63.         TAction *AboutAction;
  64.         TToolButton *ToolButton2;
  65.         TToolButton *ToolButton3;
  66.         TToolButton *ToolButton4;
  67.         TToolButton *ToolButton5;
  68.         TToolButton *ToolButton6;
  69.         TToolButton *ToolButton7;
  70.         TAction *LoadAction;
  71.         TOpenPictureDialog *LoadDialog;
  72.         TMenuItem *N1;
  73.         TMenuItem *LoadPicture1;
  74.         TTable *HolidaysTable;
  75.         TDataSource *HolidaysSource;
  76.         TDateField *HolidaysTableDate;
  77.         TPanel *Panel1;
  78.         TLabel *Label1;
  79.         TMaskEdit *YearEdit;
  80.         TDBGrid *DBGrid1;
  81.         TSpeedButton *SpeedButton1;
  82.         TMemo *TextEdit;
  83.         TLabel *Label2;
  84.         TVividReport *Report;
  85.         TVRPage *VRPage1;
  86.         TVRBand *VRBand1;
  87.         TVRLabel *PictureLabel;
  88.         TAction *Zoom25Action;
  89.         TAction *Zoom50Action;
  90.         TAction *Zoom100Action;
  91.         TAction *Zoom200Action;
  92.         TAction *Zoom400Action;
  93.         TToolButton *ToolButton8;
  94.         TToolButton *ToolButton9;
  95.         TToolButton *ToolButton10;
  96.         TToolButton *ToolButton11;
  97.         TPopupMenu *PopupMenu1;
  98.         TMenuItem *N251;
  99.         TMenuItem *N501;
  100.         TMenuItem *N1001;
  101.         TMenuItem *N2001;
  102.         TMenuItem *N4001;
  103.         TMenuItem *ZoomMenu;
  104.         TMenuItem *N252;
  105.         TMenuItem *N502;
  106.         TMenuItem *N1002;
  107.         TMenuItem *N2002;
  108.         TMenuItem *N4002;
  109.         TVRLabel *YearLabel;
  110.         TVRLabel *TextLabel;
  111.         TVRLabel *ShadowLabel;
  112.         TVRBand *VRBand4;
  113.         TVRBand *VRBand2;
  114.         TVRBand *VRBand3;
  115.         TVRBand *VRBand5;
  116.         TVRGrid *MonthsGrid;
  117.         TVRPrintProgress *PrintProgress;
  118.         TVRPreview *PrintPreview;
  119.         void __fastcall ExitActionExecute(TObject *Sender);
  120.         void __fastcall AboutActionExecute(TObject *Sender);
  121.         void __fastcall PrintSetupActionExecute(TObject *Sender);
  122.         void __fastcall PrintActionExecute(TObject *Sender);
  123.         void __fastcall PrintPreviewActionExecute(TObject *Sender);
  124.         void __fastcall LoadActionExecute(TObject *Sender);
  125.         void __fastcall HolidaysTableDateGetText(TField *Sender,
  126.           AnsiString &Text, bool DisplayText);
  127.         void __fastcall HolidaysTableDateSetText(TField *Sender,
  128.           const AnsiString Text);
  129.         void __fastcall Zoom25ActionExecute(TObject *Sender);
  130.         void __fastcall Zoom50ActionExecute(TObject *Sender);
  131.         void __fastcall Zoom100ActionExecute(TObject *Sender);
  132.         void __fastcall Zoom200ActionExecute(TObject *Sender);
  133.         void __fastcall Zoom400ActionExecute(TObject *Sender);
  134.         void __fastcall YearEditExit(TObject *Sender);
  135.         void __fastcall YearEditKeyPress(TObject *Sender, char &Key);
  136.         void __fastcall YearLabelCalcValue(TObject *Sender);
  137.         void __fastcall TextEditChange(TObject *Sender);
  138.         void __fastcall ShadowLabelCalcValue(TObject *Sender);
  139.         void __fastcall MonthsGridCells0CalcValue(TObject *Sender);
  140.         void __fastcall MonthsGridColumns0EndPrint(TObject *Sender,
  141.           TAfterAction &ARepeat);
  142.         void __fastcall MonthsGridRows0EndPrint(TObject *Sender,
  143.           TAfterAction &ARepeat);
  144.         void __fastcall MonthsGridCells1CalcValue(TObject *Sender);
  145.         void __fastcall MonthsGridColumns0SubItems0EndPrint(
  146.           TObject *Sender, TAfterAction &ARepeat);
  147.         void __fastcall MonthsGridRows0SubItems2EndPrint(TObject *Sender,
  148.           TAfterAction &ARepeat);
  149.         void __fastcall MonthsGridCells2CalcValue(TObject *Sender);
  150.         void __fastcall MonthsGridColumns0SubItems1BeginPrint(
  151.           TObject *Sender, TBeforeAction &APrint);
  152.         void __fastcall HolidaysTableAfterPost(TDataSet *DataSet);
  153. private:        // private user declarations
  154. public:         // public user declarations
  155.     virtual __fastcall TMainForm(TComponent* Owner);
  156.  
  157.         int Year;
  158.         int MonthsCol;
  159.         int Row;
  160.         int WeekDay;
  161.         int Week;
  162. };
  163. //---------------------------------------------------------------------------
  164. extern PACKAGE TMainForm *MainForm;
  165. //---------------------------------------------------------------------------
  166. #endif
  167.  
  168.