]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/dialog.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk1 / dialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/dialog.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created:
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKDIALOGH__
11 #define __GTKDIALOGH__
12
13 //-----------------------------------------------------------------------------
14 // wxDialog
15 //-----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
18 {
19 public:
20 wxDialog() { Init(); }
21 wxDialog( wxWindow *parent, wxWindowID id,
22 const wxString &title,
23 const wxPoint &pos = wxDefaultPosition,
24 const wxSize &size = wxDefaultSize,
25 long style = wxDEFAULT_DIALOG_STYLE,
26 const wxString &name = wxDialogNameStr );
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 );
33 virtual ~wxDialog() {}
34
35 void OnApply( wxCommandEvent &event );
36 void OnCancel( wxCommandEvent &event );
37 void OnOK( wxCommandEvent &event );
38 void OnPaint( wxPaintEvent& event );
39 void OnCloseWindow( wxCloseEvent& event );
40 /*
41 void OnCharHook( wxKeyEvent& event );
42 */
43
44 virtual bool Show( bool show = TRUE );
45 virtual int ShowModal();
46 virtual void EndModal( int retCode );
47 virtual bool IsModal() const;
48 void SetModal( bool modal );
49
50 // implementation
51 // --------------
52
53 bool m_modalShowing;
54
55 protected:
56 // common part of all ctors
57 void Init();
58
59 private:
60 DECLARE_EVENT_TABLE()
61 DECLARE_DYNAMIC_CLASS(wxDialog)
62 };
63
64 #endif // __GTKDIALOGH__