mainform.h

来自「著名的SecureBlackBox控件完整源码」· C头文件 代码 · 共 94 行

H
94
字号
//---------------------------------------------------------------------------

#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <IdAntiFreeze.hpp>
#include <IdAntiFreezeBase.hpp>
#include <IdBaseComponent.hpp>
#include <ImgList.hpp>

//  Windows, Messages, SysUtils, Graphics, Dialogs,
//  OleCtrls, SHDocVw, SBSSHClient, ScktComp, Contnrs,

#include "SBSSHKeyStorage.hpp"
#include "SBUtils.hpp"
#include "SBSSHConstants.hpp"
#include "SBSSHCommon.hpp"
#include "SBSSHClient.hpp"

//  IdTCPServer, IdComponent, IdTCPConnection, IdTCPClient,
#include "ClientThread.h"
#include "QueryThread.h"

#include "SqlExpr.hpp"


//---------------------------------------------------------------------------
class TFormMain : public TForm
{
__published:	// IDE-managed Components
        TGroupBox *GroupBox1;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TLabel *Label6;
        TLabel *Label7;
        TLabel *Label8;
        TLabel *Label9;
        TPanel *Panel1;
        TEdit *EditHost;
        TEdit *EditPort;
        TEdit *EditUsername;
        TEdit *EditPassword;
        TPanel *Panel2;
        TEdit *EditLocalPort;
        TEdit *EditRemoteHost;
        TEdit *EditRemotePort;
        TButton *ButtonStart;
        TPanel *Panel3;
        TEdit *EditDBUsername;
        TEdit *EditDBPassword;
        TEdit *EditDBName;
        TPanel *PanelClient;
        TSplitter *Splitter1;
        TListView *ListView;
        TPanel *PanelStatus;
        TListView *ListViewConnections;
        TPanel *Panel4;
        TLabel *Label10;
        TEdit *EditQuery;
        TButton *btnExecute;
        TListView *ListViewResults;
        TImageList *ImageList;
        TImageList *ImageListConns;
        TIdAntiFreeze *IdAntiFreeze1;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall ButtonStartClick(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
        void __fastcall btnExecuteClick(TObject *Sender);
private:	// User declarations
        void Log(const AnsiString S, bool AError = false);
        void RefreshListViewItem(TListItem* Item);
        void __fastcall ThreadLog(TObject* Sender, const AnsiString S, bool Error);
        void __fastcall ThreadTerminate(TObject* Sender);
        void __fastcall ThreadConnectionChange(TObject* Sender, TConnection* Conn);
        void __fastcall ThreadConnectionAdd(TObject* Sender, TConnection* Conn);
        void __fastcall ThreadConnectionRemove(TObject* Sender, TConnection* Conn);
        void __fastcall QueryThreadTerminate(TObject* Sender);
public:		// User declarations
        __fastcall TFormMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMain *FormMain;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?