KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
flutter
views
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
"
23
#include "
core/views/TabBarViewInterface.h
"
24
25
#include "
kdbindings/signal.h
"
26
27
namespace
KDDockWidgets::Core
{
28
class
TabBar
;
29
}
30
31
namespace
KDDockWidgets::flutter
{
32
33
class
DockWidget
;
34
class
TabWidget;
35
36
class
DOCKS_EXPORT
TabBar
:
public
View
,
public
Core::TabBarViewInterface
37
{
38
public
:
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
56
private
:
57
Core::TabBar
*
const
m_controller;
58
};
59
}
TabBarViewInterface.h
KDDockWidgets::Core::DockWidget
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Definition
core/DockWidget.h:60
KDDockWidgets::Core::TabBarViewInterface
The interface that TabBar views should implement.
Definition
TabBarViewInterface.h:31
KDDockWidgets::Core::TabBar
Definition
core/TabBar.h:25
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets::flutter::TabBar
Definition
flutter/views/TabBar.h:37
KDDockWidgets::flutter::View
Definition
flutter/views/View.h:23
KDDockWidgets::Core
Definition
Config.h:27
KDDockWidgets::Core::ViewType::TabBar
@ TabBar
KDDockWidgets::Core::ViewType::DockWidget
@ DockWidget
KDDockWidgets::flutter
Definition
core/MainWindow.h:40
QString
View.h
signal.h
© 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