|
Class: ViewWithAcceptAndCancelBar
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--ViewWithAcceptAndCancelBar
- Package:
- stx:libtool
- Category:
- Views-Basic
- Version:
- rev:
1.21
date: 2018/08/22 10:00:30
- user: cg
- file: ViewWithAcceptAndCancelBar.st directory: libtool
- module: stx stc-classLibrary: libtool
experimental - self like accept/cancel bar in the browsers
code view.
Enable with:
UserPreferences current showAcceptCancelBarInBrowser:true
accessing
-
acceptAction: something
-
define the action to be performed when the green accept button is pressed
-
cancelAction: something
-
define the action to be performed when the red cancel button is pressed
-
compareAction: aBlock
-
define the action to be performed when the yellow compare button is pressed
-
reallyModifiedHolder: aValueHolder
-
set the holder which keeps track of the real modified state;
the modified state of the view is set with every user-input,
but cleared by the master (in order to trigger future modified events).
With every modified change, the state of the reallyModified is updated
-
scrolledView
-
for protocol compatibility
action
-
accept
-
-
cancel
-
-
compare
-
change & update
-
hideBar
-
-
showBar
-
-
update: something with: aParameter from: changedObject
-
not sure if we really need to send it through the application
-
updateBarVisibility
-
Modified (format): / 29-11-2011 / 14:05:04 / cg
initialization
-
initialize
-
self new open
-
setSlaveView: aView
-
|v|
v := self new.
v slaveView:CodeView new.
v open
-
slaveView: aView
-
|v|
v := self new.
v slaveView:CodeView new.
v open
AcceptAndCancelBar
|