]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dialog.h
25cfa99c37751f0ca1affd972d66ec0574352129
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKDIALOGH__
12 #define __GTKDIALOGH__
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 extern const char *wxDialogNameStr
;
34 //-----------------------------------------------------------------------------
36 //-----------------------------------------------------------------------------
38 class wxDialog
: public wxPanel
40 DECLARE_DYNAMIC_CLASS(wxDialog
)
44 wxDialog( wxWindow
*parent
, wxWindowID id
,
45 const wxString
&title
,
46 const wxPoint
&pos
= wxDefaultPosition
,
47 const wxSize
&size
= wxDefaultSize
,
48 long style
= wxDEFAULT_DIALOG_STYLE
,
49 const wxString
&name
= wxDialogNameStr
);
50 bool Create( wxWindow
*parent
, wxWindowID id
,
51 const wxString
&title
,
52 const wxPoint
&pos
= wxDefaultPosition
,
53 const wxSize
&size
= wxDefaultSize
,
54 long style
= wxDEFAULT_DIALOG_STYLE
,
55 const wxString
&name
= wxDialogNameStr
);
58 void SetTitle(const wxString
& title
);
59 wxString
GetTitle() const;
62 void OnApply( wxCommandEvent
&event
);
63 void OnCancel( wxCommandEvent
&event
);
64 void OnOK( wxCommandEvent
&event
);
65 void OnPaint( wxPaintEvent
& event
);
66 void OnSize( wxSizeEvent
&event
);
68 void OnCharHook( wxKeyEvent& event );
72 void OnCloseWindow( wxCloseEvent
& event
);
74 virtual void SetSize( int x
, int y
, int width
, int height
,
75 int sizeFlags
= wxSIZE_AUTO
);
76 virtual void SetSize( int width
, int height
);
78 virtual bool Show( bool show
);
79 virtual int ShowModal();
80 virtual void EndModal( int retCode
);
81 virtual bool IsModal() const;
82 void SetModal( bool modal
);
84 virtual void InitDialog(void);
86 virtual void Centre( int direction
= wxHORIZONTAL
);
88 virtual void SetIcon( const wxIcon
&icon
);
89 virtual void Iconize( bool WXUNUSED(iconize
)) { }
90 virtual bool IsIconized() const { return FALSE
; }
91 bool Iconized() const { return IsIconized(); }
92 virtual void Maximize() { }
93 virtual void Restore() { }
97 virtual void GtkOnSize( int x
, int y
, int width
, int height
);
103 DECLARE_EVENT_TABLE()
106 #endif // __GTKDIALOGH__