]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/dialog.h
declare future-deprecated SetStyle(int) in wxPen/Brush and not wxPen/BrushBase as...
[wxWidgets.git] / include / wx / gtk1 / dialog.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/dialog.h
c801d85f
KB
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
KB
14//-----------------------------------------------------------------------------
15// wxDialog
16//-----------------------------------------------------------------------------
17
20123d49 18class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
c801d85f 19{
43a18898 20public:
68995f26 21 wxDialog() { Init(); }
bfc6fde4 22 wxDialog( wxWindow *parent, wxWindowID id,
43a18898 23 const wxString &title,
2b854a32
VZ
24 const wxPoint &pos = wxDefaultPosition,
25 const wxSize &size = wxDefaultSize,
26 long style = wxDEFAULT_DIALOG_STYLE,
27 const wxString &name = wxDialogNameStr );
bfc6fde4
VZ
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 );
d3c7fc99 34 virtual ~wxDialog() {}
bfc6fde4
VZ
35
36 void OnApply( wxCommandEvent &event );
37 void OnCancel( wxCommandEvent &event );
38 void OnOK( wxCommandEvent &event );
39 void OnPaint( wxPaintEvent& event );
bfc6fde4
VZ
40 void OnCloseWindow( wxCloseEvent& event );
41 /*
42 void OnCharHook( wxKeyEvent& event );
43 */
44
8db37e06 45 virtual bool Show( bool show = TRUE );
bfc6fde4
VZ
46 virtual int ShowModal();
47 virtual void EndModal( int retCode );
48 virtual bool IsModal() const;
49 void SetModal( bool modal );
50
bfc6fde4 51 // implementation
23efdd02 52 // --------------
bfc6fde4 53
bfc6fde4 54 bool m_modalShowing;
bfc6fde4
VZ
55
56protected:
68995f26
VZ
57 // common part of all ctors
58 void Init();
59
bfc6fde4
VZ
60private:
61 DECLARE_EVENT_TABLE()
20e05ffb 62 DECLARE_DYNAMIC_CLASS(wxDialog)
c801d85f
KB
63};
64
65#endif // __GTKDIALOGH__