-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unit1.h
85 lines (81 loc) · 2.71 KB
/
Unit1.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
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Mask.hpp>
#include <IdAntiFreeze.hpp>
#include <IdAntiFreezeBase.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
#include <Vcl.Dialogs.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.WinXCtrls.hpp>
#include <Vcl.Imaging.pngimage.hpp>
#include <Vcl.Menus.hpp>
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TCheckBox *RestartCheck;
TEdit *HourEdit;
TEdit *MinEdit;
TLabel *SeparatorLabel;
TCheckBox *AutostartCheck;
TCheckBox *HideCheck;
TButton *StartButton;
TTimer *Timer;
TIdAntiFreeze *IdAntiFreeze;
TTrayIcon *Tray;
TListView *Servers;
TButton *AddButton;
TLabeledEdit *DownEdit;
TActivityIndicator *ProcessIndicator;
TImage *AlexellLogo;
TPopupMenu *PopupMenu;
TMenuItem *PMenuRestart;
TMenuItem *PMenuRemove;
TMenuItem *PMenuShutdown;
TMenuItem *PMenuEdit;
TCheckBox *AutorunCheck;
TCheckBox *LogCheck;
void __fastcall FormShow(TObject *Sender);
void __fastcall StartButtonClick(TObject *Sender);
void __fastcall TimerTimer(TObject *Sender);
void __fastcall RestartCheckClick(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall AddButtonClick(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall AlexellLogoClick(TObject *Sender);
void __fastcall ServersMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
int X, int Y);
void __fastcall PMenuRemoveClick(TObject *Sender);
void __fastcall PMenuRestartClick(TObject *Sender);
void __fastcall PMenuShutdownClick(TObject *Sender);
void __fastcall PMenuEditClick(TObject *Sender);
void __fastcall PopupMenuPopup(TObject *Sender);
private: // User declarations
void __fastcall RestartSelectedServer(bool shutdown);
public: // User declarations
void __fastcall LoadServers();
String __fastcall ExecuteSSQR(const String &command);
__fastcall TMainForm(TComponent* Owner);
};
// класс потока мониторинга
class TMonitoringThread : public TThread
{
protected:
void __fastcall Execute();
public:
__fastcall TMonitoringThread(bool CreateSuspended);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif