1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dialog.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTKDIALOG_H_
11 #define _WX_GTKDIALOG_H_
13 class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop
;
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxDialog
: public wxDialogBase
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
);
37 virtual bool Show( bool show
= true );
38 virtual int ShowModal();
39 virtual void EndModal( int retCode
);
40 virtual bool IsModal() const;
48 // common part of all ctors
50 wxGUIEventLoop
*m_modalLoop
;
51 DECLARE_DYNAMIC_CLASS(wxDialog
)
54 #endif // _WX_GTKDIALOG_H_