]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/dialog.h
Many more corrections and clarifications to virtual index list model use
[wxWidgets.git] / include / wx / gtk1 / dialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/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 //-----------------------------------------------------------------------------
15 // wxDialog
16 //-----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
19 {
20 public:
21 wxDialog() { Init(); }
22 wxDialog( wxWindow *parent, wxWindowID id,
23 const wxString &title,
24 const wxPoint &pos = wxDefaultPosition,
25 const wxSize &size = wxDefaultSize,
26 long style = wxDEFAULT_DIALOG_STYLE,
27 const wxString &name = wxDialogNameStr );
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 );
34 virtual ~wxDialog() {}
35
36 void OnApply( wxCommandEvent &event );
37 void OnCancel( wxCommandEvent &event );
38 void OnOK( wxCommandEvent &event );
39 void OnPaint( wxPaintEvent& event );
40 void OnCloseWindow( wxCloseEvent& event );
41 /*
42 void OnCharHook( wxKeyEvent& event );
43 */
44
45 virtual bool Show( bool show = TRUE );
46 virtual int ShowModal();
47 virtual void EndModal( int retCode );
48 virtual bool IsModal() const;
49 void SetModal( bool modal );
50
51 // implementation
52 // --------------
53
54 bool m_modalShowing;
55
56 protected:
57 // common part of all ctors
58 void Init();
59
60 private:
61 DECLARE_EVENT_TABLE()
62 DECLARE_DYNAMIC_CLASS(wxDialog)
63 };
64
65 #endif // __GTKDIALOGH__