~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to doc/docbook/src/custom-extensions-tcl.html

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
2
2
<HTML
3
3
><HEAD
4
4
><TITLE
5
5
>Custom Extensions to Tcl</TITLE
6
6
><META
7
7
NAME="GENERATOR"
8
 
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9
9
REL="HOME"
10
10
TITLE="The PLplot Plotting Library"
11
11
HREF="index.html"><LINK
16
16
TITLE="PLplot Extensions to Tcl"
17
17
HREF="extensions-tcl.html"><LINK
18
18
REL="NEXT"
19
 
TITLE="Constructing Graphical Interfaces with PLplot"
 
19
TITLE="Embedding Plots in Graphical User Interfaces"
20
20
HREF="gui.html"><LINK
21
21
REL="STYLESHEET"
22
22
TYPE="text/css"
56
56
WIDTH="80%"
57
57
ALIGN="center"
58
58
VALIGN="bottom"
59
 
>Chapter 11. Building an Extended WISH</TD
 
59
>Chapter 12. Building an Extended WISH</TD
60
60
><TD
61
61
WIDTH="10%"
62
62
ALIGN="right"
228
228
>
229
229
      </P
230
230
><P
231
 
>       The calls to <VAR
 
231
>       The calls to <TT
232
232
CLASS="literal"
233
 
>Tcl_Init()</VAR
 
233
>Tcl_Init()</TT
234
234
> and
235
 
        <VAR
 
235
        <TT
236
236
CLASS="literal"
237
 
>Tk_Init()</VAR
 
237
>Tk_Init()</TT
238
238
> are in every WISH.  To make an
239
239
        extended WISH, you add calls to the initialization routines for any
240
240
        extension packages you want to use, in this [incr Tcl]
241
 
        (<VAR
 
241
        (<TT
242
242
CLASS="literal"
243
 
>Itcl_Init()</VAR
 
243
>Itcl_Init()</TT
244
244
>) and PLplot
245
 
        (<VAR
 
245
        (<TT
246
246
CLASS="literal"
247
 
>Pltk_Init()</VAR
 
247
>Pltk_Init()</TT
248
248
>).  Finally you add keywords to the
249
249
        interpreter, associating them with functions in your code using
250
 
        <VAR
 
250
        <TT
251
251
CLASS="literal"
252
 
>Tcl_CreateCommand()</VAR
 
252
>Tcl_CreateCommand()</TT
253
253
> as shown.
254
254
      </P
255
255
><P
267
267
>WISH Linking</A
268
268
></H2
269
269
><P
270
 
>       Having constructed your <VAR
 
270
>       Having constructed your <TT
271
271
CLASS="literal"
272
 
>Tcl_AppInit()</VAR
 
272
>Tcl_AppInit()</TT
273
273
> function,
274
274
        you now merely need to link this file with your own private files
275
275
        to provide the code for any functions you registered via
276
 
        <VAR
 
276
        <TT
277
277
CLASS="literal"
278
 
>Tcl_CreateCommand()</VAR
 
278
>Tcl_CreateCommand()</TT
279
279
> (and any they depend on),
280
280
        against the Tcl, Tk and extension libraries you are using.
281
281
      </P
297
297
      </P
298
298
><P
299
299
>      
300
 
        Add any needed <VAR
 
300
        Add any needed <TT
301
301
CLASS="literal"
302
 
>-L</VAR
 
302
>-L</TT
303
303
> options as needed.
304
304
      </P
305
305
><P
394
394
WIDTH="33%"
395
395
ALIGN="right"
396
396
VALIGN="top"
397
 
>Constructing Graphical Interfaces with PLplot</TD
 
397
>Embedding Plots in Graphical User Interfaces</TD
398
398
></TR
399
399
></TABLE
400
400
></DIV