MediaConverter: Add label and control explicitly

This commit is contained in:
John Scipione
2013-08-31 00:48:18 -04:00
parent 53bb96c547
commit 83010212f7
@@ -194,13 +194,18 @@ MediaConverterWindow::MediaConverterWindow(BRect frame)
BLayoutBuilder::Grid<>(outputGrid) BLayoutBuilder::Grid<>(outputGrid)
.SetInsets(padding, padding, padding, padding) .SetInsets(padding, padding, padding, padding)
.AddMenuField(fFormatMenu, 0, 0) .Add(fFormatMenu->CreateLabelLayoutItem(), 0, 0)
.AddMenuField(fAudioMenu, 0, 1) .Add(fFormatMenu->CreateMenuBarLayoutItem(), 1, 0)
.AddMenuField(fVideoMenu, 0, 2) .Add(fAudioMenu->CreateLabelLayoutItem(), 0, 1)
.Add(fAudioMenu->CreateMenuBarLayoutItem(), 1, 1)
.Add(fVideoMenu->CreateLabelLayoutItem(), 0, 2)
.Add(fVideoMenu->CreateMenuBarLayoutItem(), 1, 2)
.Add(fDestButton, 0, 3) .Add(fDestButton, 0, 3)
.Add(fOutputFolder, 1, 3) .Add(fOutputFolder, 1, 3)
.AddTextControl(fStartDurationTC, 0, 4) .Add(fStartDurationTC->CreateLabelLayoutItem(), 0, 4)
.AddTextControl(fEndDurationTC, 0, 5) .Add(fStartDurationTC->CreateTextViewLayoutItem(), 1, 4)
.Add(fEndDurationTC->CreateLabelLayoutItem(), 0, 5)
.Add(fEndDurationTC->CreateTextViewLayoutItem(), 1, 5)
.Add(fVideoQualitySlider, 0, 6, 2, 1) .Add(fVideoQualitySlider, 0, 6, 2, 1)
.Add(fAudioQualitySlider, 0, 7, 2, 1); .Add(fAudioQualitySlider, 0, 7, 2, 1);