livepatheffect-add.cpp revision 36fe57c03027fcd94aad7d16f751c7d1647dd4a1
/**
* @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
*/
/**
* Initialize Effect list
*/
if (i == 0) {
}
}
/**
* Buttons
*/
close_button.set_use_stock(true);
add_button.set_use_underline(true);
/**
* Signal handlers
*/
effectlist_treeview.signal_button_press_event().connect_notify( sigc::mem_fun(*this, &LivePathEffectAdd::onButtonEvent) );
signal_delete_event().connect( sigc::bind_return(sigc::hide(sigc::mem_fun(*this, &LivePathEffectAdd::onClose)), true ) );
}
void LivePathEffectAdd::onAdd()
{
applied = true;
onClose();
}
void LivePathEffectAdd::onClose()
{
hide();
}
{
// 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 :