X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fsketcher%2Fsketcherwindow.C;h=22abb7345aa8913f493d54e945ae4765d3aba793;hb=fb3e53778e49a406768506de9bf8edfd3d4c36e6;hp=5a38b4b81438a82c2d6b78084055da0e9972e9b9;hpb=b8edca23c6b2a5109676001cd04759507e354364;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C index 5a38b4b8..22abb734 100644 --- a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C +++ b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C @@ -278,6 +278,7 @@ SketcherAliasing::SketcherAliasing(SketcherWindow *gui, Sketcher *plugin, { this->gui = gui; this->plugin = plugin; + set_tooltip(_("Anti-Aliasing")); } SketcherAliasing::~SketcherAliasing() { @@ -293,7 +294,7 @@ void SketcherAliasing::create_objects() const char *SketcherAliasing::alias_to_text(int alias) { if( alias < 0 ) return _("Off"); - if( alias > 0 ) return _("Dbl"); + if( alias > 0 ) return _("Double"); return _("On"); } @@ -492,7 +493,7 @@ void SketcherWindow::create_objects() "drag point\n" "drag all curves\n" "new fill point"))); dy = bmax(dy, notes1->get_h()); - add_subwindow(notes2 = new BC_Title(x+xS(220), y, + add_subwindow(notes2 = new BC_Title(x+xS(280), y, _(" RMB\n" "new arc point\n" "select curve\n" @@ -502,9 +503,9 @@ void SketcherWindow::create_objects() y += dy + margin + yS(10); add_subwindow(notes3 = new BC_Title(x, y, - "Wheel: rotate, centered on cursor\n" + _("Wheel: rotate, centered on cursor\n" "Wheel: shift: scale, centered on cursor\n" - "Key DEL= delete point, +Shift= delete curve\n")); + "Key DEL= delete point, +Shift= delete curve\n"))); resize_window(get_w(), help_y); show_window(1); @@ -1278,7 +1279,7 @@ int SketcherPointDn::handle_event() } SketcherDrag::SketcherDrag(SketcherWindow *gui, int x, int y) - : BC_CheckBox(x, y, gui->plugin->config.drag, _("Drag")) + : BC_CheckBox(x, y, gui->plugin->config.drag, (C_("Drag"))) { this->gui = gui; } @@ -1298,6 +1299,17 @@ int SketcherDrag::handle_event() gui->send_configure_change(); return 1; } +int SketcherWindow::handle_ungrab() +{ + CWindowGUI *cwindow_gui = plugin->server->mwindow->cwindow->gui; + int ret = ungrab(cwindow_gui); + if( ret ) { + drag->update(0); + plugin->config.drag = 0; + send_configure_change(); + } + return ret; +} SketcherNewPoint::SketcherNewPoint(SketcherWindow *gui, Sketcher *plugin, int x, int y) : BC_GenericButton(x, y, xS(96), _("New"))