KWin
Loading...
Searching...
No Matches
tabboxconfig.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2009 Martin Gräßlin <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include <QString>
13
22namespace KWin
23{
24namespace TabBox
25{
26class TabBoxConfigPrivate;
27
40{
41public:
111 TabBoxConfig();
113 TabBoxConfig &operator=(const TabBoxConfig &object);
114
115 // getters
121 bool isShowTabBox() const;
127 bool isHighlightWindows() const;
180 QString &layoutName() const;
181
182 // setters
187 void setShowTabBox(bool show);
192 void setHighlightWindows(bool highlight);
197 void setClientDesktopMode(ClientDesktopMode desktopMode);
237 void setLayoutName(const QString &name);
238
239 // some static methods to access default values
272 static bool defaultShowTabBox()
273 {
274 return true;
275 }
277 {
278 return true;
279 }
280 static QString defaultLayoutName()
281 {
282 return QStringLiteral("thumbnail_grid");
283 }
284
285private:
287};
288
289} // namespace TabBox
290} // namespace KWin
ClientMinimizedMode clientMinimizedMode() const
void setShowTabBox(bool show)
void setLayoutName(const QString &name)
@ AllActivitiesClients
Windows from all Activities are included.
@ OnlyCurrentActivityClients
Only Windows on current activity are included.
@ ExcludeCurrentActivityClients
Exclude Windows on current activity.
static ClientSwitchingMode defaultSwitchingMode()
@ OnlyMinimizedClients
Only minimized Windows are included.
@ IgnoreMinimizedStatus
Windows are included no matter they are minimized or not.
@ ExcludeMinimizedClients
Exclude minimized Windows.
void setClientMinimizedMode(ClientMinimizedMode minimizedMode)
ClientApplicationsMode clientApplicationsMode() const
void setClientActivitiesMode(ClientActivitiesMode activitiesMode)
@ OneWindowPerApplication
Only one Window for each application is included.
@ AllWindowsAllApplications
Windows from all applications are included.
@ AllWindowsCurrentApplication
Only Windows for the current application are included.
static ClientActivitiesMode defaultActivitiesMode()
void setClientApplicationsMode(ClientApplicationsMode applicationsMode)
static ClientMultiScreenMode defaultMultiScreenMode()
ClientDesktopMode clientDesktopMode() const
@ AllDesktopsClients
Windows from all desktops are included.
@ OnlyCurrentDesktopClients
Only Windows on current desktop are included.
@ ExcludeCurrentDesktopClients
Exclude Windows on current desktop.
static OrderMinimizedMode defaultOrderMinimizedMode()
ClientMultiScreenMode clientMultiScreenMode() const
static ClientApplicationsMode defaultApplicationsMode()
@ GroupByMinimized
Windows are grouped by whether they are minimized or not.
@ NoGroupByMinimized
Windows are not grouped by whether they are minimized.
ClientSwitchingMode clientSwitchingMode() const
static QString defaultLayoutName()
void setClientMultiScreenMode(ClientMultiScreenMode multiScreenMode)
@ StackingOrderSwitching
Sort by current stacking order.
@ FocusChainSwitching
Sort by recently used. Most recently used Window is the first.
static ShowDesktopMode defaultShowDesktopMode()
void setHighlightWindows(bool highlight)
static ClientMinimizedMode defaultMinimizedMode()
void setOrderMinimizedMode(OrderMinimizedMode orderMinimizedMode)
ShowDesktopMode showDesktopMode() const
void setShowDesktopMode(ShowDesktopMode showDesktopMode)
@ ShowDesktopClient
A Window representing the desktop is included.
@ DoNotShowDesktopClient
A Window representing the desktop is not included.
ClientActivitiesMode clientActivitiesMode() const
@ OnlyCurrentScreenClients
Only Windows on current screen are included.
@ ExcludeCurrentScreenClients
Exclude Windows from the current screen.
@ IgnoreMultiScreen
Windows are included independently of the screen they are on.
static bool defaultHighlightWindow()
void setClientSwitchingMode(ClientSwitchingMode switchingMode)
static bool defaultShowTabBox()
void setClientDesktopMode(ClientDesktopMode desktopMode)
OrderMinimizedMode orderMinimizedMode() const
TabBoxConfig & operator=(const TabBoxConfig &object)
QString & layoutName() const
static ClientDesktopMode defaultDesktopMode()