2001-03-12 01:24:47 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2003-03-16 19:14:29 +08:00
|
|
|
* gimplayertreeview.h
|
|
|
|
* Copyright (C) 2001-2003 Michael Natterer <mitch@gimp.org>
|
2001-04-22 08:38:56 +08:00
|
|
|
*
|
2001-03-12 01:24:47 +08:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
#ifndef __GIMP_LAYER_TREE_VIEW_H__
|
|
|
|
#define __GIMP_LAYER_TREE_VIEW_H__
|
2001-03-12 01:24:47 +08:00
|
|
|
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
#include "gimpdrawabletreeview.h"
|
2001-03-12 01:24:47 +08:00
|
|
|
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
#define GIMP_TYPE_LAYER_TREE_VIEW (gimp_layer_tree_view_get_type ())
|
|
|
|
#define GIMP_LAYER_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_LAYER_TREE_VIEW, GimpLayerTreeView))
|
|
|
|
#define GIMP_LAYER_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_LAYER_TREE_VIEW, GimpLayerTreeViewClass))
|
|
|
|
#define GIMP_IS_LAYER_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_LAYER_TREE_VIEW))
|
|
|
|
#define GIMP_IS_LAYER_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_LAYER_TREE_VIEW))
|
|
|
|
#define GIMP_LAYER_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_LAYER_TREE_VIEW, GimpLayerTreeViewClass))
|
2001-03-12 01:24:47 +08:00
|
|
|
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
typedef struct _GimpLayerTreeViewClass GimpLayerTreeViewClass;
|
2001-03-12 01:24:47 +08:00
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
struct _GimpLayerTreeView
|
2001-03-12 01:24:47 +08:00
|
|
|
{
|
2003-03-16 19:14:29 +08:00
|
|
|
GimpDrawableTreeView parent_instance;
|
2001-03-12 01:24:47 +08:00
|
|
|
|
|
|
|
GtkWidget *options_box;
|
|
|
|
GtkWidget *paint_mode_menu;
|
|
|
|
GtkAdjustment *opacity_adjustment;
|
2005-07-11 05:17:22 +08:00
|
|
|
GtkWidget *lock_alpha_toggle;
|
2001-03-12 01:24:47 +08:00
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
gint model_column_mask;
|
|
|
|
gint model_column_mask_visible;
|
|
|
|
|
|
|
|
GtkCellRenderer *mask_cell;
|
|
|
|
|
2003-09-07 05:17:16 +08:00
|
|
|
PangoAttrList *italic_attrs;
|
|
|
|
PangoAttrList *bold_attrs;
|
|
|
|
|
2001-03-12 01:24:47 +08:00
|
|
|
/*< private >*/
|
|
|
|
GQuark mode_changed_handler_id;
|
|
|
|
GQuark opacity_changed_handler_id;
|
2005-07-11 05:17:22 +08:00
|
|
|
GQuark lock_alpha_changed_handler_id;
|
2003-03-16 19:14:29 +08:00
|
|
|
GQuark mask_changed_handler_id;
|
2003-05-21 19:34:00 +08:00
|
|
|
GQuark alpha_changed_handler_id;
|
2001-03-12 01:24:47 +08:00
|
|
|
};
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
struct _GimpLayerTreeViewClass
|
2001-03-12 01:24:47 +08:00
|
|
|
{
|
2003-03-16 19:14:29 +08:00
|
|
|
GimpDrawableTreeViewClass parent_class;
|
2001-03-12 01:24:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
GType gimp_layer_tree_view_get_type (void) G_GNUC_CONST;
|
2001-03-12 01:24:47 +08:00
|
|
|
|
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
#endif /* __GIMP_LAYER_TREE_VIEW_H__ */
|