X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Finterfaceprefs.C;h=ba27ce4ec648e34973603f598b6ab765e7030d4b;hb=6fae7dd0f56872d524c1a6cf749a15574783f9e8;hp=e1d69537e766c2569ea64f509db5c4e81d89e720;hpb=0ac6a1397cf8ee19cf75f3fe893c27e9f4fc0ea5;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/interfaceprefs.C b/cinelerra-5.1/cinelerra/interfaceprefs.C index e1d69537..ba27ce4e 100644 --- a/cinelerra-5.1/cinelerra/interfaceprefs.C +++ b/cinelerra-5.1/cinelerra/interfaceprefs.C @@ -86,6 +86,11 @@ void InterfacePrefs::create_objects() add_subwindow(keyframe_reticle); keyframe_reticle->create_objects(); + y += 30; + add_subwindow(title = new BC_Title(x, y, _("Snapshot path:"))); + y += title->get_h() + 5; + add_subwindow(snapshot_path = new SnapshotPathText(pwindow, this, x, y, get_w()-x-30)); + x = x0; y = y2; add_subwindow(new BC_Title(x, y, _("Clicking on edit boundaries does what:"))); y += 25; @@ -604,3 +609,22 @@ int PrefsYUV420P_DVDlace::handle_event() return 1; } + +SnapshotPathText::SnapshotPathText(PreferencesWindow *pwindow, + InterfacePrefs *subwindow, int x, int y, int w) + : BC_TextBox(x, y, w, 1, pwindow->thread->preferences->snapshot_path) +{ + this->pwindow = pwindow; + this->subwindow = subwindow; +} + +SnapshotPathText::~SnapshotPathText() +{ +} + +int SnapshotPathText::handle_event() +{ + strcpy(pwindow->thread->preferences->snapshot_path, get_text()); + return 1; +} +