Lines Matching +refs:val +refs:mode
86 static int pen_last_paraxial_dir = 0; // last used direction in horizontal/vertical mode; 0 = horizontal, 1 = vertical
99 , mode(MODE_CLICK)
119 , mode(MODE_CLICK)
161 guint mode = prefs->getInt("/tools/freehand/pen/freehand-mode", 0);
162 // change the nodes to make space for bspline mode
163 this->polylines_only = (mode == 3 || mode == 4);
164 this->polylines_paraxial = (mode == 4);
167 this->_penContextSetMode(mode);
171 *.Set the mode of draw spiro, and bsplines
173 void PenTool::_penContextSetMode(guint mode) {
175 this->spiro = (mode == 1);
176 this->bspline = (mode == 2);
202 sp_event_context_read(this, "mode");
246 void PenTool::set(const Inkscape::Preferences::Entry& val) {
247 Glib::ustring name = val.getEntryName();
249 if (name == "mode") {
250 if ( val.getString() == "drag" ) {
251 this->mode = MODE_DRAG;
253 this->mode = MODE_CLICK;
412 switch (this->mode) {
415 // In click mode we add point on release
590 switch (this->mode) {
742 switch (this->mode) {
1825 if ( ( ( this->mode == PenTool::MODE_CLICK ) && ( state & GDK_CONTROL_MASK ) ) ||
1826 ( ( this->mode == PenTool::MODE_DRAG ) && !( state & GDK_SHIFT_MASK ) ) ) {
2083 mode:c++
2086 indent-tabs-mode:nil