MenuEditor.st
changeset 1256 38ff328f119b
parent 1250 644ed357b524
child 1264 a8588e94d16f
equal deleted inserted replaced
1255:d5616023622e 1256:38ff328f119b
  2306 !
  2306 !
  2307 
  2307 
  2308 tabSelection: aSelection
  2308 tabSelection: aSelection
  2309     "put the section aSelection into the note book
  2309     "put the section aSelection into the note book
  2310     "
  2310     "
  2311     |view|
  2311     |view canvasView|
  2312 
  2312 
  2313     tabSelection = aSelection ifTrue:[
  2313     tabSelection = aSelection ifTrue:[
  2314         ^ self
  2314         ^ self
  2315     ].
  2315     ].
  2316     typeOfCanvas := nil.
  2316     typeOfCanvas := nil.
  2323         ] ifFalse:[
  2323         ] ifFalse:[
  2324             self updateImageView.
  2324             self updateImageView.
  2325             view := listOfCanvas at:typeOfCanvas ifAbsentPut:[View new client:self spec:typeOfCanvas].
  2325             view := listOfCanvas at:typeOfCanvas ifAbsentPut:[View new client:self spec:typeOfCanvas].
  2326         ]
  2326         ]
  2327     ].
  2327     ].
  2328     self tabCanvasHolder value:view
  2328 
       
  2329     "/ before bringing up the new notebook page,
       
  2330     "/ we must disable all now invisible input fields ...
       
  2331     "/ (otherwise, those would fire on #accept.
       
  2332 
       
  2333     canvasView := self tabCanvasHolder value.
       
  2334     canvasView notNil ifTrue:[
       
  2335         canvasView allSubViewsDo:[:aComponent |
       
  2336             aComponent isInputField ifTrue:[
       
  2337                 aComponent disableIfInvisible:true
       
  2338             ]
       
  2339         ]
       
  2340     ].
       
  2341 
       
  2342     self tabCanvasHolder value:view.
  2329 
  2343 
  2330 ! !
  2344 ! !
  2331 
  2345 
  2332 !MenuEditor methodsFor:'startup / release'!
  2346 !MenuEditor methodsFor:'startup / release'!
  2333 
  2347