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