GrafoscopioReplace Interface updated.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2017-09-16 17:10:46 +00:00
parent 2c9e66b92d
commit e6d86d7aae

View File

@ -16,23 +16,67 @@ Class {
{ #category : #specs } { #category : #specs }
GrafoscopioReplace class >> defaultSpec [ GrafoscopioReplace class >> defaultSpec [
<spec: #default> ^ SpecLayout composed
SpecColumnLayout composed newColumn: [ :column |
add: #find; add: #replace; "add: #ok; add: #cancel;" column
add: #find;
add: #replace;
newRow: [ :row | row add: #ok; add: #cancel ] height: self toolbarHeight ];
yourself yourself
] ]
{ #category : #accessing }
GrafoscopioReplace >> cancel [
^ cancel
]
{ #category : #accessing }
GrafoscopioReplace >> cancel: anObject [
cancel := anObject
]
{ #category : #accessing }
GrafoscopioReplace >> find [
^ find
]
{ #category : #accessing }
GrafoscopioReplace >> find: anObject [
find := anObject
]
{ #category : #initialization } { #category : #initialization }
GrafoscopioReplace >> initializeWidgets [ GrafoscopioReplace >> initializeWidgets [
find := self newText. find := self newText.
replace := self newText. replace := self newText.
ok := self newButton ok := self newButton
label: 'OK'. label: 'OK';
action: [ Transcript show: self find getText ].
cancel := self newButton cancel := self newButton
label: 'Cancel'. label: 'Cancel'.
self focusOrder self focusOrder
add: find; add: find;
add: replace"; add: replace;
add: ok; add: ok;
add: cancel". add: cancel.
]
{ #category : #accessing }
GrafoscopioReplace >> ok [
^ ok
]
{ #category : #accessing }
GrafoscopioReplace >> ok: anObject [
ok := anObject
]
{ #category : #accessing }
GrafoscopioReplace >> replace [
^ replace
]
{ #category : #accessing }
GrafoscopioReplace >> replace: anObject [
replace := anObject
] ]