00001 00018 #ifndef INC_RVC_UIDLGDBFIELDMEMO_H 00019 #define INC_RVC_UIDLGDBFIELDMEMO_H 00020 00021 #ifndef INC_RVC_UIDLGDBFIELDVALUE_H 00022 #include <rvc/uidlgdbfieldvalue.h> 00023 #endif 00024 00025 #ifndef INC_MGUI_EDIT_H 00026 #include <mgui/edit.h> 00027 #endif 00028 00029 namespace RVC { 00030 namespace UI { 00031 //===================================================================================================================== 00032 00034 class DLG_DB_FIELD_MEMO : public DLG_DB_FIELD_VALUE { 00035 public: 00036 00038 DLG_DB_FIELD_MEMO ( 00039 ); 00040 00042 virtual ~DLG_DB_FIELD_MEMO (); 00043 00044 private: 00045 #ifndef GENERATING_DOXYGEN_OUTPUT 00046 00047 typedef DLG_DB_FIELD_MEMO THISCLASS; 00048 00049 class SETTINGS : public DLG_DB_FIELD_VALUE::SETTINGS { 00050 public: 00051 SETTINGS (); 00052 const LPOINT2D& GetTextCtrlSize ( 00053 ) const { return (m_TextCtrlSize); } 00054 const LPOINT2D& GetPosition ( 00055 ) const { return (m_Position); } 00056 bool HasPlacement ( 00057 ) const { return (m_Position.x >= 0 && m_Position.y >= 0); } 00058 void SetTextCtrlSize ( 00059 INT32 x, 00060 INT32 y 00061 ) { if (x != m_TextCtrlSize.x || y != m_TextCtrlSize.y) { SetChanged(); m_TextCtrlSize.x = x; m_TextCtrlSize.y = y; } } 00062 void SetPosition ( 00063 INT32 x, 00064 INT32 y 00065 ) { if (x != m_Position.x || y != m_Position.y) { SetChanged(); m_Position.x = x; m_Position.y = y; } } 00066 private: 00067 #ifndef GENERATING_DOXYGEN_OUTPUT 00068 typedef SETTINGS THISCLASS; 00069 LPOINT2D m_TextCtrlSize; 00070 LPOINT2D m_Position; 00071 00072 virtual const char* v_GetObjNameBase () const; 00073 virtual const SERIALIZERITEM* v_SerialGetItemDef () const; 00074 #endif 00075 }; 00076 00077 SETTINGS m_Settings; 00078 MGUI::CTRL_EDIT_TEXT m_TextCtrl; 00079 00080 void OnTextUserEdit (); 00081 00082 // SHELL/DLGSHELL overrides. 00083 virtual ERRVALUE v_CreateContent (); 00084 00085 // DLG_DB_FIELD_VALUE overrides. 00086 virtual ERRVALUE v_GetValue (RVC::DBTABLE::RECORD& record); 00087 virtual ERRVALUE v_Setup (const RVC::DBTABLE& ObjTable); 00088 virtual ERRVALUE v_SetValue (const RVC::DBTABLE::RECORD& record); 00089 virtual void v_UpdateSettings (); 00090 #endif 00091 }; 00092 //===================================================================================================================== 00093 } // End namespace UI 00094 } // End namespace RVC 00095 00096 #endif // INC_RVC_UIDLGDBFIELDMEMO_H 00097
1.6.1