gimpmenudock.h 2.58 KB
Newer Older
Michael Natterer's avatar
Michael Natterer committed
1
2
3
/* The GIMP -- an image manipulation program
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
4
5
 * gimpmenudock.h
 * Copyright (C) 2001-2005 Michael Natterer <mitch@gimp.org>
Michael Natterer's avatar
Michael Natterer committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 *
 * 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.
 */

22
23
#ifndef __GIMP_MENU_DOCK_H__
#define __GIMP_MENU_DOCK_H__
Michael Natterer's avatar
Michael Natterer committed
24
25


26
#include "gimpimagedock.h"
Michael Natterer's avatar
Michael Natterer committed
27
28


29
30
31
32
33
34
#define GIMP_TYPE_MENU_DOCK            (gimp_menu_dock_get_type ())
#define GIMP_MENU_DOCK(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_MENU_DOCK, GimpMenuDock))
#define GIMP_MENU_DOCK_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_MENU_DOCK, GimpMenuDockClass))
#define GIMP_IS_MENU_DOCK(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_MENU_DOCK))
#define GIMP_IS_MENU_DOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_MENU_DOCK))
#define GIMP_MENU_DOCK_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_MENU_DOCK, GimpMenuDockClass))
Michael Natterer's avatar
Michael Natterer committed
35
36


37
typedef struct _GimpMenuDockClass  GimpMenuDockClass;
Michael Natterer's avatar
Michael Natterer committed
38

39
struct _GimpMenuDock
Michael Natterer's avatar
Michael Natterer committed
40
{
41
  GimpImageDock  parent_instance;
Michael Natterer's avatar
Michael Natterer committed
42

43
44
  GimpContainer *image_container;
  GimpContainer *display_container;
Michael Natterer's avatar
Michael Natterer committed
45

46
47
  gboolean       show_image_menu;
  gboolean       auto_follow_active;
Michael Natterer's avatar
Michael Natterer committed
48

49
50
  GtkWidget     *image_combo;
  GtkWidget     *auto_button;
51

52
  guint          update_title_idle_id;
Michael Natterer's avatar
Michael Natterer committed
53
54
};

55
struct _GimpMenuDockClass
Michael Natterer's avatar
Michael Natterer committed
56
{
57
  GimpImageDockClass  parent_class;
Michael Natterer's avatar
Michael Natterer committed
58
59
60
};


61
GType       gimp_menu_dock_get_type (void) G_GNUC_CONST;
Michael Natterer's avatar
Michael Natterer committed
62

63
64
65
GtkWidget * gimp_menu_dock_new      (GimpDialogFactory *dialog_factory,
                                     GimpContainer     *image_container,
                                     GimpContainer     *display_container);
Michael Natterer's avatar
Michael Natterer committed
66

67
68
69
70
void        gimp_menu_dock_set_auto_follow_active (GimpMenuDock *menu_dock,
                                                   gboolean      show);
void        gimp_menu_dock_set_show_image_menu    (GimpMenuDock *menu_dock,
                                                   gboolean      show);
Michael Natterer's avatar
Michael Natterer committed
71
72


73
#endif /* __GIMP_MENU_DOCK_H__ */