You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
latte-dock/app/dockconfigview.h

81 lines
2.0 KiB
C

8 years ago
/*
* Copyright 2016 Smith AR <audoban@openmailbox.org>
* Michail Vourlakos <mvourlakos@gmail.com>
8 years ago
*
* This file is part of Latte-Dock
8 years ago
*
* Latte-Dock is free software; you can redistribute it and/or
8 years ago
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
8 years ago
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
8 years ago
* 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 NOWDOCKCONFIGVIEW_H
#define NOWDOCKCONFIGVIEW_H
#include "plasmaquick/configview.h"
#include <plasma/package.h>
#include <QObject>
#include <QWindow>
#include <QPointer>
#include <QTimer>
namespace Plasma {
class Applet;
class Containment;
class Types;
}
namespace Latte {
class DockView;
8 years ago
class DockConfigView : public PlasmaQuick::ConfigView {
Q_OBJECT
8 years ago
public:
DockConfigView(Plasma::Containment *containment, DockView *dockView, QWindow *parent = nullptr);
8 years ago
~DockConfigView() override;
8 years ago
void init() override;
Qt::WindowFlags wFlags() const;
public slots:
Q_INVOKABLE void setSticker(bool blockFocusLost);
Q_INVOKABLE void syncGeometry();
8 years ago
protected:
void showEvent(QShowEvent *ev) override;
void hideEvent(QHideEvent *ev) override;
void focusOutEvent(QFocusEvent *ev) override;
8 years ago
void syncSlideEffect();
private slots:
8 years ago
void immutabilityChanged(Plasma::Types::ImmutabilityType type);
signals:
void aboutApplication();
8 years ago
private:
bool m_blockFocusLost;
QPointer<DockView> m_dockView;
8 years ago
QTimer m_screenSyncTimer;
QList<QMetaObject::Connection> connections;
8 years ago
};
}
#endif //DOCKCONFIGVIEW_H
// kate: indent-mode cstyle; indent-width 4; replace-tabs on;