]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/dialog.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKDIALOGH__
12 #define __GTKDIALOGH__
15 #pragma interface "dialog.h"
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //FIXME_MGL - belongs to wXUniv
34 extern const wxChar
*wxDialogNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxDialog
: public wxDialogBase
43 wxDialog() { Init(); }
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 {}
61 void OnApply( wxCommandEvent
&event
) {}
62 void OnCancel( wxCommandEvent
&event
) {}
63 void OnOK( wxCommandEvent
&event
) {}
64 void OnPaint( wxPaintEvent
& event
) {}
65 void OnSize( wxSizeEvent
&event
) {}
66 void OnCloseWindow( wxCloseEvent
& event
) {}
68 void OnCharHook( wxKeyEvent& event );
73 virtual bool Show( bool show
) {}
74 virtual int ShowModal() {}
75 virtual void EndModal( int retCode
) {}
76 virtual bool IsModal() const {}
77 void SetModal( bool modal
) {}
79 virtual void InitDialog(void) {}
81 virtual void SetIcon( const wxIcon
&icon
) {}
82 virtual void Iconize( bool WXUNUSED(iconize
)) { }
83 virtual bool IsIconized() const { return FALSE
; }
84 bool Iconized() const { return IsIconized(); }
85 virtual void Maximize() { }
86 virtual void Restore() { }
88 virtual bool IsTopLevel() const { return TRUE
; }
93 // move the window to the specified location and resize it: this is called
94 // from both DoSetSize() and DoSetClientSize()
95 virtual void DoMoveWindow(int x
, int y
, int width
, int height
) {}
97 virtual void GtkOnSize( int x
, int y
, int width
, int height
) {}
98 virtual void OnInternalIdle() {}
105 // common part of all ctors
108 // common part of Destroy() and ~wxDialog
111 virtual void DoSetSize(int x
, int y
,
112 int width
, int height
,
113 int sizeFlags
= wxSIZE_AUTO
) {}
116 // DECLARE_EVENT_TABLE() FIXME_MGL
117 DECLARE_DYNAMIC_CLASS(wxDialog
)
120 #endif // __GTKDIALOGH__