enums should be all UPPER_CASE
--Sven
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Thu Dec 23 00:29:27 CET 1999 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/clone.c: enums should be all UPPER_CASE
|
||||||
|
|
||||||
Wed Dec 22 23:20:42 CET 1999 Sven Neumann <sven@gimp.org>
|
Wed Dec 22 23:20:42 CET 1999 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/menus.c
|
* app/menus.c
|
||||||
|
16
app/clone.c
16
app/clone.c
@ -37,16 +37,16 @@
|
|||||||
#define TARGET_WIDTH 15
|
#define TARGET_WIDTH 15
|
||||||
|
|
||||||
/* default types */
|
/* default types */
|
||||||
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
||||||
#define CLONE_DEFAULT_ALIGNED AlignNo
|
#define CLONE_DEFAULT_ALIGNED ALIGN_NO
|
||||||
|
|
||||||
/* the clone structures */
|
/* the clone structures */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AlignNo,
|
ALIGN_NO,
|
||||||
AlignYes,
|
ALIGN_YES,
|
||||||
AlignRegister
|
ALIGN_REGISTERED
|
||||||
} AlignType;
|
} AlignType;
|
||||||
|
|
||||||
typedef struct _CloneOptions CloneOptions;
|
typedef struct _CloneOptions CloneOptions;
|
||||||
@ -278,7 +278,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
dest_x = x1;
|
dest_x = x1;
|
||||||
dest_y = y1;
|
dest_y = y1;
|
||||||
|
|
||||||
if (clone_options->aligned == AlignRegister)
|
if (clone_options->aligned == ALIGN_REGISTERED)
|
||||||
{
|
{
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
offset_y = 0;
|
offset_y = 0;
|
||||||
@ -310,7 +310,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
src_y = paint_core->cury;
|
src_y = paint_core->cury;
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
}
|
}
|
||||||
else if (clone_options->aligned == AlignNo)
|
else if (clone_options->aligned == ALIGN_NO)
|
||||||
{
|
{
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
orig_src_x = src_x;
|
orig_src_x = src_x;
|
||||||
@ -323,7 +323,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
|
|
||||||
case FINISH_PAINT :
|
case FINISH_PAINT :
|
||||||
draw_core_stop (paint_core->core, active_tool);
|
draw_core_stop (paint_core->core, active_tool);
|
||||||
if (clone_options->aligned == AlignNo && !first)
|
if (clone_options->aligned == ALIGN_NO && !first)
|
||||||
{
|
{
|
||||||
src_x = orig_src_x;
|
src_x = orig_src_x;
|
||||||
src_y = orig_src_y;
|
src_y = orig_src_y;
|
||||||
|
@ -37,16 +37,16 @@
|
|||||||
#define TARGET_WIDTH 15
|
#define TARGET_WIDTH 15
|
||||||
|
|
||||||
/* default types */
|
/* default types */
|
||||||
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
||||||
#define CLONE_DEFAULT_ALIGNED AlignNo
|
#define CLONE_DEFAULT_ALIGNED ALIGN_NO
|
||||||
|
|
||||||
/* the clone structures */
|
/* the clone structures */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AlignNo,
|
ALIGN_NO,
|
||||||
AlignYes,
|
ALIGN_YES,
|
||||||
AlignRegister
|
ALIGN_REGISTERED
|
||||||
} AlignType;
|
} AlignType;
|
||||||
|
|
||||||
typedef struct _CloneOptions CloneOptions;
|
typedef struct _CloneOptions CloneOptions;
|
||||||
@ -278,7 +278,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
dest_x = x1;
|
dest_x = x1;
|
||||||
dest_y = y1;
|
dest_y = y1;
|
||||||
|
|
||||||
if (clone_options->aligned == AlignRegister)
|
if (clone_options->aligned == ALIGN_REGISTERED)
|
||||||
{
|
{
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
offset_y = 0;
|
offset_y = 0;
|
||||||
@ -310,7 +310,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
src_y = paint_core->cury;
|
src_y = paint_core->cury;
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
}
|
}
|
||||||
else if (clone_options->aligned == AlignNo)
|
else if (clone_options->aligned == ALIGN_NO)
|
||||||
{
|
{
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
orig_src_x = src_x;
|
orig_src_x = src_x;
|
||||||
@ -323,7 +323,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
|
|
||||||
case FINISH_PAINT :
|
case FINISH_PAINT :
|
||||||
draw_core_stop (paint_core->core, active_tool);
|
draw_core_stop (paint_core->core, active_tool);
|
||||||
if (clone_options->aligned == AlignNo && !first)
|
if (clone_options->aligned == ALIGN_NO && !first)
|
||||||
{
|
{
|
||||||
src_x = orig_src_x;
|
src_x = orig_src_x;
|
||||||
src_y = orig_src_y;
|
src_y = orig_src_y;
|
||||||
|
@ -37,16 +37,16 @@
|
|||||||
#define TARGET_WIDTH 15
|
#define TARGET_WIDTH 15
|
||||||
|
|
||||||
/* default types */
|
/* default types */
|
||||||
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
||||||
#define CLONE_DEFAULT_ALIGNED AlignNo
|
#define CLONE_DEFAULT_ALIGNED ALIGN_NO
|
||||||
|
|
||||||
/* the clone structures */
|
/* the clone structures */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AlignNo,
|
ALIGN_NO,
|
||||||
AlignYes,
|
ALIGN_YES,
|
||||||
AlignRegister
|
ALIGN_REGISTERED
|
||||||
} AlignType;
|
} AlignType;
|
||||||
|
|
||||||
typedef struct _CloneOptions CloneOptions;
|
typedef struct _CloneOptions CloneOptions;
|
||||||
@ -278,7 +278,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
dest_x = x1;
|
dest_x = x1;
|
||||||
dest_y = y1;
|
dest_y = y1;
|
||||||
|
|
||||||
if (clone_options->aligned == AlignRegister)
|
if (clone_options->aligned == ALIGN_REGISTERED)
|
||||||
{
|
{
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
offset_y = 0;
|
offset_y = 0;
|
||||||
@ -310,7 +310,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
src_y = paint_core->cury;
|
src_y = paint_core->cury;
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
}
|
}
|
||||||
else if (clone_options->aligned == AlignNo)
|
else if (clone_options->aligned == ALIGN_NO)
|
||||||
{
|
{
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
orig_src_x = src_x;
|
orig_src_x = src_x;
|
||||||
@ -323,7 +323,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
|
|
||||||
case FINISH_PAINT :
|
case FINISH_PAINT :
|
||||||
draw_core_stop (paint_core->core, active_tool);
|
draw_core_stop (paint_core->core, active_tool);
|
||||||
if (clone_options->aligned == AlignNo && !first)
|
if (clone_options->aligned == ALIGN_NO && !first)
|
||||||
{
|
{
|
||||||
src_x = orig_src_x;
|
src_x = orig_src_x;
|
||||||
src_y = orig_src_y;
|
src_y = orig_src_y;
|
||||||
|
@ -37,16 +37,16 @@
|
|||||||
#define TARGET_WIDTH 15
|
#define TARGET_WIDTH 15
|
||||||
|
|
||||||
/* default types */
|
/* default types */
|
||||||
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
||||||
#define CLONE_DEFAULT_ALIGNED AlignNo
|
#define CLONE_DEFAULT_ALIGNED ALIGN_NO
|
||||||
|
|
||||||
/* the clone structures */
|
/* the clone structures */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AlignNo,
|
ALIGN_NO,
|
||||||
AlignYes,
|
ALIGN_YES,
|
||||||
AlignRegister
|
ALIGN_REGISTERED
|
||||||
} AlignType;
|
} AlignType;
|
||||||
|
|
||||||
typedef struct _CloneOptions CloneOptions;
|
typedef struct _CloneOptions CloneOptions;
|
||||||
@ -278,7 +278,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
dest_x = x1;
|
dest_x = x1;
|
||||||
dest_y = y1;
|
dest_y = y1;
|
||||||
|
|
||||||
if (clone_options->aligned == AlignRegister)
|
if (clone_options->aligned == ALIGN_REGISTERED)
|
||||||
{
|
{
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
offset_y = 0;
|
offset_y = 0;
|
||||||
@ -310,7 +310,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
src_y = paint_core->cury;
|
src_y = paint_core->cury;
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
}
|
}
|
||||||
else if (clone_options->aligned == AlignNo)
|
else if (clone_options->aligned == ALIGN_NO)
|
||||||
{
|
{
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
orig_src_x = src_x;
|
orig_src_x = src_x;
|
||||||
@ -323,7 +323,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
|
|
||||||
case FINISH_PAINT :
|
case FINISH_PAINT :
|
||||||
draw_core_stop (paint_core->core, active_tool);
|
draw_core_stop (paint_core->core, active_tool);
|
||||||
if (clone_options->aligned == AlignNo && !first)
|
if (clone_options->aligned == ALIGN_NO && !first)
|
||||||
{
|
{
|
||||||
src_x = orig_src_x;
|
src_x = orig_src_x;
|
||||||
src_y = orig_src_y;
|
src_y = orig_src_y;
|
||||||
|
@ -37,16 +37,16 @@
|
|||||||
#define TARGET_WIDTH 15
|
#define TARGET_WIDTH 15
|
||||||
|
|
||||||
/* default types */
|
/* default types */
|
||||||
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
||||||
#define CLONE_DEFAULT_ALIGNED AlignNo
|
#define CLONE_DEFAULT_ALIGNED ALIGN_NO
|
||||||
|
|
||||||
/* the clone structures */
|
/* the clone structures */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AlignNo,
|
ALIGN_NO,
|
||||||
AlignYes,
|
ALIGN_YES,
|
||||||
AlignRegister
|
ALIGN_REGISTERED
|
||||||
} AlignType;
|
} AlignType;
|
||||||
|
|
||||||
typedef struct _CloneOptions CloneOptions;
|
typedef struct _CloneOptions CloneOptions;
|
||||||
@ -278,7 +278,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
dest_x = x1;
|
dest_x = x1;
|
||||||
dest_y = y1;
|
dest_y = y1;
|
||||||
|
|
||||||
if (clone_options->aligned == AlignRegister)
|
if (clone_options->aligned == ALIGN_REGISTERED)
|
||||||
{
|
{
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
offset_y = 0;
|
offset_y = 0;
|
||||||
@ -310,7 +310,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
src_y = paint_core->cury;
|
src_y = paint_core->cury;
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
}
|
}
|
||||||
else if (clone_options->aligned == AlignNo)
|
else if (clone_options->aligned == ALIGN_NO)
|
||||||
{
|
{
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
orig_src_x = src_x;
|
orig_src_x = src_x;
|
||||||
@ -323,7 +323,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
|
|
||||||
case FINISH_PAINT :
|
case FINISH_PAINT :
|
||||||
draw_core_stop (paint_core->core, active_tool);
|
draw_core_stop (paint_core->core, active_tool);
|
||||||
if (clone_options->aligned == AlignNo && !first)
|
if (clone_options->aligned == ALIGN_NO && !first)
|
||||||
{
|
{
|
||||||
src_x = orig_src_x;
|
src_x = orig_src_x;
|
||||||
src_y = orig_src_y;
|
src_y = orig_src_y;
|
||||||
|
@ -37,16 +37,16 @@
|
|||||||
#define TARGET_WIDTH 15
|
#define TARGET_WIDTH 15
|
||||||
|
|
||||||
/* default types */
|
/* default types */
|
||||||
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
#define CLONE_DEFAULT_TYPE IMAGE_CLONE
|
||||||
#define CLONE_DEFAULT_ALIGNED AlignNo
|
#define CLONE_DEFAULT_ALIGNED ALIGN_NO
|
||||||
|
|
||||||
/* the clone structures */
|
/* the clone structures */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AlignNo,
|
ALIGN_NO,
|
||||||
AlignYes,
|
ALIGN_YES,
|
||||||
AlignRegister
|
ALIGN_REGISTERED
|
||||||
} AlignType;
|
} AlignType;
|
||||||
|
|
||||||
typedef struct _CloneOptions CloneOptions;
|
typedef struct _CloneOptions CloneOptions;
|
||||||
@ -278,7 +278,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
dest_x = x1;
|
dest_x = x1;
|
||||||
dest_y = y1;
|
dest_y = y1;
|
||||||
|
|
||||||
if (clone_options->aligned == AlignRegister)
|
if (clone_options->aligned == ALIGN_REGISTERED)
|
||||||
{
|
{
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
offset_y = 0;
|
offset_y = 0;
|
||||||
@ -310,7 +310,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
src_y = paint_core->cury;
|
src_y = paint_core->cury;
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
}
|
}
|
||||||
else if (clone_options->aligned == AlignNo)
|
else if (clone_options->aligned == ALIGN_NO)
|
||||||
{
|
{
|
||||||
first = TRUE;
|
first = TRUE;
|
||||||
orig_src_x = src_x;
|
orig_src_x = src_x;
|
||||||
@ -323,7 +323,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||||||
|
|
||||||
case FINISH_PAINT :
|
case FINISH_PAINT :
|
||||||
draw_core_stop (paint_core->core, active_tool);
|
draw_core_stop (paint_core->core, active_tool);
|
||||||
if (clone_options->aligned == AlignNo && !first)
|
if (clone_options->aligned == ALIGN_NO && !first)
|
||||||
{
|
{
|
||||||
src_x = orig_src_x;
|
src_x = orig_src_x;
|
||||||
src_y = orig_src_y;
|
src_y = orig_src_y;
|
||||||
|
Reference in New Issue
Block a user