The Trunk: Tools-ar.233.mcz

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

The Trunk: Tools-ar.233.mcz

commits-2
Andreas Raab uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-ar.233.mcz

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

Name: Tools-ar.233
Author: ar
Time: 22 April 2010, 10:03:58.465 pm
UUID: 3734896d-0c6f-5a47-af7d-324395d9ec75
Ancestors: Tools-ar.232, Tools-fbs.230

Merging Tools-fbs.230:

Constant-height button and input field for MessageNames.

=============== Diff against Tools-ar.232 ===============

Item was added:
+ ----- Method: MessageNames>>searchPaneFrame: (in category 'toolbuilder') -----
+ searchPaneFrame: height
+ ^LayoutFrame new
+ leftFraction: 0 offset: 0;
+ topFraction: 0 offset: 0;
+ rightFraction: 0.5 offset: 0;
+ bottomFraction: 0 offset: height.!

Item was changed:
  ----- Method: MessageNames>>buildWith: (in category 'toolbuilder') -----
  buildWith: builder
  "ToolBuilder open: MessageNames new"
+ | windowSpec max result |
- | windowSpec max buttonSpec result |
  max := self wantsOptionalButtons ifTrue:[0.42] ifFalse:[0.5].
  windowSpec := self buildWindowWith: builder specs: {
+ (self searchPaneFrame: self buttonHeight) -> [self buildSearchPaneWith: builder].
+ (self selectorListFrame: max fromTop: self buttonHeight) -> [self buildSelectorListWith: builder].
- (0.15@0 corner: 0.5@0.08) -> [self buildSearchPaneWith: builder].
- (0@0.08 corner: 0.5@max) -> [self buildSelectorListWith: builder].
  (0.5@0.0 corner: 1.0@max) -> [self buildMessageListWith: builder].
  (0@max corner: 1@1) -> [self buildCodePaneWith: builder].
  }.
 
- buttonSpec := builder pluggableActionButtonSpec new.
- buttonSpec
- model: self;
- label: 'Search';
- action: [self doSearchFrom: searchPane];
- frame: (0.0@0 corner: 0.15@0.08).
- windowSpec children add: buttonSpec.
-
  result := builder build: windowSpec.
  searchPane := builder widgetAt: #search.
  ^result!

Item was added:
+ ----- Method: MessageNames>>selectorListFrame:fromTop: (in category 'toolbuilder') -----
+ selectorListFrame: max fromTop: topOffset
+ ^LayoutFrame new
+ leftFraction: 0 offset: 0;
+ topFraction: 0 offset: topOffset;
+ rightFraction: 0.5 offset: 0;
+ bottomFraction: max offset: 0.!

Item was changed:
  ----- Method: MessageNames>>buildSearchPaneWith: (in category 'toolbuilder') -----
  buildSearchPaneWith: builder
+ | buttonFrame buttonSpec textFrame textSpec top |
+ top := builder pluggablePanelSpec new.
+ top children: OrderedCollection new.
+
+ buttonFrame := LayoutFrame new
+ leftFraction: 0 offset: 0;
+ topFraction: 0 offset: 0;
+ rightFraction: 0.3 offset: 0;
+ bottomFraction: 1 offset: 0;
+ yourself.
+ textFrame := LayoutFrame new
+ leftFraction: 0.3 offset: 1;
+ topFraction: 0 offset: 0;
+ rightFraction: 1 offset: 0;
+ bottomFraction: 1 offset: 0;
+ yourself.
+
+ buttonSpec := builder pluggableActionButtonSpec new.
+ buttonSpec
+ model: self;
+ label: 'Search';
+ action: [self doSearchFrom: searchPane];
+ frame: buttonFrame.
+ top children add: buttonSpec.
+
- | textSpec |
  textSpec := builder pluggableInputFieldSpec new.
  textSpec
  model: self;
  name: #search;
  getText: #searchString;
+ setText: #searchString:notifying:;
+ frame: textFrame.
+ top children add: textSpec.
+
+ ^top!
- setText: #searchString:notifying:.
- ^textSpec!