background image
C H A P T E R 4
NewtApp Applications
Summary of the NewtApp Framework
4-31
newtPrefsView
4
aPrefsView
:= {
// The preferences view
_proto: newtPrefsView }
newtLayout
4
aBasicLayout
:= {
// The basic layout view
_proto: newtLayout,
name: "",
// Optional.
masterSoupSlot: '
mainSoup
, // Required.
// Symbol referring to soup from allSoups slot
forceNewEntry: true, //Forces new entry when empty
//folder opened.
menuRightButtons:[], //Replaces slot in status bar
menuLeftButtons:[], //Replaces slot in status bar
dataSoup: '
soupSymbol
,//Set to soup for this layout
dataCursor: ,// Set to top visible entry; main cursor
FlushData:
//Flushes all children's entries
func(),
NewTarget:
//Utility resets origin and
func(),
// resets screen
ReTarget:
//Sets the dataCursor slot and resets
func(
setViews
),// screen if
setViews
is true
ScrollCursor: //Moves
cursor
delta
entries and resets it.
func(
delta
),
SetUpCursor:
//Sets cursor and returns entry.
func(),
Scroller: //Moves
numAndDirection
entries. Scrolls
func(
numAndDirection
)...,//up if
numAndDirection
<0.
ViewScrollDownScript: // Calls scroller with the
func()...,
//value of 1.
ViewScrollUpScript:
// Calls scroller with the
func()...,
//value of -1.
DoRetarget():
// Calls the "right" retarget
func()...,
}
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна