]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/msgdlg.h
Implement dc mirroring for RTL.
[wxWidgets.git] / include / wx / motif / msgdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/msgdlg.h
3 // Purpose: wxMessageDialog class. Use generic version if no
4 // platform-specific implementation.
5 // Author: Julian Smart
6 // Modified by:
7 // Created: 17/09/98
8 // RCS-ID: $Id$
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_MSGBOXDLG_H_
14 #define _WX_MSGBOXDLG_H_
15
16 #include "wx/defs.h"
17 #include "wx/dialog.h"
18
19 // ----------------------------------------------------------------------------
20 // Message box dialog
21 // ----------------------------------------------------------------------------
22
23 WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
24
25 class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
26 {
27 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
28
29 public:
30 wxMessageDialog(wxWindow *parent,
31 const wxString& message,
32 const wxString& caption = wxMessageBoxCaptionStr,
33 long style = wxOK | wxCENTRE,
34 const wxPoint& pos = wxDefaultPosition);
35
36 int ShowModal();
37
38 // implementation only from now on
39 // called by the Motif callback
40 void SetResult(long result) { m_result = result; }
41
42 protected:
43 wxString m_caption;
44 wxString m_message;
45 wxWindow * m_parent;
46 long m_result;
47 };
48
49 #endif
50 // _WX_MSGBOXDLG_H_