]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dialog.h
883d33c52dbb8c29b32f71b2536381d9aeac4d0d
[wxWidgets.git] / include / wx / gtk / dialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: 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 __GTKDIALOGH__
12 #define __GTKDIALOGH__
13
14 #include "wx/defs.h"
15
16 //-----------------------------------------------------------------------------
17 // classes
18 //-----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxDialog;
21
22 //-----------------------------------------------------------------------------
23 // global data
24 //-----------------------------------------------------------------------------
25
26 extern WXDLLIMPEXP_CORE const wxChar wxDialogNameStr[];
27
28 //-----------------------------------------------------------------------------
29 // wxDialog
30 //-----------------------------------------------------------------------------
31
32 class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
33 {
34 public:
35 wxDialog() { Init(); }
36 wxDialog( wxWindow *parent, wxWindowID id,
37 const wxString &title,
38 const wxPoint &pos = wxDefaultPosition,
39 const wxSize &size = wxDefaultSize,
40 long style = wxDEFAULT_DIALOG_STYLE,
41 const wxString &name = wxDialogNameStr );
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 );
48 ~wxDialog() {}
49
50 void OnApply( wxCommandEvent &event );
51 void OnCancel( wxCommandEvent &event );
52 void OnOK( wxCommandEvent &event );
53 void OnPaint( wxPaintEvent& event );
54 void OnCloseWindow( wxCloseEvent& event );
55
56 virtual bool Show( bool show = TRUE );
57 virtual int ShowModal();
58 virtual void EndModal( int retCode );
59 virtual bool IsModal() const;
60 void SetModal( bool modal );
61
62 // implementation
63 // --------------
64
65 bool m_modalShowing;
66
67 protected:
68 // common part of all ctors
69 void Init();
70
71 private:
72 DECLARE_EVENT_TABLE()
73 DECLARE_DYNAMIC_CLASS(wxDialog)
74 };
75
76 #endif // __GTKDIALOGH__