umain.h

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

H
75
字号
//---------------------------------------------------------------------------

#ifndef uMainH
#define uMainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <ToolWin.hpp>

#include "SBSSHKeyStorage.hpp"
#include "SBUtils.hpp"
#include <Dialogs.hpp>
#include <ImgList.hpp>

#include "uGetPassword.h"

//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published:	// IDE-managed Components
        TLabel *lblPrivateKey;
        TLabel *lblPublicKey;
        TSplitter *Splitter1;
        TRadioGroup *rgAlgorithm;
        TRadioGroup *rgKeyFormat;
        TToolBar *tbTop;
        TToolButton *tbGenerate;
        TToolButton *tbSavePrivate;
        TToolButton *tbSavePublic;
        TToolButton *tbLoadPrivate;
        TToolButton *tbLoadPublic;
        TToolButton *tbExit;
        TMemo *memPrivateKey;
        TMemo *memPublicKey;
        TStatusBar *sbStatus;
        TPanel *pnlTop;
        TLabel *lblKeyLen;
        TLabel *lblSubject;
        TLabel *lblComment;
        TComboBox *cbKeyLen;
        TEdit *edtSubject;
        TEdit *edtComment;
        TImageList *ilButtons;
        TSaveDialog *sdKeys;
        TOpenDialog *odKeys;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
        void __fastcall tbSavePrivateClick(TObject *Sender);
        void __fastcall tbSavePublicClick(TObject *Sender);
        void __fastcall tbGenerateClick(TObject *Sender);
        void __fastcall tbExitClick(TObject *Sender);
        void __fastcall rgKeyFormatClick(TObject *Sender);
        void __fastcall tbLoadPrivateClick(TObject *Sender);
        void __fastcall tbLoadPublicClick(TObject *Sender);
private:	// User declarations
        TElSSHKey* FKey;  // Current key storage
        bool FKeyGenerated; // Check if current key generated
        bool GetSaveFileName(AnsiString DialogTitle);
        bool GetOpenFileName(AnsiString DialogTitle);
        void SetStatus(AnsiString AStatus);
        void ShowStatus(int Status);
        void AllowKeySaving(void);
        void ShowKeys(void); // Show keys in memo
public:		// User declarations
        __fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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