]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dialog.h
give a name to the enum to make it easier to reference it in docs
[wxWidgets.git] / include / wx / gtk / dialog.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dialog.h
3// Purpose:
4// Author: Robert Roebling
43a18898 5// Created:
58614078
RR
6// Id: $Id$
7// Copyright: (c) 1998 Robert Roebling
65571936 8// Licence: wxWindows licence
c801d85f
KB
9/////////////////////////////////////////////////////////////////////////////
10
c801d85f
KB
11#ifndef __GTKDIALOGH__
12#define __GTKDIALOGH__
13
bfafa628
VZ
14class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
15
c801d85f
KB
16//-----------------------------------------------------------------------------
17// wxDialog
18//-----------------------------------------------------------------------------
19
20123d49 20class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
c801d85f 21{
43a18898 22public:
68995f26 23 wxDialog() { Init(); }
bfc6fde4 24 wxDialog( wxWindow *parent, wxWindowID id,
43a18898 25 const wxString &title,
2b854a32
VZ
26 const wxPoint &pos = wxDefaultPosition,
27 const wxSize &size = wxDefaultSize,
28 long style = wxDEFAULT_DIALOG_STYLE,
29 const wxString &name = wxDialogNameStr );
bfc6fde4
VZ
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 );
a9efc294 36 virtual ~wxDialog();
bfc6fde4 37
8db37e06 38 virtual bool Show( bool show = TRUE );
bfc6fde4
VZ
39 virtual int ShowModal();
40 virtual void EndModal( int retCode );
41 virtual bool IsModal() const;
42 void SetModal( bool modal );
43
bfc6fde4 44 // implementation
23efdd02 45 // --------------
bfc6fde4 46
bfc6fde4 47 bool m_modalShowing;
bfc6fde4 48
2158f4d7 49private:
68995f26
VZ
50 // common part of all ctors
51 void Init();
bfafa628 52 wxGUIEventLoop *m_modalLoop;
20e05ffb 53 DECLARE_DYNAMIC_CLASS(wxDialog)
c801d85f
KB
54};
55
56#endif // __GTKDIALOGH__