Commit 2301e7e1 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/tools/Makefile.am app/tools/gimpclonetool.[ch]

2001-04-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/Makefile.am
	* app/tools/gimpclonetool.[ch]
	* app/tools/gimpconvolvetool.[ch]
	* app/tools/gimppainttool.c
	* app/tools/gimptool.h
	* app/tools/paint_options.c
	* app/tools/tool_manager.c
	* app/tools/tools.c: Applied a patch from Dave Neary
	<dneary@eircom.net> which brings clone and convolve back.

	That's all paint tools, Dudes!
parent 26dee230
2001-04-19 Michael Natterer <mitch@gimp.org>
* app/tools/Makefile.am
* app/tools/gimpclonetool.[ch]
* app/tools/gimpconvolvetool.[ch]
* app/tools/gimppainttool.c
* app/tools/gimptool.h
* app/tools/paint_options.c
* app/tools/tool_manager.c
* app/tools/tools.c: Applied a patch from Dave Neary
<dneary@eircom.net> which brings clone and convolve back.
That's all paint tools, Dudes!
2001-04-19 Michael Natterer <mitch@gimp.org>
* app/Makefile.am
......
This diff is collapsed.
......@@ -16,8 +16,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __CLONE_H__
#define __CLONE_H__
#ifndef __GIMP_CLONE_TOOL_H__
#define __GIMP_CLONE_TOOL_H__
#include "gimppainttool.h"
typedef enum
......@@ -27,6 +30,37 @@ typedef enum
} CloneType;
#define GIMP_TYPE_CLONE_TOOL (gimp_clone_tool_get_type ())
#define GIMP_CLONE_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CLONE_TOOL, GimpCloneTool))
#define GIMP_IS_CLONE_TOOL(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CLONE_TOOL))
#define GIMP_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CLONE_TOOL, GimpCloneToolClass))
#define GIMP_IS_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CLONE_TOOL))
typedef struct _GimpCloneTool GimpCloneTool;
typedef struct _GimpCloneToolClass GimpCloneToolClass;
struct _GimpCloneTool
{
GimpPaintTool parent_instance;
};
struct _GimpCloneToolClass
{
GimpPaintToolClass parent_class;
};
void gimp_clone_tool_register (void);
GtkType gimp_clone_tool_get_type (void);
/* FIXME: Old style functions in need of a replacement. The only
* time these are used is to stroke paths or fill selections
* They should be somewhere else.
*/
gboolean clone_non_gui (GimpDrawable *drawable,
GimpDrawable *src_drawable,
CloneType clone_type,
......@@ -37,8 +71,6 @@ gboolean clone_non_gui (GimpDrawable *drawable,
gboolean clone_non_gui_default (GimpDrawable *drawable,
gint num_strokes,
gdouble *stroke_array);
Tool * tools_new_clone (void);
void tools_free_clone (Tool *tool);
#endif /* __CLONE_H__ */
#endif /* __GIMP_CLONE_TOOL_H__ */
This diff is collapsed.
......@@ -16,8 +16,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __CONVOLVE_H__
#define __CONVOLVE_H__
#ifndef __GIMP_CONVOLVE_TOOL_H__
#define __GIMP_CONVOLVE_TOOL_H__
#include "gimppainttool.h"
typedef enum
......@@ -28,6 +31,33 @@ typedef enum
} ConvolveType;
#define GIMP_TYPE_CONVOLVE_TOOL (gimp_convolve_tool_get_type ())
#define GIMP_CONVOLVE_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CONVOLVE_TOOL, GimpConvolveTool))
#define GIMP_IS_CONVOLVE_TOOL(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CONVOLVE_TOOL))
#define GIMP_CONVOLVE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CONVOLVE_TOOL, GimpConvolveToolClass))
#define GIMP_IS_CONVOLVE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CONVOLVE_TOOL))
typedef struct _GimpConvolveTool GimpConvolveTool;
typedef struct _GimpConvolveToolClass GimpConvolveToolClass;
struct _GimpConvolveTool
{
GimpPaintTool parent_instance;
};
struct _GimpConvolveToolClass
{
GimpPaintToolClass parent_class;
};
void gimp_convolve_tool_register (void);
GtkType gimp_convolve_tool_get_type (void);
/* FIXME: These need to disappear */
gboolean convolve_non_gui (GimpDrawable *drawable,
gdouble rate,
ConvolveType type,
......@@ -37,8 +67,5 @@ gboolean convolve_non_gui_default (GimpDrawable *drawable,
gint num_strokes,
gdouble *stroke_array);
Tool * tools_new_convolve (void);
void tools_free_convolve (Tool *tool);
#endif /* __CONVOLVE_H__ */
#endif /* __GIMP_CONVOLVE_TOOL_H__ */
......@@ -51,6 +51,7 @@
#include "gimpdrawtool.h"
#include "gimpdodgeburntool.h"
#include "gimperasertool.h"
#include "gimpconvolvetool.h"
#include "gimppainttool.h"
#include "libgimp/gimpintl.h"
......
This diff is collapsed.
......@@ -16,8 +16,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __CLONE_H__
#define __CLONE_H__
#ifndef __GIMP_CLONE_TOOL_H__
#define __GIMP_CLONE_TOOL_H__
#include "gimppainttool.h"
typedef enum
......@@ -27,6 +30,37 @@ typedef enum
} CloneType;
#define GIMP_TYPE_CLONE_TOOL (gimp_clone_tool_get_type ())
#define GIMP_CLONE_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CLONE_TOOL, GimpCloneTool))
#define GIMP_IS_CLONE_TOOL(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CLONE_TOOL))
#define GIMP_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CLONE_TOOL, GimpCloneToolClass))
#define GIMP_IS_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CLONE_TOOL))
typedef struct _GimpCloneTool GimpCloneTool;
typedef struct _GimpCloneToolClass GimpCloneToolClass;
struct _GimpCloneTool
{
GimpPaintTool parent_instance;
};
struct _GimpCloneToolClass
{
GimpPaintToolClass parent_class;
};
void gimp_clone_tool_register (void);
GtkType gimp_clone_tool_get_type (void);
/* FIXME: Old style functions in need of a replacement. The only
* time these are used is to stroke paths or fill selections
* They should be somewhere else.
*/
gboolean clone_non_gui (GimpDrawable *drawable,
GimpDrawable *src_drawable,
CloneType clone_type,
......@@ -37,8 +71,6 @@ gboolean clone_non_gui (GimpDrawable *drawable,
gboolean clone_non_gui_default (GimpDrawable *drawable,
gint num_strokes,
gdouble *stroke_array);
Tool * tools_new_clone (void);
void tools_free_clone (Tool *tool);
#endif /* __CLONE_H__ */
#endif /* __GIMP_CLONE_TOOL_H__ */
......@@ -13,12 +13,12 @@ libapptools_la_SOURCES = \
gimpbucketfilltool.h \
## gimpbycolorselecttool.c \
## gimpbycolorselecttool.h \
## gimpclonetool.c \
## gimpclonetool.h \
gimpclonetool.c \
gimpclonetool.h \
gimpcolorpickertool.c \
gimpcolorpickertool.h \
## gimpconvolvetool.c \
## gimpconvolvetool.h \
gimpconvolvetool.c \
gimpconvolvetool.h \
gimpcroptool.c \
gimpcroptool.h \
gimpdodgeburntool.c \
......
......@@ -51,6 +51,7 @@
#include "gimpdrawtool.h"
#include "gimpdodgeburntool.h"
#include "gimperasertool.h"
#include "gimpconvolvetool.h"
#include "gimppainttool.h"
#include "libgimp/gimpintl.h"
......
This diff is collapsed.
......@@ -16,8 +16,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __CLONE_H__
#define __CLONE_H__
#ifndef __GIMP_CLONE_TOOL_H__
#define __GIMP_CLONE_TOOL_H__
#include "gimppainttool.h"
typedef enum
......@@ -27,6 +30,37 @@ typedef enum
} CloneType;
#define GIMP_TYPE_CLONE_TOOL (gimp_clone_tool_get_type ())
#define GIMP_CLONE_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CLONE_TOOL, GimpCloneTool))
#define GIMP_IS_CLONE_TOOL(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CLONE_TOOL))
#define GIMP_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CLONE_TOOL, GimpCloneToolClass))
#define GIMP_IS_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CLONE_TOOL))
typedef struct _GimpCloneTool GimpCloneTool;
typedef struct _GimpCloneToolClass GimpCloneToolClass;
struct _GimpCloneTool
{
GimpPaintTool parent_instance;
};
struct _GimpCloneToolClass
{
GimpPaintToolClass parent_class;
};
void gimp_clone_tool_register (void);
GtkType gimp_clone_tool_get_type (void);
/* FIXME: Old style functions in need of a replacement. The only
* time these are used is to stroke paths or fill selections
* They should be somewhere else.
*/
gboolean clone_non_gui (GimpDrawable *drawable,
GimpDrawable *src_drawable,
CloneType clone_type,
......@@ -37,8 +71,6 @@ gboolean clone_non_gui (GimpDrawable *drawable,
gboolean clone_non_gui_default (GimpDrawable *drawable,
gint num_strokes,
gdouble *stroke_array);
Tool * tools_new_clone (void);
void tools_free_clone (Tool *tool);
#endif /* __CLONE_H__ */
#endif /* __GIMP_CLONE_TOOL_H__ */
This diff is collapsed.
......@@ -16,8 +16,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __CONVOLVE_H__
#define __CONVOLVE_H__
#ifndef __GIMP_CONVOLVE_TOOL_H__
#define __GIMP_CONVOLVE_TOOL_H__
#include "gimppainttool.h"
typedef enum
......@@ -28,6 +31,33 @@ typedef enum
} ConvolveType;
#define GIMP_TYPE_CONVOLVE_TOOL (gimp_convolve_tool_get_type ())
#define GIMP_CONVOLVE_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CONVOLVE_TOOL, GimpConvolveTool))
#define GIMP_IS_CONVOLVE_TOOL(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CONVOLVE_TOOL))
#define GIMP_CONVOLVE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CONVOLVE_TOOL, GimpConvolveToolClass))
#define GIMP_IS_CONVOLVE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CONVOLVE_TOOL))
typedef struct _GimpConvolveTool GimpConvolveTool;
typedef struct _GimpConvolveToolClass GimpConvolveToolClass;
struct _GimpConvolveTool
{
GimpPaintTool parent_instance;
};
struct _GimpConvolveToolClass
{
GimpPaintToolClass parent_class;
};
void gimp_convolve_tool_register (void);
GtkType gimp_convolve_tool_get_type (void);
/* FIXME: These need to disappear */
gboolean convolve_non_gui (GimpDrawable *drawable,
gdouble rate,
ConvolveType type,
......@@ -37,8 +67,5 @@ gboolean convolve_non_gui_default (GimpDrawable *drawable,
gint num_strokes,
gdouble *stroke_array);
Tool * tools_new_convolve (void);
void tools_free_convolve (Tool *tool);
#endif /* __CONVOLVE_H__ */
#endif /* __GIMP_CONVOLVE_TOOL_H__ */
......@@ -44,6 +44,8 @@
#include "gimppenciltool.h"
#include "gimpdodgeburntool.h"
#include "gimpsmudgetool.h"
#include "gimpclonetool.h"
#include "gimpconvolvetool.h"
#include "libgimp/gimpintl.h"
......
......@@ -51,6 +51,7 @@
#include "gimpdrawtool.h"
#include "gimpdodgeburntool.h"
#include "gimperasertool.h"
#include "gimpconvolvetool.h"
#include "gimppainttool.h"
#include "libgimp/gimpintl.h"
......
This diff is collapsed.
......@@ -16,8 +16,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __CLONE_H__
#define __CLONE_H__
#ifndef __GIMP_CLONE_TOOL_H__
#define __GIMP_CLONE_TOOL_H__
#include "gimppainttool.h"
typedef enum
......@@ -27,6 +30,37 @@ typedef enum
} CloneType;
#define GIMP_TYPE_CLONE_TOOL (gimp_clone_tool_get_type ())
#define GIMP_CLONE_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_CLONE_TOOL, GimpCloneTool))
#define GIMP_IS_CLONE_TOOL(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_CLONE_TOOL))
#define GIMP_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CLONE_TOOL, GimpCloneToolClass))
#define GIMP_IS_CLONE_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CLONE_TOOL))
typedef struct _GimpCloneTool GimpCloneTool;
typedef struct _GimpCloneToolClass GimpCloneToolClass;
struct _GimpCloneTool
{
GimpPaintTool parent_instance;
};
struct _GimpCloneToolClass
{
GimpPaintToolClass parent_class;
};
void gimp_clone_tool_register (void);
GtkType gimp_clone_tool_get_type (void);
/* FIXME: Old style functions in need of a replacement. The only
* time these are used is to stroke paths or fill selections
* They should be somewhere else.
*/
gboolean clone_non_gui (GimpDrawable *drawable,
GimpDrawable *src_drawable,
CloneType clone_type,
......@@ -37,8 +71,6 @@ gboolean clone_non_gui (GimpDrawable *drawable,
gboolean clone_non_gui_default (GimpDrawable *drawable,
gint num_strokes,
gdouble *stroke_array);
Tool * tools_new_clone (void);
void tools_free_clone (Tool *tool);
#endif /* __CLONE_H__ */
#endif /* __GIMP_CLONE_TOOL_H__ */
......@@ -24,8 +24,6 @@
#define GIMP_TYPE_BY_COLOR_SELECT_TOOL GTK_TYPE_NONE
#define GIMP_TYPE_CLONE_TOOL GTK_TYPE_NONE
#define GIMP_TYPE_CONVOLVE_TOOL GTK_TYPE_NONE
#define GIMP_TYPE_ROTATE_TOOL GTK_TYPE_NONE
#define GIMP_TYPE_SHEAR_TOOL GTK_TYPE_NONE
#define GIMP_TYPE_PERSPECTIVE_TOOL GTK_TYPE_NONE
......
......@@ -44,6 +44,8 @@
#include "gimppenciltool.h"
#include "gimpdodgeburntool.h"
#include "gimpsmudgetool.h"
#include "gimpclonetool.h"
#include "gimpconvolvetool.h"
#include "libgimp/gimpintl.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment