#FEATURE by cg draft
authorClaus Gittinger <cg@exept.de>
Mon, 20 Feb 2017 00:44:56 +0100
changeset 3415 b93299ad5142
parent 3414 a24b90b854e1
child 3416 9d51a45479e3
#FEATURE by cg class: ImageEditor added: #defaultEditTabIndex changed: #colorCropTabSelectionIndexHolder #cropSpec #postOpenWith:
ImageEditor.st
--- a/ImageEditor.st	Sun Feb 19 21:13:05 2017 +0100
+++ b/ImageEditor.st	Mon Feb 20 00:44:56 2017 +0100
@@ -1595,7 +1595,7 @@
           (ActionButtonSpec
              label: 'Crop All'
              name: 'Button4'
-             layout: (LayoutFrame 133 0 148 0 237 0 176 0)
+             layout: (LayoutFrame 133 0 148 0 268 0 176 0)
              activeHelpKey: cropAll
              translateLabel: true
              resizeForLabel: true
@@ -4178,12 +4178,13 @@
     |holder|
 
     (holder := builder bindingAt:#colorCropTabSelectionIndexHolder) isNil ifTrue:[
-        builder aspectAt:#colorCropTabSelectionIndexHolder put:(holder := 1 asValue).
+        builder aspectAt:#colorCropTabSelectionIndexHolder put:(holder := self defaultEditTabIndex asValue).
         holder onChangeSend:#colorCropTabSelectionIndexChanged to:self.
     ].
     ^ holder
 
     "Created: / 19-02-2017 / 14:59:11 / cg"
+    "Modified: / 19-02-2017 / 23:33:39 / cg"
 !
 
 colorCropTabSpecList
@@ -4250,6 +4251,14 @@
     "Created: / 19-02-2017 / 15:09:35 / cg"
 !
 
+defaultEditTabIndex
+    "the default tab to show in the color/crop/fill tablist"
+    
+    ^ 1
+
+    "Created: / 19-02-2017 / 23:34:12 / cg"
+!
+
 floodFillBoxVisibleHolder
     |holder|
 
@@ -5572,6 +5581,9 @@
 
     aBuilder keyboardProcessor menuBar:nil.
     self windowGroup addPreEventHook:self.
+    self colorCropTabSelectionIndexChanged.
+
+    "Modified: / 19-02-2017 / 23:39:10 / cg"
 ! !
 
 !ImageEditor methodsFor:'user actions-colormap'!