lpe-fillet-chamfer-properties.cpp revision 7afb53df65578f04da41d1f7a2dcf4a29c93fcb1
/**
* From the code of Liam P.White from his Power Stroke Knot dialog
*
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#endif
#include "lpe-fillet-chamfer-properties.h"
#include <boost/lexical_cast.hpp>
#include "inkscape.h"
#include "desktop.h"
#include "document.h"
#include "document-undo.h"
#include "layer-manager.h"
#include "message-stack.h"
#include "desktop-handles.h"
#include "sp-object.h"
#include "sp-item.h"
#include "verbs.h"
#include "selection.h"
#include "selection-chemistry.h"
#include "ui/icon-names.h"
#include "ui/widget/imagetoggler.h"
#include <cmath>
#include <gtkmm/radiobutton.h>
//#include "event-context.h"
namespace Inkscape {
namespace UI {
namespace Dialogs {
{
mainVBox->set_homogeneous(false);
// Layer name widgets
// Buttons
_close_button.set_use_stock(true);
_apply_button.set_use_underline(true);
true));
}
{
}
const Inkscape::LivePathEffect::
{
dialog->property_destroy_with_parent() = true;
}
void FilletChamferPropertiesDialog::_apply()
{
if (_fillet_chamfer_type_fillet.get_active() == true) {
d_width = 1;
} else if (_fillet_chamfer_type_inverse_fillet.get_active() == true) {
d_width = 2;
} else if (_fillet_chamfer_type_chamfer.get_active() == true) {
d_width = 3;
} else {
d_width = 4;
}
if (_flexible) {
d_pos = 0;
}
} else {
}
}
_close();
}
void FilletChamferPropertiesDialog::_close()
{
destroy_();
false
)
);
}
{
return false;
}
{
_apply();
}
}
{
double position;
if (knotpoint.x() > 0) {
double intpart;
_flexible = true;
} else {
_flexible = false;
}
std::ostringstream s;
s << position;
if (knotpoint.y() == 1) {
} else if (knotpoint.y() == 2) {
} else if (knotpoint.y() == 3) {
} else if (knotpoint.y() == 1) {
}
}
const Inkscape::LivePathEffect::
{
_knotpoint = const_cast<
pt);
}
{
}
{
if (desktop) {
}
if (_desktop) {
}
}
} // namespace
} // namespace
} // namespace
/*
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
// :