]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dialog.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKDIALOGH__
12 #define __GTKDIALOGH__
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 extern const wxChar
*wxDialogNameStr
;
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 class wxDialog
: public wxDialogBase
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
);
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
);
60 void OnCharHook( wxKeyEvent& event );
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
);
75 // common part of all ctors
80 DECLARE_DYNAMIC_CLASS(wxDialog
)
83 #endif // __GTKDIALOGH__