mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Automatically select the first track when a file has been selected. Automatically focus the track name input box on track selection.
This commit is contained in:
parent
38b8f36755
commit
6aa9387d0e
@ -1,5 +1,9 @@
|
||||
2003-12-15 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mmg: The input box will automatically select the first track
|
||||
when a file is selected. Upon track selection the input focus is
|
||||
set to the track name input box.
|
||||
|
||||
* mmg: The chapter editor automatically focuses the chapter name
|
||||
input box whenever a chapter entry is selected.
|
||||
|
||||
|
@ -780,7 +780,8 @@ void tab_input::on_file_selected(wxCommandEvent &evt) {
|
||||
clb_tracks->Enable(true);
|
||||
selected_track = -1;
|
||||
selected_file = new_sel;
|
||||
no_track_mode();
|
||||
clb_tracks->SetSelection(0);
|
||||
on_track_selected(evt);
|
||||
}
|
||||
|
||||
void tab_input::on_nochapters_clicked(wxCommandEvent &evt) {
|
||||
@ -842,9 +843,10 @@ void tab_input::on_track_selected(wxCommandEvent &evt) {
|
||||
cob_aspect_ratio->SetValue(*t->aspect_ratio);
|
||||
tc_display_width->SetValue(*t->dwidth);
|
||||
tc_display_height->SetValue(*t->dheight);
|
||||
selected_track = new_sel;
|
||||
selected_track = new_sel;
|
||||
cob_compression->SetValue(*t->compression);
|
||||
tc_timecodes->SetValue(*t->timecodes);
|
||||
tc_track_name->SetFocus();
|
||||
}
|
||||
|
||||
void tab_input::on_track_enabled(wxCommandEvent &evt) {
|
||||
|
Loading…
Reference in New Issue
Block a user