InitialBooleanSettingsPanel.cpp
Go to the documentation of this file.00001
00010 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00011 #pragma implementation "InitialBooleanSettingsPanel.cpp"
00012 #endif
00013
00014
00015 #include "PKIFdll.h"
00016
00017 #include "wx/wxprec.h"
00018
00019 #ifdef __BORLANDC__
00020 #pragma hdrstop
00021 #endif
00022
00023 #include "InitialBooleanSettingsPanel.h"
00024 #include "PKIFPathSettings.h"
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 BEGIN_EVENT_TABLE(CPKIFInitialBooleanSettingsPanel,wxPanel)
00035 END_EVENT_TABLE()
00043 CPKIFInitialBooleanSettingsPanel::CPKIFInitialBooleanSettingsPanel( wxWindow *parent, wxWindowID id,
00044 const wxPoint &position, const wxSize& size, long style ) :
00045 wxPanel( parent, id, position, size, style )
00046 {
00047
00048 InitialBooleanSettingsPanel( this, TRUE );
00049 }
00050
00051
00059 void CPKIFInitialBooleanSettingsPanel::SetInitialPathSettings(CPKIFPathSettingsPtr& ps)
00060 {
00061 m_initialPathSettings = ps;
00062 }
00070 void CPKIFInitialBooleanSettingsPanel::OnInitDialog(wxInitDialogEvent& event)
00071 {
00072 if(m_initialPathSettings != (CPKIFPathSettings*)NULL)
00073 {
00074 wxCheckBox* cb = NULL;
00075 cb = GetCheckExplicitPolicyIndicator();
00076 wxASSERT(cb);
00077 cb->SetValue(m_initialPathSettings->GetInitialExplicitPolicyIndicator());
00078
00079 cb = GetCheckInhibitPolicyMapping();
00080 wxASSERT(cb);
00081 cb->SetValue(m_initialPathSettings->GetInitialPolicyMappingInhibitIndicator());
00082
00083 cb = GetCheckInhibitAnyPol();
00084 wxASSERT(cb);
00085 cb->SetValue(m_initialPathSettings->GetInitialInhibitAnyPolicyIndicator());
00086
00087 cb = GetCheckRequireFresh();
00088 wxASSERT(cb);
00089 cb->SetValue(m_initialPathSettings->GetRequireFreshRevocationData());
00090
00091 cb = GetCheckRequireRecent();
00092 wxASSERT(cb);
00093 cb->SetValue(m_initialPathSettings->GetRequireSufficientlyRecent());
00094
00095 cb = GetCheckValidateWhenBuilding();
00096 wxASSERT(cb);
00097 cb->SetValue(m_initialPathSettings->GetUseValidatorFilterWhenBuilding());
00098
00099 cb = GetCheckRevStatus();
00100 wxASSERT(cb);
00101 cb->SetValue(m_initialPathSettings->GetCheckRevocationStatus());
00102 }
00103 }