mirror of https://github.com/GNOME/gimp.git
app/gimpunit.c all libgimp headers are included via gimp.h or gimpui.h, so
2000-05-31 Michael Natterer <mitch@gimp.org> * app/gimpunit.c * libgimp/*: all libgimp headers are included via gimp.h or gimpui.h, so include <gtk/gtk.h> there and in the *.c files. Various cleanups.
This commit is contained in:
parent
a6b720842f
commit
804af727f6
|
@ -1,3 +1,10 @@
|
|||
2000-05-31 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gimpunit.c
|
||||
* libgimp/*: all libgimp headers are included via gimp.h or
|
||||
gimpui.h, so include <gtk/gtk.h> there and in the *.c files.
|
||||
Various cleanups.
|
||||
|
||||
Wed May 31 00:43:09 CEST 2000 Stanislav Brabec <utx@penguin.cz>
|
||||
|
||||
* tips/gimp_tips.cs.txt: Updated translation.
|
||||
|
|
|
@ -20,22 +20,27 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "unitrc.h"
|
||||
|
||||
#include "app_procs.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
/* NOTE:
|
||||
*
|
||||
* one of our header files is in libgimp/ (see the note there)
|
||||
*/
|
||||
#include "libgimp/gimpunit.h"
|
||||
|
||||
#include "unitrc.h"
|
||||
|
||||
#include "app_procs.h"
|
||||
#include "gimprc.h"
|
||||
#include "libgimp/gimpintl.h"
|
||||
#include "libgimp/gimpenv.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
||||
/* internal structures */
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -20,22 +20,27 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "unitrc.h"
|
||||
|
||||
#include "app_procs.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
/* NOTE:
|
||||
*
|
||||
* one of our header files is in libgimp/ (see the note there)
|
||||
*/
|
||||
#include "libgimp/gimpunit.h"
|
||||
|
||||
#include "unitrc.h"
|
||||
|
||||
#include "app_procs.h"
|
||||
#include "gimprc.h"
|
||||
#include "libgimp/gimpintl.h"
|
||||
#include "libgimp/gimpenv.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
||||
/* internal structures */
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>GIMP_MICRO_VERSION</NAME>
|
||||
#define GIMP_MICRO_VERSION (22)
|
||||
#define GIMP_MICRO_VERSION (23)
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>GIMP_VERSION</NAME>
|
||||
#define GIMP_VERSION "1.1.22"
|
||||
#define GIMP_VERSION "1.1.23"
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>GIMP_CHECK_VERSION</NAME>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <locale.h>
|
||||
|
@ -47,6 +48,8 @@
|
|||
#define WAIT_ANY -1
|
||||
#endif
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
#include "gimpsignal.h"
|
||||
#else
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpchainbutton.h"
|
||||
|
||||
#include "pixmaps/chain.xpm"
|
||||
|
||||
static gchar **gimp_chain_xpm[] =
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#ifndef __GIMP_CHAIN_BUTTON_H__
|
||||
#define __GIMP_CHAIN_BUTTON_H__
|
||||
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
@ -80,16 +76,15 @@ struct _GimpChainButtonClass
|
|||
};
|
||||
|
||||
|
||||
GtkType gimp_chain_button_get_type (void);
|
||||
GtkWidget* gimp_chain_button_new (GimpChainPosition position);
|
||||
void gimp_chain_button_set_active (GimpChainButton *gcb,
|
||||
gboolean is_active);
|
||||
gboolean gimp_chain_button_get_active (GimpChainButton *gcb);
|
||||
GtkType gimp_chain_button_get_type (void);
|
||||
GtkWidget * gimp_chain_button_new (GimpChainPosition position);
|
||||
void gimp_chain_button_set_active (GimpChainButton *gcb,
|
||||
gboolean is_active);
|
||||
gboolean gimp_chain_button_get_active (GimpChainButton *gcb);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __CHAIN_BUTTON_H__ */
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimp.h"
|
||||
#include "gimpcolorbutton.h"
|
||||
#include "gimplimits.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#ifndef __GIMP_COLOR_BUTTON_H__
|
||||
#define __GIMP_COLOR_BUTTON_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
@ -53,22 +51,22 @@ struct _GimpColorButtonClass
|
|||
};
|
||||
|
||||
|
||||
GtkType gimp_color_button_get_type (void);
|
||||
GtkWidget* gimp_color_button_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
guchar *color,
|
||||
gint bpp);
|
||||
GtkWidget* gimp_color_button_double_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
gdouble *color,
|
||||
gint bpp);
|
||||
void gimp_color_button_update (GimpColorButton *gcb);
|
||||
GtkType gimp_color_button_get_type (void);
|
||||
GtkWidget * gimp_color_button_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
guchar *color,
|
||||
gint bpp);
|
||||
GtkWidget * gimp_color_button_double_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
gdouble *color,
|
||||
gint bpp);
|
||||
void gimp_color_button_update (GimpColorButton *gcb);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __COLOR_BUTTON_H__ */
|
||||
|
|
|
@ -22,29 +22,35 @@
|
|||
#include <glib.h>
|
||||
#include <gmodule.h>
|
||||
|
||||
#include "gimpparasite.h"
|
||||
#include <libgimp/gimpparasite.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look at the html documentation */
|
||||
|
||||
|
||||
typedef void (* GimpColorDisplayInit) (void);
|
||||
typedef gpointer (* GimpColorDisplayNew) (gint type);
|
||||
typedef gpointer (* GimpColorDisplayClone) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayConvert) (gpointer cd_ID,
|
||||
guchar *buf,
|
||||
gint width,
|
||||
gint height,
|
||||
gint bpp,
|
||||
gint bpl);
|
||||
typedef void (* GimpColorDisplayDestroy) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayFinalize) (void);
|
||||
typedef void (* GimpColorDisplayLoadState) (gpointer cd_ID,
|
||||
GimpParasite *state);
|
||||
typedef GimpParasite * (* GimpColorDisplaySaveState) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayConfigure) (gpointer cd_ID,
|
||||
GFunc ok_func,
|
||||
gpointer ok_data,
|
||||
GFunc cancel_func,
|
||||
gpointer cancel_data);
|
||||
typedef void (* GimpColorDisplayConfigureCancel) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayInit) (void);
|
||||
typedef gpointer (* GimpColorDisplayNew) (gint type);
|
||||
typedef gpointer (* GimpColorDisplayClone) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayConvert) (gpointer cd_ID,
|
||||
guchar *buf,
|
||||
gint width,
|
||||
gint height,
|
||||
gint bpp,
|
||||
gint bpl);
|
||||
typedef void (* GimpColorDisplayDestroy) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayFinalize) (void);
|
||||
typedef void (* GimpColorDisplayLoadState) (gpointer cd_ID,
|
||||
GimpParasite *state);
|
||||
typedef GimpParasite * (* GimpColorDisplaySaveState) (gpointer cd_ID);
|
||||
typedef void (* GimpColorDisplayConfigure) (gpointer cd_ID,
|
||||
GFunc ok_func,
|
||||
gpointer ok_data,
|
||||
GFunc cancel_func,
|
||||
gpointer cancel_data);
|
||||
typedef void (* GimpColorDisplayConfigureCancel) (gpointer cd_ID);
|
||||
|
||||
typedef struct _GimpColorDisplayMethods GimpColorDisplayMethods;
|
||||
|
||||
|
@ -73,4 +79,9 @@ gboolean gimp_color_display_register (const gchar *name,
|
|||
G_MODULE_EXPORT
|
||||
gboolean gimp_color_display_unregister (const gchar *name);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_COLOR_DISPLAY_H__ */
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
#ifndef __COLOR_SELECTOR_H__
|
||||
#define __COLOR_SELECTOR_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look at the html documentation */
|
||||
|
||||
|
||||
|
@ -56,6 +60,7 @@ struct _GimpColorSelectorMethods
|
|||
|
||||
typedef gpointer GimpColorSelectorID;
|
||||
|
||||
|
||||
#ifndef __COLOR_NOTEBOOK_C__
|
||||
|
||||
/* Bypass when compiling the source for these functions.
|
||||
|
@ -66,10 +71,15 @@ GimpColorSelectorID gimp_color_selector_register (const gchar *name,
|
|||
|
||||
typedef void (* GimpColorSelectorFinishedCB) (gpointer finished_data);
|
||||
|
||||
gboolean gimp_color_selector_unregister (GimpColorSelectorID id,
|
||||
gboolean gimp_color_selector_unregister (GimpColorSelectorID id,
|
||||
GimpColorSelectorFinishedCB finished_cb,
|
||||
gpointer finished_data);
|
||||
|
||||
#endif /* !__COLOR_NOTEBOOK_C__ */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __COLOR_SELECTOR_H__ */
|
||||
|
|
|
@ -20,6 +20,13 @@
|
|||
#ifndef __GIMPCOLORSPACE_H__
|
||||
#define __GIMPCOLORSPACE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* Color conversion routines */
|
||||
|
||||
void gimp_rgb_to_hsv (gint *red /* returns hue */,
|
||||
|
@ -65,4 +72,9 @@ void gimp_hsv_to_rgb4 (guchar *rgb,
|
|||
(g) * INTENSITY_GREEN + \
|
||||
(b) * INTENSITY_BLUE + 0.001)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPCOLORSPACE_H__ */
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
/* some compatibility defines for older plug-ins */
|
||||
|
||||
#ifndef GIMP_DISABLE_COMPAT_H
|
||||
|
@ -77,6 +78,7 @@ extern "C" {
|
|||
|
||||
#endif /* GIMP_DISABLE_COMPAT_H */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -19,7 +19,10 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#include "libgimp/gimpdialog.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpdialog.h"
|
||||
|
||||
#include "pixmaps/wilber.xpm"
|
||||
|
||||
|
|
|
@ -19,18 +19,19 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_DIALOG_H__
|
||||
#define __GIMP_DIALOG_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimphelpui.h"
|
||||
#include "gimpunit.h"
|
||||
#include <libgimp/gimphelpui.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
GtkWidget * gimp_dialog_new (const gchar *title,
|
||||
const gchar *wmclass_name,
|
||||
GimpHelpFunc help_func,
|
||||
|
@ -83,24 +84,9 @@ void gimp_dialog_create_action_area (GtkDialog *dialog,
|
|||
void gimp_dialog_create_action_areav (GtkDialog *dialog,
|
||||
va_list args);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_DIALOG_H__ */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ extern "C" {
|
|||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
gchar * gimp_directory (void);
|
||||
gchar * gimp_personal_rc_file (gchar *basename);
|
||||
gchar * gimp_data_directory (void);
|
||||
|
@ -44,6 +45,7 @@ void gimp_path_free (GList *path);
|
|||
|
||||
gchar * gimp_path_get_user_writable_dir (GList *path);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -23,13 +23,15 @@
|
|||
#ifndef __GIMP_EXPORT_H__
|
||||
#define __GIMP_EXPORT_H__
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef enum {
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
CAN_HANDLE_RGB = 1 << 0,
|
||||
CAN_HANDLE_GRAY = 1 << 1,
|
||||
CAN_HANDLE_INDEXED = 1 << 2,
|
||||
|
@ -51,8 +53,9 @@ GimpExportReturnType gimp_export_image (gint32 *image_ID,
|
|||
gchar *format_name,
|
||||
GimpExportCapabilities capabilities);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif
|
||||
#endif /* __GIMP_EXPORT_H__ */
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpfileselection.h"
|
||||
|
||||
#include "libgimp-intl.h"
|
||||
|
@ -37,6 +39,7 @@
|
|||
#include "pixmaps/yes.xpm"
|
||||
#include "pixmaps/no.xpm"
|
||||
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
# ifndef S_ISDIR
|
||||
# define S_ISDIR(m) ((m) & _S_IFDIR)
|
||||
|
|
|
@ -23,12 +23,13 @@
|
|||
#ifndef __GIMP_FILE_SELECTION_H__
|
||||
#define __GIMP_FILE_SELECTION_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_FILE_SELECTION (gimp_file_selection_get_type ())
|
||||
#define GIMP_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_FILE_SELECTION, GimpFileSelection))
|
||||
#define GIMP_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_SELECTION, GimpFileSelectionClass))
|
||||
|
@ -79,6 +80,7 @@ gchar* gimp_file_selection_get_filename (GimpFileSelection *gfs);
|
|||
void gimp_file_selection_set_filename (GimpFileSelection *gfs,
|
||||
gchar *filename);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* gimphelp.c
|
||||
* gimphelp_pdb.c
|
||||
* Copyright (C) 2000 Michael Natterer <mitch@gimp.org>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_HELP_UI_H__
|
||||
#define __GIMP_HELP_UI_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef void (* GimpHelpFunc) (gchar *help_data);
|
||||
|
||||
void gimp_help_init (void);
|
||||
|
@ -54,13 +56,9 @@ void gimp_help_set_help_data (GtkWidget *widget,
|
|||
/* activate the context help inspector */
|
||||
void gimp_context_help (void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_HELP_UI_H__ */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||
*
|
||||
* libgimp-intl.h
|
||||
* gimpintl.h
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -18,15 +18,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMPINTL_H__
|
||||
#define __GIMPINTL_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <locale.h>
|
||||
|
||||
/* Copied from gnome-i18n.h by Tom Tromey <tromey@creche.cygnus.com> *
|
||||
* Heavily modified by Daniel Egger <Daniel.Egger@t-online.de> *
|
||||
* So be sure to hit me instead of him if something is wrong here */
|
||||
/* Copied from gnome-i18n.h by Tom Tromey <tromey@creche.cygnus.com>
|
||||
* Heavily modified by Daniel Egger <Daniel.Egger@t-online.de>
|
||||
* So be sure to hit me instead of him if something is wrong here
|
||||
*/
|
||||
|
||||
#ifndef LOCALEDIR
|
||||
#define LOCALEDIR g_strconcat (gimp_data_directory (), \
|
||||
|
|
|
@ -19,9 +19,11 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_LIMITS_H__
|
||||
#define __GIMP_LIMITS_H__
|
||||
|
||||
|
||||
/* pixel sizes
|
||||
*/
|
||||
#define GIMP_MIN_IMAGE_SIZE 1
|
||||
|
@ -42,4 +44,5 @@
|
|||
#define GIMP_CHECK_DARK 0.4 /* corresponds to GRAY_CHECKS as */
|
||||
#define GIMP_CHECK_LIGHT 0.6 /* defined in app/image_render.c */
|
||||
|
||||
|
||||
#endif /* __GIMP_LIMITS_H__ */
|
||||
|
|
|
@ -20,19 +20,21 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMPMATH_H__
|
||||
#define __GIMPMATH_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <float.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
/* Some portability enhancing stuff. For use both by the gimp app
|
||||
* as well as plug-ins and modules.
|
||||
*
|
||||
|
@ -90,8 +92,9 @@ extern "C" {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPMATH_H__ */
|
||||
#endif /* __GIMPMATH_H__ */
|
||||
|
|
|
@ -20,9 +20,12 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpmath.h"
|
||||
#include "gimpmatrix.h"
|
||||
|
||||
|
||||
#define EPSILON 1e-6
|
||||
|
||||
|
||||
|
|
|
@ -23,12 +23,11 @@
|
|||
#ifndef __GIMP_MATRIX_H__
|
||||
#define __GIMP_MATRIX_H__
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
typedef gdouble GimpMatrix3[3][3];
|
||||
typedef gdouble GimpMatrix4[4][4];
|
||||
|
||||
|
@ -68,8 +67,9 @@ void gimp_matrix4_to_deg (GimpMatrix4 matrix,
|
|||
gdouble *b,
|
||||
gdouble *c);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_MATRIX_H__ */
|
||||
#endif /* __GIMP_MATRIX_H__ */
|
||||
|
|
|
@ -16,69 +16,66 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_MENU_H__
|
||||
#define __GIMP_MENU_H__
|
||||
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
|
||||
typedef gint (*GimpConstraintFunc) (gint32 image_id,
|
||||
gint32 drawable_id,
|
||||
gpointer data);
|
||||
typedef void (*GimpMenuCallback) (gint32 id,
|
||||
gpointer data);
|
||||
typedef gint (* GimpConstraintFunc) (gint32 image_id,
|
||||
gint32 drawable_id,
|
||||
gpointer data);
|
||||
typedef void (* GimpMenuCallback) (gint32 id,
|
||||
gpointer data);
|
||||
|
||||
|
||||
/* Popup the brush dialog interactively */
|
||||
typedef void (* GRunBrushCallback) (gchar *name,
|
||||
gdouble opacity,
|
||||
gint spacing,
|
||||
gint paint_mode,
|
||||
gint width,
|
||||
gint height,
|
||||
gchar *mask_data,
|
||||
gboolean dialog_closing,
|
||||
gpointer user_data);
|
||||
typedef void (* GRunBrushCallback) (gchar *name,
|
||||
gdouble opacity,
|
||||
gint spacing,
|
||||
gint paint_mode,
|
||||
gint width,
|
||||
gint height,
|
||||
gchar *mask_data,
|
||||
gboolean dialog_closing,
|
||||
gpointer user_data);
|
||||
|
||||
/* Popup the pattern dialog */
|
||||
typedef void (*GRunPatternCallback) (gchar *name,
|
||||
gint width,
|
||||
gint height,
|
||||
gint bpp,
|
||||
gchar *mask_data,
|
||||
gboolean dialog_closing,
|
||||
gpointer user_data);
|
||||
typedef void (* GRunPatternCallback) (gchar *name,
|
||||
gint width,
|
||||
gint height,
|
||||
gint bpp,
|
||||
gchar *mask_data,
|
||||
gboolean dialog_closing,
|
||||
gpointer user_data);
|
||||
|
||||
/* Popup the gradient dialog */
|
||||
typedef void (*GRunGradientCallback) (gchar *name,
|
||||
gint width,
|
||||
gdouble *grad_data,
|
||||
gboolean dialog_closing,
|
||||
gpointer user_data);
|
||||
typedef void (* GRunGradientCallback) (gchar *name,
|
||||
gint width,
|
||||
gdouble *grad_data,
|
||||
gboolean dialog_closing,
|
||||
gpointer user_data);
|
||||
|
||||
|
||||
GtkWidget* gimp_image_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_image);
|
||||
GtkWidget* gimp_layer_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_layer);
|
||||
GtkWidget* gimp_channel_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_channel);
|
||||
GtkWidget* gimp_drawable_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_drawable);
|
||||
GtkWidget * gimp_image_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_image);
|
||||
GtkWidget * gimp_layer_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_layer);
|
||||
GtkWidget * gimp_channel_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_channel);
|
||||
GtkWidget * gimp_drawable_menu_new (GimpConstraintFunc constraint,
|
||||
GimpMenuCallback callback,
|
||||
gpointer data,
|
||||
gint32 active_drawable);
|
||||
|
||||
|
||||
gpointer gimp_interactive_selection_brush (gchar *dialogname,
|
||||
|
@ -168,9 +165,9 @@ gboolean gimp_gradient_set_popup (gpointer popup_p
|
|||
gchar *pname);
|
||||
gboolean gimp_gradient_close_popup (gpointer popup_pnt);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GIMP_MENU_H__ */
|
||||
|
|
|
@ -23,8 +23,13 @@
|
|||
|
||||
#include <gmodule.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look at the html documentation */
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_MODULE_OK,
|
||||
|
@ -50,6 +55,7 @@ struct _GimpModuleInfo
|
|||
|
||||
typedef GimpModuleStatus (* GimpModuleInitFunc) (GimpModuleInfo **module_info);
|
||||
|
||||
|
||||
#ifndef MODULE_COMPILATION
|
||||
|
||||
/* On Win32 this declaration clashes with the definition
|
||||
|
@ -69,6 +75,7 @@ typedef void (* GimpModuleUnloadFunc) (gpointer shutdown_data,
|
|||
GimpModuleCompletedCB completed_cb,
|
||||
gpointer completed_data);
|
||||
|
||||
|
||||
#ifndef MODULE_COMPILATION
|
||||
|
||||
/* The same as for module_init.
|
||||
|
@ -77,4 +84,9 @@ GimpModuleUnloadFunc module_unload;
|
|||
|
||||
#endif /* ! MODULE_COMPILATION */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPMODULE_H__ */
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PARASITE_H__
|
||||
#define __GIMP_PARASITE_H__
|
||||
|
||||
|
@ -26,6 +27,9 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_PARASITE_PERSISTENT 1
|
||||
#define GIMP_PARASITE_UNDOABLE 2
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PARASITE_IO_H__
|
||||
#define __GIMP_PARASITE_IO_H__
|
||||
|
||||
|
@ -26,6 +27,9 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* Data structures for various standard parasites used by plug-ins and
|
||||
* the GIMP core, and functions to build and parse their string
|
||||
* representations.
|
||||
|
|
|
@ -19,8 +19,11 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimppatheditor.h"
|
||||
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
|
@ -31,6 +34,7 @@
|
|||
#include "pixmaps/raise.xpm"
|
||||
#include "pixmaps/lower.xpm"
|
||||
|
||||
|
||||
/* forward declaration */
|
||||
static void gimp_path_editor_select_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PATH_EDITOR_H__
|
||||
#define __GIMP_PATH_EDITOR_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_PATH_EDITOR (gimp_path_editor_get_type ())
|
||||
#define GIMP_PATH_EDITOR(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PATH_EDITOR, GimpPathEditor))
|
||||
#define GIMP_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PATH_EDITOR, GimpPathEditorClass))
|
||||
|
@ -72,6 +74,7 @@ GtkWidget * gimp_path_editor_new (gchar *filesel_title,
|
|||
|
||||
gchar * gimp_path_editor_get_path (GimpPathEditor *gpe);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -22,8 +22,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimppixmap.h"
|
||||
|
||||
|
||||
struct _GimpPixmap
|
||||
{
|
||||
GtkPixmap pixmap;
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PIXMAP_H__
|
||||
#define __GIMP_PIXMAP_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_PIXMAP (gimp_pixmap_get_type ())
|
||||
#define GIMP_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PIXMAP, GimpPixmap))
|
||||
#define GIMP_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PIXMAP, GimpPixmapClass))
|
||||
|
@ -48,8 +50,9 @@ GtkWidget * gimp_pixmap_new (gchar **xpm_data);
|
|||
void gimp_pixmap_set (GimpPixmap *pixmap,
|
||||
gchar **xpm_data);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_PIXMAP_H__ */
|
||||
#endif /* __GIMP_PIXMAP_H__ */
|
||||
|
|
|
@ -16,10 +16,16 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PROTOCOL_H__
|
||||
#define __GIMP_PROTOCOL_H__
|
||||
|
||||
#include <glib.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* Increment every time the protocol changes
|
||||
*/
|
||||
|
@ -206,4 +212,8 @@ gboolean gp_extension_ack_write (GIOChannel *channel);
|
|||
gboolean gp_request_wakeups_write (GIOChannel *channel);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_PROTOCOL_H__ */
|
||||
|
|
|
@ -20,18 +20,21 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "gimpquerybox.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpdialog.h"
|
||||
#include "gimppixmap.h"
|
||||
#include "gimpquerybox.h"
|
||||
#include "gimpsizeentry.h"
|
||||
#include "gimpwidgets.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp-intl.h"
|
||||
|
||||
#include "pixmaps/eek.xpm"
|
||||
|
||||
|
||||
/*
|
||||
* String, integer, double and size query boxes
|
||||
*/
|
||||
|
|
|
@ -19,14 +19,18 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_QUERY_BOX_H__
|
||||
#define __GIMP_QUERY_BOX_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <libgimp/gimpunit.h>
|
||||
|
||||
#include "gimphelpui.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
#include "gimpunit.h"
|
||||
|
||||
/* query box callback prototypes */
|
||||
typedef void (* GimpQueryStringCallback) (GtkWidget *query_box,
|
||||
|
@ -114,4 +118,9 @@ GtkWidget * gimp_query_boolean_box (gchar *title,
|
|||
GimpQueryBooleanCallback callback,
|
||||
gpointer data);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_QUERY_BOX_H__ */
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* $Revision$
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpsignal.h"
|
||||
|
||||
|
||||
|
|
|
@ -15,22 +15,26 @@
|
|||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Revision$
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_SIGNAL_H__
|
||||
#define __GIMP_SIGNAL_H__
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* A gimp-level interface to a Posix.1-compliant signal package lives here
|
||||
* For 1.2, this gimp-level interface mostly passes through to posix calls
|
||||
* without modification. Certain calls manipulate struct sigaction in
|
||||
* ways useful to Gimp.
|
||||
*/
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __EMX__
|
||||
/* hope this is right for OS/2 */
|
||||
#define SA_RESTART SA_SYSV
|
||||
|
@ -54,4 +58,9 @@ GimpSignalHandlerFunc gimp_signal_private (gint signum,
|
|||
*/
|
||||
#define gimp_signal_syscallrestart(signum,handler) gimp_signal_private ((signum), (handler), SA_RESTART)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_SIGNAL_H__ */
|
||||
|
|
|
@ -21,10 +21,13 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimplimits.h"
|
||||
#include "gimpsizeentry.h"
|
||||
#include "gimpunitmenu.h"
|
||||
|
||||
|
||||
#define SIZE_MAX_VALUE 500000.0
|
||||
|
||||
static void gimp_size_entry_unit_callback (GtkWidget *widget,
|
||||
|
|
|
@ -20,17 +20,19 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_SIZE_ENTRY_H__
|
||||
#define __GIMP_SIZE_ENTRY_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpunit.h"
|
||||
#include <libgimp/gimpunit.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_SIZE_ENTRY (gimp_size_entry_get_type ())
|
||||
#define GIMP_SIZE_ENTRY(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntry))
|
||||
#define GIMP_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntryClass))
|
||||
|
@ -138,6 +140,7 @@ void gimp_size_entry_set_unit (GimpSizeEntry *gse,
|
|||
|
||||
void gimp_size_entry_grab_focus (GimpSizeEntry *gse);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_UI_H__
|
||||
#define __GIMP_UI_H__
|
||||
|
||||
|
@ -35,7 +36,19 @@
|
|||
#include <libgimp/gimpunitmenu.h>
|
||||
#include <libgimp/gimpwidgets.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
void gimp_ui_init (gchar *prog_name,
|
||||
gboolean preview);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_UI_H__ */
|
||||
|
|
|
@ -30,12 +30,13 @@
|
|||
#ifndef __GIMPUNIT_H__
|
||||
#define __GIMPUNIT_H__
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_UNIT_PIXEL = 0,
|
||||
|
@ -50,7 +51,6 @@ typedef enum
|
|||
GIMP_UNIT_PERCENT = 65536
|
||||
} GimpUnit;
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
gint gimp_unit_get_number_of_units (void);
|
||||
gint gimp_unit_get_number_of_built_in_units (void);
|
||||
|
@ -78,8 +78,9 @@ gchar * gimp_unit_get_abbreviation (GimpUnit unit);
|
|||
gchar * gimp_unit_get_singular (GimpUnit unit);
|
||||
gchar * gimp_unit_get_plural (GimpUnit unit);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPUNIT_H__ */
|
||||
#endif /* __GIMPUNIT_H__ */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||
*
|
||||
* gimpunit.c
|
||||
* gimpunit_pdb.c
|
||||
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
|
|
@ -19,13 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpdialog.h"
|
||||
#include "gimpunitmenu.h"
|
||||
|
||||
#include "libgimp-intl.h"
|
||||
|
||||
|
||||
/* private functions */
|
||||
static const gchar * gimp_unit_menu_build_string (gchar *format,
|
||||
GimpUnit unit);
|
||||
|
|
|
@ -19,17 +19,19 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_UNIT_MENU_H__
|
||||
#define __GIMP_UNIT_MENU_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpunit.h"
|
||||
#include <libgimp/gimpunit.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_UNIT_MENU (gimp_unit_menu_get_type ())
|
||||
#define GIMP_UNIT_MENU(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_UNIT_MENU, GimpUnitMenu))
|
||||
#define GIMP_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_UNIT_MENU, GimpUnitMenuClass))
|
||||
|
@ -62,7 +64,6 @@ struct _GimpUnitMenuClass
|
|||
void (* unit_changed) (GimpUnitMenu *gum);
|
||||
};
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
GtkType gimp_unit_menu_get_type (void);
|
||||
|
||||
|
@ -77,6 +78,7 @@ void gimp_unit_menu_set_unit (GimpUnitMenu *gum,
|
|||
|
||||
GimpUnit gimp_unit_menu_get_unit (GimpUnitMenu *gum);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -28,14 +28,15 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/*
|
||||
* Right now all you find here is the g_strescape function out of
|
||||
* glib-1.3. We need its functionality, but don't want to rely on
|
||||
* that version being installed
|
||||
*/
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
#if (defined (GLIB_CHECK_VERSION) && GLIB_CHECK_VERSION (1,3,1))
|
||||
#define gimp_strescape(string, exceptions) g_strescape (string, exceptions)
|
||||
#else
|
||||
|
@ -43,8 +44,9 @@ gchar* gimp_strescape (const gchar *source,
|
|||
const gchar *exceptions);
|
||||
#endif /* GLIB <= 1.3 */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPUTILS_H__ */
|
||||
#endif /* __GIMPUTILS_H__ */
|
||||
|
|
|
@ -25,9 +25,12 @@
|
|||
/* A little collection of useful vector stuff */
|
||||
/**********************************************/
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpmath.h"
|
||||
#include "gimpvector.h"
|
||||
|
||||
|
||||
/*************************/
|
||||
/* Some useful constants */
|
||||
/*************************/
|
||||
|
|
|
@ -24,11 +24,12 @@
|
|||
#ifndef __GIMP_VECTOR_H__
|
||||
#define __GIMP_VECTOR_H__
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef struct _GimpVector2 GimpVector2;
|
||||
typedef struct _GimpVector3 GimpVector3;
|
||||
|
@ -121,8 +122,9 @@ void gimp_vector_3d_to_2d (gint sx,
|
|||
GimpVector3 *vp,
|
||||
GimpVector3 *p);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_VECTOR_H__ */
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpchainbutton.h"
|
||||
#include "gimphelpui.h"
|
||||
#include "gimppixmap.h"
|
||||
|
@ -31,6 +33,7 @@
|
|||
|
||||
#include "libgimp-intl.h"
|
||||
|
||||
|
||||
/*
|
||||
* Widget Constructors
|
||||
*/
|
||||
|
|
|
@ -19,16 +19,15 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_WIDGETS_H__
|
||||
#define __GIMP_WIDGETS_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpsizeentry.h"
|
||||
#include <libgimp/gimpsizeentry.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
@ -244,8 +243,9 @@ void gimp_table_attach_aligned (GtkTable *table,
|
|||
gint colspan,
|
||||
gboolean left_align);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_WIDGETS_H__ */
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpwire.h"
|
||||
|
||||
|
||||
|
|
|
@ -20,8 +20,11 @@
|
|||
#ifndef __GIMP_WIRE_H__
|
||||
#define __GIMP_WIRE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <glib.h>
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef struct _WireMessage WireMessage;
|
||||
|
@ -102,4 +105,9 @@ gboolean wire_write_string (GIOChannel *channel,
|
|||
gchar **data,
|
||||
gint count);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_WIRE_H__ */
|
||||
|
|
|
@ -18,9 +18,11 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __LIBGIMP_INTL_H__
|
||||
#define __LIBGIMP_INTL_H__
|
||||
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
# include <libintl.h>
|
||||
# define _(String) dgettext ("gimp-libgimp", String)
|
||||
|
@ -38,19 +40,5 @@
|
|||
# define N_(String) (String)
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __LIBGIMP_INTL_H__ */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -18,11 +18,13 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __STDPLUGINS_INTL_H__
|
||||
#define __STDPLUGINS_INTL_H__
|
||||
|
||||
#include "gimpintl.h"
|
||||
|
||||
|
||||
#ifdef HAVE_LC_MESSAGES
|
||||
#define INIT_I18N() G_STMT_START{ \
|
||||
setlocale(LC_MESSAGES, ""); \
|
||||
|
@ -44,4 +46,5 @@
|
|||
INIT_I18N(); \
|
||||
}G_STMT_END
|
||||
|
||||
|
||||
#endif /* __STDPLUGINS_INTL_H__ */
|
||||
|
|
|
@ -30,6 +30,7 @@ extern "C" {
|
|||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
gchar * gimp_directory (void);
|
||||
gchar * gimp_personal_rc_file (gchar *basename);
|
||||
gchar * gimp_data_directory (void);
|
||||
|
@ -44,6 +45,7 @@ void gimp_path_free (GList *path);
|
|||
|
||||
gchar * gimp_path_get_user_writable_dir (GList *path);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -19,9 +19,11 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_LIMITS_H__
|
||||
#define __GIMP_LIMITS_H__
|
||||
|
||||
|
||||
/* pixel sizes
|
||||
*/
|
||||
#define GIMP_MIN_IMAGE_SIZE 1
|
||||
|
@ -42,4 +44,5 @@
|
|||
#define GIMP_CHECK_DARK 0.4 /* corresponds to GRAY_CHECKS as */
|
||||
#define GIMP_CHECK_LIGHT 0.6 /* defined in app/image_render.c */
|
||||
|
||||
|
||||
#endif /* __GIMP_LIMITS_H__ */
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PARASITE_H__
|
||||
#define __GIMP_PARASITE_H__
|
||||
|
||||
|
@ -26,6 +27,9 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_PARASITE_PERSISTENT 1
|
||||
#define GIMP_PARASITE_UNDOABLE 2
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PARASITE_IO_H__
|
||||
#define __GIMP_PARASITE_IO_H__
|
||||
|
||||
|
@ -26,6 +27,9 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* Data structures for various standard parasites used by plug-ins and
|
||||
* the GIMP core, and functions to build and parse their string
|
||||
* representations.
|
||||
|
|
|
@ -16,10 +16,16 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PROTOCOL_H__
|
||||
#define __GIMP_PROTOCOL_H__
|
||||
|
||||
#include <glib.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* Increment every time the protocol changes
|
||||
*/
|
||||
|
@ -206,4 +212,8 @@ gboolean gp_extension_ack_write (GIOChannel *channel);
|
|||
gboolean gp_request_wakeups_write (GIOChannel *channel);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_PROTOCOL_H__ */
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
* $Revision$
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpsignal.h"
|
||||
|
||||
|
||||
|
|
|
@ -15,22 +15,26 @@
|
|||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Revision$
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_SIGNAL_H__
|
||||
#define __GIMP_SIGNAL_H__
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/* A gimp-level interface to a Posix.1-compliant signal package lives here
|
||||
* For 1.2, this gimp-level interface mostly passes through to posix calls
|
||||
* without modification. Certain calls manipulate struct sigaction in
|
||||
* ways useful to Gimp.
|
||||
*/
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __EMX__
|
||||
/* hope this is right for OS/2 */
|
||||
#define SA_RESTART SA_SYSV
|
||||
|
@ -54,4 +58,9 @@ GimpSignalHandlerFunc gimp_signal_private (gint signum,
|
|||
*/
|
||||
#define gimp_signal_syscallrestart(signum,handler) gimp_signal_private ((signum), (handler), SA_RESTART)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_SIGNAL_H__ */
|
||||
|
|
|
@ -30,12 +30,13 @@
|
|||
#ifndef __GIMPUNIT_H__
|
||||
#define __GIMPUNIT_H__
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_UNIT_PIXEL = 0,
|
||||
|
@ -50,7 +51,6 @@ typedef enum
|
|||
GIMP_UNIT_PERCENT = 65536
|
||||
} GimpUnit;
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
gint gimp_unit_get_number_of_units (void);
|
||||
gint gimp_unit_get_number_of_built_in_units (void);
|
||||
|
@ -78,8 +78,9 @@ gchar * gimp_unit_get_abbreviation (GimpUnit unit);
|
|||
gchar * gimp_unit_get_singular (GimpUnit unit);
|
||||
gchar * gimp_unit_get_plural (GimpUnit unit);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPUNIT_H__ */
|
||||
#endif /* __GIMPUNIT_H__ */
|
||||
|
|
|
@ -28,14 +28,15 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
/*
|
||||
* Right now all you find here is the g_strescape function out of
|
||||
* glib-1.3. We need its functionality, but don't want to rely on
|
||||
* that version being installed
|
||||
*/
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
#if (defined (GLIB_CHECK_VERSION) && GLIB_CHECK_VERSION (1,3,1))
|
||||
#define gimp_strescape(string, exceptions) g_strescape (string, exceptions)
|
||||
#else
|
||||
|
@ -43,8 +44,9 @@ gchar* gimp_strescape (const gchar *source,
|
|||
const gchar *exceptions);
|
||||
#endif /* GLIB <= 1.3 */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMPUTILS_H__ */
|
||||
#endif /* __GIMPUTILS_H__ */
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gimpwire.h"
|
||||
|
||||
|
||||
|
|
|
@ -20,8 +20,11 @@
|
|||
#ifndef __GIMP_WIRE_H__
|
||||
#define __GIMP_WIRE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <glib.h>
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef struct _WireMessage WireMessage;
|
||||
|
@ -102,4 +105,9 @@ gboolean wire_write_string (GIOChannel *channel,
|
|||
gchar **data,
|
||||
gint count);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_WIRE_H__ */
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpchainbutton.h"
|
||||
|
||||
#include "pixmaps/chain.xpm"
|
||||
|
||||
static gchar **gimp_chain_xpm[] =
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#ifndef __GIMP_CHAIN_BUTTON_H__
|
||||
#define __GIMP_CHAIN_BUTTON_H__
|
||||
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
@ -80,16 +76,15 @@ struct _GimpChainButtonClass
|
|||
};
|
||||
|
||||
|
||||
GtkType gimp_chain_button_get_type (void);
|
||||
GtkWidget* gimp_chain_button_new (GimpChainPosition position);
|
||||
void gimp_chain_button_set_active (GimpChainButton *gcb,
|
||||
gboolean is_active);
|
||||
gboolean gimp_chain_button_get_active (GimpChainButton *gcb);
|
||||
GtkType gimp_chain_button_get_type (void);
|
||||
GtkWidget * gimp_chain_button_new (GimpChainPosition position);
|
||||
void gimp_chain_button_set_active (GimpChainButton *gcb,
|
||||
gboolean is_active);
|
||||
gboolean gimp_chain_button_get_active (GimpChainButton *gcb);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __CHAIN_BUTTON_H__ */
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimp.h"
|
||||
#include "gimpcolorbutton.h"
|
||||
#include "gimplimits.h"
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#ifndef __GIMP_COLOR_BUTTON_H__
|
||||
#define __GIMP_COLOR_BUTTON_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
@ -53,22 +51,22 @@ struct _GimpColorButtonClass
|
|||
};
|
||||
|
||||
|
||||
GtkType gimp_color_button_get_type (void);
|
||||
GtkWidget* gimp_color_button_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
guchar *color,
|
||||
gint bpp);
|
||||
GtkWidget* gimp_color_button_double_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
gdouble *color,
|
||||
gint bpp);
|
||||
void gimp_color_button_update (GimpColorButton *gcb);
|
||||
GtkType gimp_color_button_get_type (void);
|
||||
GtkWidget * gimp_color_button_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
guchar *color,
|
||||
gint bpp);
|
||||
GtkWidget * gimp_color_button_double_new (gchar *title,
|
||||
gint width,
|
||||
gint height,
|
||||
gdouble *color,
|
||||
gint bpp);
|
||||
void gimp_color_button_update (GimpColorButton *gcb);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __COLOR_BUTTON_H__ */
|
||||
|
|
|
@ -19,7 +19,10 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#include "libgimp/gimpdialog.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpdialog.h"
|
||||
|
||||
#include "pixmaps/wilber.xpm"
|
||||
|
||||
|
|
|
@ -19,18 +19,19 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_DIALOG_H__
|
||||
#define __GIMP_DIALOG_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimphelpui.h"
|
||||
#include "gimpunit.h"
|
||||
#include <libgimp/gimphelpui.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
GtkWidget * gimp_dialog_new (const gchar *title,
|
||||
const gchar *wmclass_name,
|
||||
GimpHelpFunc help_func,
|
||||
|
@ -83,24 +84,9 @@ void gimp_dialog_create_action_area (GtkDialog *dialog,
|
|||
void gimp_dialog_create_action_areav (GtkDialog *dialog,
|
||||
va_list args);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_DIALOG_H__ */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpfileselection.h"
|
||||
|
||||
#include "libgimp-intl.h"
|
||||
|
@ -37,6 +39,7 @@
|
|||
#include "pixmaps/yes.xpm"
|
||||
#include "pixmaps/no.xpm"
|
||||
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
# ifndef S_ISDIR
|
||||
# define S_ISDIR(m) ((m) & _S_IFDIR)
|
||||
|
|
|
@ -23,12 +23,13 @@
|
|||
#ifndef __GIMP_FILE_SELECTION_H__
|
||||
#define __GIMP_FILE_SELECTION_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_FILE_SELECTION (gimp_file_selection_get_type ())
|
||||
#define GIMP_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_FILE_SELECTION, GimpFileSelection))
|
||||
#define GIMP_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_SELECTION, GimpFileSelectionClass))
|
||||
|
@ -79,6 +80,7 @@ gchar* gimp_file_selection_get_filename (GimpFileSelection *gfs);
|
|||
void gimp_file_selection_set_filename (GimpFileSelection *gfs,
|
||||
gchar *filename);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpfileselection.h"
|
||||
|
||||
#include "libgimp-intl.h"
|
||||
|
@ -37,6 +39,7 @@
|
|||
#include "pixmaps/yes.xpm"
|
||||
#include "pixmaps/no.xpm"
|
||||
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
# ifndef S_ISDIR
|
||||
# define S_ISDIR(m) ((m) & _S_IFDIR)
|
||||
|
|
|
@ -23,12 +23,13 @@
|
|||
#ifndef __GIMP_FILE_SELECTION_H__
|
||||
#define __GIMP_FILE_SELECTION_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_FILE_SELECTION (gimp_file_selection_get_type ())
|
||||
#define GIMP_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_FILE_SELECTION, GimpFileSelection))
|
||||
#define GIMP_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_SELECTION, GimpFileSelectionClass))
|
||||
|
@ -79,6 +80,7 @@ gchar* gimp_file_selection_get_filename (GimpFileSelection *gfs);
|
|||
void gimp_file_selection_set_filename (GimpFileSelection *gfs,
|
||||
gchar *filename);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_HELP_UI_H__
|
||||
#define __GIMP_HELP_UI_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
typedef void (* GimpHelpFunc) (gchar *help_data);
|
||||
|
||||
void gimp_help_init (void);
|
||||
|
@ -54,13 +56,9 @@ void gimp_help_set_help_data (GtkWidget *widget,
|
|||
/* activate the context help inspector */
|
||||
void gimp_context_help (void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_HELP_UI_H__ */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -19,8 +19,11 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimppatheditor.h"
|
||||
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
|
@ -31,6 +34,7 @@
|
|||
#include "pixmaps/raise.xpm"
|
||||
#include "pixmaps/lower.xpm"
|
||||
|
||||
|
||||
/* forward declaration */
|
||||
static void gimp_path_editor_select_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PATH_EDITOR_H__
|
||||
#define __GIMP_PATH_EDITOR_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_PATH_EDITOR (gimp_path_editor_get_type ())
|
||||
#define GIMP_PATH_EDITOR(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PATH_EDITOR, GimpPathEditor))
|
||||
#define GIMP_PATH_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PATH_EDITOR, GimpPathEditorClass))
|
||||
|
@ -72,6 +74,7 @@ GtkWidget * gimp_path_editor_new (gchar *filesel_title,
|
|||
|
||||
gchar * gimp_path_editor_get_path (GimpPathEditor *gpe);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -22,8 +22,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimppixmap.h"
|
||||
|
||||
|
||||
struct _GimpPixmap
|
||||
{
|
||||
GtkPixmap pixmap;
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_PIXMAP_H__
|
||||
#define __GIMP_PIXMAP_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_PIXMAP (gimp_pixmap_get_type ())
|
||||
#define GIMP_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_PIXMAP, GimpPixmap))
|
||||
#define GIMP_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PIXMAP, GimpPixmapClass))
|
||||
|
@ -48,8 +50,9 @@ GtkWidget * gimp_pixmap_new (gchar **xpm_data);
|
|||
void gimp_pixmap_set (GimpPixmap *pixmap,
|
||||
gchar **xpm_data);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_PIXMAP_H__ */
|
||||
#endif /* __GIMP_PIXMAP_H__ */
|
||||
|
|
|
@ -20,18 +20,21 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "gimpquerybox.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpdialog.h"
|
||||
#include "gimppixmap.h"
|
||||
#include "gimpquerybox.h"
|
||||
#include "gimpsizeentry.h"
|
||||
#include "gimpwidgets.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp-intl.h"
|
||||
|
||||
#include "pixmaps/eek.xpm"
|
||||
|
||||
|
||||
/*
|
||||
* String, integer, double and size query boxes
|
||||
*/
|
||||
|
|
|
@ -19,14 +19,18 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_QUERY_BOX_H__
|
||||
#define __GIMP_QUERY_BOX_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <libgimp/gimpunit.h>
|
||||
|
||||
#include "gimphelpui.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
#include "gimpunit.h"
|
||||
|
||||
/* query box callback prototypes */
|
||||
typedef void (* GimpQueryStringCallback) (GtkWidget *query_box,
|
||||
|
@ -114,4 +118,9 @@ GtkWidget * gimp_query_boolean_box (gchar *title,
|
|||
GimpQueryBooleanCallback callback,
|
||||
gpointer data);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_QUERY_BOX_H__ */
|
||||
|
|
|
@ -21,10 +21,13 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimplimits.h"
|
||||
#include "gimpsizeentry.h"
|
||||
#include "gimpunitmenu.h"
|
||||
|
||||
|
||||
#define SIZE_MAX_VALUE 500000.0
|
||||
|
||||
static void gimp_size_entry_unit_callback (GtkWidget *widget,
|
||||
|
|
|
@ -20,17 +20,19 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_SIZE_ENTRY_H__
|
||||
#define __GIMP_SIZE_ENTRY_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpunit.h"
|
||||
#include <libgimp/gimpunit.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_SIZE_ENTRY (gimp_size_entry_get_type ())
|
||||
#define GIMP_SIZE_ENTRY(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntry))
|
||||
#define GIMP_SIZE_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SIZE_ENTRY, GimpSizeEntryClass))
|
||||
|
@ -138,6 +140,7 @@ void gimp_size_entry_set_unit (GimpSizeEntry *gse,
|
|||
|
||||
void gimp_size_entry_grab_focus (GimpSizeEntry *gse);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -19,13 +19,17 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpdialog.h"
|
||||
#include "gimpunitmenu.h"
|
||||
|
||||
#include "libgimp-intl.h"
|
||||
|
||||
|
||||
/* private functions */
|
||||
static const gchar * gimp_unit_menu_build_string (gchar *format,
|
||||
GimpUnit unit);
|
||||
|
|
|
@ -19,17 +19,19 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_UNIT_MENU_H__
|
||||
#define __GIMP_UNIT_MENU_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpunit.h"
|
||||
#include <libgimp/gimpunit.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_UNIT_MENU (gimp_unit_menu_get_type ())
|
||||
#define GIMP_UNIT_MENU(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_UNIT_MENU, GimpUnitMenu))
|
||||
#define GIMP_UNIT_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_UNIT_MENU, GimpUnitMenuClass))
|
||||
|
@ -62,7 +64,6 @@ struct _GimpUnitMenuClass
|
|||
void (* unit_changed) (GimpUnitMenu *gum);
|
||||
};
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
GtkType gimp_unit_menu_get_type (void);
|
||||
|
||||
|
@ -77,6 +78,7 @@ void gimp_unit_menu_set_unit (GimpUnitMenu *gum,
|
|||
|
||||
GimpUnit gimp_unit_menu_get_unit (GimpUnitMenu *gum);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpchainbutton.h"
|
||||
#include "gimphelpui.h"
|
||||
#include "gimppixmap.h"
|
||||
|
@ -31,6 +33,7 @@
|
|||
|
||||
#include "libgimp-intl.h"
|
||||
|
||||
|
||||
/*
|
||||
* Widget Constructors
|
||||
*/
|
||||
|
|
|
@ -19,16 +19,15 @@
|
|||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_WIDGETS_H__
|
||||
#define __GIMP_WIDGETS_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "gimpsizeentry.h"
|
||||
#include <libgimp/gimpsizeentry.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
@ -244,8 +243,9 @@ void gimp_table_attach_aligned (GtkTable *table,
|
|||
gint colspan,
|
||||
gboolean left_align);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GIMP_WIDGETS_H__ */
|
||||
|
|
Loading…
Reference in New Issue