summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c8e180)
raw | patch | inline | side by side (parent: 2c8e180)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 22 Mar 2007 05:14:53 +0000 (05:14 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 22 Mar 2007 05:14:53 +0000 (05:14 +0000) |
inkscape.fr.pod | patch | blob | history | |
inkscape.pod | patch | blob | history | |
src/Makefile_insert | patch | blob | history | |
src/main.cpp | patch | blob | history | |
src/slideshow.cpp | [deleted file] | patch | blob | history |
src/slideshow.h | [deleted file] | patch | blob | history |
diff --git a/inkscape.fr.pod b/inkscape.fr.pod
index 3a10bf3e2584d01eb90ebeeec3dd2340139168ed..4a76ed50add9a6a633aa18b2176fb1f4416f9709 100644 (file)
--- a/inkscape.fr.pod
+++ b/inkscape.fr.pod
-V, --version
-f, --file=NOMDEFICHIER
- -s, --slideshow
-e, --export-png=NOMDEFICHIER
-a, --export-area=x0:y0:x1:y1
@@ -148,10 +147,6 @@ Vous pouvez aussi utiliser `| COMMANDE' pour spécifier un tube de commande diff
N'oubliez pas d'utiliser les guillemets appropriés pour votre shell, par exemple
inkscape --print='| ps2pdf - mondoc.pdf' mondoc.svg
-=item B<-s>, B<--slideshow>
-
-Affiche les fichiers spécifiés un par un, passant au suivant à chaque évènement clavier ou souris.
-
=item B<-t>, B<--export-use-hints>
Utilise le nom de fichier et la PPP enregistrés avec l'objet exporté (uniquement si --export-id est spécifié).
diff --git a/inkscape.pod b/inkscape.pod
index b989fbe0e2367fc40d0920b889e6956912e5b024..33c89a2b4d72c759316cfecde69795ee1905ec10 100644 (file)
--- a/inkscape.pod
+++ b/inkscape.pod
-V, --version
-f, --file=FILENAME
- -s, --slideshow
-e, --export-png=FILENAME
-a, --export-area=x0:y0:x1:y1
inkscape --print='| ps2pdf - mydoc.pdf' mydoc.svg
-=item B<-s>, B<--slideshow>
-
-Show given files one by one, switching to the next one by any key or mouse event.
-
=item B<-t>, B<--export-use-hints>
Use export filename and DPI hints stored in the exported object (only with --export-id).
diff --git a/src/Makefile_insert b/src/Makefile_insert
index e87beb03134f5d5d8b1039b638eed18f4edf6f4a..36c6f3c3217b9deb6f90ddf83a9076c5fa849041 100644 (file)
--- a/src/Makefile_insert
+++ b/src/Makefile_insert
seltrans.cpp seltrans.h \
shape-editor.cpp shape-editor.h \
shortcuts.cpp shortcuts.h \
- slideshow.cpp slideshow.h \
snap.cpp snap.h \
snapped-point.cpp snapped-point.h \
snapper.cpp snapper.h \
diff --git a/src/main.cpp b/src/main.cpp
index dff671c638650b8f42ff98cfb9bd7a271df39d85..3849be4fac725ebb0ac365db85c43a9d51b80818 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
#include "sp-object.h"
#include "interface.h"
#include "print.h"
-#include "slideshow.h"
#include "color.h"
#include "sp-item.h"
#include "sp-root.h"
SP_ARG_EXPORT_BBOX_PAGE,
SP_ARG_EXTENSIONDIR,
SP_ARG_FIT_PAGE_TO_DRAWING,
- SP_ARG_SLIDESHOW,
SP_ARG_QUERY_X,
SP_ARG_QUERY_Y,
SP_ARG_QUERY_WIDTH,
@@ -161,7 +159,6 @@ static void do_query_dimension (SPDocument *doc, bool extent, NR::Dim2 const axi
static gchar *sp_global_printer = NULL;
-static gboolean sp_global_slideshow = FALSE;
static gchar *sp_export_png = NULL;
static gchar *sp_export_dpi = NULL;
static gchar *sp_export_area = NULL;
N_("Print out the extension directory and exit"),
NULL},
- {"slideshow", 's',
- POPT_ARG_NONE, &sp_global_slideshow, SP_ARG_SLIDESHOW,
- N_("Show given files one-by-one, switch to next on any key/mouse event"),
- NULL},
-
{"vacuum-defs", 0,
POPT_ARG_NONE, &sp_vacuum_defs, SP_ARG_VACUUM_DEFS,
N_("Remove unused definitions from the defs section(s) of the document"),
g_free (filename);
filename = 0;
- if (!sp_global_slideshow) {
- gboolean create_new = TRUE;
+ gboolean create_new = TRUE;
- /// \todo FIXME BROKEN - non-UTF-8 sneaks in here.
- inkscape_application_init(argv[0], true);
+ /// \todo FIXME BROKEN - non-UTF-8 sneaks in here.
+ inkscape_application_init(argv[0], true);
- while (fl) {
- if (sp_file_open((gchar *)fl->data,NULL)) {
- create_new=FALSE;
- }
- fl = g_slist_remove(fl, fl->data);
- }
- if (create_new) {
- sp_file_new_default();
- }
- } else {
- if (fl) {
- GtkWidget *ss;
- /// \todo FIXME BROKEN - non-UTF-8 sneaks in here.
- inkscape_application_init(argv[0], true);
- ss = sp_slideshow_new(fl);
- if (ss) gtk_widget_show(ss);
- } else {
- g_warning ("No slides to display");
- exit(0);
+ while (fl) {
+ if (sp_file_open((gchar *)fl->data,NULL)) {
+ create_new=FALSE;
}
+ fl = g_slist_remove(fl, fl->data);
+ }
+ if (create_new) {
+ sp_file_new_default();
}
Glib::signal_idle().connect(sigc::ptr_fun(&Inkscape::CmdLineAction::idle));
diff --git a/src/slideshow.cpp b/src/slideshow.cpp
--- a/src/slideshow.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-#define __SLIDESHOW_C__
-
-/*
- * Help/About window
- *
- * Authors:
- * Lauris Kaplinski <lauris@kaplinski.com>
- *
- * Copyright (C) 1999-2003 authors
- * Copyright (C) 2000-2002 Ximian, Inc.
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <gdk/gdkkeysyms.h>
-#include <gtk/gtkwindow.h>
-
-#include <glibmm/i18n.h>
-#include "document.h"
-#include "svg-view-widget.h"
-#include "svg-view.h"
-
-static gint
-sp_slideshow_event (SPViewWidget *vw, GdkEvent *event, GtkWidget *window)
-{
- GSList *slides;
- const gchar *fname, *nname;
- int idx;
-
- slides = (GSList*)g_object_get_data (G_OBJECT (window), "slides");
- fname = (const gchar*)g_object_get_data (G_OBJECT (window), "current");
- idx = g_slist_index (slides, fname);
-
- switch (event->type) {
- case GDK_KEY_PRESS:
- switch (event->key.keyval) {
- case GDK_BackSpace:
- case GDK_Delete:
- case GDK_Left:
- idx -= 1;
- break;
- case GDK_Escape:
- gtk_widget_destroy (window);
- return TRUE;
- break;
- default:
- idx += 1;
- break;
- }
- break;
- case GDK_BUTTON_PRESS:
- idx += 1;
- break;
- default:
- break;
- }
-
- nname = (const gchar*)g_slist_nth_data (slides, idx);
-// g_print ("Old %s new %s\n", fname, nname);
-
- if (nname && (nname != fname)) {
- SPDocument *doc;
- g_print ("Trying to load %s\n", nname);
- doc = sp_document_new (nname, TRUE);
- if (doc) {
- reinterpret_cast<SPSVGView*>(SP_VIEW_WIDGET_VIEW (vw))->setDocument (doc);
- sp_document_unref (doc);
- }
- g_object_set_data (G_OBJECT (window), "current", (gpointer) nname);
- }
-
- return TRUE;
-}
-
-GtkWidget *
-sp_slideshow_new (const GSList *files)
-{
- SPDocument *doc;
- GtkWidget *w, *v;
-
- doc = sp_document_new ((const gchar*)files->data, TRUE);
- g_return_val_if_fail (doc != NULL, NULL);
-
- w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title (GTK_WINDOW (w), _("Inkscape slideshow"));
- gtk_window_set_default_size (GTK_WINDOW (w), 480, 360);
- gtk_window_set_policy (GTK_WINDOW (w), TRUE, TRUE, FALSE);
-
- v = sp_svg_view_widget_new (doc);
- sp_svg_view_widget_set_resize (SP_SVG_VIEW_WIDGET (v), FALSE, sp_document_width (doc), sp_document_height (doc));
- sp_document_unref (doc);
- gtk_widget_show (v);
- gtk_container_add (GTK_CONTAINER (w), v);
-
- g_object_set_data (G_OBJECT (w), "slides", (gpointer) files);
- g_object_set_data (G_OBJECT (w), "current", files->data);
-
- g_signal_connect (G_OBJECT (v), "event", G_CALLBACK (sp_slideshow_event), w);
-
- return w;
-}
diff --git a/src/slideshow.h b/src/slideshow.h
--- a/src/slideshow.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef __SP_SLIDESHOW_H__
-#define __SP_SLIDESHOW_H__
-
-/*
- * Slideshow/About window
- *
- * Authors:
- * Lauris Kaplinski <lauris@kaplinski.com>
- *
- * Copyright (C) 1999-2003 authors
- * Copyright (C) 2000-2002 Ximian, Inc.
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include <gtk/gtkwidget.h>
-
-GtkWidget *sp_slideshow_new (const GSList *files);
-
-#endif
-
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :