From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/preferences-skeleton.h | 547 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 547 insertions(+) create mode 100644 src/preferences-skeleton.h (limited to 'src/preferences-skeleton.h') diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h new file mode 100644 index 0000000..3377d9a --- /dev/null +++ b/src/preferences-skeleton.h @@ -0,0 +1,547 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** @file + * TODO: insert short description here + *//* + * Authors: see git history + * + * Copyright (C) 2018 Authors + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ +#ifndef SEEN_PREFERENCES_SKELETON_H +#define SEEN_PREFERENCES_SKELETON_H + +#include "inkscape-version.h" + +// FIXME why is this here? +#ifdef N_ +#undef N_ +#endif +#define N_(x) x + +/* The root's "version" attribute describes the preferences file format version. + * It should only increase when a backwards-incompatible change is made, + * and special handling has to be added to the preferences class to update + * obsolete versions the user might have. */ +static char const preferences_skeleton[] = + R"=====( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +)====="; + +#define PREFERENCES_SKELETON_SIZE (sizeof(preferences_skeleton) - 1) + +// Raw string literal cannot contain translatable strings. Fortunately, we only translate +// calligraphy presets. +// Note: actual translation is done in CalligraphyToolbar::build_presets_list(), we just +// mark the strings as translatable here (see GitLab issue 128): +Glib::ustring calligraphy_name_array[] = { + _("Dip pen"), + _("Marker"), + _("Brush"), + _("Wiggly"), + _("Splotchy"), + _("Tracing") +}; + +#endif /* !SEEN_PREFERENCES_SKELETON_H */ + +/* + 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:fileencoding=utf-8:textwidth=99 : -- cgit v1.2.3