1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-03-11 10:34:42 -05:00
|
|
|
// Name: wx/generic/msgdlgg.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose: Generic wxMessageDialog
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
2005-03-11 10:34:42 -05:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-06-17 12:22:36 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
#ifndef _WX_GENERIC_MSGDLGG_H_
|
|
|
|
#define _WX_GENERIC_MSGDLGG_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2010-08-30 17:48:21 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxSizer;
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxGenericMessageDialog : public wxMessageDialogBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-05-24 08:50:42 -04:00
|
|
|
wxGenericMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
protected:
|
2010-08-18 18:48:28 -04:00
|
|
|
// Creates a message dialog taking any options that have been set after
|
|
|
|
// object creation into account such as custom labels.
|
|
|
|
void DoCreateMsgdialog();
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
void OnYes(wxCommandEvent& event);
|
|
|
|
void OnNo(wxCommandEvent& event);
|
|
|
|
void OnCancel(wxCommandEvent& event);
|
1999-07-30 23:35:35 -04:00
|
|
|
|
2010-08-18 18:48:28 -04:00
|
|
|
// can be overridden to provide more contents to the dialog
|
|
|
|
virtual void AddMessageDialogCheckBox(wxSizer *WXUNUSED(sizer)) { }
|
|
|
|
virtual void AddMessageDialogDetails(wxSizer *WXUNUSED(sizer)) { }
|
2007-05-24 08:50:42 -04:00
|
|
|
|
2010-08-18 18:48:28 -04:00
|
|
|
private:
|
2010-08-30 17:48:21 -04:00
|
|
|
// Creates and returns a standard button sizer using the style of this
|
|
|
|
// dialog and the custom labels, if any.
|
|
|
|
//
|
|
|
|
// May return NULL on smart phone platforms not using buttons at all.
|
|
|
|
wxSizer *CreateMsgDlgButtonSizer();
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
wxPoint m_pos;
|
|
|
|
bool m_created;
|
|
|
|
|
2000-01-05 10:35:04 -05:00
|
|
|
DECLARE_EVENT_TABLE()
|
2007-05-24 08:50:42 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
#endif // _WX_GENERIC_MSGDLGG_H_
|