00001 00023 #ifndef INC_RVC_DLGIMGHG_H 00024 #define INC_RVC_DLGIMGHG_H 00025 00026 #ifndef INC_MGUI_DLGSHELL_H 00027 #include <mgui/dlgshell.h> 00028 #endif 00029 00030 00031 class REGION2D; 00032 00033 namespace RVC { 00034 00035 class OBJITEM; 00036 00037 00038 class DLG_IMAGE_HISTOGRAM : public MGUI::DLGSHELL { 00039 public: 00040 00041 enum STYLE { 00042 STYLE_Default = 0x00, 00043 STYLE_DeleteOnClose = 0x01, 00044 STYLE_NoSelectObject = 0x02, 00045 STYLE_NoSaveAsText = 0x04, 00046 STYLE_NoMultiObject = 0x08 00047 }; 00048 00049 typedef MILIST<DLG_IMAGE_HISTOGRAM*> DLGLIST; 00050 00052 static DLGLIST& GetDlgList ( 00053 ) { return (s_DlgList); } 00054 00056 explicit DLG_IMAGE_HISTOGRAM ( 00057 STYLE style = STYLE_Default 00058 ); 00059 00061 virtual ~DLG_IMAGE_HISTOGRAM ( 00062 ); 00063 00065 ERRVALUE AddObject ( 00066 const RVC::OBJITEM& objitem, 00067 COLORREF color = 0x000000 00068 ); 00069 00071 bool HasObject ( 00072 const RVC::OBJITEM& objitem 00073 ) const; 00074 00076 ERRVALUE SetRegion ( 00077 const REGION2D& region 00078 ); 00079 00080 private: 00081 #ifndef GENERATING_DOXYGEN_OUTPUT 00082 00083 static DLGLIST s_DlgList; 00084 00085 class PRIV; 00086 PRIV *m_pPriv; 00087 00088 virtual ERRVALUE v_CreateContent (); 00089 00090 DLG_IMAGE_HISTOGRAM (const DLG_IMAGE_HISTOGRAM&); 00091 DLG_IMAGE_HISTOGRAM& operator= (const DLG_IMAGE_HISTOGRAM&); 00092 #endif // GENERATING_DOXYGEN_OUTPUT 00093 }; 00094 00095 #ifndef GENERATING_DOXYGEN_OUTPUT 00096 DEFINE_ENUM_OP_BITWISE(DLG_IMAGE_HISTOGRAM::STYLE) 00097 #endif 00098 00099 } // End of namespace RVC 00100 00101 00102 #endif // INC_RVC_DLGIMGHG_H
1.6.1