livepatheffect-editor.cpp revision e9b6af083e34e2397a8ddbe9781920733d09d151
2035N/A#ifdef HAVE_CONFIG_H
2035N/A#include "livepatheffect-editor.h"
2035N/A#include "ui/widget/imagetoggler.h"
5680N/A#include "selection.h"
5680N/A#include "sp-shape.h"
6191N/A#include "sp-item-group.h"
2035N/A#include "sp-lpe-item.h"
2035N/A#include "path-chemistry.h"
6191N/A#include "live_effects/effect.h"
2035N/A#include "live_effects/lpeobject.h"
6191N/A#include "inkscape.h"
2035N/A#include "desktop-handles.h"
2035N/A#include "document.h"
3817N/A#include "live_effects/lpeobject-reference.h"
2035N/Aclass Application;
static void lpeeditor_selection_modified (Inkscape::Selection * selection, guint /*flags*/, gpointer data)
lpe_list_locked(false),
effectlist_selection->signal_changed().connect( sigc::mem_fun(*this, &LivePathEffectEditor::on_effect_selection_changed) );
Inkscape::UI::Widget::ImageToggler *eyeRenderer = manage( new Inkscape::UI::Widget::ImageToggler("visible", "hidden") );
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) {
if (desktop) {
// TODO: factor out the effect applying code which can be called from anywhere. (selection-chemistry.cpp also needs it)
if (!data) return;
/* FIXME: this explicit writing to SVG is wrong. The lpe_item should have a method to disable/enable an effect within its stack.