-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.h
42 lines (42 loc) · 1.54 KB
/
Main.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
//---------------------------------------------------------------------------
#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TGroupBox *GroupBox1;
TRadioButton *rbBestNRV2D;
TRadioButton *rbBestNRV2B;
TLabel *Label1;
TEdit *txtSelected;
TOpenDialog *Dialog;
TButton *cmdBrowse;
TButton *cmdCompress;
TGroupBox *GroupBox2;
TCheckBox *chkBackup;
TRadioButton *rbUltraBrute;
TRadioButton *rbBrute;
void __fastcall cmdBrowseClick(TObject *Sender);
void __fastcall cmdCompressClick(TObject *Sender);
private: // User declarations
String __fastcall GetCmdLine(const String APath);
void __fastcall CompressFile(const String APath, bool ABackup);
HANDLE __fastcall ExecuteProgramEx(const String ACmd);
void __fastcall Wait(HANDLE AHandle);
bool __fastcall FileSize(const String AName, int& ASize);
void __fastcall EnableControls(bool AEnabled);
public: // User declarations
__fastcall TForm1(TComponent* Owner);
__fastcall virtual ~TForm1() {};
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif