2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-05-19 20:56:37 +00:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimpaction.h
|
2019-07-02 03:54:38 +02:00
|
|
|
* Copyright (C) 2004-2019 Michael Natterer <mitch@gimp.org>
|
2004-05-19 20:56:37 +00:00
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-05-19 20:56:37 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 22:28:01 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-05-19 20:56:37 +00: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-11 23:27:07 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2004-05-19 20:56:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_ACTION_H__
|
|
|
|
#define __GIMP_ACTION_H__
|
|
|
|
|
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
#define GIMP_TYPE_ACTION (gimp_action_get_type ())
|
|
|
|
#define GIMP_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_ACTION, GimpAction))
|
|
|
|
#define GIMP_IS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_ACTION))
|
|
|
|
#define GIMP_ACTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), GIMP_TYPE_ACTION, GimpActionInterface))
|
2004-05-19 20:56:37 +00:00
|
|
|
|
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
typedef struct _GimpActionInterface GimpActionInterface;
|
2004-05-19 20:56:37 +00:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
struct _GimpActionInterface
|
2004-05-19 20:56:37 +00:00
|
|
|
{
|
2019-07-02 03:54:38 +02:00
|
|
|
GTypeInterface base_interface;
|
2019-07-04 01:11:48 +02:00
|
|
|
|
|
|
|
void (* activate) (GimpAction *action,
|
|
|
|
GVariant *value);
|
|
|
|
void (* change_state) (GimpAction *action,
|
|
|
|
GVariant *value);
|
2019-07-02 03:54:38 +02:00
|
|
|
};
|
2004-05-19 20:56:37 +00:00
|
|
|
|
2006-09-01 17:12:29 +00:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
GType gimp_action_get_type (void) G_GNUC_CONST;
|
2004-05-19 20:56:37 +00:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
void gimp_action_init (GimpAction *action);
|
|
|
|
|
2019-07-04 01:11:48 +02:00
|
|
|
void gimp_action_emit_activate (GimpAction *action,
|
|
|
|
GVariant *value);
|
|
|
|
void gimp_action_emit_change_state (GimpAction *action,
|
|
|
|
GVariant *value);
|
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
void gimp_action_set_proxy (GimpAction *action,
|
|
|
|
GtkWidget *proxy);
|
|
|
|
|
|
|
|
const gchar * gimp_action_get_name (GimpAction *action);
|
|
|
|
|
|
|
|
void gimp_action_set_label (GimpAction *action,
|
|
|
|
const gchar *label);
|
|
|
|
const gchar * gimp_action_get_label (GimpAction *action);
|
|
|
|
|
|
|
|
void gimp_action_set_tooltip (GimpAction *action,
|
|
|
|
const gchar *tooltip);
|
|
|
|
const gchar * gimp_action_get_tooltip (GimpAction *action);
|
|
|
|
|
|
|
|
void gimp_action_set_icon_name (GimpAction *action,
|
|
|
|
const gchar *icon_name);
|
|
|
|
const gchar * gimp_action_get_icon_name (GimpAction *action);
|
|
|
|
|
2019-07-05 12:32:36 +02:00
|
|
|
void gimp_action_set_gicon (GimpAction *action,
|
|
|
|
GIcon *icon);
|
|
|
|
GIcon * gimp_action_get_gicon (GimpAction *action);
|
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
void gimp_action_set_help_id (GimpAction *action,
|
|
|
|
const gchar *help_id);
|
|
|
|
const gchar * gimp_action_get_help_id (GimpAction *action);
|
|
|
|
|
|
|
|
void gimp_action_set_visible (GimpAction *action,
|
|
|
|
gboolean visible);
|
|
|
|
gboolean gimp_action_get_visible (GimpAction *action);
|
|
|
|
gboolean gimp_action_is_visible (GimpAction *action);
|
|
|
|
|
|
|
|
void gimp_action_set_sensitive (GimpAction *action,
|
|
|
|
gboolean sensitive);
|
|
|
|
gboolean gimp_action_get_sensitive (GimpAction *action);
|
|
|
|
gboolean gimp_action_is_sensitive (GimpAction *action);
|
|
|
|
|
|
|
|
GClosure * gimp_action_get_accel_closure (GimpAction *action);
|
2004-05-19 20:56:37 +00:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
void gimp_action_set_accel_path (GimpAction *action,
|
|
|
|
const gchar *accel_path);
|
|
|
|
const gchar * gimp_action_get_accel_path (GimpAction *action);
|
2004-05-19 20:56:37 +00:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
void gimp_action_set_accel_group (GimpAction *action,
|
|
|
|
GtkAccelGroup *accel_group);
|
|
|
|
void gimp_action_connect_accelerator (GimpAction *action);
|
2005-04-16 23:48:29 +00:00
|
|
|
|
2019-07-05 12:32:36 +02:00
|
|
|
GSList * gimp_action_get_proxies (GimpAction *action);
|
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
void gimp_action_activate (GimpAction *action);
|
2004-07-20 18:50:20 +00:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
gint gimp_action_name_compare (GimpAction *action1,
|
|
|
|
GimpAction *action2);
|
2014-04-20 15:57:57 +02:00
|
|
|
|
2019-07-02 03:54:38 +02:00
|
|
|
gboolean gimp_action_is_gui_blacklisted (const gchar *action_name);
|
2004-05-19 20:56:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GIMP_ACTION_H__ */
|