#UI_ENHANCEMENT by cg draft
authorClaus Gittinger <cg@exept.de>
Mon, 13 Feb 2017 14:49:52 +0100
changeset 3400 3cd67963333d
parent 3399 4330b8e3177e
child 3401 9f2865200e2f
#UI_ENHANCEMENT by cg class: ImageEditor embedded crob should not show ok/cancel buttons. changed: #cropDialogSpec #windowSpec
ImageEditor.st
--- a/ImageEditor.st	Mon Feb 13 04:34:56 2017 +0000
+++ b/ImageEditor.st	Mon Feb 13 14:49:52 2017 +0100
@@ -1633,7 +1633,7 @@
           (ActionButtonSpec
              label: 'Now'
              name: 'GropLeftNowButton'
-             layout: (LayoutFrame 148 0 21 0 200 0 50 0)
+             layout: (LayoutFrame 148 0 21 0 202 0 50 0)
              activeHelpKey: gropLeft
              translateLabel: true
              resizeForLabel: true
@@ -1663,7 +1663,7 @@
           (ActionButtonSpec
              label: 'Now'
              name: 'GropRightButton'
-             layout: (LayoutFrame 148 0 51 0 200 0 80 0)
+             layout: (LayoutFrame 148 0 51 0 202 0 80 0)
              activeHelpKey: gropRight
              translateLabel: true
              resizeForLabel: true
@@ -1693,7 +1693,7 @@
           (ActionButtonSpec
              label: 'Now'
              name: 'GropTopButton'
-             layout: (LayoutFrame 148 0 81 0 200 0 110 0)
+             layout: (LayoutFrame 148 0 81 0 202 0 110 0)
              activeHelpKey: gropTop
              translateLabel: true
              resizeForLabel: true
@@ -1723,7 +1723,7 @@
           (ActionButtonSpec
              label: 'Now'
              name: 'GropBottomButton'
-             layout: (LayoutFrame 148 0 111 0 200 0 140 0)
+             layout: (LayoutFrame 148 0 111 0 202 0 140 0)
              activeHelpKey: gropBottom
              translateLabel: true
              resizeForLabel: true
@@ -1735,6 +1735,7 @@
           (HorizontalPanelViewSpec
              name: 'HorizontalPanel1'
              layout: (LayoutFrame 0 0.0 -30 1 -16 1.0 0 1)
+             visibilityChannel: cropBoxIsDialog
              horizontalLayout: fitSpace
              verticalLayout: center
              horizontalSpace: 3
@@ -2183,6 +2184,22 @@
                                component: 
                               (SpecCollection
                                  collection: (
+                                  (ViewSpec
+                                     name: 'CropBox'
+                                     layout: (LayoutFrame 0 0 0 0 0 1 0 1)
+                                     visibilityChannel: cropBoxVisibleHolder
+                                     component: 
+                                    (SpecCollection
+                                       collection: (
+                                        (UISubSpecification
+                                           name: 'SubSpecification1'
+                                           layout: (LayoutFrame 0 0 0 0 0 1 0 1)
+                                           minorKey: cropDialogSpec
+                                         )
+                                        )
+                                      
+                                     )
+                                   )
                                   (MenuPanelSpec
                                      name: 'MouseButtonColorToolBar'
                                      layout: (LayoutFrame 0 0.0 0 0 0 1.0 24 0)
@@ -2210,22 +2227,6 @@
                                      verticalSpacing: 1
                                      columnAdaptor: colorColumnAdaptor
                                    )
-                                  (ViewSpec
-                                     name: 'CropBox'
-                                     layout: (LayoutFrame 0 0 0 0 0 1 0 1)
-                                     visibilityChannel: cropBoxVisibleHolder
-                                     component: 
-                                    (SpecCollection
-                                       collection: (
-                                        (UISubSpecification
-                                           name: 'SubSpecification1'
-                                           layout: (LayoutFrame 0 0 0 0 0 1 0 1)
-                                           minorKey: cropDialogSpec
-                                         )
-                                        )
-                                      
-                                     )
-                                   )
                                   )
                                 
                                )