summaryrefslogtreecommitdiffstats
path: root/src/widgets/stroke-style.h
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-17 23:44:30 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-17 23:44:30 +0000
commit979d809bbbe2d3ed1fc5a296c8f99f5d8c395f4b (patch)
tree23aacc7cf2cfbbca969ecc36207a9c73cbea6d58 /src/widgets/stroke-style.h
parentfix typo in marker bbox calculation (Bug 1051131) (diff)
downloadinkscape-979d809bbbe2d3ed1fc5a296c8f99f5d8c395f4b.tar.gz
inkscape-979d809bbbe2d3ed1fc5a296c8f99f5d8c395f4b.zip
Fix for 165865 : Fix marker color on duplicate
(bzr r11671)
Diffstat (limited to 'src/widgets/stroke-style.h')
-rw-r--r--src/widgets/stroke-style.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/widgets/stroke-style.h b/src/widgets/stroke-style.h
index 546880bc2..d437f7e12 100644
--- a/src/widgets/stroke-style.h
+++ b/src/widgets/stroke-style.h
@@ -67,6 +67,15 @@ class Widget;
class Container;
}
+struct { gchar const *key; gint value; } const SPMarkerNames[] = {
+ {"marker-all", SP_MARKER_LOC},
+ {"marker-start", SP_MARKER_LOC_START},
+ {"marker-mid", SP_MARKER_LOC_MID},
+ {"marker-end", SP_MARKER_LOC_END},
+ {"", SP_MARKER_LOC_QTY},
+ {NULL, -1}
+};
+
/**
* Creates an instance of a paint style widget.
*/
@@ -106,9 +115,9 @@ private:
void setCapButtons(Gtk::ToggleButton *active);
void scaleLine();
void setScaledDash(SPCSSAttr *css, int ndash, double *dash, double offset, double scale);
- void setMarkerColor(SPItem *item, SPObject *marker, MarkerComboBox *marker_combo);
- SPObject *forkMarker(SPItem *item, SPObject *marker, MarkerComboBox *marker_combo);
- const char *getItemColorForMarker(SPItem *item, Inkscape::PaintTarget fill_or_stroke, MarkerComboBox *marker_combo);
+ void setMarkerColor(SPObject *marker, int loc, SPItem *item);
+ SPObject *forkMarker(SPObject *marker, int loc, SPItem *item);
+ const char *getItemColorForMarker(SPItem *item, Inkscape::PaintTarget fill_or_stroke, int loc);
Gtk::RadioButton * makeRadioButton(Gtk::RadioButton *tb, char const *icon,
Gtk::HBox *hb, gchar const *key, gchar const *data);