KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
flutter/views/TabBar.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
20#pragma once
21
22#include "View.h"
24
25#include "kdbindings/signal.h"
26
27namespace KDDockWidgets::Core {
28class TabBar;
29}
30
31namespace KDDockWidgets::flutter {
32
33class DockWidget;
34class TabWidget;
35
36class DOCKS_EXPORT TabBar : public View, public Core::TabBarViewInterface
37{
38public:
39 explicit TabBar(Core::TabBar *controller, Core::View *parent = nullptr);
40 int tabAt(Point localPos) const override;
41
42 QString text(int index) const override;
43 Rect rectForTab(int index) const override;
44
45 void moveTabTo(int from, int to) override;
46
47 void changeTabIcon(int index, const Icon &icon) override;
48 void removeDockWidget(Core::DockWidget *dw) override;
49 void insertDockWidget(int index, Core::DockWidget *dw, const Icon &icon,
50 const QString &title) override;
51 void renameTab(int index, const QString &name) override;
52 void setCurrentIndex(int index) override;
53
54 void onMousePress(MouseEvent *) override;
55
56private:
57 Core::TabBar *const m_controller;
58};
59}
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
The interface that TabBar views should implement.

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8