]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: msgdlg.h | |
3 | // Purpose: wxMessageDialog for GTK+2 | |
4 | // Author: Vaclav Slavik | |
5 | // Modified by: | |
6 | // Created: 2003/02/28 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Vaclav Slavik, 2003 | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef __MSGDLG_H__ | |
13 | #define __MSGDLG_H__ | |
14 | ||
15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
16 | #pragma interface "msgdlg.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/setup.h" | |
20 | #include "wx/dialog.h" | |
21 | ||
22 | // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO | |
23 | // Returns wxYES/NO/OK/CANCEL | |
24 | ||
25 | WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr; | |
26 | ||
27 | class WXDLLEXPORT wxMessageDialog: public wxDialog | |
28 | { | |
29 | public: | |
30 | wxMessageDialog(wxWindow *parent, const wxString& message, | |
31 | const wxString& caption = wxMessageBoxCaptionStr, | |
32 | long style = wxOK|wxCENTRE, | |
33 | const wxPoint& pos = wxDefaultPosition); | |
34 | ||
35 | int ShowModal(); | |
36 | ||
37 | private: | |
38 | wxString m_caption; | |
39 | wxString m_message; | |
40 | long m_dialogStyle; | |
41 | wxWindow *m_parent; | |
42 | ||
43 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) | |
44 | }; | |
45 | ||
46 | #endif |