Commit f7fa12f7 authored by Maurits Rijk's avatar Maurits Rijk Committed by Maurits Rijk
Browse files

bumped version number

2005-01-02  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/imagemap/imap_about.c: bumped version number

	* plug-ins/imagemap/AUTHORS
	* plug-ins/imagemap/NEWS
	* plug-ins/imagemap/README
	* plug-ins/imagemap/TODO: removed since they don't contain relevant
	information anymore.

	* plug-ins/imagemap/imap_popup.[ch]: removed

	* plug-ins/imagemap/Makefile.am
	* po-plug-ins/POTFILES.in: changed accordingly

	* plug-ins/imagemap/imap_grid.c
	* plug-ins/imagemap/imap_main.[ch]
	* plug-ins/imagemap/imap_menu.[ch]
	* plug-ins/imagemap/imap_object_popup.c
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/imagemap/imap_toolbar.[ch]
	* plug-ins/imagemap/imap_tools.[ch]: first set of changes to fix
	#138841 (Use action based menus in Imagemap plug-in).
parent 9dc239a4
2005-01-02 Maurits Rijk <m.rijk@chello.nl>
* plug-ins/imagemap/imap_about.c: bumped version number
* plug-ins/imagemap/AUTHORS
* plug-ins/imagemap/NEWS
* plug-ins/imagemap/README
* plug-ins/imagemap/TODO: removed since they don't contain relevant
information anymore.
* plug-ins/imagemap/imap_popup.[ch]: removed
* plug-ins/imagemap/Makefile.am
* po-plug-ins/POTFILES.in: changed accordingly
* plug-ins/imagemap/imap_grid.c
* plug-ins/imagemap/imap_main.[ch]
* plug-ins/imagemap/imap_menu.[ch]
* plug-ins/imagemap/imap_object_popup.c
* plug-ins/imagemap/imap_preview.c
* plug-ins/imagemap/imap_toolbar.[ch]
* plug-ins/imagemap/imap_tools.[ch]: first set of changes to fix
#138841 (Use action based menus in Imagemap plug-in).
2005-01-02 Sven Neumann <sven@gimp.org>
* app/gui/splash.c (splash_update): fixed display of progress
......
Maurits Rijk <lpeek.mrijk@consunet.nl>
\ No newline at end of file
......@@ -19,10 +19,6 @@ libexecdir = $(gimpplugindir)/plug-ins
libexec_PROGRAMS = imagemap
EXTRA_DIST = \
AUTHORS \
NEWS \
README \
TODO \
imap_cern.l \
imap_csim.l \
imap_ncsa.l \
......@@ -103,8 +99,6 @@ imagemap_SOURCES = \
imap_object_popup.h \
imap_polygon.c \
imap_polygon.h \
imap_popup.c \
imap_popup.h \
imap_preferences.c \
imap_preferences.h \
imap_preview.c \
......
What's new in GIMP Imagemap plug-in 1.3
* 'Follow' mode to dynamically update object dimensions.
* Added 'Most recently used' and 'Number of Undo levels' to Preferences menu.
* Movement of objects with cursor keys (left/right/up/down). Select next/prev
object with TAB key.
* Double-click in selection brings up Area dialog.
* Drop links (e.g. from Netscape) into the selection list updates the URL.
* Drop links (e.g. from Netscape) onto an object in the preview window updates
the URL.
* A few bug fixes.
* Lot's of internationalization preparations.
* Grid can be dynamically updated when changing grid parameters.
What's new in GIMP Imagemap plug-in 1.2
* Implemented Undo/Redo
* User defineable image URL in settings dialog.
* A few bug fixes.
What's new in GIMP Imagemap plug-in 1.1
* Rescale objects after rescaling of image.
* Added 2 new HTML 4.0 tags (ONFOCUS, ONBLUR)
* Option to make image gray to allow easier editing of images with lots of
colors.
* Most recently used list.
* Rectangular selection of objects.
* Drag and drop of links (e.g. from Netscape) to URL field.
* Usage of shift + left mousebutton during rectangle drawing makes width and
height equal.
* Usage of shift + left mousebutton at start of circle drawing defines 2 points
on circle side.
What's new in GIMP Imagemap plug-in 1.0
* Code cleanup
* Memory leaks fixed.
* All (?) bugs fixed.
* Use right mousebutton to cancel drawing operation of circle, rectangle or
polygon.
What's new in GIMP Imagemap plug-in 0.9
* Added list of standard prefixes (http://, news:, ftp://, gopher://, etc.)
before URL in settings dialog.
* Invalid input in dialogs (area settings, numeric values) is now handled
correctly.
* Add 'Apply' button to some dialogs.
* Default author field in settings dialog with user name.
* Show resulting source in 'View Source' dialog to allow copy/paste of
generated code to other programs.
What's new in GIMP Imagemap plug-in 0.7
* Plug-in now works correctly for GIF and grayscale images.
* Finished implementation of NCSA and CERN mapfiles.
* Implemented 'Close'.
* The usual bug fixes.
What's new in GIMP Imagemap plug-in 0.6
* Implemented 'Preferences' dialog:
* Dropped support for GTK 1.0.6. Support for GTK 1.2 and GIMP 1.1.x or
GIMP 1.0.4 has greatly improved.
* Synchronized Mapping menu items and toolbar items (arrow, rectangle, circle
and polygon)
* Synchronized zoom icon and 'Zoom To' menu item.
* synchronize grid icon and 'snap to grid' toggle button in 'grid settings'
dialog.
* Warn against overwriting of existing files.
* Lots of serious and cosmetic bug fixes.
What's new in GIMP Imagemap plug-in 0.5
* New better looking icons (thanks Mete Cirali!)
* Implemented 'Map Info' dialog.
* Add/remove polygon points by clicking with right mousebutton on edges/sashes.
* Added icon showing type (arrow, rectangle, circle) in selection.
* Implemented pop-up menu when right-button is pressed.
* Restrict size of preview window for large images.
* Shapes cannot be moved outside the picture anymore.
* Use hourglass cursor for lengthy operations (e.g. zooming, saving, loading).
* Show resulting dimension in 'guides' dialog.
* Added "cut/copy/paste/select all" functionality.
* You can now select multiple objects.
* Lots of bug fixes.
What's new in GIMP Imagemap plug-in 0.4
* Ported to Gimp 1.1.x and GTK 1.2
* Implemented zooming
* Removed C++ stuff. The binary immediately shrunk from 140 to 90k!
* Objects that are currently being edited cannot be deleted anymore.
* Show area info in statusbar when moving mouse over areas.
* Added warning dialog for unsaved changes when quiting.
What's new in GIMP Imagemap plug-in 0.3
* You can now load a CSIM file that was saved by this plug-in. Files saved by
other programs may cause problems. I haven't tested this yet.
* Accelerators in menus
* Selection operations (move up/down, delete, edit).
* Warning/error dialog for file operations
* Map-name in title in main dialog
* 'target frame name' in area settings.
* JavaScript (onMouseover, onMouseout) in area settings.
* Doubleclick on shape pops up area settings dialog.
* Browse button in URL field in area settings dialog.
* Fixed size of statusbar fields.
* Move to front/send to back
* Write image size in HTML file
* Deselect all if clicked in area with no object.
* Implement statusbar dimension field
* Added 4 extra handles to rectangular selection.
What's new in GIMP Imagemap plug-in 0.2
* Implementation of grid
* Properties tabs for rectangles, circles and polygons.
* Resizing of objects
* Moving objects
* Guide creation
* GUI for 'Map info' dialog
* 'Save' menu now popups 'Save As' dialog if no file is selected yet.
* Several minor cosmetic changes
GIMP Imagemap plug-in 0.1 released.
This is the GIMP Imagemap plug-in version 1.3. See the INSTALL file for
build instructions.
More information can be found on my homepage at
http://home-2.consunet.nl/~cb007736/imagemap.html
Have fun,
Maurits Rijk (lpeek.mrijk@consunet.nl)
Version 1.4
* Snap to grid during resize.
* 'Divider' object.
* Move polygon sides.
* Gimp style guides.
Version 1.5
* Standalone version
* Configuration script
* Warning icon for area's without URL.
* Add HTML 4.0 tags (TABINDEX, ACCESKEY)
* User-definable tags
* Use shift mousebutton to restrict polygon drawing direction.
Version 1.9
* Freehand drawing of polygon
* 'Morph to' functions (Polygon <-> circle <-> Rectangle)
* Write manual
Version 2.0
* Same as 1.9 with bugs fixed
* Code cleanup
BUGS
* Polygon not limited to 100 points (Is this really neccessary?)
* Rulers move when scrolling in preview window (see interface.c in Gimp).
* 'Move' only moves current object.
Miscellaneous
* Zooming performance is poor
* Compare image-name in HTML file with loaded image and issue warning
if different.
* Restrict to screen size for large images.
* Don't redraw complete polygon while moving a sash.
* Compliancy with GIMP 1.1.x:
- Use GIMP's 1.1.x new help system
- Tear-off menu's
- Arrow button with similar action as pop-up in upper left of preview window
- Paner widget in lower right of preview window for fast navigation.
\ No newline at end of file
......@@ -3,7 +3,7 @@
*
* Generates clickable image maps.
*
* Copyright (C) 1998-2004 Maurits Rijk m.rijk@chello.nl
* Copyright (C) 1998-2005 Maurits Rijk m.rijk@chello.nl
*
* 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
......@@ -40,8 +40,8 @@ do_about_dialog(void)
default_dialog_hide_cancel_button (dialog);
default_dialog_hide_apply_button (dialog);
default_dialog_hide_help_button (dialog);
default_dialog_set_label (dialog, _("Imagemap plug-in 2.2"));
default_dialog_set_label (dialog, _("Copyright(c) 1999-2004 by Maurits Rijk"));
default_dialog_set_label (dialog, _("Imagemap plug-in 2.3"));
default_dialog_set_label (dialog, _("Copyright(c) 1999-2005 by Maurits Rijk"));
default_dialog_set_label (dialog, "m.rijk@chello.nl");
default_dialog_set_label (dialog, _("Released under the GNU General Public License"));
}
......
......@@ -33,7 +33,6 @@
#include "imap_grid.h"
#include "imap_main.h"
#include "imap_menu.h"
#include "imap_popup.h"
#include "imap_preview.h"
#include "imap_table.h"
#include "imap_toolbar.h"
......@@ -89,8 +88,6 @@ grid_settings_ok_cb(gpointer data)
if (grid_snap != new_snap) {
grid_snap = new_snap;
main_toolbar_set_grid(grid_snap);
popup_check_grid(grid_snap);
menu_check_grid(grid_snap);
}
redraw_preview();
......
......@@ -3,7 +3,7 @@
*
* Generates clickable image maps.
*
* Copyright (C) 1998-2003 Maurits Rijk lpeek.mrijk@consunet.nl
* Copyright (C) 1998-2005 Maurits Rijk m.rijk@chello.nl
*
* 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
......@@ -46,7 +46,6 @@
#include "imap_misc.h"
#include "imap_object.h"
#include "imap_polygon.h"
#include "imap_popup.h"
#include "imap_preview.h"
#include "imap_rectangle.h"
#include "imap_selection.h"
......@@ -284,7 +283,7 @@ zoom_in(void)
return _zoom_factor;
}
static gint
gint
zoom_out(void)
{
if (_zoom_factor > 1) {
......@@ -299,18 +298,11 @@ set_zoom(gint zoom_factor)
{
set_busy_cursor();
_zoom_factor = zoom_factor;
toolbar_set_zoom_sensitivity(_toolbar, zoom_factor);
preview_zoom(_preview, zoom_factor);
statusbar_set_zoom(_statusbar, zoom_factor);
remove_busy_cursor();
}
void
main_toolbar_set_grid(gboolean active)
{
toolbar_set_grid(_toolbar, active);
}
gint
get_real_coord(gint coord)
{
......@@ -522,21 +514,27 @@ set_object_func(gboolean (*func)(GtkWidget*, GdkEventButton*,
}
void
set_rectangle_func(void)
{
set_object_func(object_on_button_press, get_rectangle_factory);
}
void
set_circle_func(void)
{
set_object_func(object_on_button_press, get_circle_factory);
}
void
set_polygon_func(void)
{
set_object_func(object_on_button_press, get_polygon_factory);
set_func(GtkRadioAction *action, GtkRadioAction *current,
gpointer user_data)
{
gint value = gtk_radio_action_get_current_value (current);
switch (value)
{
case 0:
set_arrow_func();
break;
case 1:
set_object_func(object_on_button_press, get_rectangle_factory);
break;
case 2:
set_object_func(object_on_button_press, get_circle_factory);
break;
case 3:
set_object_func(object_on_button_press, get_polygon_factory);
break;
default:
break;
}
}
void
......@@ -581,8 +579,6 @@ set_all_sensitivities(void)
{
gint count = object_list_nr_selected(_shapes);
menu_shapes_selected(count);
toolbar_shapes_selected(_toolbar, count);
tools_set_sensitive(count);
}
static void
......@@ -688,20 +684,11 @@ edit_shape(gint x, gint y)
}
}
static void
toolbar_grid(void)
{
gint grid = toggle_grid();
popup_check_grid(grid);
menu_check_grid(grid);
}
static void
menu_zoom_in(void)
{
gint factor = zoom_in();
menu_set_zoom_sensitivity(factor);
popup_set_zoom_sensitivity(factor);
}
static void
......@@ -709,7 +696,6 @@ menu_zoom_out(void)
{
gint factor = zoom_out();
menu_set_zoom_sensitivity(factor);
popup_set_zoom_sensitivity(factor);
}
void
......@@ -779,7 +765,7 @@ really_close(gpointer data)
close_current();
}
static void
void
do_close(void)
{
check_if_changed(really_close, NULL);
......@@ -793,7 +779,7 @@ really_quit(gpointer data)
gtk_widget_destroy(_dlg);
}
static void
void
do_quit(void)
{
check_if_changed(really_quit, NULL);
......@@ -819,7 +805,7 @@ do_redo(void)
preview_thaw();
}
static void
void
save(void)
{
if (_filename)
......@@ -1207,49 +1193,18 @@ data_selected(Object_t *obj, gpointer data)
set_all_sensitivities();
}
static Command_t*
factory_file_open_dialog(void)
{
return command_new(do_file_open_dialog);
}
static void
void
imap_help (void)
{
gimp_standard_help_func ("plug-in-imagemap", NULL);
}
static Command_t*
factory_save(void)
{
return command_new(save);
}
static Command_t*
factory_save_as(void)
{
return command_new(do_file_save_as_dialog);
}
static Command_t*
factory_preferences_dialog(void)
{
return command_new(do_preferences_dialog);
}
static Command_t*
factory_close(void)
{
return command_new(do_close);
}
static Command_t*
factory_quit(void)
{
return command_new(do_quit);
}
static Command_t*
factory_undo(void)
{
......@@ -1262,40 +1217,40 @@ factory_redo(void)
return command_new(do_redo);
}
static Command_t*
factory_cut(void)
void
do_cut (void)
{
return cut_command_new(_shapes);
command_execute (cut_command_new (_shapes));
}
static Command_t*
factory_copy(void)
void
do_copy (void)
{
return copy_command_new(_shapes);
command_execute (copy_command_new (_shapes));
}
static Command_t*
factory_paste(void)
void
do_paste (void)
{
return paste_command_new(_shapes);
command_execute (paste_command_new (_shapes));
}
static Command_t*
factory_select_all(void)
void
do_select_all(void)
{
return select_all_command_new(_shapes);
command_execute (select_all_command_new (_shapes));
}
static Command_t*
factory_deselect_all(void)
void
do_deselect_all(void)
{
return unselect_all_command_new(_shapes, NULL);
command_execute (unselect_all_command_new (_shapes, NULL));
}
static Command_t*
factory_clear(void)
void
do_clear(void)
{
return clear_command_new(_shapes);
command_execute (clear_command_new(_shapes));
}
static Command_t*
......@@ -1370,18 +1325,6 @@ factory_send_to_back(void)
return send_to_back_command_new(_shapes);
}
static Command_t*
factory_toolbar_grid(void)
{
return command_new(toolbar_grid);
}
static Command_t*
factory_grid_settings_dialog(void)
{
return command_new(do_grid_settings_dialog);
}
static Command_t*
factory_create_guides_dialog(void)
{
......@@ -1394,18 +1337,6 @@ factory_use_gimp_guides_dialog(void)
return gimp_guides_command_new(_shapes, _drawable);
}
static Command_t*
factory_help(void)
{
return command_new(imap_help);
}
static Command_t*
factory_about_dialog(void)
{
return command_new(do_about_dialog);
}
static Command_t*
factory_move_up(void)
{
......@@ -1428,7 +1359,6 @@ dialog(GimpDrawable *drawable)
GtkWidget *main_vbox;
Tools_t *tools;
Menu_t *menu;
PopupMenu_t *popup;
gimp_ui_init ("imagemap", TRUE);
......@@ -1460,59 +1390,9 @@ dialog(GimpDrawable *drawable)
/* Create menu */
menu = make_menu(main_vbox, dlg);
menu_set_open_command(menu, factory_file_open_dialog);
menu_set_save_command(menu, factory_save);
menu_set_save_as_command(menu, factory_save_as);
menu_set_preferences_command(menu, factory_preferences_dialog);
menu_set_close_command(menu, factory_close);
menu_set_quit_command(menu, factory_quit);
menu_set_undo_command(menu, factory_undo);
menu_set_redo_command(menu, factory_redo);
menu_set_cut_command(menu, factory_cut);
menu_set_copy_command(menu, factory_copy);
menu_set_paste_command(menu, factory_paste);
menu_set_select_all_command(menu, factory_select_all);
menu_set_deselect_all_command(menu, factory_deselect_all);
menu_set_clear_command(menu, factory_clear);
menu_set_edit_erea_info_command(menu, factory_edit);
menu_set_area_list_command(menu, factory_toggle_area_list);
menu_set_source_command(menu, factory_source_dialog);
menu_set_color_command(menu, factory_preview_color);
menu_set_gray_command(menu, factory_preview_gray);
menu_set_zoom_in_command(menu, factory_menu_zoom_in);
menu_set_zoom_out_command(menu, factory_menu_zoom_out);
menu_set_edit_map_info_command(menu, factory_settings_dialog);
menu_set_grid_settings_command(menu, factory_grid_settings_dialog);
menu_set_create_guides_command(menu, factory_create_guides_dialog);
menu_set_use_gimp_guides_command(menu, factory_use_gimp_guides_dialog);
menu_set_help_command(menu, factory_help);
menu_set_about_command(menu, factory_about_dialog);
/* Create popup */
popup = create_main_popup_menu();
popup_set_zoom_in_command(popup, factory_zoom_in);
popup_set_zoom_out_command(popup, factory_zoom_out);
popup_set_edit_map_info_command(popup, factory_settings_dialog);
popup_set_grid_settings_command(popup, factory_grid_settings_dialog);
popup_set_create_guides_command(popup, factory_create_guides_dialog);
popup_set_paste_command(popup, factory_paste);
/* Create toolbar */
_toolbar = make_toolbar(main_vbox, dlg);
toolbar_set_open_command(_toolbar, factory_file_open_dialog);
toolbar_set_save_command(_toolbar, factory_save);
toolbar_set_preferences_command(_toolbar, factory_preferences_dialog);
toolbar_set_undo_command(_toolbar, factory_undo);
toolbar_set_redo_command(_toolbar, factory_redo);
toolbar_set_cut_command(_toolbar, factory_cut);
toolbar_set_copy_command(_toolbar, factory_copy);
toolbar_set_paste_command(_toolbar, factory_paste);
toolbar_set_zoom_in_command(_toolbar, factory_zoom_in);
toolbar_set_zoom_out_command(_toolbar, factory_zoom_out);
toolbar_set_edit_map_info_command(_toolbar, factory_settings_dialog);
toolbar_set_move_to_front_command(_toolbar, factory_move_to_front);
toolbar_set_send_to_back_command(_toolbar, factory_send_to_back);
toolbar_set_grid_command(_toolbar, factory_toolbar_grid);
/* Dialog area */
hbox = gtk_hbox_new(FALSE, 1);
...