1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-03-11 10:34:42 -05:00
|
|
|
// Name: wx/motif/msgdlg.h
|
1998-09-18 06:19:10 -04: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 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
|
|
|
|
1999-07-21 12:10:18 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Message box dialog
|
|
|
|
// ----------------------------------------------------------------------------
|
1998-09-18 06:19:10 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
|
1998-09-18 06:19:10 -04:00
|
|
|
{
|
1999-07-21 12:10:18 -04:00
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent,
|
2007-05-24 08:50:42 -04: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 10:34:42 -05:00
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
virtual int ShowModal();
|
2005-03-11 10:34:42 -05:00
|
|
|
|
1999-07-21 12:10:18 -04:00
|
|
|
// implementation only from now on
|
2002-02-05 11:34:33 -05:00
|
|
|
// called by the Motif callback
|
1999-07-21 12:10:18 -04:00
|
|
|
void SetResult(long result) { m_result = result; }
|
2005-03-11 10:34:42 -05:00
|
|
|
|
1998-09-18 06:19:10 -04:00
|
|
|
protected:
|
1999-07-21 12:10:18 -04:00
|
|
|
long m_result;
|
2007-05-24 08:50:42 -04:00
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
1998-09-18 06:19:10 -04:00
|
|
|
};
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
#endif // _WX_MSGBOXDLG_H_
|