/usr/share/mozart/doc/demo/node2.html is in mozart-doc 1.4.0-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Root functor: Main.oz</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="jobshop.html">- Up -</A></TD><TD><A href="node3.html#code.jobshop.compiler">Next >></A></TD></TR></TABLE><DIV class="unnumbered" id="code.jobshop.main"><H3><A name="code.jobshop.main">Root functor: <CODE>Main.oz</CODE></A></H3><P class="margin"><A href="JobShop/Main.oz">Source File</A></P><P> </P><BLOCKQUOTE><PRE><SPAN class="keyword">functor</SPAN> <BR> <BR><SPAN class="keyword">import</SPAN> <BR> Application(exit getCmdArgs)<BR> Explorer(object)<BR> <BR> Tk(frame toplevel batch addXScrollbar addYScrollbar scrollbar)<BR> TkTools(notebook)<BR> <BR> TaskBoard(<SPAN class="string">'class'</SPAN>)<BR> Scheduler(<SPAN class="string">'class'</SPAN>)<BR> Tools(<SPAN class="string">'class'</SPAN>)<BR> Configure(text)<BR> <BR><SPAN class="keyword">require</SPAN> <BR> Examples<BR> <BR><SPAN class="keyword">prepare</SPAN> <BR> ArgSpec = record(example(single type:atom default:no))<BR> {Wait Examples}<BR> <BR><SPAN class="keyword">define</SPAN> <BR> <BR> Args = {Application<SPAN class="keyword">.</SPAN>getCmdArgs ArgSpec}<BR> <BR> <SPAN class="keyword">class</SPAN> <SPAN class="type">Frontend</SPAN> <BR> <SPAN class="keyword">from</SPAN><SPAN class="type"> Tk.frame</SPAN> <BR> <SPAN class="keyword">feat</SPAN> Board Sched<BR> <BR> <SPAN class="keyword">meth</SPAN> <SPAN class="functionname">tkInit</SPAN>(parent:P spec:Spec)<BR> Tk<SPAN class="keyword">.</SPAN>frame<SPAN class="keyword">,</SPAN> tkInit(parent:P)<BR> NB = {New TkTools<SPAN class="keyword">.</SPAN>notebook tkInit(parent:<SPAN class="keyword">self</SPAN> font:Configure<SPAN class="keyword">.</SPAN>text)}<BR> T = {New Tools<SPAN class="keyword">.</SPAN><SPAN class="string">'class'</SPAN> tkInit(parent:NB board:B)}<BR> S = {New Scheduler<SPAN class="keyword">.</SPAN><SPAN class="string">'class'</SPAN> tkInit(parent:NB board:B)}<BR> F = {New Tk<SPAN class="keyword">.</SPAN>frame tkInit(parent:<SPAN class="keyword">self</SPAN>)}<BR> B = {New TaskBoard<SPAN class="keyword">.</SPAN><SPAN class="string">'class'</SPAN> tkInit(parent:F tools:T spec:Spec)}<BR> H = {New Tk<SPAN class="keyword">.</SPAN>scrollbar tkInit(parent:F orient:horizontal<BR> width:13)}<BR> V = {New Tk<SPAN class="keyword">.</SPAN>scrollbar tkInit(parent:F orient:vertical<BR> width:13)}<BR> <SPAN class="keyword">in</SPAN> <BR> {Tk<SPAN class="keyword">.</SPAN>addXScrollbar B H}<BR> {Tk<SPAN class="keyword">.</SPAN>addYScrollbar B V}<BR> {Tk<SPAN class="keyword">.</SPAN>batch [grid(columnconfigure F 0 weight:1)<BR> grid(rowconfigure F 0 weight:1)<BR> grid(B row:0 column:0 sticky:nsew)<BR> grid(H row:1 column:0 sticky:we)<BR> grid(V row:0 column:1 sticky:ns)<BR> grid(columnconfigure <SPAN class="keyword">self</SPAN> 0 weight:1)<BR> grid(rowconfigure <SPAN class="keyword">self</SPAN> 0 weight:1)<BR> grid(F row:0 column:1 sticky:nsew padx:4 pady:4)<BR> grid(NB row:0 column:0 sticky:n padx:4 pady:4)]}<BR> {NB add(T)} {NB add(S)}<BR> <SPAN class="keyword">self.</SPAN>Board = B<BR> <SPAN class="keyword">self.</SPAN>Sched = S<BR> <SPAN class="keyword">end</SPAN> <BR> <BR> <SPAN class="keyword">meth</SPAN> <SPAN class="functionname">displaySol</SPAN>(Sol)<BR> <SPAN class="keyword">if</SPAN> {Record<SPAN class="keyword">.</SPAN>all Sol IsDet} <SPAN class="keyword">then</SPAN> <BR> {<SPAN class="keyword">self.</SPAN>Board displaySol(Sol)}<BR> {<SPAN class="keyword">self.</SPAN>Sched setSpan(Sol)}<BR> <SPAN class="keyword">end</SPAN> <BR> <SPAN class="keyword">end</SPAN> <BR> <BR> <SPAN class="keyword">end</SPAN> <BR> <BR> Top = {New Tk<SPAN class="keyword">.</SPAN>toplevel tkInit(title: <SPAN class="string">'Job Shop Scheduler'</SPAN> <BR> delete: Application<SPAN class="keyword">.</SPAN>exit <SPAN class="keyword">#</SPAN> 0<BR> withdraw: <SPAN class="keyword">true</SPAN>)}<BR> <BR> JSS = {New Frontend<BR> tkInit(parent: Top<BR> spec: <SPAN class="keyword">if</SPAN> {HasFeature Examples Args<SPAN class="keyword">.</SPAN>example} <SPAN class="keyword">then</SPAN> <BR> Examples<SPAN class="keyword">.</SPAN>(Args<SPAN class="keyword">.</SPAN>example)<BR> <SPAN class="keyword">else</SPAN> nil<BR> <SPAN class="keyword">end</SPAN>)}<BR> <BR> {Explorer<SPAN class="keyword">.</SPAN>object add(information<BR> <SPAN class="keyword">proc</SPAN><SPAN class="variablename"> </SPAN>{<SPAN class="functionname">$</SPAN> N X}<BR> {JSS displaySol(X)}<BR> <SPAN class="keyword">end</SPAN> <BR> label: <SPAN class="string">'Display Job Shop Schedule'</SPAN>)}<BR> <BR> <BR> {Tk<SPAN class="keyword">.</SPAN>batch [pack(JSS)<BR> update<BR> wm(deiconify Top)<BR> wm(resizable Top <SPAN class="keyword">false</SPAN> <SPAN class="keyword">false</SPAN>)]}<BR> <BR> <BR><SPAN class="keyword">end</SPAN> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR></PRE></BLOCKQUOTE><P></P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="jobshop.html">- Up -</A></TD><TD><A href="node3.html#code.jobshop.compiler">Next >></A></TD></TR></TABLE><HR><ADDRESS><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>
|