lpe-fillet-chamfer-properties.cpp revision 9b80020e27112b78e215939df28efa1de7f11d2c
/**
* 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 <gtkmm.h>
#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 "event-context.h"
namespace Inkscape {
namespace UI {
namespace Dialogs {
{
mainVBox->set_homogeneous(false);
// Layer name widgets
//todo: get tha max aloable infinity freeze the widget
//todo: get tha max aloable infinity freeze the widget
// Buttons
_close_button.set_use_stock(true);
_apply_button.set_use_underline(true);
true));
}
{
}
const Inkscape::LivePathEffect::
bool use_distance,
bool aprox_radius,
{
dialog->property_destroy_with_parent() = true;
}
void FilletChamferPropertiesDialog::_apply()
{
double d_width;
if (d_pos) {
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 (_flexible) {
d_pos = 0;
}
} else {
}
}
_close();
}
void FilletChamferPropertiesDialog::_close()
{
destroy_();
false
)
);
}
{
return false;
}
{
_apply();
}
}
{
double position;
if(aprox){
}
if(use_distance){
}
if (knotpoint.x() > 0) {
double intpart;
_flexible = true;
} else {
_flexible = false;
}
if (knotpoint.y() == 1) {
} else if (knotpoint.y() == 2) {
} else if (knotpoint.y() >= 3) {
}
}
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
// :