56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
/*
|
|
This file is part of KDDockWidgets.
|
|
|
|
SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
|
Author: Sérgio Martins <sergio.martins@kdab.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
|
|
|
Contact KDAB at <info@kdab.com> 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<bool> tabBarAutoHideChanged;
|
|
|
|
/// Emitted when m_buttonsToHideIfDisabled changes
|
|
KDBindings::Signal<> buttonsToHideIfDisabledChanged;
|
|
|
|
Stack *const q;
|
|
|
|
ObjectGuard<TabBar> m_tabBar;
|
|
Group *const m_group;
|
|
bool m_tabBarAutoHide = true;
|
|
const StackOptions m_options;
|
|
TitleBarButtonTypes m_buttonsToHideIfDisabled = {};
|
|
};
|
|
|
|
}
|
|
|
|
}
|