]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/dialog.h
activating DrawRectangle optimization
[wxWidgets.git] / include / wx / gtk / dialog.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/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 _WX_GTKDIALOG_H_
12#define _WX_GTKDIALOG_H_
13
14class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
15
16//-----------------------------------------------------------------------------
17// wxDialog
18//-----------------------------------------------------------------------------
19
20class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
21{
22public:
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 );
36 virtual ~wxDialog();
37
38 virtual bool Show( bool show = true );
39 virtual int ShowModal();
40 virtual void EndModal( int retCode );
41 virtual bool IsModal() const;
42 void SetModal( bool modal );
43
44 // implementation
45 // --------------
46
47 bool m_modalShowing;
48
49private:
50 // common part of all ctors
51 void Init();
52 wxGUIEventLoop *m_modalLoop;
53 DECLARE_DYNAMIC_CLASS(wxDialog)
54};
55
56#endif // _WX_GTKDIALOG_H_