]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/dialog.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
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 bool Show( bool show
);
72 virtual int ShowModal(void);
73 virtual void EndModal(int retCode
);
74 virtual bool IsModal(void) const;
75 void SetModal( bool modal
);
76 virtual void InitDialog(void);
77 virtual void Centre( int direction
= wxHORIZONTAL
);
79 virtual void SetIcon( const wxIcon
&icon
);
80 virtual void Iconize( bool WXUNUSED(iconize
)) { }
81 virtual bool IsIconized(void) const { return FALSE
; }
82 bool Iconized(void) const { return IsIconized(); }
83 virtual void Maximize(void) { }
84 virtual void Restore(void) { }
96 virtual void ImplementSetPosition();
102 #endif // __GTKDIALOGH__