]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/dialog.h
No real changes, just make wxWindow::CanScroll() virtual.
[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 6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKDIALOGH__
11#define __GTKDIALOGH__
12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// wxDialog
15//-----------------------------------------------------------------------------
16
20123d49 17class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
c801d85f 18{
43a18898 19public:
68995f26 20 wxDialog() { Init(); }
bfc6fde4 21 wxDialog( wxWindow *parent, wxWindowID id,
43a18898 22 const wxString &title,
2b854a32
VZ
23 const wxPoint &pos = wxDefaultPosition,
24 const wxSize &size = wxDefaultSize,
25 long style = wxDEFAULT_DIALOG_STYLE,
26 const wxString &name = wxDialogNameStr );
bfc6fde4
VZ
27 bool Create( wxWindow *parent, wxWindowID id,
28 const wxString &title,
29 const wxPoint &pos = wxDefaultPosition,
30 const wxSize &size = wxDefaultSize,
31 long style = wxDEFAULT_DIALOG_STYLE,
32 const wxString &name = wxDialogNameStr );
d3c7fc99 33 virtual ~wxDialog() {}
bfc6fde4
VZ
34
35 void OnApply( wxCommandEvent &event );
36 void OnCancel( wxCommandEvent &event );
37 void OnOK( wxCommandEvent &event );
38 void OnPaint( wxPaintEvent& event );
bfc6fde4
VZ
39 void OnCloseWindow( wxCloseEvent& event );
40 /*
41 void OnCharHook( wxKeyEvent& event );
42 */
43
8db37e06 44 virtual bool Show( bool show = TRUE );
bfc6fde4
VZ
45 virtual int ShowModal();
46 virtual void EndModal( int retCode );
47 virtual bool IsModal() const;
48 void SetModal( bool modal );
49
bfc6fde4 50 // implementation
23efdd02 51 // --------------
bfc6fde4 52
bfc6fde4 53 bool m_modalShowing;
bfc6fde4
VZ
54
55protected:
68995f26
VZ
56 // common part of all ctors
57 void Init();
58
bfc6fde4
VZ
59private:
60 DECLARE_EVENT_TABLE()
20e05ffb 61 DECLARE_DYNAMIC_CLASS(wxDialog)
c801d85f
KB
62};
63
64#endif // __GTKDIALOGH__