summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 00:37:16 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 00:37:16 +0000
commit3ae1dd35f03c85e1f5200a7dd481d87509b040b8 (patch)
tree911cce3de670ee0c90960e18cbe2eade2fa79547 /src/widgets/toolbox.cpp
parentAdd lpe-line_segment to LPETool toolbar (diff)
downloadinkscape-3ae1dd35f03c85e1f5200a7dd481d87509b040b8.tar.gz
inkscape-3ae1dd35f03c85e1f5200a7dd481d87509b040b8.zip
At the moment mouse click starts waiting for the activated LPE and nothing else (editing is not possible; no toolbar controls yet)
(bzr r6654)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index fd496a5eb..675900e74 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -68,6 +68,7 @@
#include "connector-context.h"
#include "node-context.h"
#include "pen-context.h"
+#include "lpe-tool-context.h"
#include "shape-editor.h"
#include "tweak-context.h"
#include "sp-rect.h"
@@ -4783,15 +4784,7 @@ static void sp_dropper_toolbox_prep(SPDesktop */*desktop*/, GtkActionGroup* main
//## LPETool ##
//########################
-/* This is the list of subtools from which the toolbar of the LPETool is built automatically */
-static const int num_subtools = 4;
-
-static Inkscape::LivePathEffect::EffectType lpesubtools[] = {
- Inkscape::LivePathEffect::LINE_SEGMENT,
- Inkscape::LivePathEffect::ANGLE_BISECTOR,
- Inkscape::LivePathEffect::CIRCLE_3PTS,
- Inkscape::LivePathEffect::PERP_BISECTOR,
-};
+// the subtools from which the toolbar is built automatically are listed in lpe-tool-context.h
static void sp_lpetool_mode_changed(EgeSelectOneAction *act, GObject *tbl)
{
@@ -4812,11 +4805,15 @@ static void sp_lpetool_mode_changed(EgeSelectOneAction *act, GObject *tbl)
// in turn, prevent listener from responding
g_object_set_data( tbl, "freeze", GINT_TO_POINTER(TRUE) );
+ // this is now done in sp_lpetool_context_root_handler()
+ /**
// activate the LPE corresponding to the chosen subtool
if (type != INVALID_LPE) {
+ //lc->tool_state = LPETOOL_STATE_PEN;
sp_pen_context_wait_for_LPE_mouse_clicks(pc, type, Effect::acceptsNumClicks(type));
}
// TODO: how can we take LPEs into account that don't expect any 'pre-clicks'?
+ **/
g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) );
}