Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
template-video.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-video.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.video</id>"
28 "<name>" N_("Video Sizes") "</name>"
29 "<description>" N_("Document formats using common video resolutions") "</description>"
30 "<category>" NC_("TemplateCategory", "Video") "</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='video_landscape' unit='px' priority='-50' visibility='all'>"
37
38"<preset name='" N_("Video SD PAL") "' label='768 × 576 px' width='768' height='576' />"
39"<preset name='" N_("Video SD Widescreen / PAL") "' label='1024 × 576 px' width='1024' height='576' />"
40"<preset name='" N_("Video SD NTSC") "' label='544 × 480 px' width='544' height='480' />"
41"<preset name='" N_("Video SD Widescreen NTSC") "' label='872 × 486 px' width='872' height='486' />"
42"<preset name='" N_("Video HD 720p") "' label='1280 × 720 px' width='1280' height='720' />"
43"<preset name='" N_("Video HD 1080p") "' label='1920 × 1080 px' width='1920' height='1080' />"
44"<preset name='" N_("Video DCI 2k (Full Frame)") "' label='2048 × 1080 px' width='2048' height='1080' />"
45"<preset name='" N_("Video UHD 4k") "' label='3840 × 2160 px' width='3840' height='2160' />"
46"<preset name='" N_("Video DCI 4k (Full Frame)") "' label='4096 × 2160 px' width='4096' height='2160' />"
47"<preset name='" N_("Video UHD 8k") "' label='7680 × 4320 px' width='7680' height='4320' />"
48
49 "</template>"
50 "</inkscape-extension>",
51 std::make_unique<TemplateVideo>());
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