home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / Delphi / CheesboardComponent / example / ChessPrg.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-13  |  3.7 KB  |  101 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'ChessPrg.pas' rev: 3.00
  6.  
  7. #ifndef ChessPrgHPP
  8. #define ChessPrgHPP
  9. #include <ChessBrd.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Dialogs.hpp>
  13. #include <Forms.hpp>
  14. #include <Controls.hpp>
  15. #include <Graphics.hpp>
  16. #include <Classes.hpp>
  17. #include <SysUtils.hpp>
  18. #include <Messages.hpp>
  19. #include <Windows.hpp>
  20. #include <SysInit.hpp>
  21. #include <System.hpp>
  22.  
  23. //-- user supplied -----------------------------------------------------------
  24.  
  25. namespace Chessprg
  26. {
  27. //-- type declarations -------------------------------------------------------
  28. class DELPHICLASS TForm1;
  29. class PASCALIMPLEMENTATION TForm1 : public Forms::TForm 
  30. {
  31.     typedef Forms::TForm inherited;
  32.     
  33. __published:
  34.     Stdctrls::TButton* ButtonBack;
  35.     Stdctrls::TButton* ButtonForward;
  36.     Stdctrls::TButton* Buttonnew;
  37.     Stdctrls::TListBox* ListBox1;
  38.     Stdctrls::TLabel* Label1;
  39.     Extctrls::TRadioGroup* RadioGroup1;
  40.     Extctrls::TRadioGroup* RadioGroup2;
  41.     Stdctrls::TCheckBox* CheckBoxWhiteOnTop;
  42.     Stdctrls::TComboBox* ComboBox1;
  43.     Stdctrls::TLabel* Label2;
  44.     Stdctrls::TCheckBox* CheckBoxCoords;
  45.     Stdctrls::TLabel* Label3;
  46.     Stdctrls::TCheckBox* CheckBoxLines;
  47.     Stdctrls::TButton* ButtonStop;
  48.     Stdctrls::TButton* ButtonMove;
  49.     Extctrls::TImage* ImageCm36;
  50.     Extctrls::TImage* ImageFr40;
  51.     Chessbrd::TChessBrd* ChessBrd1;
  52.     Stdctrls::TLabel* Label4;
  53.     Stdctrls::TComboBox* ComboBox2;
  54.     void __fastcall UpdateListBox(void);
  55.     void __fastcall ButtonBackClick(System::TObject* Sender);
  56.     void __fastcall ChessBrd1LegalMove(System::TObject* Sender, Chessbrd::Square oldSq, Chessbrd::Square 
  57.         newSq);
  58.     void __fastcall ButtonForwardClick(System::TObject* Sender);
  59.     void __fastcall ButtonnewClick(System::TObject* Sender);
  60.     void __fastcall RadioGroup2Click(System::TObject* Sender);
  61.     void __fastcall RadioGroup1Click(System::TObject* Sender);
  62.     void __fastcall CheckBoxWhiteOnTopClick(System::TObject* Sender);
  63.     void __fastcall ChessBrd1Draw(System::TObject* Sender);
  64.     void __fastcall ChessBrd1Mate(System::TObject* Sender, Chessbrd::Square oldSq, Chessbrd::Square newSq
  65.         );
  66.     void __fastcall CheckBoxCoordsClick(System::TObject* Sender);
  67.     void __fastcall SpinEdit1Change(System::TObject* Sender);
  68.     void __fastcall Timer1Timer(System::TObject* Sender);
  69.     void __fastcall CheckBoxLinesClick(System::TObject* Sender);
  70.     void __fastcall ListBox1Click(System::TObject* Sender);
  71.     void __fastcall ButtonMoveClick(System::TObject* Sender);
  72.     void __fastcall ButtonStopClick(System::TObject* Sender);
  73.     void __fastcall ComboBox1Change(System::TObject* Sender);
  74.     void __fastcall ChessBrd1CalculateMove(System::TObject* Sender, Chessbrd::Square &oldsq, Chessbrd::Square 
  75.         &newsq);
  76.     void __fastcall ChessBrd1CalculationFailed(System::TObject* Sender, Chessbrd::Square oldSq, Chessbrd::Square 
  77.         newSq);
  78.     void __fastcall ComboBox2Change(System::TObject* Sender);
  79. public:
  80.     /* TCustomForm.Create */ __fastcall virtual TForm1(Classes::TComponent* AOwner) : Forms::TForm(AOwner
  81.         ) { }
  82.     /* TCustomForm.CreateNew */ __fastcall TForm1(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(
  83.         AOwner, Dummy) { }
  84.     /* TCustomForm.Destroy */ __fastcall virtual ~TForm1(void) { }
  85.     
  86. public:
  87.     /* TWinControl.CreateParented */ __fastcall TForm1(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
  88.         
  89.     
  90. };
  91.  
  92. //-- var, const, procedure ---------------------------------------------------
  93. extern PACKAGE TForm1* Form1;
  94.  
  95. }    /* namespace Chessprg */
  96. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  97. using namespace Chessprg;
  98. #endif
  99. //-- end unit ----------------------------------------------------------------
  100. #endif    // ChessPrg
  101.