~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/imagemap/imap_toolbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This is a plug-in for the GIMP.
3
 
 *
4
 
 * Generates clickable image maps.
5
 
 *
6
 
 * Copyright (C) 1998-2004 Maurits Rijk  m.rijk@chello.nl
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 2 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, write to the Free Software
20
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
 
 *
22
 
 */
23
 
 
24
 
#ifndef _IMAP_TOOLBAR_H
25
 
#define _IMAP_TOOLBAR_H
26
 
 
27
 
#include "imap_command.h"
28
 
 
29
 
typedef struct {
30
 
   GtkWidget *toolbar;
31
 
   GtkWidget *undo;
32
 
   GtkWidget *redo;
33
 
   GtkWidget *cut;
34
 
   GtkWidget *copy;
35
 
   GtkWidget *to_front;
36
 
   GtkWidget *to_back;
37
 
   GtkWidget *zoom_in;
38
 
   GtkWidget *zoom_out;
39
 
   GtkWidget *grid;
40
 
 
41
 
   CommandFactory_t cmd_open;
42
 
   CommandFactory_t cmd_save;
43
 
   CommandFactory_t cmd_preferences;
44
 
   CommandFactory_t cmd_redo;
45
 
   CommandFactory_t cmd_undo;
46
 
   CommandFactory_t cmd_cut;
47
 
   CommandFactory_t cmd_copy;
48
 
   CommandFactory_t cmd_paste;
49
 
   CommandFactory_t cmd_zoom_in;
50
 
   CommandFactory_t cmd_zoom_out;
51
 
   CommandFactory_t cmd_edit_map_info;
52
 
   CommandFactory_t cmd_move_to_front;
53
 
   CommandFactory_t cmd_send_to_back;
54
 
   CommandFactory_t cmd_grid;
55
 
} ToolBar_t;
56
 
 
57
 
ToolBar_t *make_toolbar(GtkWidget *main_vbox, GtkWidget *window);
58
 
void toolbar_set_zoom_sensitivity(ToolBar_t *toolbar, gint factor);
59
 
void toolbar_set_grid(ToolBar_t *toolbar, gboolean active);
60
 
void toolbar_shapes_selected(ToolBar_t *toolbar, gint count);
61
 
 
62
 
#define toolbar_set_open_command(toolbar, command) \
63
 
        ((toolbar)->cmd_open = (command))
64
 
#define toolbar_set_save_command(toolbar, command) \
65
 
        ((toolbar)->cmd_save = (command))
66
 
#define toolbar_set_preferences_command(toolbar, command) \
67
 
        ((toolbar)->cmd_preferences = (command))
68
 
#define toolbar_set_redo_command(toolbar, command) \
69
 
        ((toolbar)->cmd_redo = (command))
70
 
#define toolbar_set_undo_command(toolbar, command) \
71
 
        ((toolbar)->cmd_undo = (command))
72
 
#define toolbar_set_cut_command(toolbar, command) \
73
 
        ((toolbar)->cmd_cut = (command))
74
 
#define toolbar_set_copy_command(toolbar, command) \
75
 
        ((toolbar)->cmd_copy= (command))
76
 
#define toolbar_set_paste_command(toolbar, command) \
77
 
        ((toolbar)->cmd_paste = (command))
78
 
#define toolbar_set_zoom_in_command(toolbar, command) \
79
 
        ((toolbar)->cmd_zoom_in = (command))
80
 
#define toolbar_set_zoom_out_command(toolbar, command) \
81
 
        ((toolbar)->cmd_zoom_out = (command))
82
 
#define toolbar_set_edit_map_info_command(toolbar, command) \
83
 
        ((toolbar)->cmd_edit_map_info = (command))
84
 
#define toolbar_set_move_to_front_command(toolbar, command) \
85
 
        ((toolbar)->cmd_move_to_front = (command))
86
 
#define toolbar_set_send_to_back_command(toolbar, command) \
87
 
        ((toolbar)->cmd_send_to_back = (command))
88
 
#define toolbar_set_grid_command(toolbar, command) \
89
 
        ((toolbar)->cmd_grid = (command))
90
 
 
91
 
#endif /* _IMAP_TOOLBAR_H */