PKIFResourcesTestDialog.h
Go to the documentation of this file.00001
00010 #if !defined(__PKIFRESOURCESTESTDIALOG_H__)
00011 #define __PKIFRESOURCESTESTDIALOG_H__
00012
00013 #include "pkif.h"
00014 #include "PKIFResourcesTestWx.h"
00015
00016
00017 class CPKIFSimplePasswordCallback;
00018
00019
00020
00021
00022
00023
00024
00025 class PKIFResourcesTestDialog: public wxDialog
00026 {
00027 public:
00028
00029 PKIFResourcesTestDialog( wxWindow *parent, wxWindowID id, const wxString &title,
00030 const wxPoint& pos = wxDefaultPosition,
00031 const wxSize& size = wxDefaultSize,
00032 long style = wxDEFAULT_DIALOG_STYLE );
00033
00034
00035 wxButton* GetSaveButton() { return (wxButton*) FindWindow( PRT_ID_SAVE ); }
00036 wxButton* GetSaveToFileButton() { return (wxButton*) FindWindow( PRT_ID_SAVE_FILE ); }
00037 wxButton* GetLoadButton() { return (wxButton*) FindWindow( PRT_ID_LOAD ); }
00038 wxButton* GetLoadFromFileButton() { return (wxButton*) FindWindow( PRT_ID_LOAD_FILE ); }
00039 wxTextCtrl* GetLogField() { return (wxTextCtrl*) FindWindow( PRT_ID_LOG_FIELD ); }
00040 wxButton* GetPkiProcButton() { return (wxButton*) FindWindow( PRT_ID_PKI_PROC_BUTTON ); }
00041 wxButton* GetPkiEnvButton() { return (wxButton*) FindWindow( PRT_ID_PKI_ENV_BUTTON ); }
00042 wxTextCtrl* GetAppField() { return (wxTextCtrl*) FindWindow( PRT_ID_APP_FIELD ); }
00043 wxTextCtrl* GetCompanyField() { return (wxTextCtrl*) FindWindow( PRT_ID_COMPANY_FIELD ); }
00044 wxTextCtrl* GetLevelField() { return (wxTextCtrl*) FindWindow( PRT_ID_LEVEL_FIELD ); }
00045 wxCheckBox* GetHKLM() { return (wxCheckBox*) FindWindow( PRT_ID_HKLM ); }
00046 virtual bool Validate();
00047 virtual bool TransferDataToWindow();
00048 virtual bool TransferDataFromWindow();
00049
00050 private:
00051
00052 wxString m_app;
00053 wxString m_company;
00054 wxString m_level;
00055
00056 IPKIFMediatorPtr m_med;
00057 CPKIFPathSettingsPtr m_ps;
00058
00059 CPKIFSimplePasswordCallback * m_pwcb;
00060
00061 private:
00062
00063 void OnClickCredentials( wxCommandEvent &event );
00064 void OnClickSaveSettings( wxCommandEvent &event );
00065 void OnClickSaveSettingsToFile( wxCommandEvent &event );
00066 void OnClickLoadSettings( wxCommandEvent &event );
00067 void OnClickLoadSettingsFromFile( wxCommandEvent &event );
00068 void OnClickEditVal( wxCommandEvent &event );
00069 void OnClickEditEnv( wxCommandEvent &event );
00070 void OnQuit(wxCloseEvent &event);
00071
00072 private:
00073 DECLARE_EVENT_TABLE()
00074 };
00075
00076
00077
00078
00079 #endif