source: trunk/third/libgnomeprintui/examples/README @ 20964

Revision 20964, 2.2 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20963, which included commits to RCS files with non-trunk default branches.
Line 
1This is the examples directory inside libgnomeprintui. If you are going to be running this examples I
2recommend setting your default printer to print to file, since there isn't any gui for this yet. You
3can modify libgnomeprint/data/printers/Generic.printer and change the line that says:
4  <Key Id="Backend" Value="lpr"/>
5to
6  <Key Id="Backend" Value="file"/>
7
8This examples contains code for both libgnomeprint and libgnomeprintui. To compile them you
9can use "make" or "make example_0x". To debug them inside gdb you need to run them with
10"gdb .libs/example_0x".
11
12Here is a brief description of what each example does.
13
14<NON-GUI>
15
16example_01.c
17------------
18Smallest non-gui gnome-print application. Shows basic GnomePrintJob & GnomePrintContext usage.
19
20example_02.c
21------------
22Printing Images. Prints a generated image from memory, an image from disk and from a pixbuf.
23
24example_03.c (09)
25------------
26Using fonts, basic font usage.
27
28example_04.c
29------------
30Using utf-8 strings, printing non-western and acented characters.
31
32example_05.c
33------------
34Basic GnomePrintConfig usage, sets an option for GnomePrintConfig to change the default output
35filename and document titlem, it queries the print orientation and dumps it to the console.
36
37<GUI>
38example_06.c
39------------
40Basic usage of a GnomePrintDialog
41
42example_07.c (not yet implmented)
43------------
44GnomePrintDialog range usage
45
46example_08.c
47------------
48Appending custom widgets to a GnomePrintDialog. This example also dumps a GnomePrintConfig tree
49when the "Dump Tree" button is clicked (used for debugging purposes)
50
51example_09.c
52------------
53Serializing and de-serializing a GnomePrintConfig object. The print dialog remembers its configuration
54from the last time it was used.
55
56<GUI + GLADE>
57example_10.c
58------------
59Example with an app, dialog, setup and print preview
60
61example_11.c
62------------
63Printing with gnome_print_job_set_file. In this mode, applications generate the postscript output
64themselves and use gnome-print as a print system abstraction layer and as a print gui library.
65
66example_12.c
67------------
68Shows how to add app specific GnomePrintConfig nodes and how to attach widgets to configure them
69
70TODO:
71----
72- Add an example printable area example, with N-up printing. With marks on the margins
Note: See TracBrowser for help on using the repository browser.