Lines Matching defs:drag
44 #include "gradient-drag.h"
99 GrDrag *drag = this->_grdrag;
108 if (!drag->isNonEmpty() || selection->isEmpty()) {
112 guint n_tot = drag->numDraggers();
113 guint n_sel = drag->numSelected();
117 if (drag->singleSelectedDraggerNumDraggables() == 1) {
125 message,_(ms_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",
132 drag->singleSelectedDraggerNumDraggables()),
135 this->message_context->setF(Inkscape::NORMAL_MESSAGE,message,drag->singleSelectedDraggerNumDraggables(), n_tot, n_obj);
153 // Get gradient this drag belongs too..
180 // GList* dragger_ptr = drag->draggers; // Points to GrDragger class (group of GrDraggable)
201 // if( g_list_find( drag->selected, dragger_ptr->data ) ) {
246 GrDrag *drag = event_context->_grdrag;
247 g_assert (drag);
249 GrDragger *d = drag->select_next();
257 GrDrag *drag = event_context->_grdrag;
258 g_assert (drag);
260 GrDragger *d = drag->select_prev();
328 GrDrag *drag = rc->_grdrag;
335 for (std::set<GrDragger *>::const_iterator i = drag->selected.begin(); i != drag->selected.end(); ++i) {
422 drag->updateDraggers();
439 GrDrag *drag = this->_grdrag;
440 g_assert (drag);
460 if (! drag->lines.empty()) {
461 for (std::vector<SPCtrlLine *>::const_iterator l = drag->lines.begin(); l != drag->lines.end() && (!over_line); ++l) {
503 // Else set origin for drag. A drag creates a new gradient if one does not exist
507 // save drag origin
548 break; // do not drag if we're within tolerance from origin
563 // Do nothing. For a linear/radial gradient we follow the drag, updating the
565 // created to fill the object when the drag ends.
575 if (!drag->mouseOver() && !selection->isEmpty()) {
587 if( drag->mouseOver() ) {
596 if (!drag->lines.empty()) {
597 for (std::vector<SPCtrlLine *>::const_iterator l = drag->lines.begin(); l != drag->lines.end() ; ++l) {
627 if (!drag->lines.empty()) {
628 for (std::vector<SPCtrlLine *>::const_iterator l = drag->lines.begin(); l != drag->lines.end() && (!over_line); ++l) {
658 // this was a rubberband drag
661 drag->selectRect(*b);
681 if (!drag->selected.empty()) {
682 drag->deselectAll();
720 if (MOD__CTRL_ONLY(event) && drag->isNonEmpty()) {
721 drag->selectAll();
727 if (!drag->selected.empty()) {
728 drag->deselectAll();
745 drag->selected_move_screen(mul*-10, 0); // shift
747 drag->selected_move_screen(mul*-1, 0); // no shift
751 drag->selected_move(mul*-10*nudge, 0); // shift
753 drag->selected_move(mul*-nudge, 0); // no shift
769 drag->selected_move_screen(0, mul*10); // shift
771 drag->selected_move_screen(0, mul*1); // no shift
775 drag->selected_move(0, mul*10*nudge); // shift
777 drag->selected_move(0, mul*nudge); // no shift
793 drag->selected_move_screen(mul*10, 0); // shift
795 drag->selected_move_screen(mul*1, 0); // no shift
799 drag->selected_move(mul*10*nudge, 0); // shift
801 drag->selected_move(mul*nudge, 0); // no shift
817 drag->selected_move_screen(0, mul*-10); // shift
819 drag->selected_move_screen(0, mul*-1); // no shift
823 drag->selected_move(0, mul*-10*nudge); // shift
825 drag->selected_move(0, mul*-nudge); // no shift
844 if ( !drag->selected.empty() ) {
854 if (MOD__ALT(event) && drag->isNonEmpty() && drag->hasSelection()) {
862 if (MOD__ALT(event) && drag->isNonEmpty() && drag->hasSelection()) {
870 if (MOD__ALT(event) && drag->isNonEmpty() && drag->hasSelection()) {
878 if (MOD__ALT(event) && drag->isNonEmpty() && drag->hasSelection()) {
886 if (MOD__ALT(event) && drag->isNonEmpty() && drag->hasSelection()) {
943 // pick color from the object where drag started
974 // during drag