]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/motif/msgdlg.h
Added blank line to end (Tex2RTF requirement)
[wxWidgets.git] / include / wx / motif / msgdlg.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: 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#ifdef __GNUG__
17#pragma interface "msgdlg.h"
18#endif
19
20#include "wx/setup.h"
21#include "wx/dialog.h"
22
23// ----------------------------------------------------------------------------
24// Message box dialog
25// ----------------------------------------------------------------------------
26
27WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
28
29class WXDLLEXPORT wxMessageDialog: public wxDialog
30{
31 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
32
33public:
34 wxMessageDialog(wxWindow *parent,
35 const wxString& message,
36 const wxString& caption = wxMessageBoxCaptionStr,
37 long style = wxOK | wxCENTRE,
38 const wxPoint& pos = wxDefaultPosition);
39
40 int ShowModal();
41
42 // implementation only from now on
43 // called by the Motif callback
44 void SetResult(long result) { m_result = result; }
45
46protected:
47 wxString m_caption;
48 wxString m_message;
49 long m_dialogStyle;
50 wxWindow * m_parent;
51 long m_result;
52};
53
54
55int WXDLLEXPORT wxMessageBox(const wxString& message,
56 const wxString& caption = wxMessageBoxCaptionStr,
57 long style = wxOK | wxCENTRE,
58 wxWindow *parent = NULL,
59 int x = -1, int y = -1);
60
61#endif
62 // _WX_MSGBOXDLG_H_