Andreas Raab uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-ar.232.mcz==================== Summary ====================
Name: Tools-ar.232
Author: ar
Time: 22 April 2010, 10:02:13.531 pm
UUID: 61e2af87-0b4d-8944-bf34-d2b9a6a4ee01
Ancestors: Tools-cmm.231, Tools-fbs.229
Merging Tools-fbs.229:
Constant-height instance/?/class buttons for the Class Browser.
=============== Diff against Tools-cmm.231 ===============
Item was added:
+ ----- Method: Browser>>topConstantHeightFrame:fromLeft:width: (in category 'initialize-release') -----
+ topConstantHeightFrame: height fromLeft: leftFraction width: rightFraction
+ ^LayoutFrame new
+ topFraction: 0 offset: 0;
+ leftFraction: leftFraction offset: 0;
+ rightFraction: (leftFraction + rightFraction) offset: 0;
+ bottomFraction: 0 offset: height;
+ yourself.!
Item was added:
+ ----- Method: Browser>>frameOffsetFromTop:fromLeft:width:bottomFraction: (in category 'initialize-release') -----
+ frameOffsetFromTop: height fromLeft: leftFraction width: rightFraction bottomFraction: bottomFraction
+ ^LayoutFrame new
+ topFraction: 0 offset: height;
+ leftFraction: leftFraction offset: 0;
+ rightFraction: (leftFraction + rightFraction) offset: 0;
+ bottomFraction: bottomFraction offset: 0;
+ yourself.!
Item was changed:
----- Method: Browser>>openOnClassWithEditString: (in category 'initialize-release') -----
openOnClassWithEditString: aString
"Create a pluggable version of all the views for a Browser, including views and controllers."
"Example:
Browser newOnClass: Browser.
"
| builder max |
builder := ToolBuilder default.
max := self wantsOptionalButtons ifTrue:[0.32] ifFalse:[0.4].
^self buildWindowWith: builder specs: {
(0.0@0.0 corner: 0.5@0.08) -> [self buildClassListSingletonWith: builder].
+ (self frameOffsetFromTop: self buttonHeight fromLeft: 0 width: 0.5 bottomFraction: max) -> [self buildMessageCategoryListWith: builder].
+ (self topConstantHeightFrame: self buttonHeight fromLeft: 0.5 width: 0.5) -> [self buildSwitchesWith: builder].
+ (self frameOffsetFromTop: self buttonHeight fromLeft: 0.5 width: 0.5 bottomFraction: max) -> [self buildMessageListWith: builder].
- (0.5@0.0 corner: 1.0@0.08) -> [self buildSwitchesWith: builder].
- (0.0@0.08 corner: 0.5@max) -> [self buildMessageCategoryListWith: builder].
- (0.5@0.08 corner: 1@max) -> [self buildMessageListWith: builder].
(0@max corner: 1@1) -> [self buildCodePaneWith: builder].
}
!