2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-07-21 02:50:20 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimpactionview.h
|
2005-01-21 22:58:03 +08:00
|
|
|
* Copyright (C) 2004-2005 Michael Natterer <mitch@gimp.org>
|
2004-07-21 02:50:20 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-07-21 02:50:20 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-07-21 02:50:20 +08:00
|
|
|
* (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
|
2018-07-12 05:27:07 +08:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2004-07-21 02:50:20 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_ACTION_VIEW_H__
|
|
|
|
#define __GIMP_ACTION_VIEW_H__
|
|
|
|
|
|
|
|
|
2004-10-26 23:10:00 +08:00
|
|
|
enum
|
|
|
|
{
|
2008-09-04 21:46:45 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_VISIBLE,
|
2004-10-26 23:10:00 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_ACTION,
|
2014-05-07 05:47:38 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_ICON_NAME,
|
2004-10-26 23:10:00 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_LABEL,
|
2008-09-04 22:28:00 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_LABEL_CASEFOLD,
|
2004-10-26 23:10:00 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_NAME,
|
|
|
|
GIMP_ACTION_VIEW_COLUMN_ACCEL_KEY,
|
|
|
|
GIMP_ACTION_VIEW_COLUMN_ACCEL_MASK,
|
2005-01-21 22:58:03 +08:00
|
|
|
GIMP_ACTION_VIEW_COLUMN_ACCEL_CLOSURE,
|
2008-11-17 04:17:43 +08:00
|
|
|
GIMP_ACTION_VIEW_N_COLUMNS
|
2004-10-26 23:10:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-07-21 02:50:20 +08:00
|
|
|
#define GIMP_TYPE_ACTION_VIEW (gimp_action_view_get_type ())
|
|
|
|
#define GIMP_ACTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_ACTION_VIEW, GimpActionView))
|
|
|
|
#define GIMP_ACTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_ACTION_VIEW, GimpActionViewClass))
|
|
|
|
#define GIMP_IS_ACTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_ACTION_VIEW))
|
|
|
|
#define GIMP_IS_ACTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_ACTION_VIEW))
|
|
|
|
#define GIMP_ACTION_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_ACTION_VIEW, GimpActionViewClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpActionViewClass GimpActionViewClass;
|
|
|
|
|
|
|
|
struct _GimpActionView
|
|
|
|
{
|
2004-08-13 04:04:19 +08:00
|
|
|
GtkTreeView parent_instance;
|
|
|
|
|
|
|
|
GimpUIManager *manager;
|
|
|
|
gboolean show_shortcuts;
|
2008-09-04 21:46:45 +08:00
|
|
|
|
|
|
|
gchar *filter;
|
2004-07-21 02:50:20 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpActionViewClass
|
|
|
|
{
|
|
|
|
GtkTreeViewClass parent_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-09-04 21:46:45 +08:00
|
|
|
GType gimp_action_view_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GtkWidget * gimp_action_view_new (GimpUIManager *manager,
|
|
|
|
const gchar *select_action,
|
|
|
|
gboolean show_shortcuts);
|
2004-07-21 02:50:20 +08:00
|
|
|
|
2008-09-04 21:46:45 +08:00
|
|
|
void gimp_action_view_set_filter (GimpActionView *view,
|
|
|
|
const gchar *filter);
|
2004-07-21 02:50:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GIMP_ACTION_VIEW_H__ */
|