home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
DOS
/
TEKST
/
AURORA2
/
DEFINE.AML
< prev
next >
Wrap
Text File
|
1995-04-28
|
8KB
|
326 lines
// ───────────────────────────────────────────────────────────────────
// The Aurora Editor v2.0
// Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
//
// Compile-Time macros and constants (included by MAIN.AML)
//
// If you have made any changes, save this file and select 'Recompile
// the Editor' <alt-f2> from the Set menu. Exit and re-enter the
// editor for your changes to take effect.
// ───────────────────────────────────────────────────────────────────
// Compile-time macros and constants ────────────────────────────────
define
// return a fully qualified boot directory aml/x file
function amlfile (filename)
qualfile = bootpath filename + ".x"
return if locatefile qualfile then
qualfile
else
bootpath filename + ".aml"
end
end
// window and config setting values
set ON 1
set OFF 0
set TOGGLE -1
set DEFAULT 2
// boolean values
set TRUE 1
set FALSE 0
// maximum column
set MAX_COL 16000
// for the [] substring operator
set LAST_CHAR 0
set TO_END 0
// colors
set black 0 set darkgray 8
set blue 1 set brightblue 9
set green 2 set brightgreen 10
set cyan 3 set brightcyan 11
set red 4 set brightred 12
set magenta 5 set brightmagenta 13
set brown 6 set yellow 14
set gray 7 set white 15
set on 1
// color calculation macro
function color (foreground on background)
return background * 16 + foreground
end
// window component id's for the setcolor, getcolor functions
set border_color 0 set menu_hotkey_color 9
set corner_color 1 set menu_disable_color 10
set north_title_color 2 set menu_hilite_color 11
set south_title_color 3 set endoftext_color 12
set control_color 4 set border_flash_color 13
set text_color 5 set fold_color 14
set mark_color 6 set modified_color 15
set scroll_color 7 set modified_cursor_color 16
set menu_color 8 set fold_begin_color 17
set fold_end_color 18
end
// Library and Extension functions ──────────────────────────────────
// library functions
forward about
forward addhistory
forward ask
forward askfile
forward askhistory
forward askprint
forward assignkey
forward begdesk
forward cascade
forward close
forward copywin
forward currdesk
forward currwin
forward deletewin
forward dir?
forward enddesk
forward erasekey
forward fdobrk
forward fdomark
forward filelist
forward finddlg
forward fmark
forward fmark?
forward fscanstr
forward fsort
forward ftype?
forward fup
forward getffile
forward gethistname
forward gethiststr
forward getsettings
forward gotobar
forward gotobar2
forward gotoerror
forward gotomatch
forward gotomenu
forward max?
forward maximize
forward min?
forward minimize
forward msgbox
forward nextfile
forward nexthist
forward nextwindow
forward okbox
forward open
forward openbuf
forward opendesk
forward openf
forward openhistory
forward openhistory
forward openkey
forward opennew
forward pankey
forward playkey
forward pophistory
forward popup
forward prevfile
forward prevhist
forward prevwindow
forward reopen
forward repldlg
forward restore
forward restoredesk
forward save
forward savedesk
forward savehistory
forward savehistory
forward savekey
forward say
forward scandlg
forward scanfiles
forward setdraw
forward setname
forward setting
forward setting
forward setting?
forward shortbox
forward sizekey
forward sizewin
forward splitwin
forward submenu
forward tile
forward togglestyle
forward toolbar
forward trackmouse
forward videomode
forward winlist
forward yncbox
// extension functions
forward asciilist
forward askasave
forward askbinary
forward askbook
forward askc
forward askclip
forward askcmacro
forward askcol
forward askcomplete
forward askdelim
forward askeval
forward askfind
forward askfindo
forward askimacro
forward askinsert
forward asklmarg
forward askname
forward askopen
forward askopenb
forward askopenkey
forward askprompt
forward askrac
forward askrepkey
forward askrepl
forward askrmacro
forward askrmarg
forward askrow
forward askrun
forward askruncap
forward asksaveas
forward asksavekey
forward askscan
forward asktabv
forward asktabw
forward askx
forward autosave
forward backsp
forward caseword
forward centerline
forward clear
forward close
forward closeall
forward col2
forward commentline
forward compilemacro2
forward copy
forward copyblock2
forward cut
forward cyclebook
forward defext
forward delchar2
forward deleteblock2
forward delword
forward enter
forward enter
forward erasekey2
forward fattr
forward fcopy
forward fdelete
forward fillblock2
forward findlast
forward findlasto
forward findo
forward fmkdir
forward fmove
forward foldall
forward foldline
forward fopen
forward forceext
forward formatblock2
forward fprint
forward frename
forward frun
forward ftouch
forward getext
forward getmarktext
forward getname
forward getpath
forward getword
forward gotobook2
forward gotomark
forward gotomatch2
forward hiliteword
forward includemacro2
forward insline2
forward isearch
forward justblock2
forward literal
forward livewrap
forward markeol
forward markpara
forward markword
forward moveblock2
forward moveblockover
forward nextword
forward opencfg
forward openkey2
forward openlast
forward openword
forward os
forward paste
forward picklist
forward placebook
forward play
forward prefix
forward prevword
forward print
forward printfile
forward printstr
forward quickbook
forward quickref
forward quote
forward recompile
forward record
forward regen
forward replver
forward row2
forward run
forward runcap
forward runmacro2
forward saveblock2
forward saveconfig
forward search
forward search2
forward searchfiles
forward shell
forward smark
forward sortblock2
forward splitline2
forward swapline
forward tabfile
forward tableft
forward tabright
forward timestamp
forward togglemode
forward write
// on-event functions:
forward onalarm
forward onclose
forward oncomment
forward oncompiling
forward onentry
forward onexit
forward onfocus
forward onfound
forward onhotkey
forward onloading
forward onopen
forward onprinting
forward onsave
forward onsaving
forward onscanning
forward onsyntax