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

Method AddListControl

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

Source from the content-addressed store, hash-verified

837}
838
839wxListCtrl * ShuttleGuiBase::AddListControl(
840 std::initializer_list<const ListControlColumn> columns,
841 long listControlStyles
842)
843{
844 UseUpId();
845 if( mShuttleMode != eIsCreating )
846 return wxDynamicCast(wxWindow::FindWindowById( miId, mpDlg), wxListCtrl);
847 wxListCtrl * pListCtrl;
848 SetProportions( 1 );
849 mpWind = pListCtrl = safenew wxListCtrl(GetParent(), miId,
850 wxDefaultPosition, wxDefaultSize, GetStyle( wxLC_ICON ));
851 pListCtrl->SetMinSize( wxSize( 120,150 ));
852 UpdateSizers();
853
854 DoInsertListColumns( pListCtrl, listControlStyles, columns );
855
856 return pListCtrl;
857}
858
859wxListCtrl * ShuttleGuiBase::AddListControlReportMode(
860 std::initializer_list<const ListControlColumn> columns,

Callers 2

PopulateOrExchangeMethod · 0.80
PopulateOrExchangeMethod · 0.80

Calls 4

GetParentFunction · 0.85
GetStyleFunction · 0.85
wxListCtrlClass · 0.70
wxSizeClass · 0.50

Tested by

no test coverage detected