Find & replace GUI working.
This commit is contained in:
parent
c3c7bb858e
commit
27f402555b
@ -55,13 +55,14 @@ GrafoscopioReplace >> initializeWidgets [
|
|||||||
autoAccept: true.
|
autoAccept: true.
|
||||||
ok := self newButton
|
ok := self newButton
|
||||||
label: 'OK';
|
label: 'OK';
|
||||||
action: [
|
action: [
|
||||||
self returnValues.
|
ok state: true.
|
||||||
self inspect.
|
self window close. ] .
|
||||||
self window close ].
|
|
||||||
cancel := self newButton
|
cancel := self newButton
|
||||||
label: 'Cancel';
|
label: 'Cancel';
|
||||||
action: [ self window close ].
|
action: [
|
||||||
|
cancel state: true.
|
||||||
|
self window close ].
|
||||||
self focusOrder
|
self focusOrder
|
||||||
add: find;
|
add: find;
|
||||||
add: replace;
|
add: replace;
|
||||||
@ -97,10 +98,12 @@ GrafoscopioReplace >> replace: anObject [
|
|||||||
|
|
||||||
{ #category : #initialization }
|
{ #category : #initialization }
|
||||||
GrafoscopioReplace >> returnValues [
|
GrafoscopioReplace >> returnValues [
|
||||||
^ Dictionary new
|
self ok state
|
||||||
at: 'find' put: find getText;
|
ifFalse: [ ^ self ]
|
||||||
at: 'replace' put: replace getText;
|
ifTrue: [^ Dictionary new
|
||||||
yourself
|
at: 'find' put: find getText;
|
||||||
|
at: 'replace' put: replace getText;
|
||||||
|
yourself]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #api }
|
{ #category : #api }
|
||||||
|
Loading…
Reference in New Issue
Block a user