-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainUnit.h
More file actions
64 lines (61 loc) · 2.06 KB
/
MainUnit.h
File metadata and controls
64 lines (61 loc) · 2.06 KB
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
//---------------------------------------------------------------------------
#ifndef MainUnitH
#define MainUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "VirtualTrees.AncestorVCL.hpp"
#include "VirtualTrees.BaseAncestorVCL.hpp"
#include "VirtualTrees.BaseTree.hpp"
#include "VirtualTrees.hpp"
#include <Vcl.ComCtrls.hpp>
#include "Book.h"
#include "Thread2.h"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TVirtualStringTree *LibraryStringTree;
TButton *GetBooks;
TButton *InspectBooks;
TProgressBar *ProgressBar1;
TProgressBar *ProgressBar2;
TButton *RepairBooks;
TLabel *NumOfBookGet;
TProgressBar *ProgressBar3;
TLabel *BooksToRepair;
TLabel *ProgBar1Label;
TLabel *ProgBar2Label;
TLabel *ProgBar3Label;
void __fastcall LibraryStringTreeGetText(TBaseVirtualTree *Sender, PVirtualNode Node,
TColumnIndex Column, TVSTTextType TextType, UnicodeString &CellText);
void __fastcall GetBooksClick(TObject *Sender);
void __fastcall InspectBooksClick(TObject *Sender);
void __fastcall RepairBooksClick(TObject *Sender);
private: // User declarations
BookContainer2 Container;
Iterator<PtrBook> *it;
public: // User declarations
void AddBookToContainer();
Iterator<PtrBook> * GetIterator();
__fastcall TMainForm(TComponent* Owner);
Thread2 *th;
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
void FillStringTree(TVirtualStringTree *stringTree, Iterator<PtrBook> *it);
//---------------------------------------------------------------------------
typedef struct
{
ULONGLONG Id;
int Year;
int Pages;
int Condition;
UnicodeString Specific;
UnicodeString Type;
} NodeStruct;
//---------------------------------------------------------------------------
#endif