00001 00020 #ifndef INC_MGUI_FORMEDITCONTACT_H 00021 #define INC_MGUI_FORMEDITCONTACT_H 00022 00023 #ifndef INC_MGUI_EDIT_H 00024 #include <mgui/edit.h> 00025 #endif 00026 00027 #ifndef INC_MGUI_DLGSHELL_H 00028 #include <mgui/dlgshell.h> 00029 #endif 00030 00031 #ifndef INC_MI32_CONTACTINFO_H 00032 #include <mi32/contactinfo.h> 00033 #endif 00034 00035 00036 namespace MGUI { 00037 00038 class FORM_EDIT_CONTACT : public FORM_COMPOSITE { 00039 public: 00040 FORM_EDIT_CONTACT ( 00041 ); 00042 00043 ~FORM_EDIT_CONTACT ( 00044 ); 00045 00046 bool CheckRequiredSet ( 00047 CONTACTINFO::REQUIRED RequiredSet 00048 ); 00049 00051 void Create ( 00052 MGUI::LAYOUT_PANE_BASE& ParentPane, 00053 bool ReadOnly = false, 00054 CONTACTINFO::REQUIRED RequiredSet = CONTACTINFO::REQUIRED_None, 00055 MGUI::LAYOUT_SIZEALIGN sizealign = MGUI::LAYOUT_SIZEALIGN_FixedHeight 00056 ); 00057 00058 void GetContactInfo ( 00059 CONTACTINFO& ContactInfo 00060 ); 00061 00062 void SetContactInfo ( 00063 const CONTACTINFO& ContactInfo 00064 ); 00065 00066 void SetDelegateOnRequiredSet ( 00067 FastDelegate<void(bool)> delegate 00068 ); 00069 00070 private: 00071 #ifndef GENERATING_DOXYGEN_OUTPUT 00072 MGUI::LAYOUT_PANE m_PersonPane; 00073 MGUI::FORM_EDIT_STRING m_ContactPerson; 00074 MGUI::FORM_EDIT_STRING m_ContactPosition; 00075 MGUI::FORM_EDIT_STRING m_ContactOrg; 00076 MGUI::FORM_EDIT_STRING m_ContactAddress; 00077 MGUI::LAYOUT_PANE m_SCPane; 00078 MGUI::FORM_EDIT_STRING m_ContactCity; 00079 MGUI::FORM_EDIT_STRING m_ContactState; 00080 MGUI::LAYOUT_PANE m_PCPane; 00081 MGUI::FORM_EDIT_STRING m_ContactPostCode; 00082 MGUI::FORM_EDIT_STRING m_ContactCountry; 00083 MGUI::CTRL_GROUPBOX m_PhoneBox; 00084 MGUI::LAYOUT_PANE m_PhonePane; 00085 MGUI::FORM_EDIT_STRING m_ContactPhone; 00086 MGUI::FORM_EDIT_STRING m_ContactFax; 00087 MGUI::FORM_EDIT_STRING m_ContactEmail; 00088 MGUI::FORM_EDIT_STRING m_ContactURL; 00089 MGUI::LAYOUT_PANE m_HOSPane; 00090 MGUI::FORM_EDIT_STRING m_HoursOfService; 00091 MGUI::CTRL_PUSHBUTTON m_Instructions; 00092 MGUI::CTRL_LABEL m_RequiredLabel; 00093 00094 CONTACTINFO m_ContactInfo; 00095 CONTACTINFO::REQUIRED m_RequiredSet; 00096 FastDelegate<void(bool)> m_OnRequiredSet; 00097 bool m_ReadOnly; 00098 00099 void OnCmdInstructions (); 00100 void OnUserEdit (); 00101 00102 #endif // GENERATING_DOXYGEN_OUTPUT 00103 }; 00104 00105 00106 class DLG_EDIT_CONTACT : public DLGSHELL { 00107 public: 00108 DLG_EDIT_CONTACT ( 00109 const MISTRING& Title, 00110 bool ReadOnly, 00111 CONTACTINFO::REQUIRED RequiredSet = CONTACTINFO::REQUIRED_None 00112 ); 00113 00114 ~DLG_EDIT_CONTACT ( 00115 ); 00116 00117 void GetContactInfo ( 00118 CONTACTINFO& ContactInfo 00119 ); 00120 00121 void SetContactInfo ( 00122 const CONTACTINFO& ContactInfo 00123 ); 00124 00125 private: 00126 #ifndef GENERATING_DOXYGEN_OUTPUT 00127 FORM_EDIT_CONTACT m_FormEditContact; 00128 CONTACTINFO::REQUIRED m_RequiredSet; 00129 bool m_ReadOnly; 00130 00131 virtual ERRVALUE v_CreateContent (); 00132 #endif // GENERATING_DOXYGEN_OUTPUT 00133 }; 00134 00135 00136 //=================================================================================================================== 00137 } // End of MGUI namespace 00138 00139 #endif // INC_MGUI_FORMEDITCONTACT_H
1.6.1