mainform.h
来自「著名的SecureBlackBox控件完整源码」· C头文件 代码 · 共 82 行
H
82 行
//---------------------------------------------------------------------------
#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <Dialogs.hpp>
#include "ReferencesForm.h"
#include "SignForm.h"
#include "SelWinCertForm.h"
#include "ReferenceForm.h"
#include "SBUtils.hpp"
#include "SBConstants.hpp"
#include "SBAES.hpp"
#include "SB3DES.hpp"
#include "SBDES.hpp"
#include "SBCamellia.hpp"
#include "SBRC4.hpp"
#include "SBX509.hpp"
#include "SBPublicKeyCrypto.hpp"
#include "SBPGPKeys.hpp"
#include "SBXMLCore.hpp"
#include "SBXMLDefs.hpp"
#include "SBXMLSig.hpp"
#include "SBXMLSec.hpp"
#include "SBXMLCharsets.hpp"
#include "SBXMLTransform.hpp"
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TLabel *lbXMLFile;
TSpeedButton *sbBrowseXMLFile;
TLabel *lbNodeType;
TLabel *dlbNodeType;
TLabel *lbNamespaceURI;
TLabel *dlbNamespaceURI;
TEdit *edXMLFile;
TButton *btnLoadXML;
TButton *btnSaveXML;
TTreeView *tvXML;
TButton *btnSign;
TButton *btnVerify;
TMemo *mmXML;
TButton *btnClear;
TButton *btnDelete;
TButton *btnRemoveSignature;
TOpenDialog *dlgOpenXML;
void __fastcall btnClearClick(TObject *Sender);
void __fastcall btnDeleteClick(TObject *Sender);
void __fastcall btnLoadXMLClick(TObject *Sender);
void __fastcall btnRemoveSignatureClick(TObject *Sender);
void __fastcall btnSaveXMLClick(TObject *Sender);
void __fastcall btnSignClick(TObject *Sender);
void __fastcall btnVerifyClick(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall sbBrowseXMLFileClick(TObject *Sender);
void __fastcall tvXMLChange(TObject *Sender, TTreeNode *Node);
private: // User declarations
TElXMLDOMDocument* FXMLDocument;
TTreeNode* AddNode(TTreeNode* Sibling, TElXMLDOMNode* Node);
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
void LoadCertificate(TFileStream* F, const AnsiString Password, TElXMLKeyInfoX509Data* X509KeyData);
void UpdateXML(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?