1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
5
* Copyright (C) 2001-2005 Michael Natterer <mitch@gimp.org>
6
* Copyright (C) 2009 Martin Nordholts <martinn@src.gnome.org>
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __GIMP_DOCK_WINDOW_H__
23
#define __GIMP_DOCK_WINDOW_H__
26
#include "widgets/gimpwindow.h"
29
#define GIMP_TYPE_DOCK_WINDOW (gimp_dock_window_get_type ())
30
#define GIMP_DOCK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DOCK_WINDOW, GimpDockWindow))
31
#define GIMP_DOCK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DOCK_WINDOW, GimpDockWindowClass))
32
#define GIMP_IS_DOCK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DOCK_WINDOW))
33
#define GIMP_IS_DOCK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DOCK_WINDOW))
34
#define GIMP_DOCK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_DOCK_WINDOW, GimpDockWindowClass))
37
typedef struct _GimpDockWindowClass GimpDockWindowClass;
38
typedef struct _GimpDockWindowPrivate GimpDockWindowPrivate;
43
* A top-level window containing GimpDocks.
45
struct _GimpDockWindow
47
GimpWindow parent_instance;
49
GimpDockWindowPrivate *p;
52
struct _GimpDockWindowClass
54
GimpWindowClass parent_class;
58
GType gimp_dock_window_get_type (void) G_GNUC_CONST;
59
GtkWidget * gimp_dock_window_new (const gchar *role,
60
const gchar *ui_manager_name,
61
gboolean allow_dockbook_absence,
62
GimpDialogFactory *factory,
63
GimpContext *context);
64
gint gimp_dock_window_get_id (GimpDockWindow *dock_window);
65
void gimp_dock_window_add_dock (GimpDockWindow *dock_window,
68
void gimp_dock_window_remove_dock (GimpDockWindow *dock_window,
70
GimpContext * gimp_dock_window_get_context (GimpDockWindow *dock);
71
GimpDialogFactory * gimp_dock_window_get_dialog_factory (GimpDockWindow *dock);
72
gboolean gimp_dock_window_get_auto_follow_active (GimpDockWindow *menu_dock);
73
void gimp_dock_window_set_auto_follow_active (GimpDockWindow *menu_dock,
75
gboolean gimp_dock_window_get_show_image_menu (GimpDockWindow *menu_dock);
76
void gimp_dock_window_set_show_image_menu (GimpDockWindow *menu_dock,
78
void gimp_dock_window_setup (GimpDockWindow *dock_window,
79
GimpDockWindow *template);
80
gboolean gimp_dock_window_has_toolbox (GimpDockWindow *dock_window);
82
GimpDockWindow * gimp_dock_window_from_dock (GimpDock *dock);
86
#endif /* __GIMP_DOCK_WINDOW_H__ */