summaryrefslogtreecommitdiff
path: root/adw/include/adwaitamm/aboutdialog.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-28 14:01:30 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-28 14:01:30 +0200
commit29eb802f09da07421099238eceaee9e3b1d61ff2 (patch)
treed07784be13475237d58f65033959c1e27e6245c0 /adw/include/adwaitamm/aboutdialog.hpp
parentdff2f80ddc8f742b8181409d6feeca33e856112e (diff)
downloadturns-29eb802f09da07421099238eceaee9e3b1d61ff2.tar.xz
turns-29eb802f09da07421099238eceaee9e3b1d61ff2.zip
adw: extract libadwaitamm
Diffstat (limited to 'adw/include/adwaitamm/aboutdialog.hpp')
-rw-r--r--adw/include/adwaitamm/aboutdialog.hpp170
1 files changed, 0 insertions, 170 deletions
diff --git a/adw/include/adwaitamm/aboutdialog.hpp b/adw/include/adwaitamm/aboutdialog.hpp
deleted file mode 100644
index 86f6751..0000000
--- a/adw/include/adwaitamm/aboutdialog.hpp
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ABOUT_DIALOG_HPP
-#define LIBADWAITAMM_ABOUT_DIALOG_HPP
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/aboutdialog.h>
-
-#include <glib-object.h>
-
-#include <string>
-#include <vector>
-
-#define _ADWAITA_INSIDE
-#include <adw-about-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- enum struct ResponseAppearance;
-
- struct AboutDialog final : Dialog,
- helpers::gobj_mixin<AboutDialog, AdwAboutDialog>
- {
- using BaseObjectType = AdwAboutDialog;
- using BaseClassType = AdwAboutDialogClass;
- using CppObjectType = AboutDialog;
- using CppClassType = struct AboutDialog_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- AboutDialog();
- AboutDialog(std::string resource_path, std::string release_notes_version);
- AboutDialog(AboutDialog const & other) = delete;
- AboutDialog(AboutDialog && other) noexcept = default;
-
- auto operator=(AboutDialog const & other) noexcept -> AboutDialog & = delete;
- auto operator=(AboutDialog && other) noexcept -> AboutDialog & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Functions
- auto add_acknowledgement_section(Glib::ustring const & name, std::vector<Glib::ustring> const & people) -> void;
- auto add_credit_section(Glib::ustring const & name, std::vector<Glib::ustring> const & people) -> void;
- auto
- add_legal_section(Glib::ustring const & title, Glib::ustring const & copyright, Gtk::License license_type, Glib::ustring const & license)
- -> void;
- auto add_link(Glib::ustring const & title, Glib::ustring const & url) -> void;
- auto add_other_app(Glib::ustring const & id, Glib::ustring const & name, Glib::ustring const & summary) -> void;
-
-#pragma mark - Getters
- [[nodiscard]] auto get_application_icon() const -> Glib::ustring;
- [[nodiscard]] auto get_application_name() const -> Glib::ustring;
- [[nodiscard]] auto get_artists() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_comments() const -> Glib::ustring;
- [[nodiscard]] auto get_copyright() const -> Glib::ustring;
- [[nodiscard]] auto get_debug_info() const -> Glib::ustring;
- [[nodiscard]] auto get_debug_info_filename() const -> Glib::ustring;
- [[nodiscard]] auto get_designers() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_developer_name() const -> Glib::ustring;
- [[nodiscard]] auto get_developers() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_documenters() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_issue_url() const -> Glib::ustring;
- [[nodiscard]] auto get_license() const -> Glib::ustring;
- [[nodiscard]] auto get_license_type() const -> Gtk::License;
- [[nodiscard]] auto get_release_notes() const -> Glib::ustring;
- [[nodiscard]] auto get_release_notes_version() const -> Glib::ustring;
- [[nodiscard]] auto get_support_url() const -> Glib::ustring;
- [[nodiscard]] auto get_translator_credits() const -> Glib::ustring;
- [[nodiscard]] auto get_version() const -> Glib::ustring;
- [[nodiscard]] auto get_website() const -> Glib::ustring;
-
-#pragma mark - Setters
- auto set_application_icon(Glib::ustring const & value) -> void;
- auto set_application_name(Glib::ustring const & value) -> void;
- auto set_artists(std::vector<Glib::ustring> const & value) -> void;
- auto set_comments(Glib::ustring const & value) -> void;
- auto set_copyright(Glib::ustring const & value) -> void;
- auto set_debug_info(Glib::ustring const & value) -> void;
- auto set_debug_info_filename(Glib::ustring const & value) -> void;
- auto set_designers(std::vector<Glib::ustring> const & value) -> void;
- auto set_developer_name(Glib::ustring const & value) -> void;
- auto set_developers(std::vector<Glib::ustring> const & value) -> void;
- auto set_documenters(std::vector<Glib::ustring> const & value) -> void;
- auto set_issue_url(Glib::ustring const & value) -> void;
- auto set_license(Glib::ustring const & value) -> void;
- auto set_license_type(Gtk::License const & value) -> void;
- auto set_release_notes(Glib::ustring const & value) -> void;
- auto set_release_notes_version(Glib::ustring const & value) -> void;
- auto set_support_url(Glib::ustring const & value) -> void;
- auto set_translator_credits(Glib::ustring const & value) -> void;
- auto set_version(Glib::ustring const & value) -> void;
- auto set_website(Glib::ustring const & value) -> void;
-
-#pragma mark - Properties
- auto property_application_icon() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_application_icon() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_application_name() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_application_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_artists() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_artists() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_comments() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_comments() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_copyright() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_copyright() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_debug_info() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_debug_info() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_debug_info_filename() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_debug_info_filename() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_designers() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_designers() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_developer_name() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_developer_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_developers() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_developers() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_documenters() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_documenters() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_issue_url() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_issue_url() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_license_type() -> Glib::PropertyProxy<Gtk::License>;
- auto property_license_type() const -> Glib::PropertyProxy_ReadOnly<Gtk::License>;
- auto property_license() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_license() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_release_notes() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_release_notes() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_release_notes_version() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_release_notes_version() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_support_url() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_support_url() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_translator_credits() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_translator_credits() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_version() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_version() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_website() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_website() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
-
-#pragma mark - Signals
- auto signal_activate_link() -> Glib::SignalProxy<bool(Glib::ustring const &)>;
-
- protected:
- friend AboutDialog_Class;
-
-#pragma mark - Internal Constructors
- explicit AboutDialog(Glib::ConstructParams const & params);
- explicit AboutDialog(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwAboutDialog * object, bool copy = false) -> Adwaita::AboutDialog *;
-} // namespace Glib
-
-#endif \ No newline at end of file