gimp/app/selection_options.h
Michael Natterer 8dbd5f9b65 app/airbrush.c app/bezier_select.c app/blend.c app/brightness_contrast.c
1999-04-12  Michael Natterer  <mitschel@cs.tu-berlin.de>

        * app/airbrush.c
        * app/bezier_select.c
        * app/blend.c
        * app/brightness_contrast.c
        * app/bucket_fill.c
        * app/by_color_select.c
        * app/clone.c
        * app/color_balance.c
        * app/color_picker.c
        * app/convolve.c
        * app/crop.c
        * app/curves.c
        * app/ellipse_select.c
        * app/eraser.c
        * app/flip_tool.c
        * app/free_select.c
        * app/fuzzy_select.c
        * app/histogram_tool.c
        * app/hue_saturation.c
        * app/ink.c
        * app/iscissors.c
        * app/levels.c
        * app/magnify.c
        * app/move.c
        * app/paintbrush.c
        * app/pencil.c
        * app/posterize.c
        * app/rect_select.[ch]
        * app/text_tool.c
        * app/threshold.c
        * app/transform_tool.c

        * app/tools.[ch]
        * app/toolsF.h: again: all tools :(

        * app/Makefile.am
        * app/tool_options.[ch]
        * app/selection_options.h
        * app/tool_options_ui.h: new files.

        Ok, this time it's general enough for future extensions:

        - The tool options structures are organized like the gtk object
          system to allow derived tool options.
        - Renamed all create and reset functions to *_options_new() and
          *_options_reset() to reflect this.
        - Changed tools_register() again. Now it takes just a pointer to a
          ToolOptions structure.
        - Moved almost the entire tool options gui code to tool_options.c.
        - Visually separated the common selection options from the
          tool-specific ones. I'd like to do the same with opacity/paint
          mode in all paint tool options but I think this needs some more
          discussion.

        * app/histogram_tool.c: changed packing boxes, label alignments.

        * app/paintbrush.c: some more sensitive settings. The gradient
        feature can now be toggled with a button. Hopefully didn't break
        anything.
1999-04-12 17:55:06 +00:00

87 lines
2.5 KiB
C

/* 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.
*/
#ifndef __SELECTION_OPTIONS_H__
#define __SELECTION_OPTIONS_H__
#include "tools.h"
#include "tool_options.h"
#include "libgimp/gimpunit.h"
/* the selection options structures */
typedef struct _SelectionOptions SelectionOptions;
struct _SelectionOptions
{
ToolOptions tool_options;
/* options used by all selection tools */
int feather;
int feather_d;
GtkWidget *feather_w;
double feather_radius;
double feather_radius_d;
GtkObject *feather_radius_w;
/* used by all selection tools except rect. select */
int antialias;
int antialias_d;
GtkWidget *antialias_w;
/* used by fuzzy, by-color selection */
int sample_merged;
int sample_merged_d;
GtkWidget *sample_merged_w;
/* used by rect., ellipse selection */
int fixed_size;
int fixed_size_d;
GtkWidget *fixed_size_w;
int fixed_width;
int fixed_width_d;
GtkObject *fixed_width_w;
int fixed_height;
int fixed_height_d;
GtkObject *fixed_height_w;
GUnit fixed_unit;
GUnit fixed_unit_d;
GtkWidget *fixed_unit_w;
/* used by bezier selection */
int extend;
};
/* selection tool options functions
*/
SelectionOptions * selection_options_new (ToolType tool_type,
ToolOptionsResetFunc reset_func);
void selection_options_reset (SelectionOptions *options);
/* to be used by "derived selection options only
*/
void selection_options_init (SelectionOptions *options,
ToolType tool_type,
ToolOptionsResetFunc reset_func);
#endif /* __SELCTION_OPTIONS_H__ */