summaryrefslogtreecommitdiffstats
path: root/src/inkview-options-group.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-10-28 17:07:34 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-11-04 09:37:02 +0000
commit422ea274ba9ed5b038c767bceead4c38d8d78152 (patch)
treedbe228fdc5e4fdd99ec70a9ca1bb98e50fee69b2 /src/inkview-options-group.cpp
parentMerge branch 'fix-knot-selection' of gitlab.com:ao2/inkscape (diff)
downloadinkscape-422ea274ba9ed5b038c767bceead4c38d8d78152.tar.gz
inkscape-422ea274ba9ed5b038c767bceead4c38d8d78152.zip
Rewrite of inkview using InkApplication (Gtk::Application).
Use Gio::File for accessing files. Use Gio options to handle command line arguments. Use Gio::Action's. Use Gtk::Builder for control window. Only create SPDocument when requested for display and then cache it (should speed up start-up).
Diffstat (limited to 'src/inkview-options-group.cpp')
-rw-r--r--src/inkview-options-group.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/inkview-options-group.cpp b/src/inkview-options-group.cpp
deleted file mode 100644
index 7879c55e2..000000000
--- a/src/inkview-options-group.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#include "inkview-options-group.h"
-
-#include <glibmm/i18n.h>
-
-InkviewOptionsGroup::InkviewOptionsGroup()
- : Glib::OptionGroup(N_("Inkscape Options"),
- N_("Default program options"))
-{
- // Entry for the "fullscreen" option
- Glib::OptionEntry entry_fullscreen;
- entry_fullscreen.set_short_name('f');
- entry_fullscreen.set_long_name("fullscreen");
- entry_fullscreen.set_description(N_("Launch in fullscreen mode"));
- add_entry(entry_fullscreen, fullscreen);
-
- // Entry for the "recursive" option
- Glib::OptionEntry entry_recursive;
- entry_recursive.set_short_name('r');
- entry_recursive.set_long_name("recursive");
- entry_recursive.set_description(N_("Search folders recursively"));
- add_entry(entry_recursive, recursive);
-
- // Entry for the "timer" option
- Glib::OptionEntry entry_timer;
- entry_timer.set_short_name('t');
- entry_timer.set_long_name("timer");
- entry_timer.set_arg_description(N_("NUM"));
- entry_timer.set_description(N_("Change image every NUM seconds"));
- add_entry(entry_timer, timer);
-
- // Entry for the "scale" option
- Glib::OptionEntry entry_scale;
- entry_scale.set_short_name('s');
- entry_scale.set_long_name("scale");
- entry_scale.set_arg_description(N_("NUM"));
- entry_scale.set_description(N_("Scale image by factor NUM"));
- add_entry(entry_scale, scale);
-
- // Entry for the remaining non-option arguments
- Glib::OptionEntry entry_args;
- entry_args.set_long_name(G_OPTION_REMAINING);
- entry_args.set_arg_description(N_("FILES/FOLDERS…"));
-
- add_entry(entry_args, filenames);
-}
-
-/*
- 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 :