-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUnit3.h
65 lines (60 loc) · 1.73 KB
/
Unit3.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
//---------------------------------------------------------------------------
#ifndef Unit3H
#define Unit3H
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <FMX.Controls.hpp>
#include <FMX.Forms.hpp>
#include <FMX.Layouts.hpp>
#include <FMX.ListBox.hpp>
#include <FMX.Objects.hpp>
#include <FMX.StdCtrls.hpp>
#include <FMX.Types.hpp>
#include <IdHTTP.hpp>
#include <System.JSON.hpp>
#include <FMX.Memo.hpp>
#include <FMX.Controls.Presentation.hpp>
#include <FMX.Edit.hpp>
#include <FMX.SearchBox.hpp>
#include <vector>
//---------------------------------------------------------------------------
struct Ingr
{
TListBoxItem *ListBoxItem;
int id;
AnsiString name;
bool select;// = true;
// int category;
};
//---------------------------------------------------------------------------
struct Catgr
{
AnsiString Name_catgr;
std::vector<Ingr> catgr_ingr;
TListBoxGroupHeader *ListBoxGroupHeader;
int c_ing;// = 0;
};
extern std::vector<Catgr> catg_arr;
class TForm3 : public TForm
{
__published: // IDE-managed Components
TLayout *Layout1;
TImage *Image1;
TLayout *Layout2;
TListBox *ListBox1;
TSpeedButton *SpeedButton1;
TSearchBox *SearchBox1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall SpeedButton1Click(TObject *Sender);
void __fastcall IngrClick(TObject *Sender);
void __fastcall print();
void __fastcall Create_ingr();
void __fastcall FormShow(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TForm3(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm3 *Form3;
//---------------------------------------------------------------------------
#endif