Commit Graph

45 Commits

Author SHA1 Message Date
Michael Natterer bdc3f7e7e0 Bug 635615 - Embed page setup dialog in the print dialog
Get rid of the antique separate page setup menu item and dialog.
Started with a patch from Bilal Akhtar but massively changed it, and
fixed some undiscovered bugs on the way.
2012-02-12 13:51:18 +01:00
Michael Natterer 8a20035ea0 Bug 661313 - "None" string needs differentiation (message context)
Add translation context to all "None".
2011-11-16 23:13:03 +01:00
Mukund Sivaraman baa861cd66 print: Delete dead variable and assignment 2011-10-12 19:01:54 +05:30
Michael Natterer dcb4c6e34a plug-ins: use gtk_box_new() 2011-09-30 12:18:24 +02:00
Michael Natterer a52a4a0fa3 Use GtkAdjustment's accessors 2009-10-09 23:02:24 +02:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann 8ae65ad5a3 plug-ins/print/print.[ch] plug-ins/print/print-draw-page.c
2008-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: optionally draw crop-marks.


svn path=/trunk/; revision=27859
2008-12-30 21:36:04 +00:00
Sven Neumann f1a7ab78c0 removed unused field.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.h (struct PrintData): removed unused 
field.

	* plug-ins/print/print-page-layout.c: set a minimum size of 
1/100
	of the paper size.


svn path=/trunk/; revision=24986
2008-02-26 20:49:19 +00:00
Sven Neumann c5de94edeb plug-ins/print/print-page-layout.[ch] pressing F1 on the "Image Settings"
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.[ch]
	* plug-ins/print/print.c: pressing F1 on the "Image Settings" 
tab
	calls the GIMP help browser.


svn path=/trunk/; revision=24984
2008-02-26 20:06:30 +00:00
Sven Neumann 978c0af41e plug-ins/print/print-preview.c let the preview widget allocate a
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c
	* plug-ins/print/print-page-layout.c: let the preview widget
	allocate a reasonable size.

svn path=/trunk/; revision=24967
2008-02-26 13:58:29 +00:00
Sven Neumann d5b63146a7 derive from GtkEventBox and draw on the parent window.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.[ch]: derive from GtkEventBox and
	draw on the parent window.

	* plug-ins/print/print-page-layout.c: tweaked dialog layout.


svn path=/trunk/; revision=24964
2008-02-26 08:26:32 +00:00
Sven Neumann f17bfcef0d only connect to page layout changes for the lifetime of the dialog.
2008-02-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: only connect to page 
layout
	changes for the lifetime of the dialog.
	
	* plug-ins/print/print-page-setup.[ch]
	* plug-ins/print/print.c: use a	temporary procedure to notify 
the
	Print procedure about changes to the page setup.


svn path=/trunk/; revision=24793
2008-02-04 21:49:08 +00:00
Sven Neumann b7d37bd4a5 plug-ins/print/Makefile.am new files.
2008-02-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-page-setup.[ch]: new files.

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c
	* plug-ins/print/print.c: first draft of a Page Setup menu entry
	instead of the "Adjust Page Size" button (bug #513291).
	
	* plug-ins/print/print.h
	* plug-ins/print/print-draw-page.c: removed unused code.

svn path=/trunk/; revision=24789
2008-02-04 16:59:45 +00:00
Michael Natterer 8717f90460 set a default page setup on the operation if it is NULL to prevent crash
2007-08-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-page-layout.c: set a default page setup on
	the operation if it is NULL to prevent crash in new installations
	(which don't have a setup yet). Fixes bug #467643, patch from
	Stefan Röllin.


svn path=/trunk/; revision=23303
2007-08-17 15:30:39 +00:00
Sven Neumann 4a6b4bc067 applied patch from Stefan Röllin that makes the preview resize with the
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: applied patch from Stefan
	Röllin that makes the preview resize with the dialog (bug #466923).

svn path=/trunk/; revision=23271
2007-08-15 13:57:36 +00:00
Sven Neumann b554ea3f5a applied patch from Stefan Röllin that fixes bug #465527.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c 
(print_size_info_set_resolution):
	applied patch from Stefan Röllin that fixes bug #465527.


svn path=/trunk/; revision=23203
2007-08-11 09:21:36 +00:00
Sven Neumann 8baa91b04f save a few more pixels vertically
svn path=/trunk/; revision=23166
2007-08-09 00:13:12 +00:00
Sven Neumann 5811866a7e further tweaks to the dialog layout
svn path=/trunk/; revision=23165
2007-08-09 00:11:10 +00:00
Sven Neumann 3dc9a2cc08 fixed the behavior when changing the unit.
2007-08-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: fixed the behavior when
	changing the unit.


svn path=/trunk/; revision=23164
2007-08-08 23:37:10 +00:00
Sven Neumann 7140af83e1 the unit-changed callback wasn't so unimportant after all
svn path=/trunk/; revision=23163
2007-08-08 23:21:26 +00:00
Sven Neumann 088134ec2b removed useless callbacks
svn path=/trunk/; revision=23162
2007-08-08 23:06:25 +00:00
Sven Neumann 70f4351e1a factored code into utilty functions
svn path=/trunk/; revision=23161
2007-08-08 22:52:23 +00:00
Sven Neumann 639a9e62d0 plug-ins/print/print-page-layout.c tweaked layout and changed labels to
2007-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.c: tweaked layout and changed labels to 
the
	terms used in the EOG print dialog.


svn path=/trunk/; revision=23160
2007-08-08 21:48:31 +00:00
Sven Neumann c166b002bb plug-ins/print/print.[ch] plug-ins/print/print-page-layout.c replaced the
2007-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: replaced the two Center 
buttons
	with a combo-box.


svn path=/trunk/; revision=23159
2007-08-08 21:28:07 +00:00
Sven Neumann 6d15db3b69 added entries for the right and bottom margins. Use the unit from the
2007-08-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: added entries for the right
	and bottom margins. Use the unit from the image size entry.

svn path=/trunk/; revision=23138
2007-08-07 16:32:10 +00:00
Sven Neumann f3ca90e3dc plug-ins/print/print-page-layout.c applied patch from Stefan Röllin to
2007-07-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: applied patch from Stefan
	Röllin to save and restore the use-full-page setting (bug 
#387604).


svn path=/trunk/; revision=23009
2007-07-26 06:35:46 +00:00
Sven Neumann adbe90b885 string changes.
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: string changes.


svn path=/trunk/; revision=22988
2007-07-24 20:16:31 +00:00
Sven Neumann 39731af46c applied patch from Stefan Röllin to restore image offsets (bug #387604).
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: applied patch from Stefan
	Röllin to restore image offsets (bug #387604).


svn path=/trunk/; revision=22986
2007-07-24 17:20:51 +00:00
Sven Neumann bacbb23381 plug-ins/print/print.[ch] plug-ins/print/print-page-layout.c removed
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.[ch]: removed image_ID from the
	PrintData struct and made sure that the parasites are read from
	and attached to the original image, not the export image.


svn path=/trunk/; revision=22978
2007-07-23 21:17:47 +00:00
Sven Neumann 9b22106ba6 some more dialog layout tweaks.
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: some more dialog layout tweaks.

svn path=/trunk/; revision=22974
2007-07-23 13:02:47 +00:00
Sven Neumann 007e16fdf3 Applied another patch from Stefan Röllin:
2007-07-20  Sven Neumann  <sven@gimp.org>

	Applied another patch from Stefan Röllin:

	* plug-ins/print/print-page-layout.c: align buttons.


svn path=/trunk/; revision=22970
2007-07-20 18:03:11 +00:00
Sven Neumann 18d3c4835d libgimpwidgets/gimpoffsetarea.c set a cursor to indicate that the area is
2007-07-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpoffsetarea.c
	* plug-ins/print/print-preview.c: set a cursor to indicate that
	the area is interactive.

	* plug-ins/print/print-page-layout.c: minor dialog tweaks.

svn path=/trunk/; revision=22963
2007-07-20 12:29:38 +00:00
Sven Neumann 1785cef894 Applied patch from Stefan attached to bug #387604:
2007-07-19  Sven Neumann  <sven@gimp.org>

	Applied patch from Stefan attached to bug #387604:

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-preview.[ch]: new files implementing a
	print preview similar to GimpOffsetArea.

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: adds GUI to adjust the 
offsets.


svn path=/trunk/; revision=22959
2007-07-19 20:32:53 +00:00
Sven Neumann e3282e64fe export gimp_get_default_unit() to the PDB.
2006-12-29  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/gimprc.pdb: export gimp_get_default_unit() to
	the PDB.

	* app/pdb/gimprc_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpgimprc_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.c: initialize units the same way the core
	Print Size dialog does it.
2006-12-29 01:35:08 +00:00
Sven Neumann e0e14e8c48 removed unused settings, bumped format version. Store resolution and unit
2006-12-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-settings: removed unused settings, bumped
	format version. Store resolution and unit in the image parasite.

	* plug-ins/print/print-page-layout.c: deal gracefully with no
	default page setup.
2006-12-28 21:48:34 +00:00
Sven Neumann 7bb24cd55b fill rectangles instead of masking the spans.
2006-12-28  Sven Neumann  <sven@gimp.org>

	* print-draw-page.c: fill rectangles instead of masking the
spans.
2006-12-28 18:46:37 +00:00
Sven Neumann 02e18ee00b cache the image size to avoid roundtrips 2006-12-28 17:42:02 +00:00
Sven Neumann 3c7b17251c limit the image size to the printable area.
2006-12-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: limit the image size to
the
	printable area.

	* plug-ins/print/print-draw-page.c: commented out unused code.
2006-12-28 15:40:16 +00:00
Sven Neumann 69f10adc18 plug-ins/print/print-page-layout.c Clarified labels. Removed unused
2006-12-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.h: Clarified labels. Removed unused
caption
	user interface.  Commented out the UI for the info header; it
will
	eventually come back.
2006-12-27 21:10:35 +00:00
Sven Neumann f35565c887 plug-ins/print/print-draw-page.c plug-ins/print/print-page-layout.c don't
2006-12-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.[ch]: don't set the resolution and unit
on
	the image, only initialize the dialog with these values.
2006-12-26 23:29:33 +00:00
Sven Neumann 5b90363803 minor cleanups.
2006-12-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print: minor cleanups.

	* plug-ins/print/print-page-layout.c: cleanup up GUI code.
2006-12-26 13:47:51 +00:00
Sven Neumann 18332dc96a plug-ins/print/print-draw-page.c plug-ins/print/print-page-layout.c
2006-12-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c
	* plug-ins/print/print.c: formatting, minor cleanups,
untabified.
2006-12-25 21:03:27 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
William Skaggs e61505be56 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: implement preview internally,
	assorted other small changes.
2006-06-29 17:58:54 +00:00
William Skaggs d7a6a776dc Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimp/gimpexport.c: if format arg is "silent", export
	without popping a dialog -- saves duplicating code.

	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-draw-page.h
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-page-layout.h
	* plug-ins/print/print-settings.c
	* plug-ins/print/print-settings.h
	* plug-ins/print/print.h:         new files

	* plug-ins/print/Makefile.am
	* plug-ins/print/print.c:  modified

	Progress toward GtkPrintOperation plug-in.  Should already
	be usable, but very ugly.
2006-06-26 22:48:05 +00:00