shift-shell/containments/taskpanel/taskpanel.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.2 KiB
C
Raw Normal View History

2021-03-01 20:03:25 +00:00
/*
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
*
2021-03-01 20:03:25 +00:00
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef TASKPANEL_H
#define TASKPANEL_H
#include <Plasma/Containment>
2022-04-24 11:44:41 +00:00
#include <QWindow>
class OutputsModel;
class QAbstractItemModel;
namespace KWayland
{
namespace Client
{
class Output;
class PlasmaWindowManagement;
class PlasmaWindow;
class PlasmaShell;
class PlasmaShellSurface;
class Surface;
}
}
class TaskPanel : public Plasma::Containment
{
Q_OBJECT
Q_PROPERTY(QWindow *panel READ panel WRITE setPanel NOTIFY panelChanged)
public:
2022-04-24 11:44:41 +00:00
TaskPanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
QWindow *panel();
void setPanel(QWindow *panel);
Q_INVOKABLE void setPanelHeight(qreal height);
QAbstractItemModel *outputs() const;
2023-03-06 06:38:43 +00:00
Q_INVOKABLE void triggerTaskSwitcher() const;
Q_SIGNALS:
void panelChanged();
void locationChanged();
private:
void initWayland();
2017-09-14 11:01:07 +00:00
void updatePanelVisibility();
QWindow *m_panel = nullptr;
KWayland::Client::PlasmaShellSurface *m_shellSurface = nullptr;
KWayland::Client::Surface *m_surface = nullptr;
KWayland::Client::PlasmaShell *m_shellInterface = nullptr;
};
#endif