]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/motif/msgdlg.h
1. Moved m_usePrimary to wxClipboardBase as it's now also used by wxMSW/wxMac
[wxWidgets.git] / include / wx / motif / msgdlg.h
... / ...
CommitLineData
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
23WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
24
25class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
26{
27 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
28
29public:
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
42protected:
43 wxString m_caption;
44 wxString m_message;
45 wxWindow * m_parent;
46 long m_result;
47};
48
49#endif
50// _WX_MSGBOXDLG_H_