summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e388627)
raw | patch | inline | side by side (parent: e388627)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Fri, 12 May 2006 04:13:28 +0000 (04:13 +0000) | ||
committer | mjwybrow <mjwybrow@users.sourceforge.net> | |
Fri, 12 May 2006 04:13:28 +0000 (04:13 +0000) |
src/ui/dialog/inkscape-preferences.h, src/connector-context.cpp:
Add a preferences setting to the connector tool for setting
whether or not connectors attach to text objects. This
addresses feature request #1434292.
Add a preferences setting to the connector tool for setting
whether or not connectors attach to text objects. This
addresses feature request #1434292.
diff --git a/ChangeLog b/ChangeLog
index 097ebdf7b862f750de5c2701889fb2c1e8056168..0bb5419956ae156d6058862c89be6259994922a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-05-11 Michael Wybrow <mjwybrow@users.sourceforge.net>
+
+ * src/ui/dialog/inkscape-preferences.cpp,
+ src/ui/dialog/inkscape-preferences.h, src/connector-context.cpp:
+
+ Add a preferences setting to the connector tool for setting
+ whether or not connectors attach to text objects. This
+ addresses feature request #1434292.
+
2006-05-09 Carl Hetherington <inkscape@carlh.net>
* src/nodepath.cpp: fix silly bug with snapping node edits. *
index 79872536351f4f6e9f9ce72dc2f5bc7591298830..10312c41104479d99540d71ab9dfede92eb89a00 100644 (file)
* an object involves going inside C but without entering S.)
* o Draw connectors to shape edges rather than bounding box.
* o Show a visual indicator for objects with the 'avoid' property set.
+ * o Allow user to change a object between a path and connector through
+ * the interface.
* o Create an interface for setting markers (arrow heads).
* o Better distinguish between paths and connectors to prevent problems
* in the node tool and paths accidently being turned into connectors
* in the connector tool. Perhaps have a way to convert between.
* o Only call libavoid's updateEndPoint as required. Currently we do it
* for both endpoints, even if only one is moving.
- * o Cleanup to remove unecessary borrowed DrawContext code.
* o Allow user-placeable connection points.
* o Deal sanely with connectors with both endpoints attached to the
* same connection point, and drawing of connectors attaching
#include "libavoid/vertices.h"
#include "context-fns.h"
#include "sp-namedview.h"
+#include "sp-text.h"
+#include "sp-flowtext.h"
+
static void sp_connector_context_class_init(SPConnectorContextClass *klass);
static void sp_connector_context_init(SPConnectorContext *conn_context);
return false;
}
}
+ else if (SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item)) {
+ if (prefs_get_int_attribute("tools.connector", "ignoretext", 1) == 1) {
+ // Don't count text as a shape we can connect connector to.
+ return false;
+ }
+ }
return true;
}
index 25ad8219a61b46542fc1d061cc82ddd110e5fafb..78e6cd812d65bdf33db166831bc828e652ea9289 100644 (file)
_path_tools = _page_list.get_model()->get_path(iter_tools);
_calligrapy_use_abs_size.init ( _("Width is in absolute units"), "tools.calligraphic", "abs_width", false);
+ _connector_ignore_text.init( _("Don't attach connectors to text objects"), "tools.connector", "ignoretext", true);
//Selector
this->AddPage(_page_selector, _("Selector"), iter_tools, PREFS_PAGE_TOOLS_SELECTOR);
//Connector
this->AddPage(_page_connector, _("Connector"), iter_tools, PREFS_PAGE_TOOLS_CONNECTOR);
this->AddSelcueCheckbox(_page_connector, "tools.connector", true);
+ _page_connector.add_line(false, "", _connector_ignore_text, "",
+ _("If on, conector attachment points will not be shown for text objects"));
//Dropper
this->AddPage(_page_dropper, _("Dropper"), iter_tools, PREFS_PAGE_TOOLS_DROPPER);
this->AddSelcueCheckbox(_page_dropper, "tools.dropper", true);
index d850dd4314d080ad6a002fcacf3070a1cc0ac4f8..c3a3c0c9e4788653bd94781c7c425fd7f60bf417 100644 (file)
PrefCheckButton _calligrapy_use_abs_size;
+ PrefCheckButton _connector_ignore_text;
+
PrefRadioButton _clone_option_parallel, _clone_option_stay, _clone_option_transform,
_clone_option_unlink, _clone_option_delete;