]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/dialog.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
43a18898 | 5 | // Created: |
58614078 | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
8e6efd1f PC |
10 | #ifndef _WX_GTKDIALOG_H_ |
11 | #define _WX_GTKDIALOG_H_ | |
c801d85f | 12 | |
bfafa628 VZ |
13 | class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop; |
14 | ||
c801d85f KB |
15 | //----------------------------------------------------------------------------- |
16 | // wxDialog | |
17 | //----------------------------------------------------------------------------- | |
18 | ||
20123d49 | 19 | class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase |
c801d85f | 20 | { |
43a18898 | 21 | public: |
68995f26 | 22 | wxDialog() { Init(); } |
bfc6fde4 | 23 | wxDialog( wxWindow *parent, wxWindowID id, |
43a18898 | 24 | const wxString &title, |
2b854a32 VZ |
25 | const wxPoint &pos = wxDefaultPosition, |
26 | const wxSize &size = wxDefaultSize, | |
27 | long style = wxDEFAULT_DIALOG_STYLE, | |
28 | const wxString &name = wxDialogNameStr ); | |
bfc6fde4 VZ |
29 | bool Create( wxWindow *parent, wxWindowID id, |
30 | const wxString &title, | |
31 | const wxPoint &pos = wxDefaultPosition, | |
32 | const wxSize &size = wxDefaultSize, | |
33 | long style = wxDEFAULT_DIALOG_STYLE, | |
34 | const wxString &name = wxDialogNameStr ); | |
a9efc294 | 35 | virtual ~wxDialog(); |
bfc6fde4 | 36 | |
8e6efd1f | 37 | virtual bool Show( bool show = true ); |
bfc6fde4 VZ |
38 | virtual int ShowModal(); |
39 | virtual void EndModal( int retCode ); | |
40 | virtual bool IsModal() const; | |
bfc6fde4 | 41 | |
bfc6fde4 | 42 | // implementation |
23efdd02 | 43 | // -------------- |
bfc6fde4 | 44 | |
bfc6fde4 | 45 | bool m_modalShowing; |
bfc6fde4 | 46 | |
2158f4d7 | 47 | private: |
68995f26 VZ |
48 | // common part of all ctors |
49 | void Init(); | |
bfafa628 | 50 | wxGUIEventLoop *m_modalLoop; |
20e05ffb | 51 | DECLARE_DYNAMIC_CLASS(wxDialog) |
c801d85f KB |
52 | }; |
53 | ||
8e6efd1f | 54 | #endif // _WX_GTKDIALOG_H_ |