diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-10-16 17:17:47 +0000 |
|---|---|---|
| committer | jabiertxof <jabier.arraiza@marker.es> | 2015-10-16 17:17:47 +0000 |
| commit | 69aa4c6436321b22525fb11c552ca7d60ac1b096 (patch) | |
| tree | 403718e9d2f93ab95ef6b1a21e9c0c1299009cb6 /src/widgets | |
| parent | removed unnecesary line (diff) | |
| download | inkscape-69aa4c6436321b22525fb11c552ca7d60ac1b096.tar.gz inkscape-69aa4c6436321b22525fb11c552ca7d60ac1b096.zip | |
Add convert to guides option
(bzr r14393.2.4)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/measure-toolbar.cpp | 17 | ||||
| -rw-r--r-- | src/widgets/toolbox.cpp | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/widgets/measure-toolbar.cpp b/src/widgets/measure-toolbar.cpp index 48c781fb3..741d600b4 100644 --- a/src/widgets/measure-toolbar.cpp +++ b/src/widgets/measure-toolbar.cpp @@ -178,6 +178,13 @@ static void sp_to_mark_dimension(void){ } } +static void sp_to_guides(void){ + MeasureTool *mt = get_measure_tool(); + if (mt) { + mt->toGuides(); + } +} + static void sp_to_item(void){ MeasureTool *mt = get_measure_tool(); if (mt) { @@ -280,6 +287,16 @@ void sp_measure_toolbox_prep(SPDesktop * desktop, GtkActionGroup* mainActions, G g_signal_connect_after( G_OBJECT(act), "activate", G_CALLBACK(sp_reverse_knots), 0 ); gtk_action_group_add_action( mainActions, GTK_ACTION(act) ); } + //to guides + { + InkAction* act = ink_action_new( "MeasureToGuides", + _("To guides"), + _("Mark Dimension"), + INKSCAPE_ICON("guides"), + secondarySize ); + g_signal_connect_after( G_OBJECT(act), "activate", G_CALLBACK(sp_to_guides), 0 ); + gtk_action_group_add_action( mainActions, GTK_ACTION(act) ); + } //to mark dimensions { InkAction* act = ink_action_new( "MeasureMarkDimension", diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 665502745..a2bd16978 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -347,6 +347,7 @@ static gchar const * ui_descr = " <toolitem action='MeasureInBettween' />" " <toolitem action='MeasureAllLayers' />" " <toolitem action='MeasureReverse' />" + " <toolitem action='MeasureToGuides' />" " <toolitem action='MeasureMarkDimension' />" " <toolitem action='MeasureToItem' />" " </toolbar>" |
