-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom.h
66 lines (57 loc) · 1.65 KB
/
room.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
61
62
63
64
65
66
//---------------------------------------------------------------------------
#ifndef roomH
#define roomH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
//---------------------------------------------------------------------------
struct seat
{
TShape *n;
seat *next;
};
class room
{
seat *First;
int h,w;
void __fastcall NewSeat (int tag, int l, int t);
void __fastcall NewRow (int i);
public:
__fastcall room (int h);
void __fastcall Occupy ( TShape * Sender, TMouseButton Button, TShiftState Shift, int X, int Y );
void __fastcall Reserve (int srch);
void __fastcall Buy(String n_fl, String n_pas, String t_type);
};
class TForm3 : public TForm
{
__published: // IDE-managed Components
TButton *Button1;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TLabel *Label4;
TLabel *Label5;
TLabel *Label6;
TLabel *Label7;
TLabel *Label8;
TLabel *Label9;
TLabel *Label10;
TScrollBox *ScrollBox1;
TPanel *Panel1;
TLabel *Label11;
TComboBox *ComboBox1;
void __fastcall FormShow(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall Button1Click(TObject *Sender);
private: // User declarations
public: // User declarations
room *r00m;
__fastcall TForm3(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm3 *Form3;
//---------------------------------------------------------------------------
#endif