mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
a018b06a96
2003-04-03 Michael Natterer <mitch@gimp.org> Added preliminary support for image templates. Not finished yet. Addresses bug #96059. Now we need a volunteer to create a nice collection of default templates... * app/core/Makefile.am * app/core/core-types.h * app/core/gimptemplate.[ch] * app/core/gimp-templates.[ch]: new files implementing the new GimpTemplate object and the list of available image templates. * app/core/gimp.[ch]: keep a container of templates around. * app/core/gimpimage-new.[ch]: ported to use GimpTemplate. Removed struct GimpImageNewValues. * app/widgets/gimpcontainermenuimpl.c: changed to show the "(none)" item for a NULL selection also, not only for an empty container. * app/widgets/gimppropwidgets.[ch]: added gimp_prop_size_entry_connect() which connects an externally created GimpSizeEntry to object properties. Fixed the size entry code to actually work. * app/gui/image-menu.c * app/gui/file-commands.[ch]: added "Save as Template" which creates a new template from any image's properties. * app/gui/file-new-dialog.c: use prop_widgets and GimpTemplate. Offer the available templates in a menu at the top of the dialog.
77 lines
2.8 KiB
C
77 lines
2.8 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __FILE_COMMANDS_H__
|
|
#define __FILE_COMMANDS_H__
|
|
|
|
|
|
void file_new_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_open_by_extension_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_open_type_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_open_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_last_opened_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_save_by_extension_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_type_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_as_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_a_copy_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_template_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_revert_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_pref_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_close_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_quit_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_file_open_dialog (Gimp *gimp,
|
|
const gchar *uri);
|
|
|
|
|
|
#endif /* __FILE_COMMANDS_H__ */
|