12 #ifndef _WX_SCROLLINGDIALOG_H_ 13 #define _WX_SCROLLINGDIALOG_H_ 33 #if !wxCHECK_VERSION(3, 0, 0) 54 DECLARE_CLASS(wxStandardDialogLayoutAdapter)
56 wxStandardDialogLayoutAdapter() {}
69 virtual wxSizer* FindButtonSizer(
bool stdButtonSizer, wxDialogHelper* dialog,
wxSizer* sizer,
int& retBorder,
int accumlatedBorder = 0);
72 virtual bool IsOrdinaryButtonSizer(wxDialogHelper* dialog,
wxBoxSizer* sizer);
75 virtual bool IsStandardButton(wxDialogHelper* dialog,
wxButton* button);
86 virtual bool FitWithScrolling(
wxDialog* dialog, wxWindowList& windows);
101 wxDialogHelper(
wxDialog* dialog =
NULL) { Init(); m_dialog = dialog; }
102 virtual ~wxDialogHelper() {}
106 void SetDialog(
wxDialog* dialog) { m_dialog = dialog; }
107 wxDialog* GetDialog()
const {
return m_dialog; }
116 virtual wxWindow* GetContentWindow()
const {
return NULL; }
119 void AddButtonId(
wxWindowID id) { m_buttonIds.Add((
int)
id); }
120 wxArrayInt& GetButtonIds() {
return m_buttonIds; }
131 void SetLayoutAdaptationLevel(
int level) { m_layoutAdaptationLevel = level; }
134 int GetLayoutAdaptationLevel()
const {
return m_layoutAdaptationLevel; }
137 void SetLayoutAdaptationDone(
bool adaptationDone) { m_layoutLayoutAdaptationDone = adaptationDone; }
138 bool GetLayoutAdaptationDone()
const {
return m_layoutLayoutAdaptationDone; }
145 static bool GetLayoutAdaptation() {
return sm_layoutAdaptation; }
146 static void SetLayoutAdaptation(
bool enable) { sm_layoutAdaptation = enable; }
151 bool m_layoutLayoutAdaptationDone;
153 int m_layoutAdaptationLevel;
155 static bool sm_layoutAdaptation;
157 #endif //#if !wxCHECK_VERSION(3, 0, 0) 164 #if !wxCHECK_VERSION(3, 0, 0) 165 ,
public wxDialogHelper
173 #if !wxCHECK_VERSION(3, 0, 0) 181 const wxString& title = wxEmptyString,
182 const wxPoint& pos = wxDefaultPosition,
183 const wxSize& size = wxDefaultSize,
184 long style = wxDEFAULT_DIALOG_STYLE,
187 #if !wxCHECK_VERSION(3, 0, 0) 192 Create(parent,
id, title, pos, size, style, name);
194 #if !wxCHECK_VERSION(3, 0, 0) 206 bool Show(
bool show =
true)
override;
209 int ShowModal()
override;
218 #if !wxCHECK_VERSION(3, 0, 0) 219 ,
public wxDialogHelper
226 #if !wxCHECK_VERSION(3, 0, 0) 235 const wxPoint& pos = wxDefaultPosition,
236 const wxSize& sz = wxDefaultSize,
237 long style = wxDEFAULT_DIALOG_STYLE,
238 const wxString& name = wxDialogNameStr)
240 #if !wxCHECK_VERSION(3, 0, 0) 245 Create(parent,
id, title, pos, sz, style, name);
248 #if !wxCHECK_VERSION(3, 0, 0) 252 wxWindow* GetContentWindow()
const override;
257 bool Show(
bool show =
true)
override;
260 int ShowModal()
override;
virtual bool DoLayoutAdaptation(wxDialog *dialog)=0
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
#define wxDEFAULT_DIALOG_STYLE
virtual bool CanDoLayoutAdaptation(wxDialog *dialog)=0
const wxString & _(const wxString &string)
wxArray< int > wxArrayInt