From 422ea274ba9ed5b038c767bceead4c38d8d78152 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sun, 28 Oct 2018 18:07:34 +0100 Subject: 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). --- src/inkview-options-group.cpp | 56 ------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/inkview-options-group.cpp (limited to 'src/inkview-options-group.cpp') 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 - -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 : -- cgit v1.2.3