SettingsWithTimePeriodDlg.h
Go to the documentation of this file.00001
00009 #ifndef __SettingsWithTimePeriod_H__
00010 #define __SettingsWithTimePeriod_H__
00011
00012 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00013 #pragma interface "SettingsWithTimePeriodDlg.cpp"
00014 #endif
00015
00016 #ifndef WX_PRECOMP
00017 #include "wx/wx.h"
00018 #endif
00019
00020 #include "PKIFResources_wdr.h"
00021
00022 #ifdef __INCLUDE_SCVP_SUPPORT__
00023 #include "EvidenceRecordVerifier.h"
00024 #endif
00025
00026
00027
00028
00029
00030
00031 struct SettingsWithTimePeriodDlgImpl;
00038 class CSettingsWithTimePeriodDlg: public wxDialog
00039 {
00040 public:
00041
00042 CSettingsWithTimePeriodDlg( wxWindow *parent, wxWindowID id, const wxString &title,
00043 const wxPoint& pos = wxDefaultPosition,
00044 const wxSize& size = wxDefaultSize,
00045 long style = wxDEFAULT_DIALOG_STYLE );
00046 virtual ~CSettingsWithTimePeriodDlg();
00047
00048 enum STPD_SETTINGS{DISPLAY_BOTH, DISPLAY_PP, DISPLAY_MEDS};
00049
00050 void SetWhatToDisplay(enum STPD_SETTINGS d){m_whatToDisplay = d;}
00051 enum STPD_SETTINGS GetWhatToDisplay(){return m_whatToDisplay;}
00052
00053
00054 wxTextCtrl* GetTextctrlPpNotAfter() { return (wxTextCtrl*) FindWindow( ID_TEXTCTRL_PP_NOT_AFTER ); }
00055 wxTextCtrl* GetTextctrlPpNotBefore() { return (wxTextCtrl*) FindWindow( ID_TEXTCTRL_PP_NOT_BEFORE ); }
00056 wxTextCtrl* GetTextctrlMedsNotAfter() { return (wxTextCtrl*) FindWindow( ID_TEXTCTRL_MEDS_NOT_AFTER ); }
00057 wxTextCtrl* GetTextctrlMedsNotBefore() { return (wxTextCtrl*) FindWindow( ID_TEXTCTRL_MEDS_NOT_BEFORE ); }
00058 virtual bool Validate();
00059 virtual bool TransferDataToWindow();
00060 virtual bool TransferDataFromWindow();
00061
00062 #ifdef __INCLUDE_SCVP_SUPPORT__
00063 CPKIFExMediatorPtr GetMediator();
00064 CPKIFExPathSettingsPtr GetPathSettings();
00065 void SetMediator(CPKIFExMediatorPtr& med);
00066 void SetPathSettings(CPKIFExPathSettingsPtr& ps);
00067 #endif
00068
00069 private:
00070
00071
00072 private:
00073
00074 void OnClickPathNotAfter( wxCommandEvent &event );
00075 void OnClickPathNotBefore( wxCommandEvent &event );
00076 void OnClickMedsNotAfter( wxCommandEvent &event );
00077 void OnClickMedsNotBefore( wxCommandEvent &event );
00078 void OnClickPathSettings( wxCommandEvent &event );
00079 void OnClickMeds( wxCommandEvent &event );
00080 void OnOk( wxCommandEvent &event );
00081 void OnCancel( wxCommandEvent &event );
00082
00083 enum STPD_SETTINGS m_whatToDisplay;
00084
00085 SettingsWithTimePeriodDlgImpl* m_impl;
00086
00087 private:
00088 DECLARE_EVENT_TABLE()
00089 };
00090
00091
00092
00093
00094 #endif