00001 /** 00002 * \file mgui/dlgtextv.h 00003 * \brief MGUI::DLG_TEXTVIEW class definitions. 00004 * 00005 * \if NODOC 00006 * $Id: dlgtextv.h_v 1.7 2005/03/31 16:57:08 fileserver!dwilliss Exp $ 00007 * 00008 * $Log: dlgtextv.h_v $ 00009 * Revision 1.7 2005/03/31 16:57:08 fileserver!dwilliss 00010 * Rename one of our types to MIUNICODE because it conflicted with a Microsoft #define 00011 * 00012 * Revision 1.6 2003/11/05 21:11:58 mju 00013 * Add default for helpid. 00014 * 00015 * Revision 1.5 2003/10/03 19:58:19 linux32build!build 00016 * Doxygen 00017 * 00018 * Revision 1.4 2003/09/23 14:20:05 scowan 00019 * nc. 00020 * 00021 * Revision 1.3 2003/09/22 19:53:56 scowan 00022 * Changed to use dlg shell instead of dlg base. 00023 * 00024 * Revision 1.2 2003/09/15 13:49:32 fileserver!dwilliss 00025 * Doxygen 00026 * 00027 * Revision 1.1 2002/10/23 15:39:25 mju 00028 * Initial revision 00029 * 00030 * \endif 00031 **/ 00032 00033 #ifndef INC_MGUI_DLGTEXTV_H 00034 #define INC_MGUI_DLGTEXTV_H 00035 00036 #ifndef INC_MGUI_DLGSHELL_H 00037 #include <mgui/dlgshell.h> 00038 #endif 00039 00040 namespace MGUI { 00041 //=================================================================================================================== 00042 //! Dialog for viewing non-editable text. 00043 class DLG_TEXTVIEW : public DLGSHELL { 00044 public: 00045 00046 //! Constructor. 00047 DLG_TEXTVIEW ( 00048 const MISTRING& title, //!< Title string, can use TEXTID also 00049 HELPID HelpID = HELPID__None //!< Help ID 00050 ); 00051 00052 //! Destructor. 00053 virtual ~DLG_TEXTVIEW (); 00054 00055 //! Set text to display from MISTRING. 00056 void SetText ( 00057 const MISTRING& string 00058 ); 00059 00060 //! Set text to display from MIUNICODE string. 00061 void SetText ( 00062 const MIUNICODE *string 00063 ); 00064 00065 private: 00066 #ifndef GENERATING_DOXYGEN_OUTPUT 00067 MISTRING m_TextStr; 00068 CTRL_EDIT_TEXT m_TextCtrl; 00069 00070 //! Overrides from DLGSHELL. 00071 virtual ERRVALUE v_CreateContent (); 00072 virtual void v_OnOK (); 00073 #endif // GENERATING_DOXYGEN_OUTPUT 00074 }; 00075 00076 //=================================================================================================================== 00077 } // End namespace MGUI 00078 00079 #endif // INC_MGUI_DLGTEXTV_H
1.3.8-20040913