/**
* @file
* Dialog for adding a live path effect.
*
* Author:
*
* Copyright (C) 2012 Authors
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "livepatheffect-add.h"
#include "desktop.h"
#include "live_effects/effect-enum.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
applied(false)
{
set_title(_("Add Path Effect"));
/**
* Scrolled Window
*/
/**
* Effect Store and Tree
*/
//effectlist_treeview.set_activates_default(true);
/**
* Initialize Effect list
*/
if (i == 0) {
}
}
/**
* Buttons
*/
close_button.set_use_stock(true);
//close_button.set_can_default();
add_button.set_use_underline(true);
#if WITH_GTKMM_3_0
#else
#endif
/**
* Signal handlers
*/
effectlist_treeview.signal_button_press_event().connect_notify( sigc::mem_fun(*this, &LivePathEffectAdd::onButtonEvent) );
effectlist_treeview.signal_key_press_event().connect_notify(sigc::mem_fun(*this, &LivePathEffectAdd::onKeyEvent));
signal_delete_event().connect( sigc::bind_return(sigc::hide(sigc::mem_fun(*this, &LivePathEffectAdd::onClose)), true ) );
}
{
applied = true;
onClose();
}
{
hide();
}
{
onAdd();
}
onClose();
}
}
{
// Double click on tree is same as clicking the add button
onAdd();
}
}
{
if ( iter ) {
}
return 0;
}
{
dial.property_destroy_with_parent() = true;
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :