1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/dialog.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKDIALOGH__
11 #define __GTKDIALOGH__
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxDialog
: public wxDialogBase
20 wxDialog() { Init(); }
21 wxDialog( wxWindow
*parent
, wxWindowID id
,
22 const wxString
&title
,
23 const wxPoint
&pos
= wxDefaultPosition
,
24 const wxSize
&size
= wxDefaultSize
,
25 long style
= wxDEFAULT_DIALOG_STYLE
,
26 const wxString
&name
= wxDialogNameStr
);
27 bool Create( wxWindow
*parent
, wxWindowID id
,
28 const wxString
&title
,
29 const wxPoint
&pos
= wxDefaultPosition
,
30 const wxSize
&size
= wxDefaultSize
,
31 long style
= wxDEFAULT_DIALOG_STYLE
,
32 const wxString
&name
= wxDialogNameStr
);
33 virtual ~wxDialog() {}
35 void OnApply( wxCommandEvent
&event
);
36 void OnCancel( wxCommandEvent
&event
);
37 void OnOK( wxCommandEvent
&event
);
38 void OnPaint( wxPaintEvent
& event
);
39 void OnCloseWindow( wxCloseEvent
& event
);
41 void OnCharHook( wxKeyEvent& event );
44 virtual bool Show( bool show
= TRUE
);
45 virtual int ShowModal();
46 virtual void EndModal( int retCode
);
47 virtual bool IsModal() const;
48 void SetModal( bool modal
);
56 // common part of all ctors
61 DECLARE_DYNAMIC_CLASS(wxDialog
)
64 #endif // __GTKDIALOGH__