]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/dialog.h
Fixes for file dialog. No longer spits out
[wxWidgets.git] / include / wx / gtk1 / 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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19
20 //-----------------------------------------------------------------------------
21 // classes
22 //-----------------------------------------------------------------------------
23
24 class wxDialog;
25
26 //-----------------------------------------------------------------------------
27 // global data
28 //-----------------------------------------------------------------------------
29
30 extern const wxChar *wxDialogNameStr;
31
32 //-----------------------------------------------------------------------------
33 // wxDialog
34 //-----------------------------------------------------------------------------
35
36 class wxDialog: public wxDialogBase
37 {
38 public:
39 wxDialog() { Init(); }
40 wxDialog( wxWindow *parent, wxWindowID id,
41 const wxString &title,
42 const wxPoint &pos = wxDefaultPosition,
43 const wxSize &size = wxDefaultSize,
44 long style = wxDEFAULT_DIALOG_STYLE,
45 const wxString &name = wxDialogNameStr );
46 bool Create( wxWindow *parent, wxWindowID id,
47 const wxString &title,
48 const wxPoint &pos = wxDefaultPosition,
49 const wxSize &size = wxDefaultSize,
50 long style = wxDEFAULT_DIALOG_STYLE,
51 const wxString &name = wxDialogNameStr );
52 ~wxDialog() {}
53
54 void OnApply( wxCommandEvent &event );
55 void OnCancel( wxCommandEvent &event );
56 void OnOK( wxCommandEvent &event );
57 void OnPaint( wxPaintEvent& event );
58 void OnCloseWindow( wxCloseEvent& event );
59 /*
60 void OnCharHook( wxKeyEvent& event );
61 */
62
63 virtual bool Show( bool show = TRUE );
64 virtual int ShowModal();
65 virtual void EndModal( int retCode );
66 virtual bool IsModal() const;
67 void SetModal( bool modal );
68
69 // implementation
70 // --------------
71
72 bool m_modalShowing;
73
74 protected:
75 // common part of all ctors
76 void Init();
77
78 private:
79 DECLARE_EVENT_TABLE()
80 DECLARE_DYNAMIC_CLASS(wxDialog)
81 };
82
83 #endif // __GTKDIALOGH__