]>
Commit | Line | Data |
---|---|---|
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 | 14 | #include "wx/defs.h" |
c801d85f | 15 | |
c801d85f KB |
16 | //----------------------------------------------------------------------------- |
17 | // classes | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20123d49 | 20 | class WXDLLIMPEXP_CORE wxDialog; |
c801d85f KB |
21 | |
22 | //----------------------------------------------------------------------------- | |
23 | // global data | |
24 | //----------------------------------------------------------------------------- | |
25 | ||
63ec432b | 26 | extern WXDLLIMPEXP_CORE const wxChar wxDialogNameStr[]; |
c801d85f KB |
27 | |
28 | //----------------------------------------------------------------------------- | |
29 | // wxDialog | |
30 | //----------------------------------------------------------------------------- | |
31 | ||
20123d49 | 32 | class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase |
c801d85f | 33 | { |
43a18898 | 34 | public: |
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 VZ |
49 | |
50 | void OnApply( wxCommandEvent &event ); | |
51 | void OnCancel( wxCommandEvent &event ); | |
52 | void OnOK( wxCommandEvent &event ); | |
53 | void OnPaint( wxPaintEvent& event ); | |
bfc6fde4 VZ |
54 | void OnCloseWindow( wxCloseEvent& event ); |
55 | /* | |
56 | void OnCharHook( wxKeyEvent& event ); | |
57 | */ | |
58 | ||
8db37e06 | 59 | virtual bool Show( bool show = TRUE ); |
bfc6fde4 VZ |
60 | virtual int ShowModal(); |
61 | virtual void EndModal( int retCode ); | |
62 | virtual bool IsModal() const; | |
63 | void SetModal( bool modal ); | |
64 | ||
bfc6fde4 | 65 | // implementation |
23efdd02 | 66 | // -------------- |
bfc6fde4 | 67 | |
bfc6fde4 | 68 | bool m_modalShowing; |
bfc6fde4 VZ |
69 | |
70 | protected: | |
68995f26 VZ |
71 | // common part of all ctors |
72 | void Init(); | |
73 | ||
bfc6fde4 VZ |
74 | private: |
75 | DECLARE_EVENT_TABLE() | |
20e05ffb | 76 | DECLARE_DYNAMIC_CLASS(wxDialog) |
c801d85f KB |
77 | }; |
78 | ||
79 | #endif // __GTKDIALOGH__ |