~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to src/widgets/node-toolbar.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:
171
171
    }
172
172
}
173
173
 
174
 
static void sp_node_path_edit_toarc(void)
175
 
{
176
 
    NodeTool *nt = get_node_tool();
177
 
    if (nt) {
178
 
        nt->_multipath->setSegmentType(Inkscape::UI::SEGMENT_ELIPTICAL_ARC);
179
 
    }
180
 
}
181
 
 
182
 
static void sp_node_path_edit_arc_shallow(void)
183
 
{
184
 
    NodeTool *nt = get_node_tool();
185
 
    if (nt) {
186
 
        nt->_multipath->setArcSegmentLarge(false);
187
 
    }
188
 
}
189
 
 
190
 
static void sp_node_path_edit_arc_bulge(void)
191
 
{
192
 
    NodeTool *nt = get_node_tool();
193
 
    if (nt) {
194
 
        nt->_multipath->setArcSegmentLarge(true);
195
 
    }
196
 
}
197
 
 
198
 
static void sp_node_path_edit_arc_flip(void)
199
 
{
200
 
    NodeTool *nt = get_node_tool();
201
 
    if (nt) {
202
 
        nt->_multipath->toggleArcSegmentSweep();
203
 
    }
204
 
}
205
 
 
206
174
static void sp_node_path_edit_cusp(void)
207
175
{
208
176
    NodeTool *nt = get_node_tool();
518
486
    }
519
487
 
520
488
    {
521
 
        InkAction* inky = ink_action_new( "NodeArcShallowAction",
522
 
                                          _("Node Arc Shallow"),
523
 
                                          _("Make selected arc segments shallow"),
524
 
                                          INKSCAPE_ICON("node-segment-elliptical-arc-shallow"),
525
 
                                          secondarySize );
526
 
        g_signal_connect_after( G_OBJECT(inky), "activate", G_CALLBACK(sp_node_path_edit_arc_shallow), 0 );
527
 
        gtk_action_group_add_action( mainActions, GTK_ACTION(inky) );
528
 
    }
529
 
 
530
 
    {
531
 
        InkAction* inky = ink_action_new( "NodeArcBulgeAction",
532
 
                                          _("Node Arc Bulge"),
533
 
                                          _("Make selected arc segments bulge"),
534
 
                                          INKSCAPE_ICON("node-segment-elliptical-arc-bulge"),
535
 
                                          secondarySize );
536
 
        g_signal_connect_after( G_OBJECT(inky), "activate", G_CALLBACK(sp_node_path_edit_arc_bulge), 0 );
537
 
        gtk_action_group_add_action( mainActions, GTK_ACTION(inky) );
538
 
    }
539
 
 
540
 
    {
541
 
        InkAction* inky = ink_action_new( "NodeArcFlipAction",
542
 
                                          _("Node Arc Flip"),
543
 
                                          _("Flip selected arc segments"),
544
 
                                          INKSCAPE_ICON("node-segment-elliptical-arc-flip"),
545
 
                                          secondarySize );
546
 
        g_signal_connect_after( G_OBJECT(inky), "activate", G_CALLBACK(sp_node_path_edit_arc_flip), 0 );
547
 
        gtk_action_group_add_action( mainActions, GTK_ACTION(inky) );
548
 
    }
549
 
 
550
 
    {
551
489
        InkAction* inky = ink_action_new( "NodeLineAction",
552
490
                                          _("Node Line"),
553
491
                                          _("Make selected segments lines"),
568
506
    }
569
507
 
570
508
    {
571
 
        InkAction* inky = ink_action_new( "NodeArcAction",
572
 
                                          _("Node Arc"),
573
 
                                          _("Make selected segments arcs"),
574
 
                                          INKSCAPE_ICON("node-segment-elliptical-arc"),
575
 
                                          secondarySize );
576
 
        g_signal_connect_after( G_OBJECT(inky), "activate", G_CALLBACK(sp_node_path_edit_toarc), 0 );
577
 
        gtk_action_group_add_action( mainActions, GTK_ACTION(inky) );
578
 
    }
579
 
 
580
 
    {
581
509
        InkToggleAction* act = ink_toggle_action_new( "NodesShowTransformHandlesAction",
582
510
                                                      _("Show Transform Handles"),
583
511
                                                      _("Show transformation handles for selected nodes"),