]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/dialog.h
f2b65f707a95b9b14a1774a446c66f385dd6daa2
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKDIALOGH__
13 #define __GTKDIALOGH__
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 extern const char *wxDialogNameStr
;
41 //-----------------------------------------------------------------------------
43 //-----------------------------------------------------------------------------
45 class wxDialog
: public wxPanel
47 DECLARE_DYNAMIC_CLASS(wxDialog
)
52 wxDialog( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
53 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
54 long style
= wxDEFAULT_DIALOG_STYLE
, const wxString
&name
= wxDialogNameStr
);
55 bool Create( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
56 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
57 long style
= wxDEFAULT_DIALOG_STYLE
, const wxString
&name
= wxDialogNameStr
);
59 void SetTitle(const wxString
& title
);
60 wxString
GetTitle(void) const;
62 void OnApply( wxCommandEvent
&event
);
63 void OnCancel( wxCommandEvent
&event
);
64 void OnOK( wxCommandEvent
&event
);
65 void OnPaint(wxPaintEvent
& event
);
67 void OnCloseWindow(wxCloseEvent
& event
);
69 void OnCharHook(wxKeyEvent& event);
71 virtual void SetSize( int x
, int y
, int width
, int height
,
72 int sizeFlags
= wxSIZE_AUTO
);
73 virtual bool Show( bool show
);
74 virtual int ShowModal(void);
75 virtual void EndModal(int retCode
);
76 virtual bool IsModal(void) const;
77 void SetModal( bool modal
);
78 virtual void InitDialog(void);
79 virtual void Centre( int direction
= wxHORIZONTAL
);
81 virtual void SetIcon( const wxIcon
&icon
);
82 virtual void Iconize( bool WXUNUSED(iconize
)) { }
83 virtual bool IsIconized(void) const { return FALSE
; }
84 bool Iconized(void) const { return IsIconized(); }
85 virtual void Maximize(void) { }
86 virtual void Restore(void) { }
98 #endif // __GTKDIALOGH__