background image
C H A P T E R 4
NewtApp Applications
Summary of the NewtApp Framework
4-27
newtApplication
4
myNewtAppBaseView := {
_proto: newtapplication, // Application base view proto
appSymbol: '|
IOU
:
DTS
| //Unique application symbol
title: "Roll Starter" // A string naming the app
appObject:
[
"
Ox
"
,
"
Oxen
"
]
// Array with singular and
// plural strings describing application's data
appAll: "
All Notes
" // Displayed in folder tab picker
allSoups: { //Frame defining all known soups for app
mySoup
: {
_proto: newtSoup,
...
}
}
allLayouts: {
// Frame with references to layout files;
// both default and overview required.
default:GetLayout("
DefaultLayoutFile
"),
overview:GetLayout("
OverviewLayoutFile
"),
}
scrollingEndBehavior:'beepAndWrap // How scrolling is
// handled at end of view; can also be 'wrap
,
'stop
, or
// 'beepAndStop
.
scrollingUpBehavior: 'bottom //Either 'top or 'bottom
statusBarSlot: '
myStatusBar
//Declare name to base so
//layouts may send messages
allDataDefs: {'|
appName
:
SIG
|:GetLayout("
yourDataDef
")}
//Frame with dataDef symbols as slot names. Slot
// values are references to dataDef layout files.
allViewDefs:
{'|
appName
:
SIG
|: {default:GetLayout("
yourViewDef
")}}
// Frame with dataDef symbols as slot names. Slot
// values are references to frames of viewDef
// layout files.
superSymbol: '|
appName
:
SIG
| //Unique symbol identifying
//superSet of application's soups
doCardRouting:true or 'onlyCardRouting //Enables
// filing and routing
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна