/* This file is part of KDDockWidgets. SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company Author: Sérgio Martins SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only Contact KDAB at for commercial licensing options. */ #pragma once // Pimpl class so we can keep kdbindings private #include "Stack.h" #include "TabBar.h" #include "ObjectGuard_p.h" #include "kdbindings/signal.h" namespace KDDockWidgets { namespace Core { class TabBar; class Stack::Private { public: explicit Private(Group *group, StackOptions options, Stack *qq) : q(qq) , m_group(group) , m_options(options) { } /// Emitted when the tabBarAutoHide boolean member changes KDBindings::Signal tabBarAutoHideChanged; /// Emitted when m_buttonsToHideIfDisabled changes KDBindings::Signal<> buttonsToHideIfDisabledChanged; Stack *const q; ObjectGuard m_tabBar; Group *const m_group; bool m_tabBarAutoHide = true; const StackOptions m_options; TitleBarButtonTypes m_buttonsToHideIfDisabled = {}; }; } }