DataSetBuilder.st
changeset 528 4c6acd1fa911
parent 524 6ced725af608
child 545 25a3072fd268
--- a/DataSetBuilder.st	Thu Jan 29 19:57:15 1998 +0100
+++ b/DataSetBuilder.st	Thu Jan 29 20:08:53 1998 +0100
@@ -58,7 +58,94 @@
 
 ! !
 
-!DataSetBuilder class methodsFor:'columns specs'!
+!DataSetBuilder class methodsFor:'help specs'!
+
+helpSpec
+    "return a dictionary filled with helpKey -> helptext associations.
+     These are used by the activeHelp tool."
+
+    "
+    UIHelpTool openOnClass:DataSetBuilder    
+    "
+
+  ^ super helpSpec addPairsFrom:#(
+
+#backgroundColor
+'Sets the background color of the column if the color-checkBox is turned on. Otherwise, the column uses its default background color (which is specified in the styleSheet).'
+
+#backgroundSelector
+'Selector which returns the background color for a cell (optional). If the selector is nil or returns nil, the default background color is set.'
+
+#canSelect
+'If true, each cell in the column can be selected. In case of having a menu, the menu can be opened by selecting the cell and pressing down the right or middle button of the mouse. if false, the whole line is selected. The menu opened derives from the DataSetView, which is specified in the window specification (Basics).'
+
+#choices
+'Selector to get the collection of choices for a column which is selectable and its editor is kind of a ComboBox or ComboList. If a cell in the column is selected, the visual editor is opened and in case of having choices, the choices are assigned to the widget.'
+
+#doubleClickedSelector
+'Selector evaluated without arguments on selected column.'
+
+#editorField
+'Type of visual editor (using default editors) or a selector, which will return an visual editor. If the cell is selected, a visual editor is opened in in the cell. In case of an unsupported selector (user defined editor), the row object is asked for the visual editor by performing the selector on the row. A widget instance must be returned which is opened in the cell.'
+
+#foregroundColor
+'Sets the foreground color of the column  if the color-checkBox is turned on. Otherwise, the column uses its default foreground color (which is specified in the styleSheet).'
+
+#foregroundSelector
+'Selector which returns the foreground color for a cell (optional). If the selector is nil or returns nil, the default foreground color is set.'
+
+#formatString
+'Format string, which specifies the output format of a text in a cell. At the moment  only numbers are supported  (for example: 0.0000).'
+
+#height
+'Preferred height (optional).'
+
+#label
+'The label of the column. If ''label is image'' is off, this is the label string. Otherwise, it specifies the applications selector, which returns the label - either a string or a bitmap image.'
+
+#labelIsImage
+'If ''label is image'' is off (the default), the columns label is the string as entered in the label aspect. Otherwise, its the name of the message sent to the application - this should return a string or bitmap image, which is used as logo in the column.'
+
+#menuSelector
+'A selector to access the middleButton menu or nil. If a cell is selected. The menu will be opened by selecting the cell and pressing down the right or middle button of the mouse.'
+
+#minWidth
+'Makes sense if the width is set to 0 or nil. This is the minimum size required; no computation dependent on the contents. When resizing the view the column may grow or shrink to the minimum width.'
+
+#printSelector
+'A selector with one argument, the DataSetView. Used to access a drawable display object. In case of nil, the value derived from the readSelector is shown in the unselected cell.\ \ Using bitmaps, the DataSetView offers three important methods:\ \ #registerImage:anImage key:aSymbol\ register an image with an unique symbol. This symbol can be used by the row object to access the image, using #registeredImageAt:. The image will be associated to the device.\ \ #registeredImageAt:aSymbol\ returns an image assigned to the symbol or nil. The image returned is associated to the device.\ \ #releaseAllRegisteredImages\ relaese all registered images.'
+
+#readSelector
+'A selector, which is used to get or set (if the write selector is undefined) the value of a cell. The value returned by the method can be a string object or a bitmap. The set operation only is performed if the column is selectable.'
+
+#rendererType
+'This type specifies, how the text of an unselected cell should be shown. As Text, CheckToggle, ComboBox, ComboList or as a RowSelector.'
+
+#selectSelector
+'An optional selector, which is used to test whether the cell in the column is selectable; the ''Is Selectable'' flag must be enabled.'
+
+#showColumnSeparator
+'Shows or hide the column separator (right vertical separator).'
+
+#showRowSeparator
+'Shows or hide the row separator (bottom horizontal separator).'
+
+#size
+'Max size of an InputField, ComboBox or ComboList. 0 or nil means unlimited.'
+
+#type
+'A type converter symbol used by the input field.'
+
+#width
+'The width of a fixed column; in case of nil or 0 the column width will be computed dependent on the contents.'
+
+#writeSelector
+'A selector, which is used to set the value of a cell. If the selector is not defined, the selector derives from the printSelector.'
+
+)
+! !
+
+!DataSetBuilder class methodsFor:'interface specs'!
 
 basicsEditSpec
     "this window spec was automatically generated by the ST/X UIPainter"
@@ -337,6 +424,79 @@
       )
 !
 
+defineClassNameSpec
+    "this window spec was automatically generated by the ST/X UIPainter"
+
+    "do not manually edit this - the painter/builder may not be able to
+     handle the specification if its corrupted."
+
+    "
+     UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec
+     DataSetBuilder new openInterface:#defineClassNameSpec
+    "
+
+    <resource: #canvas>
+
+    ^
+     
+       #(#FullSpec
+          #'window:' 
+           #(#WindowSpec
+              #'name:' 'Data Set Builder'
+              #'layout:' #(#LayoutFrame 185 0 408 0 511 0 543 0)
+              #'label:' 'Data Set Builder'
+              #'min:' #(#Point 10 10)
+              #'max:' #(#Point 1152 900)
+              #'bounds:' #(#Rectangle 185 408 512 544)
+              #'usePreferredExtent:' false
+          )
+          #'component:' 
+           #(#SpecCollection
+              #'collection:' 
+               #(
+                 #(#FramedBoxSpec
+                    #'name:' 'framedBox1'
+                    #'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -34 1.0)
+                    #'label:' 'Classes for code'
+                    #'labelPosition:' #topLeft
+                )
+                 #(#LabelSpec
+                    #'name:' 'classLabel'
+                    #'layout:' #(#AlignmentOrigin 73 0.11 38 0 1 0.5)
+                    #'label:' 'Class:'
+                    #'adjust:' #right
+                    #'resizeForLabel:' true
+                )
+                 #(#InputFieldSpec
+                    #'name:' 'classNameInputField'
+                    #'layout:' #(#LayoutFrame 77 0.11 27 0 -16 1.0 49 0)
+                    #'tabable:' true
+                    #'model:' #classNameChannel
+                )
+                 #(#LabelSpec
+                    #'name:' 'superClassLabel'
+                    #'layout:' #(#AlignmentOrigin 73 0.11 65 0 1 0.5)
+                    #'label:' 'Superclass:'
+                    #'adjust:' #right
+                    #'resizeForLabel:' true
+                )
+                 #(#InputFieldSpec
+                    #'name:' 'superclassNameInputField'
+                    #'layout:' #(#LayoutFrame 76 0.11 55 0 -16 1.0 77 0)
+                    #'tabable:' true
+                    #'model:' #superclassNameChannel
+                )
+                 #(#UISubSpecification
+                    #'name:' 'SubSpecification'
+                    #'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1.0)
+                    #'majorKey:' #ToolApplicationModel
+                    #'minorKey:' #windowSpecForCommitWithoutChannels
+                )
+              )
+          )
+      )
+!
+
 formatEditSpec
     "this window spec was automatically generated by the ST/X UIPainter"
 
@@ -687,6 +847,17 @@
       )
 !
 
+slices
+    ^#(
+        (Basics         basicsEditSpec)
+        (Values         valuesEditSpec)
+        (Format         formatEditSpec)
+        (Selection      selectionEditSpec)
+        (Frame          frameEditSpec)
+        (Colors         colorsEditSpec)
+    )
+!
+
 valuesEditSpec
     "this window spec was automatically generated by the ST/X UIPainter"
 
@@ -819,180 +990,6 @@
               )
           )
       )
-! !
-
-!DataSetBuilder class methodsFor:'help specs'!
-
-helpSpec
-    "return a dictionary filled with helpKey -> helptext associations.
-     These are used by the activeHelp tool."
-
-    "
-    UIHelpTool openOnClass:DataSetBuilder    
-    "
-
-  ^ super helpSpec addPairsFrom:#(
-
-#backgroundColor
-'Sets the background color of the column if the color-checkBox is turned on. Otherwise, the column uses its default background color (which is specified in the styleSheet).'
-
-#backgroundSelector
-'Selector which returns the background color for a cell (optional). If the selector is nil or returns nil, the default background color is set.'
-
-#canSelect
-'If true, each cell in the column can be selected. In case of having a menu, the menu can be opened by selecting the cell and pressing down the right or middle button of the mouse. if false, the whole line is selected. The menu opened derives from the DataSetView, which is specified in the window specification (Basics).'
-
-#choices
-'Selector to get the collection of choices for a column which is selectable and its editor is kind of a ComboBox or ComboList. If a cell in the column is selected, the visual editor is opened and in case of having choices, the choices are assigned to the widget.'
-
-#doubleClickedSelector
-'Selector evaluated without arguments on selected column.'
-
-#editorField
-'Type of visual editor (using default editors) or a selector, which will return an visual editor. If the cell is selected, a visual editor is opened in in the cell. In case of an unsupported selector (user defined editor), the row object is asked for the visual editor by performing the selector on the row. A widget instance must be returned which is opened in the cell.'
-
-#foregroundColor
-'Sets the foreground color of the column  if the color-checkBox is turned on. Otherwise, the column uses its default foreground color (which is specified in the styleSheet).'
-
-#foregroundSelector
-'Selector which returns the foreground color for a cell (optional). If the selector is nil or returns nil, the default foreground color is set.'
-
-#formatString
-'Format string, which specifies the output format of a text in a cell. At the moment  only numbers are supported  (for example: 0.0000).'
-
-#height
-'Preferred height (optional).'
-
-#label
-'The label of the column. If ''label is image'' is off, this is the label string. Otherwise, it specifies the applications selector, which returns the label - either a string or a bitmap image.'
-
-#labelIsImage
-'If ''label is image'' is off (the default), the columns label is the string as entered in the label aspect. Otherwise, its the name of the message sent to the application - this should return a string or bitmap image, which is used as logo in the column.'
-
-#menuSelector
-'A selector to access the middleButton menu or nil. If a cell is selected. The menu will be opened by selecting the cell and pressing down the right or middle button of the mouse.'
-
-#minWidth
-'Makes sense if the width is set to 0 or nil. This is the minimum size required; no computation dependent on the contents. When resizing the view the column may grow or shrink to the minimum width.'
-
-#printSelector
-'A selector with one argument, the DataSetView. Used to access a drawable display object. In case of nil, the value derived from the readSelector is shown in the unselected cell.\ \ Using bitmaps, the DataSetView offers three important methods:\ \ #registerImage:anImage key:aSymbol\ register an image with an unique symbol. This symbol can be used by the row object to access the image, using #registeredImageAt:. The image will be associated to the device.\ \ #registeredImageAt:aSymbol\ returns an image assigned to the symbol or nil. The image returned is associated to the device.\ \ #releaseAllRegisteredImages\ relaese all registered images.'
-
-#readSelector
-'A selector, which is used to get or set (if the write selector is undefined) the value of a cell. The value returned by the method can be a string object or a bitmap. The set operation only is performed if the column is selectable.'
-
-#rendererType
-'This type specifies, how the text of an unselected cell should be shown. As Text, CheckToggle, ComboBox, ComboList or as a RowSelector.'
-
-#selectSelector
-'An optional selector, which is used to test whether the cell in the column is selectable; the ''Is Selectable'' flag must be enabled.'
-
-#showColumnSeparator
-'Shows or hide the column separator (right vertical separator).'
-
-#showRowSeparator
-'Shows or hide the row separator (bottom horizontal separator).'
-
-#size
-'Max size of an InputField, ComboBox or ComboList. 0 or nil means unlimited.'
-
-#type
-'A type converter symbol used by the input field.'
-
-#width
-'The width of a fixed column; in case of nil or 0 the column width will be computed dependent on the contents.'
-
-#writeSelector
-'A selector, which is used to set the value of a cell. If the selector is not defined, the selector derives from the printSelector.'
-
-)
-! !
-
-!DataSetBuilder class methodsFor:'interface specs'!
-
-defineClassNameSpec
-    "this window spec was automatically generated by the ST/X UIPainter"
-
-    "do not manually edit this - the painter/builder may not be able to
-     handle the specification if its corrupted."
-
-    "
-     UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec
-     DataSetBuilder new openInterface:#defineClassNameSpec
-    "
-
-    <resource: #canvas>
-
-    ^
-     
-       #(#FullSpec
-          #'window:' 
-           #(#WindowSpec
-              #'name:' 'Data Set Builder'
-              #'layout:' #(#LayoutFrame 413 0 353 0 738 0 482 0)
-              #'label:' 'Data Set Builder'
-              #'min:' #(#Point 10 10)
-              #'max:' #(#Point 1152 900)
-              #'bounds:' #(#Rectangle 413 353 739 483)
-              #'usePreferredExtent:' false
-          )
-          #'component:' 
-           #(#SpecCollection
-              #'collection:' 
-               #(
-                 #(#LabelSpec
-                    #'name:' 'topLabel'
-                    #'layout:' #(#Point 2 10)
-                    #'label:' 'Classes for code:'
-                    #'adjust:' #left
-                    #'resizeForLabel:' true
-                )
-                 #(#LabelSpec
-                    #'name:' 'classLabel'
-                    #'layout:' #(#AlignmentOrigin 50 0.11 50 0 1 0.5)
-                    #'label:' 'Class:'
-                    #'adjust:' #right
-                    #'resizeForLabel:' true
-                )
-                 #(#InputFieldSpec
-                    #'name:' 'classNameInputField'
-                    #'layout:' #(#LayoutFrame 51 0.11 39 0 -2 1.0 61 0)
-                    #'tabable:' true
-                    #'model:' #classNameChannel
-                )
-                 #(#LabelSpec
-                    #'name:' 'superClassLabel'
-                    #'layout:' #(#AlignmentOrigin 50 0.11 77 0 1 0.5)
-                    #'label:' 'Superclass:'
-                    #'adjust:' #right
-                    #'resizeForLabel:' true
-                )
-                 #(#InputFieldSpec
-                    #'name:' 'superclassNameInputField'
-                    #'layout:' #(#LayoutFrame 51 0.11 67 0 -2 1.0 89 0)
-                    #'tabable:' true
-                    #'model:' #superclassNameChannel
-                )
-                 #(#UISubSpecification
-                    #'name:' 'SubSpecification'
-                    #'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1.0)
-                    #'majorKey:' #ToolApplicationModel
-                    #'minorKey:' #windowSpecForCommitWithoutChannels
-                )
-              )
-          )
-      )
-!
-
-slices
-    ^#(
-        (Basics         basicsEditSpec)
-        (Values         valuesEditSpec)
-        (Format         formatEditSpec)
-        (Selection      selectionEditSpec)
-        (Frame          frameEditSpec)
-        (Colors         colorsEditSpec)
-    )
 !
 
 windowSpec