1
/* The GIMP -- an image manipulation program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* gimpnavigationeditor.h
5
* Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
7
* partly based on app/nav_window
8
* Copyright (C) 1999 Andy Thomas <alt@gimp.org>
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
#ifndef __GIMP_NAVIGATION_EDITOR_H__
26
#define __GIMP_NAVIGATION_EDITOR_H__
29
#include "widgets/gimpeditor.h"
32
#define GIMP_TYPE_NAVIGATION_EDITOR (gimp_navigation_editor_get_type ())
33
#define GIMP_NAVIGATION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_NAVIGATION_EDITOR, GimpNavigationEditor))
34
#define GIMP_NAVIGATION_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_NAVIGATION_EDITOR, GimpNavigationEditorClass))
35
#define GIMP_IS_NAVIGATION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_NAVIGATION_EDITOR))
36
#define GIMP_IS_NAVIGATION_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_NAVIGATION_EDITOR))
37
#define GIMP_NAVIGATION_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_NAVIGATION_EDITOR, GimpNavigationEditorClass))
40
typedef struct _GimpNavigationEditorClass GimpNavigationEditorClass;
42
struct _GimpNavigationEditor
44
GimpEditor parent_instance;
47
GimpDisplayShell *shell;
50
GtkWidget *zoom_label;
51
GtkAdjustment *zoom_adjustment;
53
GtkWidget *zoom_out_button;
54
GtkWidget *zoom_in_button;
55
GtkWidget *zoom_100_button;
56
GtkWidget *zoom_fit_in_button;
57
GtkWidget *zoom_fit_to_button;
58
GtkWidget *shrink_wrap_button;
61
struct _GimpNavigationEditorClass
63
GimpEditorClass parent_class;
67
GType gimp_navigation_editor_get_type (void) G_GNUC_CONST;
69
GtkWidget * gimp_navigation_editor_new (GimpMenuFactory *menu_factory);
70
void gimp_navigation_editor_popup (GimpDisplayShell *shell,
76
#endif /* __GIMP_NAVIGATION_EDITOR_H__ */