From 29eb802f09da07421099238eceaee9e3b1d61ff2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 28 Apr 2025 14:01:30 +0200 Subject: adw: extract libadwaitamm --- adw/include/adwaitamm/preferencesdialog.hpp | 61 ----------------------------- 1 file changed, 61 deletions(-) delete mode 100644 adw/include/adwaitamm/preferencesdialog.hpp (limited to 'adw/include/adwaitamm/preferencesdialog.hpp') diff --git a/adw/include/adwaitamm/preferencesdialog.hpp b/adw/include/adwaitamm/preferencesdialog.hpp deleted file mode 100644 index cdc1444..0000000 --- a/adw/include/adwaitamm/preferencesdialog.hpp +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @author Felix Morgner (felix.morgner@gmail.com) - * @copyright Copyright (c) 2025 - * SPDX-License-Identifier: LGPL-2.1-or-later - */ - -#ifndef LIBADWAITAMM_PREFERENCES_DIALOG_HPP -#define LIBADWAITAMM_PREFERENCES_DIALOG_HPP - -#include "adwaitamm/dialog.hpp" -#include "adwaitamm/preferencespage.hpp" -#include "helpers/gobj_mixin.hpp" - -#include - -#include - -#define _ADWAITA_INSIDE -#include -#undef _ADWAITA_INSIDE - -namespace Adwaita -{ - struct PreferencesDialog : Dialog, - helpers::gobj_mixin - { - using BaseObjectType = AdwPreferencesDialog; - using BaseClassType = AdwPreferencesDialogClass; - using CppObjectType = PreferencesDialog; - using CppClassType = struct PreferencesDialog_Class; - - using helpers::gobj_mixin::gobj; - using helpers::gobj_mixin::gobj_copy; - - explicit PreferencesDialog(); - PreferencesDialog(PreferencesDialog const & other) = delete; - PreferencesDialog(PreferencesDialog && other) noexcept = default; - - auto operator=(PreferencesDialog const & other) noexcept -> PreferencesDialog & = delete; - auto operator=(PreferencesDialog && other) noexcept -> PreferencesDialog & = default; - - auto static get_type() -> GType; - auto static get_base_type() -> GType; - - auto add(PreferencesPage & page) -> void; - auto set_visible_page(PreferencesPage & page) -> void; - - protected: - friend PreferencesDialog_Class; - - explicit PreferencesDialog(Glib::ConstructParams const & params); - explicit PreferencesDialog(BaseObjectType * gobj); - }; -} // namespace Adwaita - -namespace Glib -{ - auto wrap(AdwPreferencesDialog * object, bool copy = false) -> Adwaita::PreferencesDialog *; -} // namespace Glib - -#endif \ No newline at end of file -- cgit v1.2.3