~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to app/display/gimpnavigationeditor.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* The GIMP -- an image manipulation program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * gimpnavigationeditor.h
 
5
 * Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
 
6
 *
 
7
 * partly based on app/nav_window
 
8
 * Copyright (C) 1999 Andy Thomas <alt@gimp.org>
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 *
 
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.
 
23
 */
 
24
 
 
25
#ifndef __GIMP_NAVIGATION_EDITOR_H__
 
26
#define __GIMP_NAVIGATION_EDITOR_H__
 
27
 
 
28
 
 
29
#include "widgets/gimpeditor.h"
 
30
 
 
31
 
 
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))
 
38
 
 
39
 
 
40
typedef struct _GimpNavigationEditorClass  GimpNavigationEditorClass;
 
41
 
 
42
struct _GimpNavigationEditor
 
43
{
 
44
  GimpEditor        parent_instance;
 
45
 
 
46
  GimpContext      *context;
 
47
  GimpDisplayShell *shell;
 
48
 
 
49
  GtkWidget        *view;
 
50
  GtkWidget        *zoom_label;
 
51
  GtkAdjustment    *zoom_adjustment;
 
52
 
 
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;
 
59
};
 
60
 
 
61
struct _GimpNavigationEditorClass
 
62
{
 
63
  GimpEditorClass  parent_class;
 
64
};
 
65
 
 
66
 
 
67
GType       gimp_navigation_editor_get_type  (void) G_GNUC_CONST;
 
68
 
 
69
GtkWidget * gimp_navigation_editor_new       (GimpMenuFactory  *menu_factory);
 
70
void        gimp_navigation_editor_popup     (GimpDisplayShell *shell,
 
71
                                              GtkWidget        *widget,
 
72
                                              gint              click_x,
 
73
                                              gint              click_y);
 
74
 
 
75
 
 
76
#endif  /*  __GIMP_NAVIGATION_EDITOR_H__  */