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

« back to all changes in this revision

Viewing changes to plug-ins/imagemap/imap_popup.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-1999 Maurits Rijk  lpeek.mrijk@consunet.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_POPUP_H
25
 
#define _IMAP_POPUP_H
26
 
 
27
 
#include "imap_command.h"
28
 
 
29
 
typedef struct {
30
 
   GtkWidget *main;
31
 
 
32
 
   GtkWidget *arrow;
33
 
   GtkWidget *rectangle;
34
 
   GtkWidget *circle;
35
 
   GtkWidget *polygon;
36
 
   GtkWidget *grid;
37
 
   GtkWidget *zoom_in;
38
 
   GtkWidget *zoom_out;
39
 
 
40
 
   CommandFactory_t cmd_zoom_in;
41
 
   CommandFactory_t cmd_zoom_out;
42
 
   CommandFactory_t cmd_edit_map_info;
43
 
   CommandFactory_t cmd_grid_settings;
44
 
   CommandFactory_t cmd_create_guides;
45
 
   CommandFactory_t cmd_paste;
46
 
} PopupMenu_t;
47
 
 
48
 
 
49
 
#define popup_set_zoom_in_command(popup, command) \
50
 
        ((popup)->cmd_zoom_in = (command))
51
 
#define popup_set_zoom_out_command(popup, command) \
52
 
        ((popup)->cmd_zoom_out = (command))
53
 
#define popup_set_edit_map_info_command(popup, command) \
54
 
        ((popup)->cmd_edit_map_info = (command))
55
 
#define popup_set_grid_settings_command(popup, command) \
56
 
        ((popup)->cmd_grid_settings = (command))
57
 
#define popup_set_create_guides_command(popup, command) \
58
 
        ((popup)->cmd_create_guides = (command))
59
 
#define popup_set_paste_command(popup, command) \
60
 
        ((popup)->cmd_paste = (command))
61
 
 
62
 
PopupMenu_t *create_main_popup_menu(void);
63
 
void do_main_popup_menu(GdkEventButton *event);
64
 
void popup_set_zoom_sensitivity(gint factor);
65
 
void popup_select_arrow(void);
66
 
void popup_select_rectangle(void);
67
 
void popup_select_circle(void);
68
 
void popup_select_polygon(void);
69
 
void popup_check_grid(gint check);
70
 
 
71
 
#endif /* _IMAP_POPUP_H */