rework speed timeline picons/waves
[goodguy/history.git] / cinelerra-5.1 / cinelerra / interfaceprefs.C
index d463fb24471ae67c8bd601275f5baf408d0a4b6d..ba27ce4ec648e34973603f598b6ab765e7030d4b 100644 (file)
@@ -40,10 +40,10 @@ N_("Drag source only")
 N_("No effect")
 #endif
 
-#define MOVE_ALL_EDITS_TITLE "Drag all following edits"
-#define MOVE_ONE_EDIT_TITLE "Drag only one edit"
-#define MOVE_NO_EDITS_TITLE "Drag source only"
-#define MOVE_EDITS_DISABLED_TITLE "No effect"
+#define MOVE_ALL_EDITS_TITLE N_("Drag all following edits")
+#define MOVE_ONE_EDIT_TITLE N_("Drag only one edit")
+#define MOVE_NO_EDITS_TITLE N_("Drag source only")
+#define MOVE_EDITS_DISABLED_TITLE N_("No effect")
 
 InterfacePrefs::InterfacePrefs(MWindow *mwindow, PreferencesWindow *pwindow)
  : PreferencesDialog(mwindow, pwindow)
@@ -80,11 +80,17 @@ void InterfacePrefs::create_objects()
        x = x2;
        BC_Title *title;
        add_subwindow(title = new BC_Title(x, y, _("Keyframe reticle:")));
-       y += 25;
-       keyframe_reticle = new KeyframeReticle(x, y, &pwindow->thread->preferences->keyframe_reticle);
+       y += title->get_h() + 5;
+       keyframe_reticle = new KeyframeReticle(pwindow, this, x, y,
+               &pwindow->thread->preferences->keyframe_reticle);
        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;
@@ -495,15 +501,19 @@ HairlineItem::~HairlineItem()
 
 int HairlineItem::handle_event()
 {
+       popup->pwindow->thread->redraw_overlays = 1;
        popup->set_text(get_text());
        *(popup->output) = hairline;
        return 1;
 }
 
 
-KeyframeReticle::KeyframeReticle(int x, int y, int *output)
- : BC_PopupMenu(x, y, 175, hairline_to_string(*output))
+KeyframeReticle::KeyframeReticle(PreferencesWindow *pwindow,
+       InterfacePrefs *iface_prefs, int x, int y, int *output)
+ : BC_PopupMenu(x, y, 220, hairline_to_string(*output))
 {
+       this->pwindow = pwindow;
+       this->iface_prefs = iface_prefs;
        this->output = output;
 }
 
@@ -599,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;
+}
+