146 lines
4.1 KiB
HTML
Executable File
146 lines
4.1 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
||
<!--Converted with LaTeX2HTML 2K.1beta (1.57)
|
||
original version by: Nikos Drakos, CBLU, University of Leeds
|
||
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
|
||
* with significant contributions from:
|
||
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
|
||
<HTML>
|
||
<HEAD>
|
||
<TITLE>Tk LATEXEditor Programming Guide</TITLE>
|
||
<META NAME="description" CONTENT="Tk LATEXEditor Programming Guide">
|
||
<META NAME="keywords" CONTENT="tle_api_guide">
|
||
<META NAME="resource-type" CONTENT="document">
|
||
<META NAME="distribution" CONTENT="global">
|
||
|
||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
|
||
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
|
||
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
||
|
||
<LINK REL="STYLESHEET" HREF="tle_api_guide.css">
|
||
|
||
</HEAD>
|
||
|
||
<BODY >
|
||
|
||
<H1 ALIGN="CENTER">Tk L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>XEditor Programming Guide</H1>
|
||
<P ALIGN="CENTER"><STRONG>Sergey Kalinin (aka BanZaj) 17/06/2002</STRONG></P>
|
||
|
||
<H1><A NAME="SECTION00010000000000000000">
|
||
ðÏÄËÌÀÞÅÎÉÅ ÍÏÄÕÌÑ</A>
|
||
</H1>
|
||
|
||
<P>
|
||
äÌÑ ÚÁÇÒÕÚËÉ ÎÏ×ÏÇÏ ÍÏÄÕÌÑ ÎÅÏÂÈÏÄÉÍÏ ÆÁÊÌ ÓËÒÉÐÔÁ (filename.tcl) ÒÁÚÍÅÓÔÉÔØ × ËÁÔÁÌÏÇÅ lib/modules/. æÁÊÌ ÂÕÄÅÔ ÚÁÇÒÕÖÅÎ Á×ÔÏÍÁÔÉÞÅÓËÉ ÐÒÉ ÓÔÁÒÔÅ ÐÒÏÇÒÁÍÍÙ.
|
||
|
||
<P>
|
||
|
||
<H1><A NAME="SECTION00020000000000000000">
|
||
çÌÏÂÁÌØÎÙÅ ÐÅÒÅÍÅÎÎÙÅ</A>
|
||
</H1>
|
||
|
||
<H2><A NAME="SECTION00021000000000000000">
|
||
òÁÓÐÏÌÏÖÅÎÉÅ ÆÁÊÌÏ×</A>
|
||
</H2>
|
||
äÌÑ ÏÐÉÓÁÎÉÑ ËÁÔÁÌÏÇÏ× ÉÓÐÏÌØÚÕÅÔÓÑ ÍÁÓÓÉ× ÐÅÒÅÍÅÎÎÙÈ <I>dir</I>:
|
||
|
||
<UL>
|
||
<LI>dir(mod) - ëÁÔÁÌÏÇ Ó ÍÏÄÕÌÑÍÉ ÐÒÏÇÒÁÍÍÙ (modules) (ÓÄÅÓØ É ÄÁÌÅÅ × ÓËÏÂËÁÈ ÕËÁÚÁÎÏ ÚÎÁÞÅÎÉÅ ÐÏ ÕÍÏÌÞÁÎÉÀ)
|
||
</LI>
|
||
<LI>dir(gui) - ÆÁÊÌÙ ÎÁÓÔÒÏÊËÉ ÐÁÎÅÌÅÊ ÉÎÓÔÒÕÍÅÎÔÏ× (gui)
|
||
</LI>
|
||
<LI>dir(img) - ËÁÔÁÌÏÇ ÉÚÏÂÒÁÖÅÎÉÊ (img)
|
||
</LI>
|
||
<LI>dir(msg) - ËÁÔÁÌÏÇ ÓÏÏÂÝÅÎÉÊ (msg), ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ÌÏËÁÌÉÚÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌØÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ ÐÒÏÇÒÁÍÍÙ
|
||
</LI>
|
||
<LI>dir(tmpl) - ÛÁÂÌÏÎÙ ÄÏËÕÍÅÎÔÏ× (template)
|
||
</LI>
|
||
<LI>dir(work) - ÒÁÂÏÞÉÊ ËÁÔÁÌÏÇ ( /.tktexeditor)
|
||
</LI>
|
||
</UL>
|
||
|
||
<P>
|
||
|
||
<H2><A NAME="SECTION00022000000000000000">
|
||
ïÐÒÅÄÅÌÅÎÉÅ ÛÒÉÆÔÏ×</A>
|
||
</H2>
|
||
äÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÛÒÉÆÔÏ× ÄÌÑ ÉÎÔÅÒÆÅÊÓÁ É ÒÅÄÁËÔÏÒÁ ÉÓÐÏÌØÚÕÅÔÓÑ ÍÁÓÓÉ× ÐÅÒÅÍÅÎÎÙÈ :
|
||
|
||
<UL>
|
||
<LI>font(normal) - ïÂÙÞÎÙÊ ÛÒÉÆÔ
|
||
</LI>
|
||
<LI>font(bold) - ÖÉÒÎÙÊ ÛÒÉÆÔ
|
||
</LI>
|
||
<LI>font(editNormal) - ÏÂÙÞÎÙÊ ÛÒÉÆÔ × ÒÅÄÁËÔÏÒÅ
|
||
</LI>
|
||
<LI>font(editBold) - ÖÉÒÎÙÊ ÛÒÉÆÔ × ÒÅÄÁËÔÏÒÅ
|
||
</LI>
|
||
</UL>
|
||
|
||
<P>
|
||
|
||
<H2><A NAME="SECTION00023000000000000000">
|
||
ïÐÒÅÄÅÌÅÎÉÅ Ã×ÅÔÏ×ÏÊ ÇÁÍÍÙ</A>
|
||
</H2>
|
||
äÌÑ ÏÐÒÅÄÅÌÅÎÉÑ Ã×ÅÔÏ×ÏÊ ÇÁÍÍÙ ÉÎÔÅÒÆÅÊÓÁ É ÐÏÄÓ×ÅÔËÉ ËÏÄÁ × ÒÅÄÁËÔÏÒÅ ÏÐÒÅÄÅÌÅÎ ÍÁÓÓÉ× <I>color</I>
|
||
|
||
<P>
|
||
|
||
<H3><A NAME="SECTION00023100000000000000">
|
||
ïÓÔÁÌØÎÙÅ ÐÅÒÅÍÅÎÎÙÅ</A>
|
||
</H3>
|
||
|
||
<UL>
|
||
<LI><I>tree</I> - ÉÍÑ Tree ×ÉÄÖÅÔÁ
|
||
</LI>
|
||
<LI><I>nb</I> - ÉÍÑ NoteBook ×ÉÄÖÅÔÁ ÒÅÄÁËÔÒÁ
|
||
</LI>
|
||
<LI><I>treeStruct</I> - ÉÍÑ Tree ÄÌÑ ÓÔÒÕËÔÕÒÙ ÄÏËÕÍÅÎÔÁ
|
||
</LI>
|
||
<LI><I>lblList</I> - ÉÍÑ ÓÐÉÓËÁ ÍÅÔÏË
|
||
</LI>
|
||
<LI><I>module()</I> - ÍÁÓÓÉ× ÐÅÒÅÍÅÎÎÙÈ ÓÏÄÅÒÖÁÝÉÊ ÐÏÌÎÙÅ ÉÍÅÎÁ ×ÎÅÛÎÉÈ ÍÏÄÕÌÅÊ (ÓÍ lib/modules/module.tcl)
|
||
</LI>
|
||
<LI>files() - ÍÁÓÓÉ× ÐÅÒÅÍÅÎÎÙÈ Ó ÉÍÅÎÁÍÉ ÏÔËÒÙÔÙÈ ÆÁÊÌÏ×
|
||
</LI>
|
||
<LI><I>activeFile</I> - ÉÍÑ ÁËÔÉ×ÎÏÊ ÎÏÄÙ
|
||
îÁÐÒÉÍÅÒ ÄÌÑ ÉÚ×ÌÅÞÅÎÉÑ ÉÍÅÎÉ ÁËÔÉ×ÎÏÇÏ ÆÁÊÌÁ ÎÅÏÂÈÏÄÉÍÏ :
|
||
<PRE>
|
||
if {$activeFile == ""} {return} <-- ÐÒÏ×ÅÒËÁ
|
||
set text "$nb.f$activeFile.f.text" <-- ÉÍÑ ÔÅËÓÔÏ×ÏÇÏ ×ÉÄÖÅÔÁ
|
||
set fullPath [lindex $files($activeFile) 0] <-- ÐÏÌÎÙÊ ÐÕÔØ Ë ÆÁÊÌÕ
|
||
</PRE>
|
||
|
||
<P>
|
||
</LI>
|
||
</UL>
|
||
|
||
<P>
|
||
|
||
<H1><A NAME="SECTION00030000000000000000">
|
||
ï ÜÔÏÍ ÄÏËÕÍÅÎÔÅ ...</A>
|
||
</H1>
|
||
<STRONG>Tk L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>XEditor Programming Guide</STRONG><P>
|
||
This document was generated using the
|
||
<A HREF="http://www-dsed.llnl.gov/files/programs/unix/latex2html/manual/"><STRONG>LaTeX</STRONG>2<tt>HTML</tt></A> translator Version 2K.1beta (1.57)
|
||
<P>
|
||
Copyright © 1993, 1994, 1995, 1996,
|
||
<A HREF="http://cbl.leeds.ac.uk/nikos/personal.html">Nikos Drakos</A>,
|
||
Computer Based Learning Unit, University of Leeds.
|
||
<BR>
|
||
Copyright © 1997, 1998, 1999,
|
||
<A HREF="http://www.maths.mq.edu.au/~ross/">Ross Moore</A>,
|
||
Mathematics Department, Macquarie University, Sydney.
|
||
<P>
|
||
The command line arguments were: <BR>
|
||
<STRONG>latex2html</STRONG> <TT>-no_navigation -split 0 /home/kalinin/projects/tcl/tle/doc/tle_api_guide.tex</TT>
|
||
<P>
|
||
The translation was initiated by on 2002-12-26
|
||
<BR><HR>
|
||
<ADDRESS>
|
||
|
||
2002-12-26
|
||
</ADDRESS>
|
||
</BODY>
|
||
</HTML>
|