livepatheffect-editor.cpp revision a4030d5ca449e7e384bc699cd249ee704faaeab0
e6bdf746e2d9e775704a475a29cc1bb167ec271cjohanengelen * @brief Live Path Effect editing dialog - implementation
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen * Johan Engelen <j.b.c.engelen@utwente.nl>
feb44ad276e996ca244e071f936c61b009bd73f4johanengelen * Steren Giannini <steren.giannini@gmail.com>
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen * Bastien Bouclet <bgkweb@gmail.com>
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen * Copyright (C) 2007 Authors
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen * Released under GNU GPL. Read the file 'COPYING' for more information.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen/*####################
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen * Callback functions
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenvoid lpeeditor_selection_changed (Inkscape::Selection * selection, gpointer data)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen LivePathEffectEditor *lpeeditor = static_cast<LivePathEffectEditor *>(data);
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenstatic void lpeeditor_selection_modified (Inkscape::Selection * selection, guint /*flags*/, gpointer data)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen LivePathEffectEditor *lpeeditor = static_cast<LivePathEffectEditor *>(data);
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen/*#######################
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen * LivePathEffectEditor
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen : UI::Widget::Panel("", "/dialogs/livepatheffect", SP_VERB_DIALOG_LIVE_PATH_EFFECT),
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen combo_effecttype(Inkscape::LivePathEffect::LPETypeConverter),
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen // TRANSLATORS: this dialog is accessible via menu Path - Path Effect Editor...
c3bc76d351bed6e320f6dbf2242012f026659287johanengelen effectapplication_frame(_("Apply new effect")),
63267518b4ce196caab66ef8cbdcfc0921206b3djohanengelen //Add the TreeView, inside a ScrolledWindow, with the button underneath:
effectlist_selection->signal_changed().connect( sigc::mem_fun(*this, &LivePathEffectEditor::on_effect_selection_changed) );
eyeRenderer->signal_toggled().connect( sigc::mem_fun(*this, &LivePathEffectEditor::on_visibility_toggled) );
if ( col ) {
//button_remove.hide();
if (effectwidget) {
delete effectwidget;
if (current_desktop) {
if (effectwidget) {
delete effectwidget;
if (effectwidget) {
if (effectwidget) {
delete effectwidget;
//button_remove.hide();
if (lpe_list_locked) {
lpe_list_locked = false;
if ( item ) {
set_sensitize_all(true);
if (lpe) {
lpe_list_locked = true;
set_sensitize_all(false);
set_sensitize_all(false);
set_sensitize_all(false);
if (current_desktop) {
lpe_list_locked = false;
if (desktop) {
// TODO: factor out the effect applying code which can be called from anywhere. (selection-chemistry.cpp also needs it)
if (!data) return;
lpe_list_locked = false;
/* FIXME: this explicit writing to SVG is wrong. The lpe_item should have a method to disable/enable an effect within its stack.
lpeobjref->lpeobject->get_lpe()->getRepr()->setAttribute("is_visible", newValue ? "true" : "false");