| 1122 | |
| 1123 | |
| 1124 | wxNotebookPage * ShuttleGuiBase::StartNotebookPage( |
| 1125 | const TranslatableString & Name ) |
| 1126 | { |
| 1127 | if( mShuttleMode != eIsCreating ) |
| 1128 | return NULL; |
| 1129 | // return wxDynamicCast(wxWindow::FindWindowById( miId, mpDlg), wx); |
| 1130 | auto pNotebook = static_cast< wxBookCtrlBase* >( mpParent ); |
| 1131 | wxNotebookPage * pPage = safenew wxPanelWrapper(GetParent()); |
| 1132 | const auto translated = Name.Translation(); |
| 1133 | pPage->SetName(translated); |
| 1134 | |
| 1135 | pNotebook->AddPage( |
| 1136 | pPage, |
| 1137 | translated); |
| 1138 | |
| 1139 | SetProportions( 1 ); |
| 1140 | mpParent = pPage; |
| 1141 | pPage->SetSizer(mpSizer = safenew wxBoxSizer(wxVERTICAL)); |
| 1142 | PushSizer(); |
| 1143 | // UpdateSizers(); |
| 1144 | return pPage; |
| 1145 | } |
| 1146 | |
| 1147 | void ShuttleGuiBase::EndNotebookPage() |
| 1148 | { |
no test coverage detected