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

Method ImportStreamDialog

src/import/ImportStreamDialog.cpp:27–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25END_EVENT_TABLE()
26
27ImportStreamDialog::ImportStreamDialog( ImportFileHandle *_mFile, wxWindow *parent, wxWindowID id, const TranslatableString &title,
28 const wxPoint &position, const wxSize& size, long style ):
29wxDialogWrapper( parent, id, title, position, size, style | wxRESIZE_BORDER )
30{
31 SetName();
32
33 mFile = _mFile;
34 scount = mFile->GetStreamCount();
35 for (wxInt32 i = 0; i < scount; i++)
36 mFile->SetStreamUsage(i, FALSE);
37
38 ShuttleGui S{ this, eIsCreating };
39 {
40 S.SetBorder( 5 );
41
42 StreamList =
43 S
44 .Prop(1)
45 .Position(wxEXPAND | wxALIGN_LEFT | wxALL)
46 .Style(wxLB_EXTENDED | wxLB_ALWAYS_SB)
47 .AddListBox(
48 transform_container<wxArrayStringEx>(
49 mFile->GetStreamInfo(),
50 std::mem_fn( &TranslatableString::Translation ) ) );
51
52 S.AddStandardButtons();
53 }
54
55 SetAutoLayout(true);
56 GetSizer()->Fit( this );
57
58 SetSize( 400, 200 );
59}
60
61ImportStreamDialog::~ImportStreamDialog()
62{

Callers

nothing calls this directly

Calls 6

GetSizerFunction · 0.85
AddListBoxMethod · 0.80
PositionMethod · 0.80
GetStreamCountMethod · 0.45
SetStreamUsageMethod · 0.45
FitMethod · 0.45

Tested by

no test coverage detected