Commit Graph

10 Commits

Author SHA1 Message Date
Michael Natterer e21935a7b9 Bug 134956 – Curves tool doesn't save free curves
2008-10-09  Michael Natterer  <mitch@gimp.org>

	Bug 134956 – Curves tool doesn't save free curves

	* app/core/gimpmarshal.list
	* app/widgets/gimpsettingsbox.[ch]: add signal "file-dialog-setup"
	and emit it when the export/import file chooser is fully
	constructed. Callbacks can then do additional things to the
	dialog, like adding custom buttons.

	* app/tools/gimpcurvestool.h
	* app/tools/gimplevelstool.h: add boolean member
	"export_old_format".

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c (gimp_*_tool_dialog): connect to
	the settings box' "file-dialog-setup".

	(gimp_*_tool_export_setup): new callback which adds a toggle to
	the file choosers that allows to export to the old format.
	Default saving the new format, we defaulted to the old one before.

	(gimp_*_tool_settings_export): check the "export_old_format"
	boolean and only save the cruft format if it is TRUE; chain up
	otherwise, which generically saves the new format.

	* app/tools/gimplevelstool.c (gimp_levels_tool_settings_import):
	add the same file format detection code as in the curves tool
	so it transparently loads old and new levels files.


svn path=/trunk/; revision=27194
2008-10-09 15:25:59 +00:00
Sven Neumann d462e042ea app/widgets/gimpsettingsbox.c (gimp_settings_box_constructor) removed
2008-07-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsettingsbox.c (gimp_settings_box_constructor)
	* app/widgets/gimpsettingseditor.c (gimp_settings_editor_constructor):
	removed trailing period from tooltip texts.

	* app/config/gimprc-blurbs.h: don't mark USER_MANUAL_ONLINE_BLURB
	for translation, it is not used in the user interface.

svn path=/trunk/; revision=26042
2008-07-03 10:17:19 +00:00
Michael Natterer 029849b7bd make sure the file dialog goes away when the settings box' toplevel is
2008-06-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsettingsbox.c: make sure the file dialog goes
	away when the settings box' toplevel is hidden. Set the
	alternative button order on the file dialog.


svn path=/trunk/; revision=25992
2008-06-25 16:41:15 +00:00
Michael Natterer 4bdf9a6d2a add marshaller BOOLEAN__STRING for the change below.
2008-06-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpmarshal.list: add marshaller BOOLEAN__STRING for
	the change below.

	* app/widgets/gimpsettingsbox.[ch]: add the import/export dialogs
	here. Add a bunch of parameters to new() to be used by the
	dialogs, they are not properties yet. Changed import() and
	export() signals to pass the selected filename and return a
	boolean indicating success.

	* app/tools/gimpimagemaptool-settings.c: remove the dialog code
	here and connect the import/export functions directly to above
	GimpSettingsBox signals.

	* app/tools/gimpimagemaptool.[ch]: remove file dialog member.


svn path=/trunk/; revision=25991
2008-06-25 14:25:32 +00:00
Michael Natterer bda7399b73 add dummy import and export buttons, give the list a minimum size.
2008-06-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsettingseditor.[ch]: add dummy import and export
	buttons, give the list a minimum size.

	* app/widgets/gimpsettingsbox.c: use the correct dialog border.


svn path=/trunk/; revision=25985
2008-06-24 23:12:00 +00:00
Michael Natterer 49d4f3cb35 tweak buttons to look the same and have no spacing between them.
2008-06-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsettingsbox.c (gimp_settings_box_constructor):
	tweak buttons to look the same and have no spacing between them.


svn path=/trunk/; revision=25984
2008-06-24 22:37:39 +00:00
Michael Natterer 5f7733e2e5 move "Add to favorites" out of the menu into a small button showing a '+'
2008-06-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsettingsbox.c (gimp_settings_box_constructor):
	move "Add to favorites" out of the menu into a small button
	showing a '+' icon. Add a separator between the import/export and
	the manage menu items.


svn path=/trunk/; revision=25983
2008-06-24 22:25:51 +00:00
Michael Natterer 60ca4baeb6 made the model column enum public and namespaced it.
2008-06-24  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainercombobox.[ch]: made the model column
	enum public and namespaced it.

	* app/widgets/gimpsettingsbox.c: use the enum value instead of a
	magic number.

	* app/widgets/gimpsettingseditor.c: add a separator between
	recently used settings and favorites.


svn path=/trunk/; revision=25979
2008-06-24 08:42:49 +00:00
Michael Natterer ba7d6020da app/widgets/Makefile.am app/widgets/widgets-types.h skeleton of a widget
2008-06-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpsettingseditor.[ch]: skeleton of a widget to
	manage the list of saved settings for the image map tools. Does
	absolutely nothing yet apart from displaying the list of settings.

	* app/widgets/gimpsettingsbox.[ch]: add "Manage Settings" menu item
	and show a dialog containing the new widget.


svn path=/trunk/; revision=25977
2008-06-22 17:31:25 +00:00
Michael Natterer 8912b68290 app/widgets/Makefile.am app/widgets/widgets-types.h new widget containing
2008-06-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpsettingsbox.[ch]: new widget containing the
	combo and menu button for the image map tool settings plus most of
	their logic. Has "import" and "export" signals that might go away
	if I figure a way to nicely abstract that. Contains some minor
	bugfixes and cosmetic improvements compared to the old code.

	* app/tools/gimpimagemaptool.[ch]
	* app/tools/gimpimagemaptool-settings.[ch]: changed accordingly,
	mostly removal of lots of code that is now in the widget.


svn path=/trunk/; revision=25943
2008-06-13 11:56:46 +00:00