diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-04-04 09:54:17 +0000 |
|---|---|---|
| committer | John Smith <removethis.john.q.public@bigmail.com> | 2012-04-04 09:54:17 +0000 |
| commit | 4d44c257559a9cea38f69eb340fad84688aca3e8 (patch) | |
| tree | 92666bbd1b6a0d3c5ca11b2ed18f32921fe12a23 /src/selection-chemistry.h | |
| parent | Fix build with gtk < 2.24 (diff) | |
| download | inkscape-4d44c257559a9cea38f69eb340fad84688aca3e8.tar.gz inkscape-4d44c257559a9cea38f69eb340fad84688aca3e8.zip | |
Fix for 170378 : Select same objects by fill or stroke : Added stroke style
(bzr r11146)
Diffstat (limited to 'src/selection-chemistry.h')
| -rw-r--r-- | src/selection-chemistry.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/selection-chemistry.h b/src/selection-chemistry.h index 74f80b6af..ccb152602 100644 --- a/src/selection-chemistry.h +++ b/src/selection-chemistry.h @@ -37,8 +37,9 @@ namespace Inkscape { static void selectAllInAll(SPDesktop *desktop); static void selectNone(SPDesktop *desktop); static void selectSameFillStroke(SPDesktop *dt); - static void selectSameFill(SPDesktop *dt); - static void selectSameStroke(SPDesktop *dt); + static void selectSameFillColor(SPDesktop *dt); + static void selectSameStrokeColor(SPDesktop *dt); + static void selectSameStrokeStyle(SPDesktop *dt); static void invert(SPDesktop *desktop); static void invertAllInAll(SPDesktop *desktop); static void reverse(SPDesktop *dt); @@ -123,8 +124,18 @@ void sp_selection_next_patheffect_param(SPDesktop * dt); void sp_selection_edit_clip_or_mask(SPDesktop * dt, bool clip); -void sp_select_same_fill_stroke(SPDesktop *desktop, gboolean fill, gboolean stroke); -GSList *sp_get_same_fill_or_stroke_items(SPItem *sel, GSList *src, gboolean fillorstroke); +enum SPSelectStrokeStyleType { + SP_FILL_COLOR = 0, + SP_STROKE_COLOR = 1, + SP_STROKE_STYLE_WIDTH = 2, + SP_STROKE_STYLE_DASHES = 3, + SP_STROKE_STYLE_MARKERS = 4 +}; + +void sp_select_same_fill_stroke_style(SPDesktop *desktop, gboolean fill, gboolean strok, gboolean style); +void sp_select_same_stroke_style(SPDesktop *desktop); +GSList *sp_get_same_fill_or_stroke_color(SPItem *sel, GSList *src, SPSelectStrokeStyleType type); +GSList *sp_get_same_stroke_style(SPItem *sel, GSList *src, SPSelectStrokeStyleType type); void scroll_to_show_item(SPDesktop *desktop, SPItem *item); |
