blob: 7879c55e245ca64b82a51467111d7d94f9dc4faf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#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 :
|