1999-04-13 01:55:06 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995-1999 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
1999-04-13 01:55:06 +08:00
|
|
|
#ifndef __SELECTION_OPTIONS_H__
|
|
|
|
#define __SELECTION_OPTIONS_H__
|
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
|
1999-04-13 01:55:06 +08:00
|
|
|
#include "tool_options.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* the selection options structures */
|
|
|
|
|
|
|
|
struct _SelectionOptions
|
|
|
|
{
|
2001-07-18 04:50:01 +08:00
|
|
|
GimpToolOptions tool_options;
|
1999-04-13 01:55:06 +08:00
|
|
|
|
|
|
|
/* options used by all selection tools */
|
2001-11-21 11:54:09 +08:00
|
|
|
SelectOps op;
|
|
|
|
SelectOps op_d;
|
|
|
|
GtkWidget *op_w[4]; /* 4 radio buttons */
|
|
|
|
|
2001-11-24 00:25:01 +08:00
|
|
|
gboolean antialias;
|
|
|
|
gboolean antialias_d;
|
|
|
|
GtkWidget *antialias_w;
|
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
gboolean feather;
|
|
|
|
gboolean feather_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkWidget *feather_w;
|
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
gdouble feather_radius;
|
|
|
|
gdouble feather_radius_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkObject *feather_radius_w;
|
|
|
|
|
|
|
|
/* used by fuzzy, by-color selection */
|
2002-02-10 23:18:08 +08:00
|
|
|
gboolean select_transparent;
|
|
|
|
gboolean select_transparent_d;
|
|
|
|
GtkWidget *select_transparent_w;
|
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
gboolean sample_merged;
|
|
|
|
gboolean sample_merged_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkWidget *sample_merged_w;
|
|
|
|
|
2000-04-20 23:57:13 +08:00
|
|
|
gdouble threshold;
|
|
|
|
/* gdouble threshold_d; (from gimprc) */
|
|
|
|
GtkObject *threshold_w;
|
|
|
|
|
1999-04-13 01:55:06 +08:00
|
|
|
/* used by rect., ellipse selection */
|
2001-11-10 22:17:01 +08:00
|
|
|
gboolean auto_shrink;
|
|
|
|
gboolean auto_shrink_d;
|
|
|
|
GtkWidget *auto_shrink_w;
|
|
|
|
|
|
|
|
gboolean shrink_merged;
|
|
|
|
gboolean shrink_merged_d;
|
|
|
|
GtkWidget *shrink_merged_w;
|
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
gboolean fixed_size;
|
|
|
|
gboolean fixed_size_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkWidget *fixed_size_w;
|
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
gdouble fixed_width;
|
|
|
|
gdouble fixed_width_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkObject *fixed_width_w;
|
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
gdouble fixed_height;
|
|
|
|
gdouble fixed_height_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkObject *fixed_height_w;
|
|
|
|
|
2000-02-08 04:35:13 +08:00
|
|
|
GimpUnit fixed_unit;
|
|
|
|
GimpUnit fixed_unit_d;
|
1999-04-13 01:55:06 +08:00
|
|
|
GtkWidget *fixed_unit_w;
|
|
|
|
|
2001-01-02 22:50:11 +08:00
|
|
|
/* used by iscissors */
|
|
|
|
gboolean interactive;
|
2001-01-02 23:22:22 +08:00
|
|
|
gboolean interactive_d;
|
2001-01-02 22:50:11 +08:00
|
|
|
GtkWidget *interactive_w;
|
1999-04-13 01:55:06 +08:00
|
|
|
};
|
|
|
|
|
2001-01-02 22:50:11 +08:00
|
|
|
|
1999-04-13 01:55:06 +08:00
|
|
|
/* selection tool options functions
|
|
|
|
*/
|
2001-11-21 07:00:47 +08:00
|
|
|
GimpToolOptions * selection_options_new (GimpToolInfo *tool_info);
|
1999-04-13 01:55:06 +08:00
|
|
|
|
2001-11-21 07:00:47 +08:00
|
|
|
void selection_options_reset (GimpToolOptions *tool_options);
|
2001-04-01 04:41:39 +08:00
|
|
|
|
1999-04-13 01:55:06 +08:00
|
|
|
|
2001-01-22 12:17:17 +08:00
|
|
|
/* to be used by "derived" selection options only
|
1999-04-13 01:55:06 +08:00
|
|
|
*/
|
2001-11-21 07:00:47 +08:00
|
|
|
void selection_options_init (SelectionOptions *options,
|
|
|
|
GimpToolInfo *tool_info);
|
1999-04-13 01:55:06 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
|
1999-04-13 01:55:06 +08:00
|
|
|
#endif /* __SELCTION_OPTIONS_H__ */
|