~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to src/ui/tool/multi-path-manipulator.cpp

  • Committer: tavmjong-free
  • Date: 2016-05-08 07:44:05 UTC
  • mfrom: (14873.1.1 gtk3)
  • Revision ID: tavmjong@free.fr-20160508074405-rm6tiapoq1ugamph
Start of GTK3 external style sheet support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
{
320
320
    if (_selection.empty()) return;
321
321
    invokeForAll(&PathManipulator::setSegmentType, type);
322
 
    switch (type){
323
 
        case SEGMENT_STRAIGHT:
324
 
            _done(_("Straighten segments"));
325
 
            break;
326
 
        case SEGMENT_CUBIC_BEZIER:
327
 
            _done(_("Make segments curves"));
328
 
            break;
329
 
        case SEGMENT_ELIPTICAL_ARC:
330
 
            _done(_("Make segments arcs"));
331
 
            break;
332
 
        default:
333
 
            g_error("Unknown segment type");
334
 
    }
335
 
}
336
 
 
337
 
void MultiPathManipulator::setArcSegmentLarge(bool large)
338
 
{
339
 
    if (_selection.empty()) return;
340
 
    invokeForAll(&PathManipulator::setArcSegmentLarge, large);
341
 
    if (large){
342
 
        _done(_("Make arc segments bulge"));
343
 
    }
344
 
    else{
345
 
        _done(_("Make arc segments shallow"));
346
 
    }
347
 
}
348
 
 
349
 
void MultiPathManipulator::toggleArcSegmentSweep()
350
 
{
351
 
    if (_selection.empty()) return;
352
 
    invokeForAll(&PathManipulator::toggleArcSegmentSweep);
353
 
    _done(_("Flip arc segments"));
 
322
    if (type == SEGMENT_STRAIGHT) {
 
323
        _done(_("Straighten segments"));
 
324
    } else {
 
325
        _done(_("Make segments curves"));
 
326
    }
354
327
}
355
328
 
356
329
void MultiPathManipulator::insertNodes()