]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/extdlgg.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Extended Generic dialogs
4 // Author: Robert Roebling
8 // Copyright: (c) Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "extdlgg.h"
20 #include "wx/dialog.h"
21 #include "wx/button.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
27 class WXDLLEXPORT wxExtDialog
;
28 class WXDLLEXPORT wxStaticLine
;
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 extern const wxChar
*wxDialogNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class WXDLLEXPORT wxExtDialog
: public wxDialog
42 DECLARE_DYNAMIC_CLASS(wxExtDialog
)
46 wxExtDialog( wxWindow
*parent
, wxWindowID id
,
47 const wxString
& title
,
48 long extraStyle
= (wxOK
|wxCANCEL
|wxCENTRE
),
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
,
51 long style
= wxEXT_DIALOG_STYLE
,
52 const wxString
&name
= wxDialogNameStr
);
53 bool Create( wxWindow
*parent
, wxWindowID id
,
54 const wxString
& title
,
55 long extraStyle
= (wxOK
|wxCANCEL
|wxCENTRE
),
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
,
58 long style
= wxEXT_DIALOG_STYLE
,
59 const wxString
&name
= wxDialogNameStr
);
61 void SetClientWindow( wxWindow
*clientWindow
)
62 { m_clientWindow
= clientWindow
; }
63 wxWindow
*GetClientWindow()
64 { return m_clientWindow
; }
66 void AddButton( wxButton
*button
);
68 void SetDefaultButton( wxWindowID button
);
70 void EnableButton( wxWindowID button
, bool enable
=TRUE
);
71 bool ButtonIsEnabled( wxWindowID button
);
73 wxSize
GetButtonAreaSize();
75 void OnSize( wxSizeEvent
&event
);
77 void OnYes(wxCommandEvent
& event
);
78 void OnNo(wxCommandEvent
& event
);
79 void OnCancel(wxCommandEvent
& event
);
82 wxWindow
*m_clientWindow
;
86 wxStaticLine
*m_statLine
;
89 wxSize
LayoutButtons();