33 #include <boost/format.hpp>
34 #include <wx/notebook.h>
65 parent_(parent), options_(
options) {
67 wxPanel* generalPage =
new wxPanel(notebook_, -1);
68 createGeneralPage(generalPage,
true,
true);
69 addPage(generalPage, _T(
"General"));
71 undoStackSize_ =
dynamic_cast<wxSpinCtrl*
>(
FindWindow(ID_UNDO_LEVELS));
112 if (!TransferDataFromWindow()) {
134 wxWindow *parent,
bool call_fit,
bool set_sizer ) {
136 wxBoxSizer *item0 =
new wxBoxSizer( wxHORIZONTAL );
138 item0->Add( 50, 20, 0, wxALIGN_CENTER|wxALL, 5 );
140 wxStaticText *item1 =
new wxStaticText( parent,
ID_LABEL_UNDO_LEVELS, wxT(
"Undo levels:"), wxDefaultPosition, wxDefaultSize, 0 );
141 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
143 wxSpinCtrl *item2 =
new wxSpinCtrl( parent,
ID_UNDO_LEVELS, wxT(
"1"), wxDefaultPosition, wxSize(-1,-1), 0, 1, 100, 0 );
144 item0->Add( item2, 0, wxALIGN_CENTER|wxALL, 5 );
148 parent->SetSizer( item0 );
150 item0->SetSizeHints( parent );