1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/msgdlg.h
3 // Purpose: wxMessageDialog for GTK+2
4 // Author: Vaclav Slavik
8 // Copyright: (c) Vaclav Slavik, 2003
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GTK_MSGDLG_H_
13 #define _WX_GTK_MSGDLG_H_
15 class WXDLLIMPEXP_CORE wxMessageDialog
: public wxMessageDialogBase
18 wxMessageDialog(wxWindow
*parent
, const wxString
& message
,
19 const wxString
& caption
= wxMessageBoxCaptionStr
,
20 long style
= wxOK
|wxCENTRE
,
21 const wxPoint
& pos
= wxDefaultPosition
);
23 virtual int ShowModal();
24 virtual bool Show(bool WXUNUSED(show
) = true) { return false; }
27 // implement some base class methods to do nothing to avoid asserts and
28 // GTK warnings, since this is not a real wxDialog.
29 virtual void DoSetSize(int WXUNUSED(x
), int WXUNUSED(y
),
30 int WXUNUSED(width
), int WXUNUSED(height
),
31 int WXUNUSED(sizeFlags
) = wxSIZE_AUTO
) {}
32 virtual void DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
),
33 int WXUNUSED(width
), int WXUNUSED(height
)) {}
34 // override to convert wx mnemonics to GTK+ ones and handle stock ids
35 virtual void DoSetCustomLabel(wxString
& var
, const ButtonLabel
& label
);
38 // override to use stock GTK+ defaults instead of just string ones
39 virtual wxString
GetDefaultYesLabel() const;
40 virtual wxString
GetDefaultNoLabel() const;
41 virtual wxString
GetDefaultOKLabel() const;
42 virtual wxString
GetDefaultCancelLabel() const;
43 virtual wxString
GetDefaultHelpLabel() const;
45 // create the real GTK+ dialog: this is done from ShowModal() to allow
46 // changing the message between constructing the dialog and showing it
47 void GTKCreateMsgDialog();
49 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)
52 #endif // _WX_GTK_MSGDLG_H_