The Inbox: Tools-fbs.229.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Tools-fbs.229.mcz

commits-2
A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-fbs.229.mcz

==================== Summary ====================

Name: Tools-fbs.229
Author: fbs
Time: 22 April 2010, 3:51:13.833 pm
UUID: cb274320-375a-634f-9e0f-0562f1066a84
Ancestors: Tools-ar.228

Constant-height instance/?/class buttons for the Class Browser.

=============== Diff against Tools-ar.228 ===============

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].
  }
  !