Lines Matching defs:drag
35 #include "gradient-drag.h"
104 GrDrag *drag = rc->_grdrag;
111 if (!drag->isNonEmpty() || selection->isEmpty())
113 guint n_tot = drag->numDraggers();
114 guint n_sel = drag->numSelected();
118 if (drag->singleSelectedDraggerNumDraggables() == 1) {
126 message,_(gr_handle_descr[drag->singleSelectedDraggerSingleDraggableType()]), n_tot, n_obj);
130 ngettext("One handle merging %d stop (drag with <b>Shift</b> to separate) selected",
131 "One handle merging %d stops (drag with <b>Shift</b> to separate) selected",drag->singleSelectedDraggerNumDraggables()),
134 rc->message_context->setF(Inkscape::NORMAL_MESSAGE,message,drag->singleSelectedDraggerNumDraggables(), n_tot, n_obj);
179 GrDrag *drag = event_context->_grdrag;
180 g_assert (drag);
182 GrDragger *d = drag->select_next();
190 GrDrag *drag = event_context->_grdrag;
191 g_assert (drag);
193 GrDragger *d = drag->select_prev();
223 sp_gradient_context_get_stop_intervals (GrDrag *drag, GSList **these_stops, GSList **next_stops)
228 for (std::set<GrDragger *>::const_iterator i = drag->selected.begin(); i != drag->selected.end() ; ++i ) {
266 dnext = drag->getDraggerFor(item, POINT_LG_END, p_i+1, fs);
268 dnext = drag->getDraggerFor(item, POINT_LG_MID, p_i+1, fs);
273 dnext = drag->getDraggerFor(item, POINT_RG_R1, p_i+1, fs);
275 dnext = drag->getDraggerFor(item, POINT_RG_MID1, p_i+1, fs);
281 dnext = drag->getDraggerFor(item, POINT_RG_R2, p_i+1, fs);
283 dnext = drag->getDraggerFor(item, POINT_RG_MID2, p_i+1, fs);
309 GrDrag *drag = rc->_grdrag;
314 std::vector<Geom::Point> coords = sp_gradient_context_get_stop_intervals (drag, &these_stops, &next_stops);
316 if (g_slist_length(these_stops) == 0 && drag->numSelected() == 1) {
318 GrDragger *dragger = *(drag->selected.begin());
361 drag->updateDraggers();
363 drag->local_change = true;
367 drag->selectByStop((SPStop *)s->data);
383 GrDrag *drag = rc->_grdrag;
388 std::vector<Geom::Point> coords = sp_gradient_context_get_stop_intervals (drag, &these_stops, &next_stops);
434 drag->local_change = true;
435 drag->updateDraggers();
436 drag->selectByCoords(coords);
474 GrDrag *drag = this->_grdrag;
475 g_assert (drag);
485 if (!drag->lines.empty()) {
486 for (std::vector<SPCtrlLine *>::const_iterator l = drag->lines.begin(); l != drag->lines.end() && (!over_line); ++l) {
520 // save drag origin
556 break; // do not drag if we're within tolerance from origin
578 if (!drag->mouseOver() && !selection->isEmpty()) {
591 if (!drag->lines.empty()) {
592 for (std::vector<SPCtrlLine *>::const_iterator l = drag->lines.begin(); l != drag->lines.end(); ++l) {
616 if (!drag->lines.empty()) {
617 for (std::vector<SPCtrlLine *>::const_iterator l = drag->lines.begin(); l != drag->lines.end() && (!over_line); ++l) {
643 // this was a rubberband drag
646 drag->selectRect(*b);
658 drag->deselectAll();
664 if (!drag->selected.empty()) {
665 drag->deselectAll();
705 if (MOD__CTRL_ONLY(event) && drag->isNonEmpty()) {
706 drag->selectAll();
713 if (MOD__CTRL_ONLY(event) && drag->isNonEmpty() && drag->hasSelection()) {
720 if (!drag->selected.empty()) {
721 drag->deselectAll();
737 drag->selected_move_screen(mul*-10, 0); // shift
739 drag->selected_move_screen(mul*-1, 0); // no shift
743 drag->selected_move(mul*-10*nudge, 0); // shift
745 drag->selected_move(mul*-nudge, 0); // no shift
760 drag->selected_move_screen(0, mul*10); // shift
762 drag->selected_move_screen(0, mul*1); // no shift
766 drag->selected_move(0, mul*10*nudge); // shift
768 drag->selected_move(0, mul*nudge); // no shift
785 drag->selected_move_screen(mul*10, 0); // shift
787 drag->selected_move_screen(mul*1, 0); // no shift
791 drag->selected_move(mul*10*nudge, 0); // shift
793 drag->selected_move(mul*nudge, 0); // no shift
810 drag->selected_move_screen(0, mul*-10); // shift
812 drag->selected_move_screen(0, mul*-1); // no shift
816 drag->selected_move(0, mul*-10*nudge); // shift
818 drag->selected_move(0, mul*-nudge); // no shift
895 // pick color from the object where drag started
942 // during drag