-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.h
More file actions
150 lines (143 loc) · 4.34 KB
/
Copy pathMain.h
File metadata and controls
150 lines (143 loc) · 4.34 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
//---------------------------------------------------------------------------
#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include "AdvSmoothProgressBar.hpp"
#include <Vcl.ComCtrls.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Grids.hpp>
#include <Vcl.Samples.Spin.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <System.ImageList.hpp>
#include <Vcl.ImgList.hpp>
#include <Vcl.Imaging.pngimage.hpp>
#include <Vcl.ToolWin.hpp>
#include <Vcl.Menus.hpp>
#include <Vcl.AppEvnts.hpp>
#include <System.Actions.hpp>
#include <Vcl.ActnList.hpp>
#include "AdvSmoothTabPager.hpp"
#include "AdvSmoothSlider.hpp"
#include <string>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.Tabs.hpp>
#include "AdvSmoothGauge.hpp"
#include "AdvSmoothProgressBar.hpp"
#include "AdvProgr.hpp"
#include "AdvCircularProgress.hpp"
#include "AdvProgressBar.hpp"
#include "W7Classes.hpp"
#include "W7ProgressBars.hpp"
#include <Vcl.Samples.Spin.hpp>
#include <Vcl.Grids.hpp>
#include <vcl.h>
#include <sstream>
#include <windows.h>
#pragma hdrstop
#include <ShlObj.h>
#include <string>
#include <filesystem>
#include <cmath>
#include <iostream>
#include <fstream>
#include <ctime>
#include <vector>
#include <exception>
#include <iomanip>
#include "bass.h"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TApplicationEvents *MainApplicationEvents;
TImageList *MainImageList;
TAdvSmoothTabPager *SmoothTabPager;
TAdvSmoothTabPage *AddNewSheet;
TAdvSmoothTabPage *ReportSheet;
TAdvSmoothTabPage *ProgressSheet;
TAdvSmoothTabPage *HistorySheet;
TStringGrid *HistoryGrid;
TEdit *BookLenghtEdit1;
TLabel *AddNewLabel6;
TEdit *BookNameEdit1;
TEdit *BookAuthorEdit1;
TComboBox *BookGenreComboBox;
TEdit *CustomBookGenre;
TButton *AddNewButton1;
TLabel *AddNewLabel2;
TLabel *AddNewLabel3;
TLabel *AddNewLabel4;
TLabel *AddNewLabel5;
TLabel *ProgressLabel2;
TComboBox *BookList;
TAdvSmoothProgressBar *ReadProgressBar;
TEdit *LogEdit;
TButton *LogUpButton;
TButton *LogDownButton;
TMemo *ReadStatMemo;
TLabel *ReportLabel5;
TLabel *ReportLabel4;
TLabel *ProgressLabel3;
TAdvSmoothTabPage *SettingsSheet;
TLabel *SettingsLabel2;
TButton *ProgressButton1;
TLabel *ProgressLabel4;
TLabel *Label1;
TLabel *Label2;
TAction *aDeleteItem;
TAction *aEditItem;
TActionList *MainActionList;
TLabel *SettingsLabel3;
TButton *PlayButton;
TLabel *SettingsLabel1;
TLabel *AddNewLabel1;
TLabel *HistoryLabel;
TButton *PauseButton;
TLabel *SettingsLabel4;
TComboBox *RadioEdit;
TButton *ThemeButton;
TProgressBar *ReadProgressBar1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall BookListChange(TObject *Sender);
void __fastcall LogUpButtonClick(TObject *Sender);
void __fastcall LogDownButtonClick(TObject *Sender);
void __fastcall AddNewButton1Click(TObject *Sender);
void __fastcall MainApplicationEventsException(TObject *Sender, Exception *E);
void __fastcall HistoryGridDblClick(TObject *Sender);
void __fastcall aDeleteItemExecute(TObject *Sender);
void __fastcall aEditItemExecute(TObject *Sender);
void __fastcall ProgressButton1Click(TObject *Sender);
void __fastcall PlayButtonClick(TObject *Sender);
void __fastcall PauseButtonClick(TObject *Sender);
void __fastcall ThemeButtonClick(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
using namespace std;
extern PACKAGE TMainForm *MainForm;
extern const string mainFolder;
extern const string logFilePath;
extern const string preferenceFilePath;
extern const string bookmarksFilePath;
extern const string booksFilePath;
extern const string userDataPath;
extern const string appVersion;
typedef struct userBook{
string bookName;
int bookmark;
string bookAuthor;
string genre;
string startedReading;
string finishedReading;
int currPage;
int bookLength;
}userBook;
//---------------------------------------------------------------------------
#endif