1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        wx/gtk/dialog.h
3 // Purpose:
4 // Author:      Robert Roebling
5 // Created:
6 // Copyright:   (c) 1998 Robert Roebling
7 // Licence:           wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9 
10 #ifndef _WX_GTKDIALOG_H_
11 #define _WX_GTKDIALOG_H_
12 
13 class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
14 
15 //-----------------------------------------------------------------------------
16 // wxDialog
17 //-----------------------------------------------------------------------------
18 
19 class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
20 {
21 public:
wxDialog()22     wxDialog() { Init(); }
23     wxDialog( wxWindow *parent, wxWindowID id,
24             const wxString &title,
25             const wxPoint &pos = wxDefaultPosition,
26             const wxSize &size = wxDefaultSize,
27             long style = wxDEFAULT_DIALOG_STYLE,
28             const wxString &name = wxDialogNameStr );
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 );
35     virtual ~wxDialog();
36 
37     virtual bool Show( bool show = true );
38     virtual int ShowModal();
39     virtual void EndModal( int retCode );
40     virtual bool IsModal() const;
41 
42 private:
43     // common part of all ctors
44     void Init();
45 
46     bool m_modalShowing;
47     wxGUIEventLoop *m_modalLoop;
48 
49     DECLARE_DYNAMIC_CLASS(wxDialog)
50 };
51 
52 #endif // _WX_GTKDIALOG_H_
53