~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/tools/gimpcroptool.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
20
20
#define  __GIMP_CROP_TOOL_H__
21
21
 
22
22
 
23
 
#ifdef __GNUC__
24
 
#warning FIXME #include "gui/gui-types.h"
25
 
#endif
26
 
#include "gui/gui-types.h"
27
 
 
28
23
#include "gimpdrawtool.h"
29
24
 
30
25
 
32
27
#define GIMP_CROP_TOOL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CROP_TOOL, GimpCropTool))
33
28
#define GIMP_CROP_TOOL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CROP_TOOL, GimpCropToolClass))
34
29
#define GIMP_IS_CROP_TOOL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CROP_TOOL))
35
 
#define GIMP_CROP_TOOL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CROP_TOOL, GimpCropToolClass))
 
30
#define GIMP_IS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CROP_TOOL))
 
31
#define GIMP_CROP_TOOL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CROP_TOOL, GimpCropToolClass))
 
32
 
 
33
#define GIMP_CROP_TOOL_GET_OPTIONS(t)  (GIMP_CROP_OPTIONS (gimp_tool_get_options (GIMP_TOOL (t))))
36
34
 
37
35
 
38
36
typedef struct _GimpCropTool      GimpCropTool;
41
39
struct _GimpCropTool
42
40
{
43
41
  GimpDrawTool  parent_instance;
44
 
 
45
 
  gint          startx;     /*  starting x coord            */
46
 
  gint          starty;     /*  starting y coord            */
47
 
 
48
 
  gint          lastx;      /*  previous x coord            */
49
 
  gint          lasty;      /*  previous y coord            */
50
 
 
51
 
  gint          x1, y1;     /*  upper left hand coordinate  */
52
 
  gint          x2, y2;     /*  lower right hand coords     */
53
 
 
54
 
  guint         function;   /*  moving or resizing          */
55
 
 
56
 
  gint          dx1, dy1;   /*  display coords              */
57
 
  gint          dx2, dy2;   /*                              */
58
 
 
59
 
  gint          dcw, dch;   /*  width and height of corners */
60
 
 
61
 
  /* the crop dialog */
62
 
  InfoDialog   *crop_info;
63
 
 
64
 
  gdouble       orig_vals[2];
65
 
  gdouble       size_vals[2];
66
 
  gdouble       aspect_ratio;
67
 
  gboolean      change_aspect_ratio; /* Boolean for the crop_info_update function */
68
 
                                     /* aspect_ratio should not be chaget whith   */
69
 
                                     /* crop_info_update when is called from      */
70
 
                                     /* crop_aspect_changed, due to the innacurate*/
71
 
                                     /* decimal precision                         */
72
 
 
73
 
  GtkWidget    *origin_sizeentry;
74
 
  GtkWidget    *size_sizeentry;
75
42
};
76
43
 
77
44
struct _GimpCropToolClass