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/ui/dialog/dialog-data.h | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/ui/dialog/dialog-data.h (limited to 'src/ui/dialog/dialog-data.h') diff --git a/src/ui/dialog/dialog-data.h b/src/ui/dialog/dialog-data.h new file mode 100644 index 0000000..5f17723 --- /dev/null +++ b/src/ui/dialog/dialog-data.h @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +/** @file + * @brief Basic dialog info. + * + * Authors: see git history + * Tavmjong Bah + * + * Copyright (c) 2021 Tavmjong Bah, Authors + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#include + +#include +#include + +enum class ScrollProvider { + PROVIDE = 0, + NOPROVIDE +}; + +class DialogData { +public: + Glib::ustring label; + Glib::ustring icon_name; + enum Category { Basic = 0, Advanced, Settings, Diagnostics, Other, _num_categories }; + Category category; + ScrollProvider provide_scroll; +}; + +// dialog categories (used to group them in a dialog submenu) +char const *const dialog_categories[DialogData::_num_categories] = { + N_("Basic"), + N_("Advanced"), + N_("Settings"), + N_("Diagnostic"), + N_("Other") +}; + +/** Get the data about all existing dialogs. */ +std::map const &get_dialog_data(); + +/* + 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