Files
lotherk 7c0281f48a MCDE: print a file through McdeSys; dtpaint Print... (D4)
McdeSys gains mcde_sys_print_file(path, printer): it looks for lp(1)
(/usr/bin, /usr/local/bin, /usr/sbin, pkg prefix; MCDE_PRINT_COMMAND
overrides it for tests), passes -d PRINTER when one is named, and runs it
as the existing job (fd into the event loop, finish/cancel).  dtpaint links
libMcdeSys, adds File > Print... (Ctrl+P): it picks the default queue from
mcde_sys_printers (or the first), writes the image to /tmp/dtpaint-PID.bmp,
starts the job and removes the file when the job ends; errors and 'no
printer is set up' go to the information dialog.  Measured under Xvfb with
MCDE_PRINT_COMMAND=fake lp: argv '-d HP_LaserJet_M110w_CC1016
/tmp/dtpaint-3543226.bmp', the fake copied a valid 640x480 BMP and the
temporary file was gone; no physical page was printed (the real queue is
the user's step).
2026-11-22 07:23:33 +00:00

57 lines
1.0 KiB
Plaintext

$ MCDE dtpaint message catalog (set 1) -- English is the source; a locale's copy lives in programs/localized/<locale>/msg/dtpaint.msg.
$
$set 1
1 File
2 Edit
3 View
4 Image
5 Colors
6 Help
7 New
8 Open...
9 Save
10 Save As...
11 Exit
12 Undo
13 Clear Selection
14 Tool Box
15 Color Box
16 Status Bar
17 Flip Horizontal
18 Invert Colors
19 Clear Image
20 Edit Colors...
21 About dtpaint...
22 About dtpaint
23 For Help, click Help Topics on the Help Menu.
24 untitled
25 dtpaint - MCDE
26 Cannot open %s.
27 Cannot save %s.
28 Save changes to "%s"?
29 Discard
30 Keep
31 Open
32 Save As
33 Help Topics
34 Pick a tool on the left and a colour below it, then draw on the canvas. The left button draws with the foreground colour, the right button with the background colour. Ctrl+Z undoes the last step.
35 Normal Size
36 Large Size
37 Text:
38 Select All
39 Attributes...
40 Width:
41 Height:
42 Width and height must be between 1 and 4096.
43 Attributes
44 Edit Colors
45 Red:
46 Green:
47 Blue:
48 OK
49 Cancel
50 No printer is set up.
51 Print
53 Print...