• Ell's avatar
    app: allow adding and removing sliders to/from a GimpToolLine · bac7dac4
    Ell authored
    Add support for adding and removing sliders to/from a GimpToolLine,
    using three new signals:
    
      - can-add-slider:  Takes a double argument in the range [0,1],
        indicating a location along the line, and returns a boolean
        value, indicating whether a slider can be added at that
        location.
    
      - add-slider:  Takes a double argument in the range [0,1],
        indicating a location along the line, for which can-add-slider
        returned TRUE.  In response, should add a new slider at that
        location, and return its index, or a negative value if no
        slider was added.
    
      - remove-slider:  Takes a slider index.  In response, may remove
        the slider.
    
    On the UI side, when the cursor is close enough to the line, but
    not within the hit area of an existing handle, GimpToolLine checks
    if a slider can be added at the cursor position, using can-add-
    slider.  If a slider can be added, a dashed circle appears at the
    cursor position along the line, indicating where a slider will be
    added.  The cursor is added by clicking, which emits an add-slider
    signal; if the signal returns a slider index, the new slider is
    selected, and can be subsequently dragged.
    
    Removing a slider is done by either selecting the slider and
    pressing backspace (or delete, although we don't actually forward
    it to the tool atm,) or by "tearing" the slider: when dragging
    the slider, if the cursor is far enough from the liner, a dashed
    circle appears around the slider, and releasing the mouse removes
    the slider.
    bac7dac4
Name
Last commit
Last update
..
.gitignore Loading commit data...
Makefile.am Loading commit data...
display-enums.c Loading commit data...
display-enums.h Loading commit data...
display-types.h Loading commit data...
gimpcanvas-style.c Loading commit data...
gimpcanvas-style.h Loading commit data...
gimpcanvas.c Loading commit data...
gimpcanvas.h Loading commit data...
gimpcanvasarc.c Loading commit data...
gimpcanvasarc.h Loading commit data...
gimpcanvasboundary.c Loading commit data...
gimpcanvasboundary.h Loading commit data...
gimpcanvasbufferpreview.c Loading commit data...
gimpcanvasbufferpreview.h Loading commit data...
gimpcanvascorner.c Loading commit data...
gimpcanvascorner.h Loading commit data...
gimpcanvascursor.c Loading commit data...
gimpcanvascursor.h Loading commit data...
gimpcanvasgrid.c Loading commit data...
gimpcanvasgrid.h Loading commit data...
gimpcanvasgroup.c Loading commit data...
gimpcanvasgroup.h Loading commit data...
gimpcanvasguide.c Loading commit data...
gimpcanvasguide.h Loading commit data...
gimpcanvashandle.c Loading commit data...
gimpcanvashandle.h Loading commit data...
gimpcanvasitem-utils.c Loading commit data...
gimpcanvasitem-utils.h Loading commit data...
gimpcanvasitem.c Loading commit data...
gimpcanvasitem.h Loading commit data...
gimpcanvaslayerboundary.c Loading commit data...
gimpcanvaslayerboundary.h Loading commit data...
gimpcanvasline.c Loading commit data...
gimpcanvasline.h Loading commit data...
gimpcanvaspassepartout.c Loading commit data...
gimpcanvaspassepartout.h Loading commit data...
gimpcanvaspath.c Loading commit data...
gimpcanvaspath.h Loading commit data...
gimpcanvaspen.c Loading commit data...
gimpcanvaspen.h Loading commit data...
gimpcanvaspolygon.c Loading commit data...
gimpcanvaspolygon.h Loading commit data...
gimpcanvasprogress.c Loading commit data...
gimpcanvasprogress.h Loading commit data...
gimpcanvasproxygroup.c Loading commit data...
gimpcanvasproxygroup.h Loading commit data...
gimpcanvasrectangle.c Loading commit data...
gimpcanvasrectangle.h Loading commit data...
gimpcanvasrectangleguides.c Loading commit data...
gimpcanvasrectangleguides.h Loading commit data...
gimpcanvassamplepoint.c Loading commit data...
gimpcanvassamplepoint.h Loading commit data...
gimpcanvastextcursor.c Loading commit data...
gimpcanvastextcursor.h Loading commit data...
gimpcanvastransformguides.c Loading commit data...
gimpcanvastransformguides.h Loading commit data...
gimpcanvastransformpreview.c Loading commit data...
gimpcanvastransformpreview.h Loading commit data...
gimpcursorview.c Loading commit data...
gimpcursorview.h Loading commit data...
gimpdisplay-foreach.c Loading commit data...
gimpdisplay-foreach.h Loading commit data...
gimpdisplay-handlers.c Loading commit data...
gimpdisplay-handlers.h Loading commit data...
gimpdisplay.c Loading commit data...
gimpdisplay.h Loading commit data...
gimpdisplayshell-actions.c Loading commit data...
gimpdisplayshell-actions.h Loading commit data...
gimpdisplayshell-appearance.c Loading commit data...
gimpdisplayshell-appearance.h Loading commit data...
gimpdisplayshell-autoscroll.c Loading commit data...
gimpdisplayshell-autoscroll.h Loading commit data...
gimpdisplayshell-callbacks.c Loading commit data...
gimpdisplayshell-callbacks.h Loading commit data...
gimpdisplayshell-close.c Loading commit data...
gimpdisplayshell-close.h Loading commit data...
gimpdisplayshell-cursor.c Loading commit data...
gimpdisplayshell-cursor.h Loading commit data...
gimpdisplayshell-dnd.c Loading commit data...
gimpdisplayshell-dnd.h Loading commit data...
gimpdisplayshell-draw.c Loading commit data...
gimpdisplayshell-draw.h Loading commit data...
gimpdisplayshell-expose.c Loading commit data...
gimpdisplayshell-expose.h Loading commit data...
gimpdisplayshell-filter-dialog.c Loading commit data...
gimpdisplayshell-filter-dialog.h Loading commit data...
gimpdisplayshell-filter.c Loading commit data...
gimpdisplayshell-filter.h Loading commit data...
gimpdisplayshell-grab.c Loading commit data...
gimpdisplayshell-grab.h Loading commit data...
gimpdisplayshell-handlers.c Loading commit data...
gimpdisplayshell-handlers.h Loading commit data...
gimpdisplayshell-icon.c Loading commit data...
gimpdisplayshell-icon.h Loading commit data...
gimpdisplayshell-items.c Loading commit data...
gimpdisplayshell-items.h Loading commit data...
gimpdisplayshell-layer-select.c Loading commit data...
gimpdisplayshell-layer-select.h Loading commit data...
gimpdisplayshell-profile.c Loading commit data...
gimpdisplayshell-profile.h Loading commit data...
gimpdisplayshell-progress.c Loading commit data...
gimpdisplayshell-progress.h Loading commit data...
gimpdisplayshell-render.c Loading commit data...
gimpdisplayshell-render.h Loading commit data...
gimpdisplayshell-rotate-dialog.c Loading commit data...
gimpdisplayshell-rotate-dialog.h Loading commit data...
gimpdisplayshell-rotate.c Loading commit data...
gimpdisplayshell-rotate.h Loading commit data...
gimpdisplayshell-rulers.c Loading commit data...
gimpdisplayshell-rulers.h Loading commit data...
gimpdisplayshell-scale-dialog.c Loading commit data...
gimpdisplayshell-scale-dialog.h Loading commit data...
gimpdisplayshell-scale.c Loading commit data...
gimpdisplayshell-scale.h Loading commit data...
gimpdisplayshell-scroll.c Loading commit data...
gimpdisplayshell-scroll.h Loading commit data...
gimpdisplayshell-scrollbars.c Loading commit data...
gimpdisplayshell-scrollbars.h Loading commit data...
gimpdisplayshell-selection.c Loading commit data...
gimpdisplayshell-selection.h Loading commit data...
gimpdisplayshell-title.c Loading commit data...
gimpdisplayshell-title.h Loading commit data...
gimpdisplayshell-tool-events.c Loading commit data...
gimpdisplayshell-tool-events.h Loading commit data...
gimpdisplayshell-transform.c Loading commit data...
gimpdisplayshell-transform.h Loading commit data...
gimpdisplayshell.c Loading commit data...
gimpdisplayshell.h Loading commit data...
gimpdisplayxfer.c Loading commit data...
gimpdisplayxfer.h Loading commit data...
gimpimagewindow.c Loading commit data...
gimpimagewindow.h Loading commit data...
gimpmotionbuffer.c Loading commit data...
gimpmotionbuffer.h Loading commit data...
gimpmultiwindowstrategy.c Loading commit data...
gimpmultiwindowstrategy.h Loading commit data...
gimpnavigationeditor.c Loading commit data...
gimpnavigationeditor.h Loading commit data...
gimpscalecombobox.c Loading commit data...
gimpscalecombobox.h Loading commit data...
gimpsinglewindowstrategy.c Loading commit data...
gimpsinglewindowstrategy.h Loading commit data...
gimpstatusbar.c Loading commit data...
gimpstatusbar.h Loading commit data...
gimptoolcompass.c Loading commit data...
gimptoolcompass.h Loading commit data...
gimptooldialog.c Loading commit data...
gimptooldialog.h Loading commit data...
gimptoolgui.c Loading commit data...
gimptoolgui.h Loading commit data...
gimptoolhandlegrid.c Loading commit data...
gimptoolhandlegrid.h Loading commit data...
gimptoolline.c Loading commit data...
gimptoolline.h Loading commit data...
gimptoolpath.c Loading commit data...
gimptoolpath.h Loading commit data...
gimptoolpolygon.c Loading commit data...
gimptoolpolygon.h Loading commit data...
gimptoolrectangle.c Loading commit data...
gimptoolrectangle.h Loading commit data...
gimptoolrotategrid.c Loading commit data...
gimptoolrotategrid.h Loading commit data...
gimptoolsheargrid.c Loading commit data...
gimptoolsheargrid.h Loading commit data...
gimptooltransformgrid.c Loading commit data...
gimptooltransformgrid.h Loading commit data...
gimptoolwidget.c Loading commit data...
gimptoolwidget.h Loading commit data...