]>
Commit | Line | Data |
---|---|---|
13a7abf9 | 1 | ///////////////////////////////////////////////////////////////////////////// |
e5b50758 | 2 | // Name: wx/gtk/msgdlg.h |
13a7abf9 VS |
3 | // Purpose: wxMessageDialog for GTK+2 |
4 | // Author: Vaclav Slavik | |
5 | // Modified by: | |
6 | // Created: 2003/02/28 | |
13a7abf9 | 7 | // Copyright: (c) Vaclav Slavik, 2003 |
e5b50758 | 8 | // Licence: wxWindows licence |
13a7abf9 VS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
2afb9e16 VZ |
11 | #ifndef _WX_GTK_MSGDLG_H_ |
12 | #define _WX_GTK_MSGDLG_H_ | |
13a7abf9 | 13 | |
ede7b017 | 14 | class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase |
13a7abf9 VS |
15 | { |
16 | public: | |
17 | wxMessageDialog(wxWindow *parent, const wxString& message, | |
18 | const wxString& caption = wxMessageBoxCaptionStr, | |
19 | long style = wxOK|wxCENTRE, | |
20 | const wxPoint& pos = wxDefaultPosition); | |
21 | ||
2afb9e16 | 22 | virtual int ShowModal(); |
92763588 | 23 | virtual bool Show(bool WXUNUSED(show) = true) { return false; } |
b2ce5e1b RD |
24 | |
25 | protected: | |
26 | // implement some base class methods to do nothing to avoid asserts and | |
27 | // GTK warnings, since this is not a real wxDialog. | |
3db7220e VZ |
28 | virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), |
29 | int WXUNUSED(width), int WXUNUSED(height), | |
30 | int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} | |
31 | virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), | |
32 | int WXUNUSED(width), int WXUNUSED(height)) {} | |
470f357f PC |
33 | // override to convert wx mnemonics to GTK+ ones and handle stock ids |
34 | virtual void DoSetCustomLabel(wxString& var, const ButtonLabel& label); | |
13a7abf9 VS |
35 | |
36 | private: | |
92763588 VZ |
37 | // override to use stock GTK+ defaults instead of just string ones |
38 | virtual wxString GetDefaultYesLabel() const; | |
39 | virtual wxString GetDefaultNoLabel() const; | |
40 | virtual wxString GetDefaultOKLabel() const; | |
41 | virtual wxString GetDefaultCancelLabel() const; | |
7112cdd1 | 42 | virtual wxString GetDefaultHelpLabel() const; |
92763588 | 43 | |
2afb9e16 VZ |
44 | // create the real GTK+ dialog: this is done from ShowModal() to allow |
45 | // changing the message between constructing the dialog and showing it | |
46 | void GTKCreateMsgDialog(); | |
13a7abf9 VS |
47 | |
48 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) | |
49 | }; | |
50 | ||
2afb9e16 | 51 | #endif // _WX_GTK_MSGDLG_H_ |