Add InkType::kEraseInk

This commit is contained in:
David Capello 2013-04-01 20:55:29 -03:00
parent b7d03ded07
commit b879be9c6d
3 changed files with 9 additions and 2 deletions

View File

@ -19,14 +19,17 @@
#ifndef SETTINGS_INK_TYPE_H_INCLUDED
#define SETTINGS_INK_TYPE_H_INCLUDED
// If you change this enumeration, you should change update the
// ContextBar::InkTypeField() UI widget
// If you change this enumeration, you should update the
// ContextBar::InkTypeField() UI widget. Also, remember that these
// indexes are loaded/saved from/to the user configuration file, so
// you shouldn't change them.
enum InkType {
kDefaultInk,
kOpaqueInk,
kMergeInk,
kShadingInk,
kReplaceInk,
kEraseInk,
kSelectionInk,
kBlurInk,
kJumbleInk,

View File

@ -251,6 +251,7 @@ public:
addItem("Merge");
addItem("Shading");
addItem("Replace");
addItem("Erase");
addItem("Selection");
addItem("Blur");
addItem("Jumble");

View File

@ -271,6 +271,9 @@ private:
else
id = WellKnownInks::ReplaceFgWithBg;
break;
case kEraseInk:
id = WellKnownInks::Eraser;
break;
case kSelectionInk:
id = WellKnownInks::Selection;
break;