X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Finterfaceprefs.C;h=1a3f1be553c983b84575215abed6d205d00857c8;hb=24db15d85f2e4c986ff91f992e815747c55948f3;hp=fb58b22eea391a89394bb338bf8850096a4c029b;hpb=d85ee0843fbbd79a0a7d2ffa0aac57968e24f6d7;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/interfaceprefs.C b/cinelerra-5.1/cinelerra/interfaceprefs.C index fb58b22e..1a3f1be5 100644 --- a/cinelerra-5.1/cinelerra/interfaceprefs.C +++ b/cinelerra-5.1/cinelerra/interfaceprefs.C @@ -160,16 +160,17 @@ void InterfacePrefs::create_objects() y += 5; add_subwindow(new BC_Title(x, y, _("Index files"), LARGEFONT, resources->text_default)); + add_subwindow(ffmpeg_marker_files = new IndexFFMPEGMarkerFiles(this, x1, y)); - y += 25; + y += 30; add_subwindow(new BC_Title(x, y + 5, _("Index files go here:"), MEDIUMFONT, resources->text_default)); add_subwindow(ipathtext = new IndexPathText(x + 230, y, pwindow, pwindow->thread->preferences->index_directory)); add_subwindow(ipath = new BrowseButton(mwindow->theme, this, ipathtext, - x + 230 + ipathtext->get_w(), y, + x1 = x + 230 + ipathtext->get_w(), y, pwindow->thread->preferences->index_directory, _("Index Path"), _("Select the directory for index files"), @@ -190,9 +191,6 @@ void InterfacePrefs::create_objects() add_subwindow(deleteall = new DeleteAllIndexes(mwindow, pwindow, 350, y)); - - - y += 35; add_subwindow(new BC_Bar(5, y, get_w() - 10)); y += 5; @@ -292,23 +290,12 @@ void InterfacePrefs::create_objects() const char* InterfacePrefs::behavior_to_text(int mode) { - switch(mode) - { - case MOVE_ALL_EDITS: - return _(MOVE_ALL_EDITS_TITLE); - break; - case MOVE_ONE_EDIT: - return _(MOVE_ONE_EDIT_TITLE); - break; - case MOVE_NO_EDITS: - return _(MOVE_NO_EDITS_TITLE); - break; - case MOVE_EDITS_DISABLED: - return _(MOVE_EDITS_DISABLED_TITLE); - break; - default: - return ""; - break; + switch(mode) { + case MOVE_ALL_EDITS: return _(MOVE_ALL_EDITS_TITLE); + case MOVE_ONE_EDIT: return _(MOVE_ONE_EDIT_TITLE); + case MOVE_NO_EDITS: return _(MOVE_NO_EDITS_TITLE); + case MOVE_EDITS_DISABLED: return _(MOVE_EDITS_DISABLED_TITLE); + default: return ""; } } @@ -329,17 +316,6 @@ int InterfacePrefs::update(int new_value) - - - - - - - - - - - IndexPathText::IndexPathText(int x, int y, PreferencesWindow *pwindow, @@ -403,15 +379,22 @@ int IndexCount::handle_event() +IndexFFMPEGMarkerFiles::IndexFFMPEGMarkerFiles(InterfacePrefs *iface_prefs, int x, int y) + : BC_CheckBox(x, y, + iface_prefs->pwindow->thread->preferences->ffmpeg_marker_indexes, + _("build ffmpeg marker indexes")) +{ + this->iface_prefs = iface_prefs; +} +IndexFFMPEGMarkerFiles::~IndexFFMPEGMarkerFiles() +{ +} - - - - - - - - +int IndexFFMPEGMarkerFiles::handle_event() +{ + iface_prefs->pwindow->thread->preferences->ffmpeg_marker_indexes = get_value(); + return 1; +}