diff options
| author | Markus Engel <markus.engel@tum.de> | 2014-03-28 15:13:33 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2014-03-28 15:13:33 +0000 |
| commit | 24289d6eedbc912f228c21914176b82e8eecee51 (patch) | |
| tree | 941df365b6e4d26c961715b41832cddf04a03dca /src/vanishing-point.cpp | |
| parent | Merge in pixelArt threading mechanism to stop blocking the UI when performing... (diff) | |
| download | inkscape-24289d6eedbc912f228c21914176b82e8eecee51.tar.gz inkscape-24289d6eedbc912f228c21914176b82e8eecee51.zip | |
Further refactored SPKnot.
(bzr r13226)
Diffstat (limited to 'src/vanishing-point.cpp')
| -rw-r--r-- | src/vanishing-point.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vanishing-point.cpp b/src/vanishing-point.cpp index a0f3692a5..bb6a2c4d7 100644 --- a/src/vanishing-point.cpp +++ b/src/vanishing-point.cpp @@ -281,18 +281,18 @@ VPDragger::VPDragger(VPDrag *parent, Geom::Point p, VanishingPoint &vp) this->knot->setMode(SP_KNOT_MODE_XOR); this->knot->setFill(VP_KNOT_COLOR_NORMAL, VP_KNOT_COLOR_NORMAL, VP_KNOT_COLOR_NORMAL); this->knot->setStroke(0x000000ff, 0x000000ff, 0x000000ff); - this->knot->update_ctrl(); + this->knot->updateCtrl(); knot->item->ctrlType = CTRL_TYPE_ANCHOR; ControlManager::getManager().track(knot->item); // move knot to the given point - this->knot->set_position(this->point, SP_KNOT_STATE_NORMAL); + this->knot->setPosition(this->point, SP_KNOT_STATE_NORMAL); this->knot->show(); // connect knot's signals - this->_moved_connection = this->knot->_moved_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_moved_handler), this)); - this->_grabbed_connection = this->knot->_grabbed_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_grabbed_handler), this)); - this->_ungrabbed_connection = this->knot->_ungrabbed_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_ungrabbed_handler), this)); + this->_moved_connection = this->knot->moved_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_moved_handler), this)); + this->_grabbed_connection = this->knot->grabbed_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_grabbed_handler), this)); + this->_ungrabbed_connection = this->knot->ungrabbed_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_ungrabbed_handler), this)); // add the initial VP (which may be NULL!) this->addVP (vp); |
