Commit Graph

9973 Commits

Author SHA1 Message Date
Sven Neumann dc7a068fdc app/widgets/gimppreviewrenderer.c simplified drawing code to a point where
2003-09-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreviewrenderer.c
	* app/widgets/gimppreviewrenderervectors.c: simplified drawing
	code to a point where it becomes readable again. Draw centered
	into the draw_area, using the size of the renderer.
2003-09-30 12:06:58 +00:00
Hasbullah Bin Pit 5df103caca Added Translation by MIMOS Open Source Development Group <ismas@mimos.my>
2003-09-30  Hasbullah Bin Pit <sebol@ikhlas.com>

        * ms.po: Added Translation by
                MIMOS Open Source Development Group <ismas@mimos.my>
2003-09-30 04:21:07 +00:00
Michael Natterer d0e1c1c661 cleanup.
2003-09-30  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintcore-stroke.c: cleanup.

	(gimp_paint_core_stroke_boundary): don't push a separate undo
	for each part of the boundary.

	* app/core/gimpdrawable-stroke.[ch]: added empty stub
	gimp_drawable_stroke_boundary(). Changed
	gimp_drawable_stroke_vectors() to take the GimpStrokeOptions as
	second parameter.

	* app/core/gimpchannel.c (gimp_channel_stroke): use it. No need
	to push an undo group around gimp_paint_core_stroke_boundary().

	* app/vectors/gimpvectors.c: changed accordingly.

	* app/widgets/gimpselectioneditor.[ch]: added a GimpStrokeItemFunc
	pointer and use it for stroking.

	* app/gui/edit-commands.[ch] (edit_stroke_selection): a
	GimpStrokeItemFunc which strokes the selection using the
	stroke-dialog.

	* app/gui/dialogs-constructors.c: use it for the selection editor.
2003-09-30 02:44:17 +00:00
Simon Budig fba6a1a77a replaced gimp_scan_convert_set_resolution with
2003-09-30  Simon Budig  <simon@gimp.org>

	* app/core/gimpscanconvert.[ch]: replaced
	gimp_scan_convert_set_resolution with
	gimp_scan_convert_set_pixel_ratio where you specify the pixel
	ratio (width/height). Also made the stroke-width consistent
	with other places in the gimp by using the Y-Resolution as
	the base for the calculations.

	* app/core/gimpdrawable-stroke.c: changed accordingly.
2003-09-30 01:03:25 +00:00
Sven Neumann b05d950f15 updated.
2003-09-30  Sven Neumann  <sven@gimp.org>

	* NEWS: updated.
2003-09-30 00:53:27 +00:00
Sven Neumann 6cf6db9ff1 fixed typo 2003-09-30 00:35:15 +00:00
Sven Neumann f70db19900 app/app-docs.sgml app/app-sections.txt updated.
2003-09-30  Sven Neumann  <sven@gimp.org>

	* app/app-docs.sgml
	* app/app-sections.txt
	* app/app.types: updated.
2003-09-30 00:15:20 +00:00
Sven Neumann f4c7ef9914 app/core/gimpdrawable-stroke.c app/core/gimpstrokeoptions.[ch] removed the
2003-09-30  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-stroke.c
	* app/core/gimpstrokeoptions.[ch]
	* app/gui/stroke-dialog.c: removed the resolution property again.
	The object should stay resolution independent. The resolution can
	be taken from the image it is used with.
2003-09-30 00:15:00 +00:00
Simon Budig 3761462869 Added support for setting X- and Y-resolution for stroking paths. The
2003-09-30  Simon Budig  <simon@gimp.org>

	* app/core/gimpscanconvert.[ch]: Added support for setting
	X- and Y-resolution for stroking paths. The width of a path
	has to be given in pixels, using X-resolution.

	* app/core/gimpstrokeoptions.[ch]: Added "resolution" property,
	so that conversion between various width-units can happen.
	Should be set to the target images X-resolution.

	* app/gui/stroke-dialog.c: set the resolution of the options.

	* app/core/gimpdrawable-stroke.c: Use that stuff, cleanup.
2003-09-29 23:45:06 +00:00
Sven Neumann 489cff5303 app/core/Makefile.am new files with preview code factored out of
2003-09-29  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/gimpitem-preview.[ch]: new files with preview code
	factored out of GimpDrawable.

	* app/core/gimpdrawable-preview.[ch]: code removed here.

	* app/core/gimpdrawable.c
	* app/core/gimpitem.c: let GimpItem implement
	GimpViewable::get_preview_size and GimpViewable::get_popup_size.

	* app/widgets/gimppreviewrenderervectors.c: simple scale to the
	renderer's size; it already respects the aspect ratio.
2003-09-29 23:14:28 +00:00
Michael Natterer 6a7a69ee91 connect to the "add" and "remove" signals of the current tool_option's
2003-09-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptooloptionseditor.c: connect to the "add" and
	"remove" signals of the current tool_option's presets container
	and set the "Restore" and "Delete" buttons insensitive when there
	are no saved tool options. Also show the "Enter Name" dialog
	directly instead of popping up a menu with only one item.
2003-09-29 22:56:46 +00:00
Michael Natterer dedbe33b8d new function for stuff which needs to be done once, not on every
2003-09-30  Michael Natterer  <mitch@gimp.org>

	* app/gui/tool-options-menu.[ch] (tool_options_menu_setup): new
	function for stuff which needs to be done once, not on every
	tool_options_menu_update(). Cleanup.

	* app/gui/menus.c: register it as setup_func of <ToolOptions>.

	* app/gui/tool-options-commands.c: removed the "Reset"
	implementations and activate GimpToolOptionsEditor's buttons
	accordingly.

	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_DELETE.

	* app/widgets/gimptooloptionseditor.[ch]: moved "Reset"
	implementations to this file. Added "Delete" button. Pop up the
	"Save", "Restore" and "Delete" submenus of the <ToolOptions>
	item_factory when the resp. buttons are clicked.
2003-09-29 22:23:44 +00:00
Michael Natterer 695fb9822e follow tool_options file moving/adding.
2003-09-29  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: follow tool_options file moving/adding.
2003-09-29 20:26:49 +00:00
Michael Natterer d1ba870458 added a GimpContainer of tool options presets.
2003-09-29  Michael Natterer  <mitch@gimp.org>

	* app/core/gimptoolinfo.[ch]: added a GimpContainer of tool
	options presets.

	* app/core/gimptooloptions.[ch] (gimp_tool_options_set_property):
	silently accept setting the *same* tool_info again.

	(gimp_tool_options_build_filename): is public now.

	* app/tools/gimp-tools.c (gimp_tools_restore,save): load and save
	the presets container.

	* app/gui/tool-options-dialog.[ch]: removed.

	* app/gui/tool-options-commands.[ch]
	* app/gui/tool-options-menu.[ch]: new files implementing a menu
	for the new GimpToolOptionsEditor widget. Has submenus for saving,
	loading, and deleting tool options to/from the
	tool_info->options_presets container.

	* app/gui/Makefile.am
	* app/gui/dialogs-constructors.c
	* app/gui/menus.c: changed accordingly.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimptooloptionseditor.[ch]: the tool options dialog
	as proper widget. The "Load" and "Save" buttons still do the same
	stuff as before. Will make them use the new presets since making
	them do something useful was the reason for this whole change.

	* app/widgets/gimphelp-ids.h: added missing help IDs for the tool
	options dialog.
2003-09-29 20:26:09 +00:00
Michael Natterer 017d183968 Fixed handling of G_PARAM_CONSTRUCT_ONLY properties:
2003-09-29  Michael Natterer  <mitch@gimp.org>

	Fixed handling of G_PARAM_CONSTRUCT_ONLY properties:

	* app/config/gimpconfig.c (gimp_config_iface_duplicate): build
	a GParameter array of G_PARAM_CONSTRUCT_ONLY properties and
	use g_object_newv() instead of g_object_new() to create the
	copy.

	* app/config/gimpconfig-utils.c
	(gimp_config_copy_properties)
	(gimp_consif_reset_properties): don't try to copy/reset
	G_PARAM_CONSTRUCT_ONLY properties because it is impossible.

	(gimp_config_connect_notify): ditto. Also don't try to read
	from unreadable or write to unwritable properties.
2003-09-29 18:29:11 +00:00
Michael Natterer 2b57062c01 minor cleanups.
2003-09-29  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcroptool.c: minor cleanups.

	(gimp_crop_tool_modifier_key): s/crop-type/crop-mode/. Fixes tool
	toggling which was broken after my GimpCropMode change.

	(crop_tool_crop_image): replaced parameter "gboolean crop_layers"
	by "GimpCropMode crop_mode". Makes its callers simpler and more
	readable.
2003-09-29 18:06:15 +00:00
Simon Budig dada777a97 Fixed a bad crash (Thanks to Sven for spotting that). Minor cleanups.
2003-09-29  Simon Budig  <simon@gimp.org>

	* app/widgets/gimppreviewrenderervectors.c: Fixed a bad
	crash (Thanks to Sven for spotting that). Minor cleanups.
2003-09-29 16:57:24 +00:00
Simon Budig 02f375b8d4 Made the preview respect the aspect ratio and resolutions of the image.
2003-09-29  Simon Budig  <simon@gimp.org>

	* app/widgets/gimppreviewrenderervectors.c: Made the preview
	respect the aspect ratio and resolutions of the image. There
	apparently still is an off-by-one error in it.

	* app/tools/gimpvectortool.c: (Hopefully) fixed a crash when a new
	image gets opened with the vectors tool active.
2003-09-29 16:35:30 +00:00
Marco Ciampa 6f0619705d Updated italian translation. 2003-09-29 16:07:32 +00:00
Marco Ciampa a28d33eef9 Updated italian translation. 2003-09-29 15:56:12 +00:00
Sven Neumann 9b3f8b0673 made draw a virtual method of GimpPreviewRenderer. Draw the border in the
2003-09-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreviewrenderer.[ch]: made draw a virtual method
	of GimpPreviewRenderer. Draw the border in the wrapper function.

	* app/widgets/gimppreviewrenderervectors.c: implement
	GimpPreviewRenderer::draw instead of GimpPreviewRenderer::render.
2003-09-29 13:35:59 +00:00
Simon Budig eb489c44c4 Made these widgets show a preview of the vectors object. Does not work
2003-09-29  Simon Budig  <simon@gimp.org>

	* app/widgets/gimppreviewrenderervectors.c: Made these widgets
	show a preview of the vectors object. Does not work everywhere
	right now, also most probably has scaling issues for non-square
	images.

	* app/tools/gimpdrawtool.c: Fixed Svens fix.
2003-09-29 11:48:15 +00:00
Sven Neumann 55a0c4c960 removed "dash-unit" property and renamed "width-unit" to "unit".
2003-09-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpstrokeoptions.[ch]: removed "dash-unit" property and
	renamed "width-unit" to "unit".

	* app/core/gimpdrawable-stroke.c
	* app/widgets/gimpstrokeeditor.c: changed accordingly.
2003-09-29 11:13:21 +00:00
Marco Ciampa fdad904833 Updated italian translation. 2003-09-29 09:57:27 +00:00
Ville Pätsi 4353008d63 blarg. 2003-09-28 22:38:54 +00:00
Simon Budig 4fce98042d Fixed glitch to enable dashed strokes with width < 1.0.
2003-09-29  Simon Budig  <simon@gimp.org>

	* app/core/gimpscanconvert.c: Fixed glitch to enable dashed
	strokes with width < 1.0.

	* app/core/gimpdrawable-stroke.c: Actually pass the miter
	limit to gimp_scan_convert_stroke ().
2003-09-28 22:33:08 +00:00
Ville Pätsi b823aa0d5c themes/Default/images/stock-join-bevel-16.png fixed 2003-09-28 22:21:34 +00:00
Sven Neumann 14d3b01418 as a temporary hack, let the Stroke Dialog remember the last used stroke
2003-09-28  Sven Neumann  <sven@gimp.org>

	* app/gui/stroke-dialog.c (stroke_dialog_new): as a temporary hack,
	let the Stroke Dialog remember the last used stroke options.
2003-09-28 21:20:28 +00:00
Sven Neumann 36e57e4bbb also duplicate vectors and grid.
2003-09-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-duplicate.c (gimp_image_duplicate): also
	duplicate vectors and grid.
2003-09-28 20:47:14 +00:00
Ville Pätsi 856f2ece54 gimp.spec.in: disable stripping 2003-09-28 20:16:32 +00:00
Sven Neumann 30a4f72166 plugged memleaks and added some sanity checks.
2003-09-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimpscanconvert.c (gimp_scan_convert_free)
	(gimp_scan_convert_finish): plugged memleaks and added some sanity
	checks.

	* app/base/pixel-region.c
	* app/core/gimpdrawable-preview.c: removed trailing whitespace.

	* app/tools/gimpdrawtool.c (gimp_draw_tool_on_vectors_curve):
	gimp_stroke_nearest_point_get() doesn't set cur_pos when there are
	no strokes; don't use the uninitialized variable.
2003-09-28 20:13:59 +00:00
Ville Pätsi 515dfaaa7b themes/Default/images/stock-join-round-16.png
* themes/Default/images/stock-join-round-16.png
        * themes/Default/images/stock-join-miter-16.png
        * themes/Default/images/stock-join-bevel-16.png
        * themes/Default/images/stock-cap-square-16.png
        * themes/Default/images/stock-cap-round-16.png
        * themes/Default/images/stock-cap-butt-16.png: Changed these icons.
2003-09-28 17:32:41 +00:00
Sven Neumann 049b4ad011 app/app-docs.sgml app/app-sections.txt updated.
2003-09-28  Sven Neumann  <sven@gimp.org>

	* app/app-docs.sgml
	* app/app-sections.txt
	* app/app.types: updated.
2003-09-28 16:25:52 +00:00
Sven Neumann b80427e6c2 fixed inline documentation.
2003-09-28  Sven Neumann  <sven@gimp.org>

	* libgimpmath/gimpvector.c: fixed inline documentation.
2003-09-28 12:41:51 +00:00
Jan Morén 6f8fd54fab Updated Swedish translation.
2003-09-28  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2003-09-28 09:40:57 +00:00
Simon Budig 7cc6ed6dd5 Fabian Franz <debian@fabian-franz.de>
2003-09-28  Simon Budig  <simon@gimp.org>
            Fabian Franz  <debian@fabian-franz.de>

	Ok, this time for real...   :-)

	* plug-ins/common/animoptimize.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/smooth_palette.c
	* plug-ins/common/tile.c: Fixed Undo issues. Plugins creating
	new images should create an empty undo history. Sprinkeling
	gimp_image_enable_undo() at the end of the plugins operations
	does the trick. It makes sense to do this *before* you add
	a display to the image, otherwise the UI gets out of sync.
2003-09-28 05:35:33 +00:00
Simon Budig 07bfd081e2 Oops, forgot to add my name to the file-header.
2003-09-28  Simon Budig  <simon@gimp.org>

	* app/widgets/gimppreviewrenderervectors.c: Oops, forgot to
	add my name to the file-header.
2003-09-28 04:04:17 +00:00
Simon Budig 7c3b455924 "The last of the Oldenburg commits"
2003-09-28  Simon Budig  <simon@gimp.org>

	"The last of the Oldenburg commits"

	Thanks to the team of the Oldenburg Linux Developers Meeting 2003
	for providing a nice hacking environment.

	* app/vectors/gimpvectors.c: Add a default stock_id.

	* app/widgets/gimppreviewrenderervectors.[ch]: New Widget
	to render the preview of vectors. Just renders a stock item
	now, since I was unable to figure out how to properly draw
	in the GtkWidget.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h: Changed accordingly.

	* app/widgets/gimppreviewrenderer-utils.c: Use the new widget.

	* app/core/gimpscanconvert.c
	* app/core/gimpdrawable-stroke.c: Use higher prescision for
	libart-stroking vectors. Reduces artefacts.

	* app/pdb/paths_cmds.c
	* libgimp/gimppaths_pdb.c: Regenerated after Tors changes.
2003-09-28 04:00:50 +00:00
Tor Lillqvist 9bbb61d96d Fix some documentation strings.
2003-09-28  Tor Lillqvist  <tml@iki.fi>

	* tools/pdbgen/pdb/paths.pdb: Fix some documentation strings.
2003-09-28 02:12:16 +00:00
Duarte Loreto e4060d2133 Updated Portuguese translation.
2003-09-28  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.
2003-09-28 01:09:23 +00:00
Duarte Loreto 50f76fd3e2 Updated Portuguese translation.
2003-09-27  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.
2003-09-28 00:48:08 +00:00
Sven Neumann 8e613a455d use the GIMP_COORDINATES_CHAINBUTTON() macro instead of trying to get it
2003-09-28  Sven Neumann  <sven@gimp.org>

	* app/gui/resolution-calibrate-dialog.c (resolution_calibrate_ok):
	use the GIMP_COORDINATES_CHAINBUTTON() macro instead of trying to
	get it using a hardcoded and misspelled identifier.
2003-09-27 23:19:43 +00:00
David Odin e6cd5255d0 Removed tabs and trailing whitespaces. 2003-09-27 23:02:39 +00:00
Michael Natterer 079101d656 use a much simpler and shorter method of determining how to transform the
2003-09-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c (gimp_image_transform_temp_buf): use a much
	simpler and shorter method of determining how to transform the
	TempBuf.
2003-09-27 22:40:18 +00:00
Michael Natterer 8060800b9d some more small cleanups.
2003-09-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-bucket-fill.c
	(gimp_drawable_bucket_fill_full): some more small cleanups.
2003-09-27 22:33:04 +00:00
David Odin 6ff421a979 added documentation and fixed small typos. 2003-09-27 22:22:59 +00:00
Michael Natterer f5b98a4822 set the transformed color's alpha to OPAQUE so it works with
2003-09-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-bucket-fill.c
	(gimp_drawable_bucket_fill_full): set the transformed color's
	alpha to OPAQUE so it works with color_region().

	* app/core/gimpdrawable-stroke.c (gimp_drawable_stroke_vectors):
	no need to transform the color into a newly allocated array,
	simply use guchar[MAX_CHANNELS] instead.

	Cleaned up both functions to use RED_PIX, GREEN_PIX and BLUE_PIX
	instead of 0, 1 and 2.
2003-09-27 20:42:31 +00:00
Michael Natterer ab34b3ee94 added new functions color_region_mask() which works like color_region()
2003-09-27  Michael Natterer  <mitch@gimp.org>

	* app/paint-funcs/paint-funcs.[ch]: added new functions
	color_region_mask() which works like color_region() but takes an
	additional maskPR parameters and pattern_region() which fills
	destPR with a TempBuf of *matching color depth*.

	* app/paint-funcs/paint-funcs-generic.h: added corresponding
	color_pixels_mask() and pattern_pixels().

	* app/core/gimpimage.[ch] (gimp_image_transform_temp_buf): new
	function which transforms a TempBuf to a specified drawable's
	color space.

	* app/core/gimpdrawable-bucket-fill.c: the functions were factored
	out here. Removed them and use the new stuff.

	* app/core/core-enums.[ch]: added enum GimpStrokeStyle which can
	be one of { SOLID, PATTERN }.

	* app/core/gimpstrokeoptions.[ch]: added "GimpStrokeStyle style"
	property, cleanup.

	* app/core/gimpdrawable-stroke.c: honor the new "style" property
	and call the new color_region_mask() and pattern_region()
	functions accordingly, cleanup.

	* app/widgets/gimpstrokeeditor.c: added a GUI for the stroke
	style. Ugly but works.

	* app/gui/stroke-dialog.c: undefine "foreground" and "pattern" and
	set the user context as parent context so we get these properties
	from the global settings.
2003-09-27 20:04:07 +00:00
Sven Neumann fcb29af719 themes/Default/images/Makefile.am
2003-09-27  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-cap-[butt|round|square]-16.png
	* themes/Default/images/stock-join-[miter|round|bevel]-16.png:
	added placeholders for GimpCapStyle and GimpJoinStyle icons.

	* libgimpwidgets/gimpstock.[ch]: register the new icons.

	* app/widgets/gimpstrokeeditor.c: made "options" a construct-only
	property of the editor and create the widgets in a constructor
	method. Use stock boxes with the new icons.

	* app/gui/stroke-dialog.c (stroke_dialog_new): let the Cancel
	button destroy the dialog instead of itself.
2003-09-27 19:05:13 +00:00
Christian Neumair fb5b3834d9 Updated German translation. 2003-09-27 18:44:40 +00:00