Update of /cvsroot/aimmath/AIM/WEB-INF/maple
In directory sc8-pr-cvs1:/tmp/cvs-serv30160/WEB-INF/maple
Modified Files:
AutoConf.mpl AutoConfWin.mpl AutoConfWin.mws ConfigFields.mpl
ImageCache.mpl ManualConfig.dist
Log Message:
Added additional configuration variables ImageFormat, ImageWidth, ImageHeight, SourceEditBoxWidth and SourceEditBoxHeight
Index: AutoConf.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/AutoConf.mpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AutoConf.mpl 15 Sep 2003 23:23:41 -0000 1.6
--- AutoConf.mpl 25 Sep 2003 19:01:14 -0000 1.7
***************
*** 788,791 ****
--- 788,797 ----
setconfig('ShowToolBars' , true):
+ setconfig('SourceEditBoxWidth' , 80):
+ setconfig('SourceEditBoxHeight' , 25):
+
+ setconfig('ImageFormat' , "gif"):
+ setconfig('ImageWidth' , 400):
+ setconfig('ImageHeight' , 400):
setconfig('MapleInitOptions',"default"):
Index: AutoConfWin.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/AutoConfWin.mpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AutoConfWin.mpl 10 Sep 2003 16:00:26 -0000 1.2
--- AutoConfWin.mpl 25 Sep 2003 19:01:14 -0000 1.3
***************
*** 663,666 ****
--- 663,672 ----
setconfig('ShowToolBars' , true):
+ setconfig('SourceEditBoxWidth' , 80):
+ setconfig('SourceEditBoxHeight' , 25):
+
+ setconfig('ImageFormat' , "gif"):
+ setconfig('ImageWidth' , 400):
+ setconfig('ImageHeight' , 400):
setconfig('MapleInitOptions',"default"):
Index: AutoConfWin.mws
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/AutoConfWin.mws,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AutoConfWin.mws 6 Sep 2003 20:04:26 -0000 1.5
--- AutoConfWin.mws 25 Sep 2003 19:01:14 -0000 1.6
***************
*** 33,176 ****
ified domain name of the server (something like " }}{PARA 0 "" 0 ""
{TEXT -1 63 " \"aim.shef.ac.uk\"). This should be entered as the v
! alue of " }{TEXT 257 18 "Config['HostName']" }{TEXT -1 7 " under " }}
! {PARA 0 "" 0 "" {TEXT -1 32 " \"Basic Configuration\" below." }}
! {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 2 "+ " }
! {TEXT 258 53 "The address of the server that you use to send email." }
! }{PARA 0 "" 0 "" {TEXT -1 94 " This should again be a fully qualifi
! ed domain name (eg \"smtp.york.ac.uk\"). If you are not" }}{PARA 0 "
! " 0 "" {TEXT -1 95 " sure what to enter, try looking at the options
! used by your email client. For example, in " }}{PARA 0 "" 0 ""
! {TEXT -1 42 " Microsoft Outlook, use the menu items " }}{PARA 0 ""
! 0 "" {TEXT -1 168 " Tools > Options > Mail Delivery > Accounts > Ma
! il > Properties > Servers\n and look under \"Outgoing mail (SMTP)\"
! . You can get started with AiM without filling in" }}{PARA 0 "" 0 ""
! {TEXT -1 86 " this field, but your students will not be able to get
! password reminders by email." }}{PARA 0 "" 0 "" {TEXT -1 50 " The \+
! address should be entered as the value of " }{TEXT 259 21 "Config['SMT
! PServer'] " }{TEXT -1 13 "under \"Basic " }}{PARA 0 "" 0 "" {TEXT -1
! 25 " Configuration\" below." }}{PARA 0 "" 0 "" {TEXT -1 4 " " }}
! {PARA 0 "" 0 "" {TEXT -1 2 "+ " }{TEXT 260 33 "The name of the top AiM
! directory" }}{PARA 0 "" 0 "" {TEXT -1 76 " This is just the last co
! mponent of the name. If you installed AiM under " }}{PARA 0 "" 0 ""
! {TEXT -1 3 " " }{TEXT 261 22 "C:/Tomcat/webapps/ROOT" }{TEXT -1 20 "
! , for example, then " }{TEXT 262 23 "Config['TomcatContext']" }{TEXT
! -1 12 " should just" }}{PARA 0 "" 0 "" {TEXT -1 20 " be set to \"ROO
! T\"." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 41 "O
! nce you have set these values, click on " }{TEXT 263 5 "Edit " }{TEXT
! -1 38 "on the Maple toolbar, then select the " }}{PARA 0 "" 0 ""
! {TEXT 264 7 "Execute" }{TEXT -1 24 " submenu, then click on " }{TEXT
! 265 9 "Worksheet" }{TEXT -1 41 ". This will execute the worksheet, wh
! ich" }}{PARA 0 "" 0 "" {TEXT -1 90 "will attempt to determine all othe
! r configuration information automatically. If there are" }}{PARA 0 "
! " 0 "" {TEXT -1 83 "any error messages, you should check your entries \+
! under \"Basic Configuration\". You" }}{PARA 0 "" 0 "" {TEXT -1 27 "ma
! y also need to click the " }{TEXT 266 1 "+" }{TEXT 267 1 " " }{TEXT
! -1 58 "signs next to \"Things that should be found automatically\" " }
! }{PARA 0 "" 0 "" {TEXT -1 86 "and/or \"Additional Configuration\", whi
! ch will reveal a number of other configuration " }}{PARA 0 "" 0 ""
! {TEXT -1 86 "options that you may need to set manually. You can then \+
! execute the worksheet again, " }}{PARA 0 "" 0 "" {TEXT -1 90 "and repe
! at until there are no error messages. (Some of the additional options
! are useful " }}{PARA 0 "" 0 "" {TEXT -1 86 "even if you have no error
! s, but you may wish to ignore this possibility at your first " }}
! {PARA 0 "" 0 "" {TEXT -1 9 "attempt.)" }}}{SECT 0 {PARA 3 "" 0 ""
! {TEXT -1 19 "Basic configuration" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT
! 1 0 351 "Config := table([]):\n\n# The fully qualified host name of th
! e server (eg aim.shef.ac.uk). \nConfig['HostName'] := \"localhost\":\n
! \n# The SMTP server that AiM should use for sending mail.\nConfig['SMT
! PServer'] := \"\":\n\n# The name of the subdirectory of the Tomcat\\we
! bapps directory into \n# which you have copied the AiM files\nConfig['
! TomcatContext'] := \"AiM\":" }}}{PARA 0 "" 0 "" {TEXT -1 82 "Uncomment
! the line below (by removing the initial # character) to get more verb
! ose" }}{PARA 0 "" 0 "" {TEXT -1 41 "messages about the configuration p
! rocess." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "# waffle := true:
! " }}}{PARA 3 "" 0 "" {TEXT -1 0 "" }}}{SECT 1 {PARA 3 "" 0 "" {TEXT
! -1 41 "Things that should be found automatically" }}{PARA 0 "" 0 ""
! {TEXT -1 2 " " }}{PARA 0 "" 0 "" {TEXT -1 91 "AiM needs to use a vari
! ety of files (eg the Maple executable) and directories (eg the main "
! }}{PARA 0 "" 0 "" {TEXT -1 98 "directory for the Java Runtime Environm
! ent). Often, it can find these for itself. If it fails to" }}{PARA
! 0 "" 0 "" {TEXT -1 96 "do so, or if it finds the wrong versions, then \+
! you can help it by filling in some of the options" }}{PARA 0 "" 0 ""
! {TEXT -1 84 "below. If you need to change anything, remember to remov
! e the comment character (#)" }}{PARA 0 "" 0 "" {TEXT -1 29 "at the beg
! inning of the line." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0
! "> " 0 "" {MPLTEXT 1 0 1585 "#########################################
! #############################\n# The absolute path to the BLAT program
! , used for sending email\n# Example:\n# Config['BLATProgram'] := \"C:
! \\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\blat\\\\blat.exe\":\n\n########
! ##############################################################\n# The \+
! absolute path to the kill program (used to kill processes on this OS).
! \n# Example:\n# Config['KillProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\
! AiM\\\\bin\\\\Process\\\\Process.exe\":\n\n###########################
! ###########################################\n# The top directory for t
! he Tomcat distribution. \n# Example:\n# Config['CatalinaHome'] := \"C:
! \\\\Tomcat\":\n\n#####################################################
! #################\n# The absolute path to the maple program. \n# Examp
! le:\n# Config['MapleProgram'] := \"C:\\\\Program Files\\\\Maple 8\\\\b
! in.win\\\\cmaple8.exe\":\n\n##########################################
! ############################\n# The absolute path to the tth program (
! used to convert LaTeX to HTML).\n# Example:\n# Config['TtHProgram'] :=
! \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\tth_exe\\\\tth.exe\":\n\n#
! #####################################################################
! \n# The top directory for the Java distribution. \n# Example:\n# Confi
! g['JavaHome'] := \"C:\\\\Program Files\\\\Java\\\\j2re1.4.2\":\n\n####
! ##################################################################\n# \+
! The directory where the servlet should put temporary copies of uploade
! d\n# files. (The Maple part of the system will delete them or move th
! em to\n# a more permanent home moments later.) \n# Example:\n# Config
! ['TempDir'] := \"C:\\\\WINDOWS\\\\Temp\":" }}}}{SECT 1 {PARA 3 "" 0 "
! " {TEXT -1 24 "Additional Configuration" }}{PARA 0 "" 0 "" {TEXT -1 0
! "" }}{PARA 0 "" 0 "" {TEXT -1 85 "This section lists some additional o
! ptions that you may wish to change. If you alter" }}{PARA 0 "" 0 ""
! {TEXT -1 84 "anything, remember to remove the comment character (#) at
! the beginning of the line." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 3109 "#################################
! #####################################\n# The number of 'Recent Request
! s' to show on the Alice Monitor page\n# Config['AliceHistorySize'] := \+
! 20:\n\n###############################################################
! #######\n# The time limits placed on Maple processes by the Alice serv
! let. \n# Processes which take longer than the time limit are terminate
! d.\n# The AdminTimeLimit restricts the time allowed for Administrative
! \n# commands. The StudentTimeLimit is the restriction on all other \n#
! commands. Generally the StudentTimeLimit should be shorter than\n# th
! e admisitrative time limit. Both values are integers which specify \n#
! the time limit in milliseconds.\n# Config['StudentTimeLimit'] := 6000
! 0: # one minute\n# Config['AdminTimeLimit'] := 1200000: # twenty min
! utes\n\n##############################################################
! ########\n# The maximum number of maple processes that can be running \+
! at the same\n# time on this machine.\n# Config['MaxMapleProcesses'] :=
! 8:\n\n###############################################################
! #######\n# The maximum allowed size for uploaded files, in bytes. The
! default is\n# ten megabytes.\n# Config['MaxPostSize'] := 10485760:\n
! \n\n##################################################################
! ####\n# The number of the port on which Tomcat should listen. By defa
! ult\n# this is 8080. For any port other than 80, the\n# number must be
! included explicitly in URL's (for example, \n# http://allserv.rug.ac.
! be:8080). \n# Config['TomcatPort'] := 8080:\n\n\n\n###################
! ###################################################\n# In principle th
! is allows you to choose the language in which AiM's\n# messages are pr
! esented. The required mechanisms are in place but \n# as yet there ar
! e no tables of translated messages.\n# Config['Locale'] := \"en\":\n\n
! \n####################################################################
! ##\n# Config['ShowToolBars'] := true:\n# true if the administrator's b
! rowser windows should have a full set of\n# toolbars; false if they sh
! ould be omitted to save space.\n\n\n##################################
! ####################################\n# The name of the time zone, and
! the number of SECONDS ahead of GMT.\n# Note that these are separate v
! ariables, not fields in the Config\n# table.\n#\n# The handling of sum
! mer time may not be correct in Europe, and is\n# certainly incorrect i
! n the southern hemisphere. It is recommended\n# that you adjust manua
! lly for this. \n#\n# `Date/LocalTimeZoneName` := \"GMT\":\n# `Date/
! LocalTimeZoneOffset` := 0:\n\n\n######################################
! ################################\n####################################
! ##################################\n# You can change the following fie
! lds if you dare, but you should\n# read the source code first and prob
! ably ask for advice.\n# Config['AimDir']\n# Config['LastRequestFile']
! \n# Config['Locale']\n# Config['LogDir']\n# Config['MapleInitOptions']
! \n# Config['MapleVersion']\n# Config['OperatingSystem']\n# Config['Roo
! tDir']\n# Config['ServletLogFile']\n# Config['DocumentURL']\n# Config[
! 'ServletURL']\n# Config['WEBINFDir']\n# Config['WebAppDir']\n# Config[
! 'WebDir']\n" }}}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "read(\"Auto
! ConfWin.mpl\"):" }}}}{MARK "1 35 0" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1
! 1 }{PAGENUMBERS 0 1 2 33 1 1 }
--- 33,181 ----
ified domain name of the server (something like " }}{PARA 0 "" 0 ""
{TEXT -1 63 " \"aim.shef.ac.uk\"). This should be entered as the v
! alue of " }{TEXT 257 18 "Config['HostName']" }{TEXT -1 7 " below." }}}
! {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 34 "Config['HostName'] := \"loca
! lhost\":" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 ""
! {TEXT -1 2 "+ " }{TEXT 258 53 "The address of the server that you use \+
! to send email." }}{PARA 0 "" 0 "" {TEXT -1 94 " This should again b
! e a fully qualified domain name (eg \"smtp.york.ac.uk\"). If you are \+
! not" }}{PARA 0 "" 0 "" {TEXT -1 95 " sure what to enter, try lookin
! g at the options used by your email client. For example, in " }}
! {PARA 0 "" 0 "" {TEXT -1 42 " Microsoft Outlook, use the menu items
! " }}{PARA 0 "" 0 "" {TEXT -1 168 " Tools > Options > Mail Delivery
! > Accounts > Mail > Properties > Servers\n and look under \"Outgoi
! ng mail (SMTP)\". You can get started with AiM without filling in" }}
! {PARA 0 "" 0 "" {TEXT -1 86 " this field, but your students will no
! t be able to get password reminders by email." }}{PARA 0 "" 0 ""
! {TEXT -1 50 " The address should be entered as the value of " }
! {TEXT 259 21 "Config['SMTPServer'] " }{TEXT -1 6 "below." }}}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 27 "Config['SMTPServer'] := \"\":" }}}
! {EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 2 "+ \+
! " }{TEXT 260 33 "The name of the top AiM directory" }}{PARA 0 "" 0 ""
! {TEXT -1 76 " This is just the last component of the name. If you i
! nstalled AiM under " }}{PARA 0 "" 0 "" {TEXT -1 3 " " }{TEXT 261 22
! "C:/Tomcat/webapps/ROOT" }{TEXT -1 20 ", for example, then " }{TEXT
! 262 23 "Config['TomcatContext']" }{TEXT -1 12 " should just" }}{PARA
! 0 "" 0 "" {TEXT -1 20 " be set to \"ROOT\"." }}}{EXCHG {PARA 0 "> "
! 0 "" {MPLTEXT 1 0 33 "Config['TomcatContext'] := \"AiM\":" }}}{EXCHG
! {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 41 "Once you \+
! have set these values, click on " }{TEXT 263 5 "Edit " }{TEXT -1 38 "o
! n the Maple toolbar, then select the " }}{PARA 0 "" 0 "" {TEXT 264 7 "
! Execute" }{TEXT -1 24 " submenu, then click on " }{TEXT 265 9 "Workshe
! et" }{TEXT -1 41 ". This will execute the worksheet, which" }}{PARA
! 0 "" 0 "" {TEXT -1 90 "will attempt to determine all other configurati
! on information automatically. If there are" }}{PARA 0 "" 0 "" {TEXT
! -1 61 "any error messages, you should check your entries above. You"
! }}{PARA 0 "" 0 "" {TEXT -1 27 "may also need to click the " }{TEXT
! 266 1 "+" }{TEXT 267 1 " " }{TEXT -1 58 "signs next to \"Things that s
! hould be found automatically\" " }}{PARA 0 "" 0 "" {TEXT -1 86 "and/or
! \"Additional Configuration\", which will reveal a number of other co
! nfiguration " }}{PARA 0 "" 0 "" {TEXT -1 86 "options that you may need
! to set manually. You can then execute the worksheet again, " }}
! {PARA 0 "" 0 "" {TEXT -1 90 "and repeat until there are no error messa
! ges. (Some of the additional options are useful " }}{PARA 0 "" 0 ""
! {TEXT -1 86 "even if you have no errors, but you may wish to ignore th
! is possibility at your first " }}{PARA 0 "" 0 "" {TEXT -1 9 "attempt.)
! " }}{PARA 0 "" 0 "" {TEXT -1 82 "Uncomment the line below (by removing
! the initial # character) to get more verbose" }}{PARA 0 "" 0 ""
! {TEXT -1 41 "messages about the configuration process." }}}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "# waffle := true:" }}}{SECT 1
! {PARA 3 "" 0 "" {TEXT -1 41 "Things that should be found automatically
! " }}{PARA 0 "" 0 "" {TEXT -1 2 " " }}{PARA 0 "" 0 "" {TEXT -1 91 "AiM
! needs to use a variety of files (eg the Maple executable) and directo
! ries (eg the main " }}{PARA 0 "" 0 "" {TEXT -1 98 "directory for the J
! ava Runtime Environment). Often, it can find these for itself. If it
! fails to" }}{PARA 0 "" 0 "" {TEXT -1 96 "do so, or if it finds the wr
! ong versions, then you can help it by filling in some of the options"
! }}{PARA 0 "" 0 "" {TEXT -1 84 "below. If you need to change anything,
! remember to remove the comment character (#)" }}{PARA 0 "" 0 ""
! {TEXT -1 29 "at the beginning of the line." }}{PARA 0 "" 0 "" {TEXT
! -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 1585 "################
! ######################################################\n# The absolute
! path to the BLAT program, used for sending email\n# Example:\n# Confi
! g['BLATProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\blat\\
! \\blat.exe\":\n\n#####################################################
! #################\n# The absolute path to the kill program (used to ki
! ll processes on this OS).\n# Example:\n# Config['KillProgram'] := \"C:
! \\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\Process\\\\Process.exe\":\n\n##
! ####################################################################\n
! # The top directory for the Tomcat distribution. \n# Example:\n# Confi
! g['CatalinaHome'] := \"C:\\\\Tomcat\":\n\n############################
! ##########################################\n# The absolute path to the
! maple program. \n# Example:\n# Config['MapleProgram'] := \"C:\\\\Prog
! ram Files\\\\Maple 8\\\\bin.win\\\\cmaple8.exe\":\n\n#################
! #####################################################\n# The absolute \+
! path to the tth program (used to convert LaTeX to HTML).\n# Example:\n
! # Config['TtHProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\t
! th_exe\\\\tth.exe\":\n\n##############################################
! ########################\n# The top directory for the Java distributio
! n. \n# Example:\n# Config['JavaHome'] := \"C:\\\\Program Files\\\\Java
! \\\\j2re1.4.2\":\n\n##################################################
! ####################\n# The directory where the servlet should put tem
! porary copies of uploaded\n# files. (The Maple part of the system wil
! l delete them or move them to\n# a more permanent home moments later.)
! \n# Example:\n# Config['TempDir'] := \"C:\\\\WINDOWS\\\\Temp\":" }}}
! }{SECT 1 {PARA 3 "" 0 "" {TEXT -1 24 "Additional Configuration" }}
! {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 85 "This sect
! ion lists some additional options that you may wish to change. If you
! alter" }}{PARA 0 "" 0 "" {TEXT -1 84 "anything, remember to remove th
! e comment character (#) at the beginning of the line." }}{PARA 0 "" 0
! "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 3767 "#######
! ###############################################################\n# The
! number of 'Recent Requests' to show on the Alice Monitor page\n# Conf
! ig['AliceHistorySize'] := 20:\n\n#####################################
! #################################\n# The time limits placed on Maple p
! rocesses by the Alice servlet. \n# Processes which take longer than th
! e time limit are terminated.\n# The AdminTimeLimit restricts the time \+
! allowed for Administrative\n# commands. The StudentTimeLimit is the re
! striction on all other \n# commands. Generally the StudentTimeLimit sh
! ould be shorter than\n# the admisitrative time limit. Both values are \+
! integers which specify \n# the time limit in milliseconds.\n# Config['
! StudentTimeLimit'] := 60000: # one minute\n# Config['AdminTimeLimit']
! := 1200000: # twenty minutes\n\n####################################
! ##################################\n# The maximum number of maple proc
! esses that can be running at the same\n# time on this machine.\n# Conf
! ig['MaxMapleProcesses'] := 8:\n\n#####################################
! #################################\n# The maximum allowed size for uplo
! aded files, in bytes. The default is\n# ten megabytes.\n# Config['Max
! PostSize'] := 10485760:\n\n###########################################
! ###########################\n# The number of the port on which Tomcat \+
! should listen. By default\n# this is 8080. For any port other than 80
! , the\n# number must be included explicitly in URL's (for example, \n#
! http://allserv.rug.ac.be:8080). \n# Config['TomcatPort'] := 8080:\n\n
! ######################################################################
! \n# In principle this allows you to choose the language in which AiM's
! \n# messages are presented. The required mechanisms are in place but \+
! \n# as yet there are no tables of translated messages.\n# Config['Loca
! le'] := \"en\":\n\n###################################################
! ###################\n# Config['ShowToolBars'] := true:\n# true if the \+
! administrator's browser windows should have a full set of\n# toolbars;
! false if they should be omitted to save space.\n\n###################
! ###################################################\n# Config['SourceE
! ditBoxWidth'] := 100:\n# Config['SourceEditBoxHeight'] := 50:\n# This \+
! determines the width of the textarea used for editing the\n# question \+
! source files\n\n######################################################
! ################\n# Config['ImageFormat'] := \"jpg\":\n# This determin
! es the image format used for Maple plots.\n# Possible options are gif \+
! and jpg\n\n###########################################################
! ###########\n# Config['ImageWidth'] := 480:\n# Config['ImageHeight'] :
! = 280:\n# This determines the image format used for Maple plots.\n# Po
! ssible options are gif and jpg\n\n####################################
! ##################################\n# The name of the time zone, and t
! he number of SECONDS ahead of GMT.\n# Note that these are separate var
! iables, not fields in the Config\n# table.\n#\n# The handling of summe
! r time may not be correct in Europe, and is\n# certainly incorrect in \+
! the southern hemisphere. It is recommended\n# that you adjust manuall
! y for this. \n#\n# `Date/LocalTimeZoneName` := \"GMT\":\n# `Date/Lo
! calTimeZoneOffset` := 0:\n\n##########################################
! ############################\n########################################
! ##############################\n# You can change the following fields \+
! if you dare, but you should\n# read the source code first and probably
! ask for advice.\n# Config['AimDir']\n# Config['LastRequestFile']\n# C
! onfig['Locale']\n# Config['LogDir']\n# Config['MapleInitOptions']\n# C
! onfig['MapleVersion']\n# Config['OperatingSystem']\n# Config['RootDir'
! ]\n# Config['ServletLogFile']\n# Config['DocumentURL']\n# Config['Serv
! letURL']\n# Config['WEBINFDir']\n# Config['WebAppDir']\n# Config['WebD
! ir']\n" }}}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "read(\"AutoConfW
! in.mpl\"):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}}{MARK "2
! 0 0" 32 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1
! }
Index: ConfigFields.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/ConfigFields.mpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ConfigFields.mpl 25 Aug 2003 21:47:18 -0000 1.3
--- ConfigFields.mpl 25 Sep 2003 19:01:15 -0000 1.4
***************
*** 57,60 ****
--- 57,80 ----
true if the administrator's browser windows should have a full set of
toolbars; false if they should be omitted to save space."],
+
+ [`SourceEditBoxWidth`,
+ posint,"
+ The width of the source edit textfield in pixel."],
+
+ [`SourceEditBoxHeight`,
+ posint,"
+ The height of the source edit textfield in pixel."],
+
+ [`ImageFormat`,
+ string,"
+ The image format used for Maple plots. Can be either gif or jpg."],
+
+ [`ImageWidth`,
+ posint,"
+ The width of Maple plots in pixel."],
+
+ [`ImageHeight`,
+ posint,"
+ The height of Maple plots in pixel."],
['Locale',
Index: ImageCache.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/ImageCache.mpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ImageCache.mpl 25 Aug 2003 21:47:18 -0000 1.3
--- ImageCache.mpl 25 Sep 2003 19:01:15 -0000 1.4
***************
*** 232,249 ****
['Method','NewImageURL'::string,
"The argument @x@ is a maple data structure representing a plot.
! This method saves @x@ as a GIF file, records the name and
creation time in the @Images@ field, and returns a string
! containing a URL that refers to the GIF file.
",
proc(this,x::`ImageCache/Plot`)
local c,file,url;
c := this['NextCount'];
! file := sprintf("%s/%d.gif",this['Dir'],c);
! url := sprintf("%s/%d.gif",this['URLBase'],c);
! plotsetup(
! 'gif',
! plotoutput=file,
! plotoptions="transparent=true,height=400,width=400"
! );
print(x);
plotsetup(default);
--- 232,259 ----
['Method','NewImageURL'::string,
"The argument @x@ is a maple data structure representing a plot.
! This method saves @x@ as a GIF or JPG file, records the name and
creation time in the @Images@ field, and returns a string
! containing a URL that refers to the GIF or JPG file.
",
proc(this,x::`ImageCache/Plot`)
local c,file,url;
c := this['NextCount'];
! file := sprintf("%s/%d.%s",this['Dir'],c,Config['ImageFormat']);
! url := sprintf("%s/%d.%s",this['URLBase'],c,Config['ImageFormat']);
! if Config['ImageFormat'] = "jpg" then
! plotsetup(
! 'jpeg',
! plotoutput=file,
! plotoptions=sprintf("height=%d,width=%d",
! Config['ImageHeight'],Config['ImageWidth'])
! );
! else
! plotsetup(
! 'gif',
! plotoutput=file,
! plotoptions=sprintf("transparent=true,height=%d,width=%d",
! Config['ImageHeight'],Config['ImageWidth'])
! );
! end if;
print(x);
plotsetup(default);
***************
*** 284,288 ****
newlock[k] := oldlock[k];
else
! traperror(fremove(sprintf("%s/%d.gif",this['Dir'],k)));
fi;
od;
--- 294,298 ----
newlock[k] := oldlock[k];
else
! traperror(fremove(sprintf("%s/%d.%s",this['Dir'],k,Config['ImageFormat'])));
fi;
od;
***************
*** 300,304 ****
local n;
for n in this['Images'] do
! traperror(fremove(sprintf("%s/%d.gif",this['Dir'],n)));
od;
--- 310,314 ----
local n;
for n in this['Images'] do
! traperror(fremove(sprintf("%s/%d.%s",this['Dir'],n,Config['ImageFormat'])));
od;
Index: ManualConfig.dist
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/ManualConfig.dist,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ManualConfig.dist 25 Aug 2003 21:47:18 -0000 1.2
--- ManualConfig.dist 25 Sep 2003 19:01:15 -0000 1.3
***************
*** 100,103 ****
--- 100,119 ----
# toolbars; false if they should be omitted to save space.
+ ######################################################################
+ # Config['SourceEditBoxWidth'] := 100:
+ # Config['SourceEditBoxHeight'] := 50:
+ # This determines the width of the textarea used for editing the
+ # question source files
+
+ ######################################################################
+ # Config['ImageFormat'] := "jpg":
+ # This determines the image format used for Maple plots.
+ # Possible options are gif and jpg
+
+ ######################################################################
+ # Config['ImageWidth'] := 480:
+ # Config['ImageHeight'] := 280:
+ # This determines the image format used for Maple plots.
+ # Possible options are gif and jpg
######################################################################
|