| 1 |
/* This file is part of the KDE project |
| 2 |
SPDX-FileCopyrightText: 2007 Marijn Kruisselbrink <[email protected]> |
| 3 |
SPDX-FileCopyrightText: 2007 Thomas Zander <[email protected]> |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 |
*/ |
| 7 |
#ifndef KoDockWidgetTitleBar_p_h |
| 8 |
#define KoDockWidgetTitleBar_p_h |
| 9 |
|
| 10 |
#include "KoDockWidgetTitleBar.h" |
| 11 |
#include "KoDockWidgetTitleBarButton.h" |
| 12 |
|
| 13 |
#include <KoIcon.h> |
| 14 |
|
| 15 |
#include <WidgetsDebug.h> |
| 16 |
|
| 17 |
#include <QAbstractButton> |
| 18 |
#include <QAction> |
| 19 |
#include <QLabel> |
| 20 |
#include <QLayout> |
| 21 |
#include <QStyle> |
| 22 |
#include <QStylePainter> |
| 23 |
#include <QStyleOptionFrame> |
| 24 |
|
| 25 |
class Q_DECL_HIDDEN KoDockWidgetTitleBar::Private |
| 26 |
{ |
| 27 |
public: |
| 28 |
Private(KoDockWidgetTitleBar* thePublic) |
| 29 |
: thePublic(thePublic), |
| 30 |
collapsable(true), |
| 31 |
collapsableSet(true), |
| 32 |
lockable(true), |
| 33 |
textVisibilityMode(KoDockWidgetTitleBar::FullTextAlwaysVisible), |
| 34 |
preCollapsedWidth(-1), |
| 35 |
locked(false) |
| 36 |
{ |
| 37 |
} |
| 38 |
|
| 39 |
KoDockWidgetTitleBar* thePublic; |
| 40 |
QAbstractButton* closeButton; |
| 41 |
QAbstractButton* floatButton; |
| 42 |
QAbstractButton* collapseButton; |
| 43 |
bool collapsable; |
| 44 |
bool collapsableSet; |
| 45 |
QAbstractButton* lockButton; |
| 46 |
bool lockable; |
| 47 |
KoDockWidgetTitleBar::TextVisibilityMode textVisibilityMode; |
| 48 |
int preCollapsedWidth; |
| 49 |
bool locked; |
| 50 |
QDockWidget::DockWidgetFeatures features; |
| 51 |
|
| 52 |
void toggleFloating(); |
| 53 |
void toggleCollapsed(); |
| 54 |
void topLevelChanged(bool topLevel); |
| 55 |
void featuresChanged(QDockWidget::DockWidgetFeatures features); |
| 56 |
void updateIcons(); |
| 57 |
}; |
| 58 |
#endif |