As 2.x takes longer as planned, I added the SpeechbubbleContainer and StepLabelContainer (Enumerable label) to the 1.2 branch. This code was stored somewhere on my hard-drive, is still experimental.

This commit is contained in:
RKrom 2014-05-23 15:49:14 +02:00
commit ff3f898f54
21 changed files with 648 additions and 166 deletions

View file

@ -37,6 +37,9 @@ namespace Greenshot.Drawing {
public LineContainer(Surface parent) : base(parent) {
Init();
}
protected override void InitializeFields() {
AddField(GetType(), FieldType.LINE_THICKNESS, 2);
AddField(GetType(), FieldType.LINE_COLOR, Color.Red);
AddField(GetType(), FieldType.SHADOW, true);
@ -50,9 +53,9 @@ namespace Greenshot.Drawing {
}
protected void Init() {
if (grippers != null) {
if (_grippers != null) {
foreach (int index in new[] { 1, 2, 3, 5, 6, 7 }) {
grippers[index].Enabled = false;
_grippers[index].Enabled = false;
}
}
}