1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/dialog.h
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKDIALOGH__
12 #define __GTKDIALOGH__
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxDialog
: public wxDialogBase
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() {}
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
);
42 void OnCharHook( wxKeyEvent& event );
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
);
57 // common part of all ctors
62 DECLARE_DYNAMIC_CLASS(wxDialog
)
65 #endif // __GTKDIALOGH__