-
Notifications
You must be signed in to change notification settings - Fork 1
/
Unit2.h
90 lines (83 loc) · 2.56 KB
/
Unit2.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//---------------------------------------------------------------------------
#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <FMX.Controls.hpp>
#include <FMX.Forms.hpp>
#include <FMX.StdCtrls.hpp>
#include <FMX.Types.hpp>
#include <FMX.Layouts.hpp>
#include <FMX.Objects.hpp>
#include <FMX.Colors.hpp>
#include <vector>
//---------------------------------------------------------------------------
struct CookIngr {
int id;
AnsiString NameIngr;
};
//---------------------------------------------------------------------------
struct CookStep {
AnsiString Link, Text;
};
//---------------------------------------------------------------------------
struct recept{
std::vector<CookIngr> Ingrd;
std::vector<CookStep> Steps;
float interest;
AnsiString Name;
};
//-!!!!!!!!!!!---------------------------------------------------------------
extern std::vector<recept> Recepts;
//-----------------------------------------------------------!!!!!!!!!!!!!!--
class Fridge {
private:
int ctg,ing;
int id;
AnsiString name;
TPanel *Basement;
TLabel *OutName;
public:
void __fastcall Onclick(TObject *Sender);
void __fastcall svoup_1(TObject *Senderr, TMouseButton Button, TShiftState Shift,
float X, float Y);
void __fastcall svoup_2(TObject *Sender, TShiftState Shift, float X,
float Y);
void __fastcall svoup_3(TObject *Sender, TMouseButton Button, TShiftState Shift,
float X, float Y);
Fridge(int i, int j);
};
//---------------------------------------------------------------------------
class TForm2 : public TForm
{
__published: // IDE-managed Components
TLayout *Layout1;
TLayout *Layout2;
TImage *Image1;
TImage *Image3;
TVertScrollBox *VertScrollBox1;
TSpeedButton *SpeedButton2;
TImage *Image2;
TTimer *Timer1;
TButton *Button1;
TImage *Image4;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TSpeedButton *SpeedButton1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall SpeedButton2Click(TObject *Sender);
void __fastcall Image2Click(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall SpeedButton1Click(TObject *Sender);
void __fastcall ParsRecipe();
private: // User declarations
public: // User declarations
std::vector<Fridge> Ell;
__fastcall TForm2(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm2 *Form2;
//---------------------------------------------------------------------------
#endif