background image
C H A P T E R 4
NewtApp Applications
Summary of the NewtApp Framework
4-29
Find:
// Default Find method as defined in framework.
func(
text, results, scope, findContext
)...
ShowLayout:// Switches display to specified layout.
func(
layout
)...
NewtDeleteScript:// Deletes entry.
func(
entry, view
)... // Referenced in routeScripts array
NewtDuplicateScript:// Duplicates entry.
func(
entry, view
)... // Referenced in routeScripts array
GetAppState:// Gets app preferences, sets app, & returns
func()... // prefs. Override to add own app prefs.
GetDefaultState:// Sets default app preferences.
func()... // Override to add own app prefs.
SaveAppState:// Sets default app preferences.
func()... // Override to add own app prefs.
newtInfoButton
4
infoButton
:= {
// The standard "i" info button
_proto: newtInfoButton,// Place proto in menuLeftButtons
DoInfoHelp:
//Opens online help book
func()...,
DoInfoAbout:
//Either opens or closes an
func()...,
// About view
DoInfoPrefs:
//Either opens or closes a
func()...,}
// Preferences view
newtActionButton
4
actionButton
:= {
// the standard action button
_proto: newtActionButton } // place in menuRightButtons
newtFilingButton
4
filingButton
:= {
// the standard filing button
_proto: newtFilingButton } // place in menuRightButtons
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна