~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to app/widgets/gimpdockwindow.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GIMP - The GNU Image Manipulation Program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * gimpdockwindow.h
 
5
 * Copyright (C) 2001-2005 Michael Natterer <mitch@gimp.org>
 
6
 * Copyright (C)      2009 Martin Nordholts <martinn@src.gnome.org>
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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/>.
 
20
 */
 
21
 
 
22
#ifndef __GIMP_DOCK_WINDOW_H__
 
23
#define __GIMP_DOCK_WINDOW_H__
 
24
 
 
25
 
 
26
#include "widgets/gimpwindow.h"
 
27
 
 
28
 
 
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))
 
35
 
 
36
 
 
37
typedef struct _GimpDockWindowClass    GimpDockWindowClass;
 
38
typedef struct _GimpDockWindowPrivate  GimpDockWindowPrivate;
 
39
 
 
40
/**
 
41
 * GimpDockWindow:
 
42
 *
 
43
 * A top-level window containing GimpDocks.
 
44
 */
 
45
struct _GimpDockWindow
 
46
{
 
47
  GimpWindow  parent_instance;
 
48
 
 
49
  GimpDockWindowPrivate *p;
 
50
};
 
51
 
 
52
struct _GimpDockWindowClass
 
53
{
 
54
  GimpWindowClass  parent_class;
 
55
};
 
56
 
 
57
 
 
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,
 
66
                                                             GimpDock          *dock,
 
67
                                                             gint               index);
 
68
void                gimp_dock_window_remove_dock            (GimpDockWindow    *dock_window,
 
69
                                                             GimpDock          *dock);
 
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,
 
74
                                                             gboolean           show);
 
75
gboolean            gimp_dock_window_get_show_image_menu    (GimpDockWindow    *menu_dock);
 
76
void                gimp_dock_window_set_show_image_menu    (GimpDockWindow    *menu_dock,
 
77
                                                             gboolean           show);
 
78
void                gimp_dock_window_setup                  (GimpDockWindow    *dock_window,
 
79
                                                             GimpDockWindow    *template);
 
80
gboolean            gimp_dock_window_has_toolbox            (GimpDockWindow    *dock_window);
 
81
 
 
82
GimpDockWindow    * gimp_dock_window_from_dock              (GimpDock          *dock);
 
83
 
 
84
 
 
85
 
 
86
#endif /* __GIMP_DOCK_WINDOW_H__ */