Commit 6fa118a0 authored by Nate Summers's avatar Nate Summers
Browse files

More transform tool work.

parent 61616825
2001-03-09 Nathan Summers <rock@gimp.org>
* app/tools/gimptransformtool.[ch]: More work on the transform tool.
Still does not compile, but it's much closer.
* app/tools/Makefile.am
* app/apptypes.h
* app/undo.c: changed accordingly
2001-03-08 Michael Natterer <mitch@gimp.org>
* app/tools/Makefile.am
......
......@@ -177,7 +177,7 @@ typedef struct _Selection Selection;
typedef struct _SelectionOptions SelectionOptions;
typedef struct _TransformCore TransformCore;
typedef struct _GimpTransformTool GimpTransformTool;
/* some undo stuff */
......
This diff is collapsed.
This diff is collapsed.
......@@ -1263,6 +1263,8 @@ undo_pop_transform (GimpImage *gimage,
UndoType type,
gpointer tu_ptr)
{
#warning very bogus
#if 0
TransformCore *tc;
TransformUndo *tu;
TileManager *temp;
......@@ -1270,8 +1272,6 @@ undo_pop_transform (GimpImage *gimage,
gint i;
#warning very bogus
#if 0
/* Can't have ANY tool selected - maybe a plugin running */
if (active_tool == NULL)
return TRUE;
......
......@@ -75,6 +75,8 @@ libapptools_la_SOURCES = \
gimptool.h \
gimptoolinfo.c \
gimptoolinfo.h \
## gimptransformtool.c \
## gimptransformtool.h \
\
paint_options.c \
paint_options.h \
......
This diff is collapsed.
......@@ -20,7 +20,7 @@
#define __GIMP_TRANSFORM_TOOL_H__
#include "tools/tool.h"
#include "tools/gimptool.h"
#define GIMP_TYPE_TRANSFORM_TOOL (gimp_transform_tool_get_type ())
#define GIMP_TRANSFORM_TOOL(obj) (GTK_CHECK_CAST ((obj), GIMP_TYPE_TRANSFORM_TOOL, GimpTransformTool))
......@@ -101,7 +101,7 @@ struct _GimpTransformToolClass {
GDisplay *gdisp,
TransformState state);
}
};
/* Special undo type */
typedef struct _TransformUndo TransformUndo;
......@@ -126,7 +126,7 @@ extern InfoDialog * transform_info;
Tool * gimp_transform_tool_new (GimpTransformToolType tool_type,
gboolean interactive);
*/
void gimp_transform_tool_destroy (GimpTransformTool *tool);
void gimp_transform_tool_destroy (GtkObject *tool);
void gimp_transform_tool_draw (GimpTransformTool *tool);
void gimp_transform_tool_no_draw (GimpTransformTool *tool);
void gimp_transform_tool_transform_bounding_box (GimpTransformTool *tool);
......@@ -134,19 +134,22 @@ void gimp_transform_tool_reset (GimpTransformTool *
GDisplay *gdisp);
void gimp_transform_tool_grid_density_changed (void);
void gimp_transform_tool_showpath_changed (gint type);
TileManager * gimp_transform_tool_transform (GimpTransformTool *tool,
GDisplay *gdisp,
TransformState state);
/* transform functions */
TileManager * gimp_transform_tool_transform (GImage *gimage,
/* FIXME this function needs to be renamed */
TileManager * gimp_transform_tool_do (GimpImage *gimage,
GimpDrawable *drawable,
TileManager *float_tiles,
gboolean interpolation,
GimpMatrix3 matrix,
GimpProgressFunc progress_callback,
gpointer progress_data);
TileManager * gimp_transform_tool_cut (GImage *gimage,
TileManager * gimp_transform_tool_cut (GimpImage *gimage,
GimpDrawable *drawable,
gboolean *new_layer);
gboolean gimp_transform_tool_paste (GImage *gimage,
gboolean gimp_transform_tool_paste (GimpImage *gimage,
GimpDrawable *drawable,
TileManager *tiles,
gboolean new_layer);
......
......@@ -1263,6 +1263,8 @@ undo_pop_transform (GimpImage *gimage,
UndoType type,
gpointer tu_ptr)
{
#warning very bogus
#if 0
TransformCore *tc;
TransformUndo *tu;
TileManager *temp;
......@@ -1270,8 +1272,6 @@ undo_pop_transform (GimpImage *gimage,
gint i;
#warning very bogus
#if 0
/* Can't have ANY tool selected - maybe a plugin running */
if (active_tool == NULL)
return TRUE;
......
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