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=dfb7e956b6dfef1d044bd38b7da7943f90862902;hpb=052becff04e4f4a4240a87c6b2f2f4023b65d247;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C index dfb7e956..22abb734 100644 --- a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C +++ b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C @@ -493,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" @@ -503,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); @@ -1279,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; } @@ -1299,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"))