]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dialog.h
added a couple of base classes
[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
c801d85f 14#include "wx/defs.h"
c801d85f 15
c801d85f
KB
16//-----------------------------------------------------------------------------
17// classes
18//-----------------------------------------------------------------------------
19
20123d49 20class WXDLLIMPEXP_CORE wxDialog;
c801d85f
KB
21
22//-----------------------------------------------------------------------------
23// global data
24//-----------------------------------------------------------------------------
25
63ec432b 26extern WXDLLIMPEXP_CORE const wxChar wxDialogNameStr[];
c801d85f
KB
27
28//-----------------------------------------------------------------------------
29// wxDialog
30//-----------------------------------------------------------------------------
31
20123d49 32class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
c801d85f 33{
43a18898 34public:
68995f26 35 wxDialog() { Init(); }
bfc6fde4 36 wxDialog( wxWindow *parent, wxWindowID id,
43a18898 37 const wxString &title,
2b854a32
VZ
38 const wxPoint &pos = wxDefaultPosition,
39 const wxSize &size = wxDefaultSize,
40 long style = wxDEFAULT_DIALOG_STYLE,
41 const wxString &name = wxDialogNameStr );
bfc6fde4
VZ
42 bool Create( wxWindow *parent, wxWindowID id,
43 const wxString &title,
44 const wxPoint &pos = wxDefaultPosition,
45 const wxSize &size = wxDefaultSize,
46 long style = wxDEFAULT_DIALOG_STYLE,
47 const wxString &name = wxDialogNameStr );
7d9f12f3 48 ~wxDialog() {}
bfc6fde4 49
8db37e06 50 virtual bool Show( bool show = TRUE );
bfc6fde4
VZ
51 virtual int ShowModal();
52 virtual void EndModal( int retCode );
53 virtual bool IsModal() const;
54 void SetModal( bool modal );
55
bfc6fde4 56 // implementation
23efdd02 57 // --------------
bfc6fde4 58
bfc6fde4 59 bool m_modalShowing;
bfc6fde4 60
2158f4d7 61private:
68995f26
VZ
62 // common part of all ctors
63 void Init();
64
20e05ffb 65 DECLARE_DYNAMIC_CLASS(wxDialog)
c801d85f
KB
66};
67
68#endif // __GTKDIALOGH__