00001 00030 #ifndef INC_MGUI_DLGEDITCOLORS_H 00031 #define INC_MGUI_DLGEDITCOLORS_H 00032 00033 #ifndef INC_MGUI_DLGSHELL_H 00034 #include <mgui/dlgshell.h> 00035 #endif 00036 00037 #ifndef INC_MGUI_FORMEDITCOLORS_H 00038 #include <mgui/formeditcolors.h> 00039 #endif 00040 00041 namespace MGUI { 00042 //=================================================================================================================== 00043 00045 class DLG_EDIT_COLORS : public DLGSHELL { 00046 public: 00047 00051 explicit DLG_EDIT_COLORS ( 00052 COLOR::CAPABILITY capability = COLOR::CAPABILITY_NoTransparency, 00053 LAYOUT_ORIENTATION orientation = LAYOUT_ORIENTATION_Vertical 00054 ); 00055 00057 virtual ~DLG_EDIT_COLORS (); 00058 00061 int AddItem ( 00062 const MISTRING& name, 00063 const COLOR& color, 00064 COLOR::CAPABILITY capability = COLOR::CAPABILITY_AsPrevious 00065 ) { return (m_FormEditColors.AddItem(name,color,capability)); } 00066 00069 int AddItem ( 00070 const MISTRING& name, 00071 UINT32 colorref, 00072 COLOR::CAPABILITY capability = COLOR::CAPABILITY_AsPrevious 00073 ) { return (m_FormEditColors.AddItem(name,colorref,capability)); } 00074 00077 const COLOR& GetItemColor ( 00078 int itemidx 00079 ) { return (m_FormEditColors.GetItemColor(itemidx)); } 00080 00083 UINT32 GetItemColorRef ( 00084 int itemidx 00085 ) { return (m_FormEditColors.GetItemColorRef(itemidx)); } 00086 00087 private: 00088 #ifndef GENERATING_DOXYGEN_OUTPUT 00089 FORM_EDIT_COLORS m_FormEditColors; 00090 COLOR::CAPABILITY m_capability; 00091 LAYOUT_ORIENTATION m_orientation; 00092 00094 virtual ERRVALUE v_CreateContent (); 00095 #endif // GENERATING_DOXYGEN_OUTPUT 00096 }; 00097 00098 //=================================================================================================================== 00099 } // End namespace MGUI 00100 00101 #endif // INC_MGUI_DLGEDITCOLORS_H
1.6.1