MCPcopy Create free account
hub / github.com/audacity/audacity / StartNotebookPage

Method StartNotebookPage

libraries/lib-shuttlegui/ShuttleGui.cpp:1124–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122
1123
1124wxNotebookPage * 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
1147void ShuttleGuiBase::EndNotebookPage()
1148{

Callers 4

PopulateAudacityPageMethod · 0.80
PopulateLicensePageMethod · 0.80
PopulateOrExchangeMethod · 0.80

Calls 5

GetParentFunction · 0.85
TranslationMethod · 0.80
wxPanelWrapperFunction · 0.50
wxBoxSizerClass · 0.50
SetNameMethod · 0.45

Tested by

no test coverage detected