1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-01 01:17:51 +03:00
latte-dock/app/xwindowinterface.h
Michail Vourlakos 7d4989e983 add code for MultipleLayouts and Activities
--prepare dockViews and rest classes in order to
be able to change between different Activities in
a MultipleLayouts environment.
2018-01-14 23:58:48 +02:00

72 lines
2.2 KiB
C++

/*
* Copyright 2016 Smith AR <audoban@openmailbox.org>
* Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef XWINDOWINTERFACE_H
#define XWINDOWINTERFACE_H
#include "abstractwindowinterface.h"
#include "windowinfowrap.h"
#include <QObject>
#include <KWindowInfo>
#include <KWindowEffects>
namespace Latte {
class XWindowInterface : public AbstractWindowInterface {
Q_OBJECT
public:
explicit XWindowInterface(QObject *parent = nullptr);
~XWindowInterface() override;
void setDockExtraFlags(QWindow &view) override;
void setDockStruts(QWindow &view, const QRect &rect
, Plasma::Types::Location location) override;
void setOnActivities(QWindow &view, const QStringList &activities) override;
void removeDockStruts(QWindow &view) const override;
WindowId activeWindow() const override;
WindowInfoWrap requestInfo(WindowId wid) const override;
WindowInfoWrap requestInfoActive() const override;
bool isOnCurrentDesktop(WindowId wid) const override;
bool isOnCurrentActivity(WindowId wid) const override;
const std::list<WindowId> &windows() const override;
void skipTaskBar(const QDialog &dialog) const override;
void slideWindow(QWindow &view, Slide location) const override;
void enableBlurBehind(QWindow &view) const override;
private:
bool isValidWindow(const KWindowInfo &winfo) const;
void windowChangedProxy(WId wid, NET::Properties prop1, NET::Properties2 prop2);
WindowId m_desktopId;
};
}
#endif // XWINDOWINTERFACE_H