forked from nenslen/othello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainForm.h
60 lines (57 loc) · 1.88 KB
/
MainForm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//---------------------------------------------------------------------------
#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include "oGame.h"
#include <Vcl.Menus.hpp>
#include <Vcl.Dialogs.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TPanel *pnlGame;
TButton *btnReset;
TMainMenu *menuMain;
TMenuItem *menuFile;
TMenuItem *menuReset;
TMenuItem *menuExit;
TMenuItem *fileOptions;
TMenuItem *fileColors;
TMenuItem *fileBoard;
TMenuItem *fileP1;
TMenuItem *fileP2;
TMenuItem *fileAbout;
TColorDialog *clrDialog;
TMenuItem *fileDefaults;
TCheckBox *cbHints;
TShape *shCurrentPlayer;
TLabel *lblCurrentPlayer;
TShape *shP1Points;
TLabel *lblP1Points;
TShape *shP2Points;
TLabel *lblP2Points;
void __fastcall FormCreate(TObject *Sender);
void __fastcall btnResetClick(TObject *Sender);
void __fastcall fileBoardClick(TObject *Sender);
void __fastcall fileP1Click(TObject *Sender);
void __fastcall fileP2Click(TObject *Sender);
void __fastcall fileDefaultsClick(TObject *Sender);
void __fastcall cbHintsClick(TObject *Sender);
void __fastcall menuResetClick(TObject *Sender);
void __fastcall menuExitClick(TObject *Sender);
void __fastcall fileAboutClick(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private: // User declarations
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
extern PACKAGE oTile *board[8][8];
//---------------------------------------------------------------------------
#endif