wxWidgets 2.5.3 compatibility fix: "split by time" was not selectable.

This commit is contained in:
Moritz Bunkus 2005-02-26 22:44:59 +00:00
parent d4c93c07c4
commit 0e0a43d708
3 changed files with 19 additions and 8 deletions

View File

@ -1,5 +1,8 @@
2005-02-26 Moritz Bunkus <moritz@bunkus.org> 2005-02-26 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: "Splitting by time" was not selectable on Windows
Unicode builds (problem with wxWidgets 2.5.3).
* mmg: bug fix: mkvmerge's output during muxing was not converted * mmg: bug fix: mkvmerge's output during muxing was not converted
from UTF-8. from UTF-8.

View File

@ -339,12 +339,19 @@ tab_global::on_split_clicked(wxCommandEvent &evt) {
} }
void void
tab_global::on_splitby_clicked(wxCommandEvent &evt) { tab_global::on_splitby_time_clicked(wxCommandEvent &evt) {
bool er; cob_split_by_size->Enable(false);
cob_split_by_time->Enable(true);
rb_split_by_size->SetValue(false);
rb_split_by_time->SetValue(true);
}
er = rb_split_by_size->GetValue(); void
cob_split_by_size->Enable(er); tab_global::on_splitby_size_clicked(wxCommandEvent &evt) {
cob_split_by_time->Enable(!er); cob_split_by_size->Enable(true);
cob_split_by_time->Enable(false);
rb_split_by_size->SetValue(true);
rb_split_by_time->SetValue(false);
} }
void void
@ -536,6 +543,6 @@ BEGIN_EVENT_TABLE(tab_global, wxPanel)
EVT_BUTTON(ID_B_BROWSEGLOBALTAGS, tab_global::on_browse_global_tags) EVT_BUTTON(ID_B_BROWSEGLOBALTAGS, tab_global::on_browse_global_tags)
EVT_BUTTON(ID_B_BROWSECHAPTERS, tab_global::on_browse_chapters) EVT_BUTTON(ID_B_BROWSECHAPTERS, tab_global::on_browse_chapters)
EVT_CHECKBOX(ID_CB_SPLIT, tab_global::on_split_clicked) EVT_CHECKBOX(ID_CB_SPLIT, tab_global::on_split_clicked)
EVT_RADIOBUTTON(ID_RB_SPLITBYSIZE, tab_global::on_splitby_clicked) EVT_RADIOBUTTON(ID_RB_SPLITBYSIZE, tab_global::on_splitby_size_clicked)
EVT_RADIOBUTTON(ID_RB_SPLITBYTIME, tab_global::on_splitby_clicked) EVT_RADIOBUTTON(ID_RB_SPLITBYTIME, tab_global::on_splitby_time_clicked)
END_EVENT_TABLE(); END_EVENT_TABLE();

View File

@ -58,7 +58,8 @@ public:
void on_browse_chapters(wxCommandEvent &evt); void on_browse_chapters(wxCommandEvent &evt);
void on_browse_global_tags(wxCommandEvent &evt); void on_browse_global_tags(wxCommandEvent &evt);
void on_split_clicked(wxCommandEvent &evt); void on_split_clicked(wxCommandEvent &evt);
void on_splitby_clicked(wxCommandEvent &evt); void on_splitby_size_clicked(wxCommandEvent &evt);
void on_splitby_time_clicked(wxCommandEvent &evt);
void save(wxConfigBase *cfg); void save(wxConfigBase *cfg);
void load(wxConfigBase *cfg); void load(wxConfigBase *cfg);