mirror of https://github.com/GNOME/gimp.git
app/vectors/Makefile.am app/vectors/gimpvectors-export.[ch] added stubs
2003-09-10 Sven Neumann <sven@gimp.org> * app/vectors/Makefile.am * app/vectors/gimpvectors-export.[ch] * app/vectors/gimpvectors-import.[ch]: added stubs for import/export of paths. * app/vectors/gimpvectors-preview.h: cosmetics.
This commit is contained in:
parent
4a4fa137d0
commit
eb790849de
|
@ -1,3 +1,12 @@
|
|||
2003-09-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/vectors/Makefile.am
|
||||
* app/vectors/gimpvectors-export.[ch]
|
||||
* app/vectors/gimpvectors-import.[ch]: added stubs for
|
||||
import/export of paths.
|
||||
|
||||
* app/vectors/gimpvectors-preview.h: cosmetics.
|
||||
|
||||
2003-09-10 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/xcf/xcf-load.c
|
||||
|
|
|
@ -28,6 +28,10 @@ libappvectors_a_SOURCES = \
|
|||
gimpvectors.h \
|
||||
gimpvectors-compat.c \
|
||||
gimpvectors-compat.h \
|
||||
gimpvectors-export.c \
|
||||
gimpvectors-export.h \
|
||||
gimpvectors-import.c \
|
||||
gimpvectors-import.h \
|
||||
gimpvectors-preview.c \
|
||||
gimpvectors-preview.h
|
||||
|
||||
|
|
|
@ -0,0 +1,67 @@
|
|||
/* The GIMP -- an image manipulation program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "vectors-types.h"
|
||||
|
||||
#include "gimpstroke.h"
|
||||
#include "gimpvectors.h"
|
||||
#include "gimpvectors-export.h"
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
gboolean
|
||||
gimp_vectors_export (const GimpVectors *vectors,
|
||||
const gchar *filename,
|
||||
GError **error)
|
||||
{
|
||||
FILE *file;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_VECTORS (vectors), FALSE);
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
||||
|
||||
file = fopen (filename, "w");
|
||||
if (!file)
|
||||
{
|
||||
g_set_error (error, 0, 0,
|
||||
_("Failed to open file: '%s': %s"),
|
||||
filename, g_strerror (errno));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* FIXME: add export implementation here */
|
||||
g_warning ("gimp_vectors_export: unimplemented");
|
||||
|
||||
if (fclose (file))
|
||||
{
|
||||
g_set_error (error, 0, 0,
|
||||
_("Error while writing '%s': %s"),
|
||||
filename, g_strerror (errno));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
/* The GIMP -- an image manipulation program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "vectors-types.h"
|
||||
|
||||
#include "core/gimpimage.h"
|
||||
|
||||
#include "gimpstroke.h"
|
||||
#include "gimpvectors.h"
|
||||
#include "gimpvectors-import.h"
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
GimpVectors *
|
||||
gimp_vectors_import (GimpImage *image,
|
||||
const gchar *filename,
|
||||
GError **error)
|
||||
{
|
||||
GimpVectors *vectors;
|
||||
FILE *file;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
|
||||
g_return_val_if_fail (filename != NULL, NULL);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
|
||||
file = fopen (filename, "r");
|
||||
if (!file)
|
||||
{
|
||||
g_set_error (error, 0, 0,
|
||||
_("Failed to open file: '%s': %s"),
|
||||
filename, g_strerror (errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
vectors = gimp_vectors_new (image, "Imported Path");
|
||||
|
||||
/* FIXME: add export implementation here */
|
||||
g_warning ("gimp_vectors_import: unimplemented");
|
||||
|
||||
fclose (file);
|
||||
|
||||
return vectors;
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
/* The GIMP -- an image manipulation program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_VECTORS_IMPORT_H__
|
||||
#define __GIMP_VECTORS_IMPORT_H__
|
||||
|
||||
|
||||
GimpVectors * gimp_vectors_import (GimpImage *image,
|
||||
const gchar *filename,
|
||||
GError **error);
|
||||
|
||||
|
||||
#endif /* __GIMP_VECTORS_IMPORT_H__ */
|
|
@ -16,8 +16,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_VECTORS__PREVIEW_H__
|
||||
#define __GIMP_VECTORS__PREVIEW_H__
|
||||
#ifndef __GIMP_VECTORS_PREVIEW_H__
|
||||
#define __GIMP_VECTORS_PREVIEW_H__
|
||||
|
||||
|
||||
/*
|
||||
|
@ -25,8 +25,8 @@
|
|||
*/
|
||||
|
||||
TempBuf * gimp_vectors_get_new_preview (GimpViewable *viewable,
|
||||
gint width,
|
||||
gint width,
|
||||
gint height);
|
||||
|
||||
|
||||
#endif /* __GIMP_VECTORS__PREVIEW_H__ */
|
||||
#endif /* __GIMP_VECTORS_PREVIEW_H__ */
|
||||
|
|
29
po/ChangeLog
29
po/ChangeLog
|
@ -1,3 +1,7 @@
|
|||
2003-09-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* POTFILES.in: added a couple of new files.
|
||||
|
||||
2003-09-09 Duarte Loreto <happyguy_pt@hotmail.com>
|
||||
|
||||
* pt.po: Updated Portuguese translation.
|
||||
|
@ -9,7 +13,7 @@
|
|||
|
||||
2003-09-08 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Revision of Spanish translation by
|
||||
* es.po: Revision of Spanish translation by
|
||||
Francisco Javier F. Serrador <serrador@arrakis.es>.
|
||||
|
||||
2003-09-07 Wang Jian <lark@linux.net.cn>
|
||||
|
@ -18,8 +22,8 @@
|
|||
Xie Yuheng <elephant@linux.net.cn>.
|
||||
|
||||
2003-09-02 Hasbullah Bin Pit <sebol@ikhlas.com>
|
||||
|
||||
* ms.po: Added Translation by
|
||||
|
||||
* ms.po: Added Translation by
|
||||
MIMOS Open Source Development Group <ismas@mimos.my>
|
||||
|
||||
2003-09-04 Marco Ciampa <ciampix@libero.it>
|
||||
|
@ -58,7 +62,7 @@
|
|||
|
||||
2003-08-28 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Updated Spanish translation.
|
||||
* es.po: Updated Spanish translation.
|
||||
|
||||
2003-08-28 Changwoo Ryu <cwryu@debian.org>
|
||||
|
||||
|
@ -109,7 +113,7 @@
|
|||
|
||||
2003-08-12 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Updated Spanish translation.
|
||||
* es.po: Updated Spanish translation.
|
||||
|
||||
2003-08-12 Nikos Charonitakis <frolix68@yahoo.gr>
|
||||
|
||||
|
@ -163,7 +167,7 @@
|
|||
|
||||
2003-07-25 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Updated Spanish translation.
|
||||
* es.po: Updated Spanish translation.
|
||||
|
||||
2003-07-25 Vincent van Adrighem <V.vanAdrighem@dirck.mine.nu>
|
||||
|
||||
|
@ -381,7 +385,7 @@
|
|||
|
||||
2003-05-23 Paul Duffy <dubhthach@frink.nuigalway.ie>
|
||||
|
||||
* ga.po: updated Irish Translation
|
||||
* ga.po: updated Irish Translation
|
||||
|
||||
2003-05-23 Sven Neumann <sven@gimp.org>
|
||||
|
||||
|
@ -444,7 +448,7 @@
|
|||
|
||||
2003-04-28 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Updated Spanish translation by
|
||||
* es.po: Updated Spanish translation by
|
||||
Francisco Vila <francisco.vila@hispalinux.es>
|
||||
|
||||
2003-04-27 Abel Cheung <maddog@linux.org.hk>
|
||||
|
@ -461,7 +465,8 @@
|
|||
|
||||
2003-04-22 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
|
||||
|
||||
* sk.po: Updated Slovak translation by Zdenko Podobny <zdpo@mailbox.sk>.
|
||||
* sk.po: Updated Slovak translation by Zdenko Podobny
|
||||
<zdpo@mailbox.sk>.
|
||||
|
||||
2003-04-19 Jan Morén <jan.moren@lucs.lu.se>
|
||||
|
||||
|
@ -493,7 +498,7 @@
|
|||
|
||||
2003-04-13 Duarte Loreto <happyguy_pt@hotmail.com>
|
||||
|
||||
* pt.po: Updated Portuguese translation.
|
||||
* pt.po: Updated Portuguese translation.
|
||||
|
||||
2003-04-12 Miloslav Trmac <mitr@volny.cz>
|
||||
|
||||
|
@ -558,7 +563,7 @@
|
|||
|
||||
2003-03-25 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Updated Spanish translation.
|
||||
* es.po: Updated Spanish translation.
|
||||
|
||||
2003-03-21 Sven Neumann <sven@gimp.org>
|
||||
|
||||
|
@ -575,7 +580,7 @@
|
|||
|
||||
2003-03-18 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
|
||||
|
||||
* es.po: Updated Spanish translation.
|
||||
* es.po: Updated Spanish translation.
|
||||
|
||||
2003-03-16 Miloslav Trmac <mitr@volny.cz>
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ app/core/gimpmodules.c
|
|||
app/core/gimppalette-import.c
|
||||
app/core/gimppalette.c
|
||||
app/core/gimppattern.c
|
||||
app/core/gimpselection.c
|
||||
app/core/gimptemplate.c
|
||||
app/core/gimpunit.c
|
||||
app/core/gimpunits.c
|
||||
|
@ -163,8 +164,10 @@ app/pdb/guides_cmds.c
|
|||
app/pdb/image_cmds.c
|
||||
app/pdb/internal_procs.c
|
||||
app/pdb/layer_cmds.c
|
||||
app/pdb/paths_cmds.c
|
||||
app/pdb/procedural_db.c
|
||||
app/pdb/procedural_db_cmds.c
|
||||
app/pdb/selection_cmds.c
|
||||
app/pdb/selection_tools_cmds.c
|
||||
app/pdb/undo_cmds.c
|
||||
|
||||
|
@ -178,6 +181,7 @@ app/text/gimptext-compat.c
|
|||
app/text/gimptext-parasite.c
|
||||
app/text/gimptext.c
|
||||
app/text/gimptextlayer.c
|
||||
app/text/gimptextlayer-transform.c
|
||||
|
||||
app/tools/tools-enums.c
|
||||
app/tools/gimpairbrushtool.c
|
||||
|
@ -236,10 +240,13 @@ app/tools/gimpthresholdtool.c
|
|||
app/tools/gimptool.c
|
||||
app/tools/gimptransformoptions.c
|
||||
app/tools/gimptransformtool.c
|
||||
app/tools/gimpvectoroptions.c
|
||||
app/tools/gimpvectortool.c
|
||||
app/tools/tool_manager.c
|
||||
|
||||
app/vectors/gimpvectors.c
|
||||
app/vectors/gimpvectors-export.c
|
||||
app/vectors/gimpvectors-import.c
|
||||
|
||||
app/widgets/widgets-enums.c
|
||||
app/widgets/gimpbrusheditor.c
|
||||
|
|
Loading…
Reference in New Issue