| 25 | END_EVENT_TABLE() |
| 26 | |
| 27 | ImportStreamDialog::ImportStreamDialog( ImportFileHandle *_mFile, wxWindow *parent, wxWindowID id, const TranslatableString &title, |
| 28 | const wxPoint &position, const wxSize& size, long style ): |
| 29 | wxDialogWrapper( 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 | |
| 61 | ImportStreamDialog::~ImportStreamDialog() |
| 62 | { |
nothing calls this directly
no test coverage detected