1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dialog.h
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GTKDIALOG_H_
12 #define _WX_GTKDIALOG_H_
14 class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop
;
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxDialog
: public wxDialogBase
23 wxDialog() { Init(); }
24 wxDialog( wxWindow
*parent
, wxWindowID id
,
25 const wxString
&title
,
26 const wxPoint
&pos
= wxDefaultPosition
,
27 const wxSize
&size
= wxDefaultSize
,
28 long style
= wxDEFAULT_DIALOG_STYLE
,
29 const wxString
&name
= wxDialogNameStr
);
30 bool Create( wxWindow
*parent
, wxWindowID id
,
31 const wxString
&title
,
32 const wxPoint
&pos
= wxDefaultPosition
,
33 const wxSize
&size
= wxDefaultSize
,
34 long style
= wxDEFAULT_DIALOG_STYLE
,
35 const wxString
&name
= wxDialogNameStr
);
38 virtual bool Show( bool show
= true );
39 virtual int ShowModal();
40 virtual void EndModal( int retCode
);
41 virtual bool IsModal() const;
49 // common part of all ctors
51 wxGUIEventLoop
*m_modalLoop
;
52 DECLARE_DYNAMIC_CLASS(wxDialog
)
55 #endif // _WX_GTKDIALOG_H_