]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/msgdlg.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / gtk1 / msgdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/msgdlg.h
3 // Purpose: wxMessageDialog for GTK+2
4 // Author: Vaclav Slavik
5 // Modified by:
6 // Created: 2003/02/28
7 // Copyright: (c) Vaclav Slavik, 2003
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __MSGDLG_H__
12 #define __MSGDLG_H__
13
14 #include "wx/defs.h"
15 #include "wx/dialog.h"
16
17 // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
18 // Returns wxYES/NO/OK/CANCEL
19
20 extern WXDLLIMPEXP_DATA_CORE(const wxChar) wxMessageBoxCaptionStr[];
21
22 class WXDLLIMPEXP_CORE wxMessageDialog: public wxDialog, public wxMessageDialogBase
23 {
24 public:
25 wxMessageDialog(wxWindow *parent, const wxString& message,
26 const wxString& caption = wxMessageBoxCaptionStr,
27 long style = wxOK|wxCENTRE,
28 const wxPoint& pos = wxDefaultPosition);
29 virtual ~wxMessageDialog();
30
31 int ShowModal();
32 virtual bool Show( bool WXUNUSED(show) = true ) { return false; }
33
34 protected:
35 // implement some base class methods to do nothing to avoid asserts and
36 // GTK warnings, since this is not a real wxDialog.
37 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
38 int WXUNUSED(width), int WXUNUSED(height),
39 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
40 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
41 int WXUNUSED(width), int WXUNUSED(height)) {}
42
43 private:
44 wxString m_caption;
45 wxString m_message;
46
47 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
48 };
49
50 #endif