]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dialog.h
don't define HAVE_FSYNC if it's already defined (as it can happen when using Cygwin...
[wxWidgets.git] / include / wx / gtk / dialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dialog.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created:
6 // Id: $Id$
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __GTKDIALOGH__
12 #define __GTKDIALOGH__
13
14 //-----------------------------------------------------------------------------
15 // wxDialog
16 //-----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
19 {
20 public:
21 wxDialog() { Init(); }
22 wxDialog( wxWindow *parent, wxWindowID id,
23 const wxString &title,
24 const wxPoint &pos = wxDefaultPosition,
25 const wxSize &size = wxDefaultSize,
26 long style = wxDEFAULT_DIALOG_STYLE,
27 const wxString &name = wxDialogNameStr );
28 bool Create( wxWindow *parent, wxWindowID id,
29 const wxString &title,
30 const wxPoint &pos = wxDefaultPosition,
31 const wxSize &size = wxDefaultSize,
32 long style = wxDEFAULT_DIALOG_STYLE,
33 const wxString &name = wxDialogNameStr );
34 virtual ~wxDialog();
35
36 virtual bool Show( bool show = TRUE );
37 virtual int ShowModal();
38 virtual void EndModal( int retCode );
39 virtual bool IsModal() const;
40 void SetModal( bool modal );
41
42 // implementation
43 // --------------
44
45 bool m_modalShowing;
46
47 private:
48 // common part of all ctors
49 void Init();
50
51 DECLARE_DYNAMIC_CLASS(wxDialog)
52 };
53
54 #endif // __GTKDIALOGH__