Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
template-screen.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Contain internal sizes of paper which can be used in various
4 * functions to make and size pages.
5 *
6 * Authors:
7 * Martin Owens <doctormo@geek-2.com>
8 *
9 * Copyright (C) 2022 Authors
10 *
11 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
12 */
13
14#include "template-screen.h"
15
16#include "clear-n_.h"
17#include "extension/extension.h"
18#include "extension/system.h"
19
21
23{
24 // clang-format off
26 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">"
27 "<id>org.inkscape.template.digital</id>"
28 "<name>" N_("Screen Sizes") "</name>"
29 "<description>" N_("Document formats using common screen resolutions") "</description>"
30 "<category>" NC_("TemplateCategory", "Screen") "</category>"
31
32 "<param name='unit' gui-text='" N_("Unit") "' type='string'>px</param>"
33 "<param name='width' gui-text='" N_("Width") "' type='float' min='1.0' max='100000.0'>100.0</param>"
34 "<param name='height' gui-text='" N_("Height") "' type='float' min='1.0' max='100000.0'>100.0</param>"
35
36 "<template icon='desktop_hd_landscape' unit='px' priority='-20' visibility='all'>"
37
38"<preset name='" N_("Desktop 1080p") "' label='1920 × 1080 px' height='1080' width='1920'/>"
39"<preset name='" N_("Desktop 2K") "' label='2560 × 1440 px' height='1440' width='2560'/>"
40"<preset name='" N_("Desktop 4K") "' label='3840 × 2160 px' height='2160' width='3840'/>"
41"<preset name='" N_("Desktop 720p") "' label='1366 × 768 px' height='768' width='1366'/>"
42"<preset name='" N_("Desktop SD") "' label='1024 × 768 px' height='768' width='1024' icon='desktop_landscape'/>"
43"<preset name='" N_("iPhone 5") "' label='640 × 1136 px' height='1136' width='640' icon='mobile_portrait' visibility='icon,search'/>"
44"<preset name='" N_("iPhone X") "' label='1125 × 2436 px' height='2436' width='1125' icon='mobile_portrait' visibility='icon,search'/>"
45"<preset name='" N_("Mobile-smallest") "' label='360 × 640 px' height='640' width='360' icon='mobile_portrait' visibility='icon,search'/>"
46"<preset name='" N_("iPad Pro") "' label='2388 × 1668 px' height='1668' width='2388' icon='tablet_landscape' visibility='icon,search'/>"
47"<preset name='" N_("Tablet-smallest") "' label='1024 × 768 px' height='768' width='1024' icon='tablet_landscape' visibility='icon,search'/>"
48
49 "</template>"
50 "</inkscape-extension>",
51 std::make_unique<TemplateScreen>());
52 // clang-format on
53}
54
55} // namespace Inkscape::Extension::Internal
56
57/*
58 Local Variables:
59 mode:c++
60 c-file-style:"stroustrup"
61 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62 indent-tabs-mode:nil
63 fill-column:99
64 End:
65*/
66// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
A way to clear the N_ macro, which is defined as an inline function.
Inkscape::Extension::Extension: Frontend to certain, possibly pluggable, actions.
void build_from_mem(gchar const *buffer, std::unique_ptr< Implementation::Implementation > in_imp)
Create a module from a buffer holding an XML description.
Definition system.cpp:459