1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-03-11 15:34:42 +00:00
|
|
|
// Name: wx/motif/msgdlg.h
|
1998-09-18 10:19:10 +00:00
|
|
|
// Purpose: wxMessageDialog class. Use generic version if no
|
|
|
|
// platform-specific implementation.
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
|
|
|
|
1999-07-21 16:10:18 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Message box dialog
|
|
|
|
// ----------------------------------------------------------------------------
|
1998-09-18 10:19:10 +00:00
|
|
|
|
2007-05-24 12:50:42 +00:00
|
|
|
class WXDLLEXPORT wxMessageDialog : public wxMessageDialogBase
|
1998-09-18 10:19:10 +00:00
|
|
|
{
|
1999-07-21 16:10:18 +00:00
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent,
|
2007-05-24 12:50:42 +00:00
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK | wxCENTRE,
|
|
|
|
const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
|
|
|
|
: wxMessageDialogBase(parent, message, caption, style)
|
|
|
|
{
|
|
|
|
}
|
2005-03-11 15:34:42 +00:00
|
|
|
|
2007-05-24 12:50:42 +00:00
|
|
|
virtual int ShowModal();
|
2005-03-11 15:34:42 +00:00
|
|
|
|
1999-07-21 16:10:18 +00:00
|
|
|
// implementation only from now on
|
2002-02-05 16:34:33 +00:00
|
|
|
// called by the Motif callback
|
1999-07-21 16:10:18 +00:00
|
|
|
void SetResult(long result) { m_result = result; }
|
2005-03-11 15:34:42 +00:00
|
|
|
|
1998-09-18 10:19:10 +00:00
|
|
|
protected:
|
1999-07-21 16:10:18 +00:00
|
|
|
long m_result;
|
2007-05-24 12:50:42 +00:00
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
1998-09-18 10:19:10 +00:00
|
|
|
};
|
|
|
|
|
2007-05-24 12:50:42 +00:00
|
|
|
#endif // _WX_MSGBOXDLG_H_
|