signform.h
来自「著名的SecureBlackBox控件完整源码」· C头文件 代码 · 共 92 行
H
92 行
//---------------------------------------------------------------------------
#ifndef SignFormH
#define SignFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include "ReferencesForm.h"
#include "SelWinCertForm.h"
#include "SBXMLDefs.hpp"
#include "SBXMLSec.hpp"
#include "SBUtils.hpp"
//---------------------------------------------------------------------------
class TfrmSign : public TForm
{
__published: // IDE-managed Components
TGroupBox *gbGeneralEnc;
TLabel *lbSignatureType;
TLabel *lbSignatureMethod;
TLabel *lbHMACMethod;
TLabel *lbCanonMethod;
TComboBox *cmbSignatureType;
TRadioGroup *rgSignatureMethodType;
TComboBox *cmbSignatureMethod;
TComboBox *cmbHMACMethod;
TComboBox *cmbCanonMethod;
TGroupBox *gbKeyInfo;
TLabel *lbKeyName;
TSpeedButton *sbKeyFile;
TLabel *lbPassphrase;
TLabel *lbKeyFile;
TLabel *lbWinCertSerail;
TSpeedButton *sbSelectWinCert;
TEdit *edKeyName;
TEdit *edKeyFile;
TEdit *edPassphrase;
TEdit *edCertSerial;
TButton *btnOK;
TButton *btnCancel;
TButton *btnReferences;
TOpenDialog *dlgOpen;
void __fastcall btnReferencesClick(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall rgSignatureMethodTypeClick(TObject *Sender);
void __fastcall sbKeyFileClick(TObject *Sender);
void __fastcall sbSelectWinCertClick(TObject *Sender);
private: // User declarations
AnsiString GetKeyFile(void);
AnsiString GetKeyName(void);
AnsiString GetPassphrase(void);
void SetKeyFile(const AnsiString Value);
void SetKeyName(const AnsiString Value);
void SetPassphrase(const AnsiString Value);
TElXMLCanonicalizationMethod GetCanonicalizationMethod(void);
TElXMLMACMethod GetHMACMethod(void);
TElXMLSignatureMethod GetSigMethod(void);
TElXMLSigMethodType GetSignatureMethodType(void);
TElXMLSignatureType GetSignatureType(void);
void SetCanonicalizationMethod(const TElXMLCanonicalizationMethod Value);
void SetHMACMethod(const TElXMLMACMethod Value);
void SetSigMethod(const TElXMLSignatureMethod Value);
void SetSignatureMethodType(const TElXMLSigMethodType Value);
void SetSignatureType(const TElXMLSignatureType Value);
public: // User declarations
__fastcall TfrmSign(TComponent* Owner);
void UpdateOpt(void);
__property TElXMLCanonicalizationMethod CanonicalizationMethod = {read = GetCanonicalizationMethod, write = SetCanonicalizationMethod};
__property TElXMLSignatureType SignatureType = {read = GetSignatureType, write = SetSignatureType};
__property TElXMLSigMethodType SignatureMethodType = {read = GetSignatureMethodType, write = SetSignatureMethodType};
__property TElXMLMACMethod HMACMethod = {read = GetHMACMethod, write = SetHMACMethod};
__property TElXMLSignatureMethod SigMethod = {read = GetSigMethod, write = SetSigMethod};
__property AnsiString KeyName = {read = GetKeyName, write = SetKeyName};
__property AnsiString KeyFile = {read = GetKeyFile, write = SetKeyFile};
__property AnsiString Passphrase = {read = GetPassphrase, write = SetPassphrase};
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmSign *frmSign;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?