mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-26 18:03:42 +03:00
update header files and move files around
This commit is contained in:
parent
2987e406db
commit
acb77c6cd4
@ -5,26 +5,26 @@ set(lattedock-app_SRCS
|
|||||||
xwindowinterface.cpp
|
xwindowinterface.cpp
|
||||||
waylandinterface.cpp
|
waylandinterface.cpp
|
||||||
windowinfowrap.cpp
|
windowinfowrap.cpp
|
||||||
visibilitymanager.cpp
|
|
||||||
dockcorona.cpp
|
|
||||||
dockview.cpp
|
|
||||||
dockconfigview.cpp
|
|
||||||
packageplugins/shell/dockpackage.cpp
|
|
||||||
panelshadows.cpp
|
|
||||||
alternativeshelper.cpp
|
|
||||||
screenpool.cpp
|
screenpool.cpp
|
||||||
|
packageplugins/shell/dockpackage.cpp
|
||||||
|
alternativeshelper.cpp
|
||||||
|
dockcorona.cpp
|
||||||
globalshortcuts.cpp
|
globalshortcuts.cpp
|
||||||
universalsettings.cpp
|
universalsettings.cpp
|
||||||
layoutmanager.cpp
|
layoutmanager.cpp
|
||||||
layout.cpp
|
layout.cpp
|
||||||
latteconfigdialog.cpp
|
latteconfigdialog.cpp
|
||||||
importer.cpp
|
importer.cpp
|
||||||
|
infoview.cpp
|
||||||
|
launcherssignals.cpp
|
||||||
layoutsDelegates/checkboxdelegate.cpp
|
layoutsDelegates/checkboxdelegate.cpp
|
||||||
layoutsDelegates/colorcmbboxdelegate.cpp
|
layoutsDelegates/colorcmbboxdelegate.cpp
|
||||||
layoutsDelegates/colorcmbboxitemdelegate.cpp
|
layoutsDelegates/colorcmbboxitemdelegate.cpp
|
||||||
layoutsDelegates/activitycmbboxdelegate.cpp
|
layoutsDelegates/activitycmbboxdelegate.cpp
|
||||||
infoview.cpp
|
dock/dockview.cpp
|
||||||
launcherssignals.cpp
|
dock/dockconfigview.cpp
|
||||||
|
dock/panelshadows.cpp
|
||||||
|
dock/visibilitymanager.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -19,11 +19,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dockconfigview.h"
|
#include "dockconfigview.h"
|
||||||
|
|
||||||
#include "dockview.h"
|
#include "dockview.h"
|
||||||
#include "dockcorona.h"
|
|
||||||
#include "panelshadows_p.h"
|
#include "panelshadows_p.h"
|
||||||
#include "abstractwindowinterface.h"
|
#include "../abstractwindowinterface.h"
|
||||||
#include "../liblattedock/dock.h"
|
#include "../dockcorona.h"
|
||||||
|
#include "../layoutmanager.h"
|
||||||
|
#include "../universalsettings.h"
|
||||||
|
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
@ -21,8 +21,8 @@
|
|||||||
#ifndef DOCKCONFIGVIEW_H
|
#ifndef DOCKCONFIGVIEW_H
|
||||||
#define DOCKCONFIGVIEW_H
|
#define DOCKCONFIGVIEW_H
|
||||||
|
|
||||||
#include "plasmaquick/configview.h"
|
#include "../plasmaquick/configview.h"
|
||||||
#include "../liblattedock/dock.h"
|
#include "../../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <plasma/package.h>
|
#include <plasma/package.h>
|
||||||
#include <Plasma/FrameSvg>
|
#include <Plasma/FrameSvg>
|
@ -19,12 +19,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dockview.h"
|
#include "dockview.h"
|
||||||
|
|
||||||
#include "dockconfigview.h"
|
#include "dockconfigview.h"
|
||||||
#include "dockcorona.h"
|
|
||||||
#include "panelshadows_p.h"
|
#include "panelshadows_p.h"
|
||||||
#include "screenpool.h"
|
|
||||||
#include "visibilitymanager.h"
|
#include "visibilitymanager.h"
|
||||||
#include "../liblattedock/extras.h"
|
#include "../dockcorona.h"
|
||||||
|
#include "../layout.h"
|
||||||
|
#include "../layoutmanager.h"
|
||||||
|
#include "../screenpool.h"
|
||||||
|
#include "../universalsettings.h"
|
||||||
|
#include "../../liblattedock/extras.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
@ -21,12 +21,12 @@
|
|||||||
#ifndef DOCKVIEW_H
|
#ifndef DOCKVIEW_H
|
||||||
#define DOCKVIEW_H
|
#define DOCKVIEW_H
|
||||||
|
|
||||||
#include "plasmaquick/containmentview.h"
|
|
||||||
#include "plasmaquick/configview.h"
|
|
||||||
#include "layout.h"
|
|
||||||
#include "visibilitymanager.h"
|
|
||||||
#include "../liblattedock/dock.h"
|
|
||||||
#include "dockconfigview.h"
|
#include "dockconfigview.h"
|
||||||
|
#include "visibilitymanager.h"
|
||||||
|
#include "../layout.h"
|
||||||
|
#include "../plasmaquick/containmentview.h"
|
||||||
|
#include "../plasmaquick/configview.h"
|
||||||
|
#include "../../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <QQuickView>
|
#include <QQuickView>
|
||||||
#include <QQmlListProperty>
|
#include <QQmlListProperty>
|
||||||
@ -51,8 +51,10 @@ class PlasmaShellSurface;
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
class Layout;
|
class Layout;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
|
|
||||||
class DockView : public PlasmaQuick::ContainmentView {
|
class DockView : public PlasmaQuick::ContainmentView {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
@ -20,10 +20,12 @@
|
|||||||
|
|
||||||
#include "visibilitymanager.h"
|
#include "visibilitymanager.h"
|
||||||
#include "visibilitymanager_p.h"
|
#include "visibilitymanager_p.h"
|
||||||
#include "windowinfowrap.h"
|
|
||||||
#include "dockview.h"
|
#include "dockview.h"
|
||||||
#include "dockcorona.h"
|
#include "../dockcorona.h"
|
||||||
#include "../liblattedock/extras.h"
|
#include "../layoutmanager.h"
|
||||||
|
#include "../windowinfowrap.h"
|
||||||
|
#include "../../liblattedock/extras.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
@ -21,8 +21,8 @@
|
|||||||
#ifndef VISIBILITYMANAGER_H
|
#ifndef VISIBILITYMANAGER_H
|
||||||
#define VISIBILITYMANAGER_H
|
#define VISIBILITYMANAGER_H
|
||||||
|
|
||||||
#include "plasmaquick/containmentview.h"
|
#include "../plasmaquick/containmentview.h"
|
||||||
#include "../liblattedock/dock.h"
|
#include "../../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
@ -1,9 +1,9 @@
|
|||||||
#ifndef VISIBILITYMANAGERPRIVATE_H
|
#ifndef VISIBILITYMANAGERPRIVATE_H
|
||||||
#define VISIBILITYMANAGERPRIVATE_H
|
#define VISIBILITYMANAGERPRIVATE_H
|
||||||
|
|
||||||
#include "../liblattedock/dock.h"
|
#include "../windowinfowrap.h"
|
||||||
#include "windowinfowrap.h"
|
#include "../abstractwindowinterface.h"
|
||||||
#include "abstractwindowinterface.h"
|
#include "../../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
@ -19,11 +19,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dockcorona.h"
|
#include "dockcorona.h"
|
||||||
#include "dockview.h"
|
|
||||||
#include "packageplugins/shell/dockpackage.h"
|
|
||||||
#include "abstractwindowinterface.h"
|
#include "abstractwindowinterface.h"
|
||||||
#include "alternativeshelper.h"
|
#include "alternativeshelper.h"
|
||||||
|
#include "globalshortcuts.h"
|
||||||
|
#include "importer.h"
|
||||||
|
#include "launcherssignals.h"
|
||||||
|
#include "layoutmanager.h"
|
||||||
#include "screenpool.h"
|
#include "screenpool.h"
|
||||||
|
#include "universalsettings.h"
|
||||||
|
#include "dock/dockview.h"
|
||||||
|
#include "packageplugins/shell/dockpackage.h"
|
||||||
|
|
||||||
//dbus adaptor
|
//dbus adaptor
|
||||||
#include "lattedockadaptor.h"
|
#include "lattedockadaptor.h"
|
||||||
|
|
||||||
|
@ -21,40 +21,41 @@
|
|||||||
#ifndef DOCKCORONA_H
|
#ifndef DOCKCORONA_H
|
||||||
#define DOCKCORONA_H
|
#define DOCKCORONA_H
|
||||||
|
|
||||||
#include "dockview.h"
|
|
||||||
#include "globalshortcuts.h"
|
|
||||||
#include "layoutmanager.h"
|
|
||||||
#include "universalsettings.h"
|
|
||||||
#include "../liblattedock/dock.h"
|
#include "../liblattedock/dock.h"
|
||||||
#include "launcherssignals.h"
|
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
|
#include <Plasma/Corona>
|
||||||
|
#include <PlasmaQuick/ConfigView>
|
||||||
|
|
||||||
#include <KAboutApplicationDialog>
|
#include <KAboutApplicationDialog>
|
||||||
#include <KDeclarative/QmlObject>
|
#include <KDeclarative/QmlObject>
|
||||||
|
|
||||||
class ScreenPool;
|
|
||||||
class GlobalShortcuts;
|
|
||||||
class UniversalSettings;
|
|
||||||
class LayoutManager;
|
|
||||||
class LaunchersSignals;
|
|
||||||
|
|
||||||
namespace KActivities {
|
|
||||||
class Consumer;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Plasma {
|
namespace Plasma {
|
||||||
class Corona;
|
class Corona;
|
||||||
class Containment;
|
class Containment;
|
||||||
class Types;
|
class Types;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace KActivities {
|
||||||
|
class Consumer;
|
||||||
|
}
|
||||||
|
|
||||||
namespace KWayland {
|
namespace KWayland {
|
||||||
namespace Client {
|
namespace Client {
|
||||||
class PlasmaShell;
|
class PlasmaShell;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
|
class ScreenPool;
|
||||||
|
class GlobalShortcuts;
|
||||||
|
class UniversalSettings;
|
||||||
|
class LayoutManager;
|
||||||
|
class LaunchersSignals;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
class DockCorona : public Plasma::Corona {
|
class DockCorona : public Plasma::Corona {
|
||||||
|
@ -18,7 +18,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "dockcorona.h"
|
||||||
#include "globalshortcuts.h"
|
#include "globalshortcuts.h"
|
||||||
|
#include "layoutmanager.h"
|
||||||
|
#include "dock/dockview.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -21,16 +21,16 @@
|
|||||||
#ifndef GLOBALSHORTCUTS_H
|
#ifndef GLOBALSHORTCUTS_H
|
||||||
#define GLOBALSHORTCUTS_H
|
#define GLOBALSHORTCUTS_H
|
||||||
|
|
||||||
#include "dockcorona.h"
|
|
||||||
#include "dockview.h"
|
|
||||||
#include "../liblattedock/dock.h"
|
#include "../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
||||||
#include <QMetaMethod>
|
#include <QMetaMethod>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
class DockCorona;
|
class DockCorona;
|
||||||
class DockView;
|
class DockView;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "layoutmanager.h"
|
#include "layoutmanager.h"
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
#include "screenpool.h"
|
#include "screenpool.h"
|
||||||
|
#include "universalsettings.h"
|
||||||
#include "../liblattedock/dock.h"
|
#include "../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
#ifndef IMPORTER_H
|
#ifndef IMPORTER_H
|
||||||
#define IMPORTER_H
|
#define IMPORTER_H
|
||||||
|
|
||||||
#include "layoutmanager.h"
|
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
class LayoutManager;
|
class LayoutManager;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "infoview.h"
|
#include "infoview.h"
|
||||||
#include "panelshadows_p.h"
|
|
||||||
#include "abstractwindowinterface.h"
|
#include "abstractwindowinterface.h"
|
||||||
|
#include "dock/panelshadows_p.h"
|
||||||
|
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
|
@ -19,9 +19,14 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ui_latteconfigdialog.h"
|
|
||||||
#include "latteconfigdialog.h"
|
#include "latteconfigdialog.h"
|
||||||
|
|
||||||
|
#include "dockcorona.h"
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
|
#include "layoutmanager.h"
|
||||||
|
#include "importer.h"
|
||||||
|
#include "universalsettings.h"
|
||||||
|
#include "ui_latteconfigdialog.h"
|
||||||
#include "layoutsDelegates/checkboxdelegate.h"
|
#include "layoutsDelegates/checkboxdelegate.h"
|
||||||
#include "layoutsDelegates/colorcmbboxdelegate.h"
|
#include "layoutsDelegates/colorcmbboxdelegate.h"
|
||||||
#include "layoutsDelegates/activitycmbboxdelegate.h"
|
#include "layoutsDelegates/activitycmbboxdelegate.h"
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include "dockcorona.h"
|
#include "dockcorona.h"
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
|
#include "../liblattedock/dock.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QButtonGroup>
|
#include <QButtonGroup>
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include "launcherssignals.h"
|
#include "launcherssignals.h"
|
||||||
|
|
||||||
|
#include <QQuickItem>
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
LaunchersSignals::LaunchersSignals(QObject *parent)
|
LaunchersSignals::LaunchersSignals(QObject *parent)
|
||||||
|
@ -20,12 +20,20 @@
|
|||||||
|
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
|
|
||||||
|
#include "dockcorona.h"
|
||||||
|
#include "importer.h"
|
||||||
|
#include "layoutmanager.h"
|
||||||
#include "screenpool.h"
|
#include "screenpool.h"
|
||||||
|
#include "dock/dockview.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <KSharedConfig>
|
|
||||||
|
|
||||||
|
#include <Plasma>
|
||||||
|
#include <Plasma/Applet>
|
||||||
|
#include <Plasma/Containment>
|
||||||
|
|
||||||
|
#include <KSharedConfig>
|
||||||
#include <KActivities/Consumer>
|
#include <KActivities/Consumer>
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
13
app/layout.h
13
app/layout.h
@ -22,16 +22,25 @@
|
|||||||
#define LAYOUT_H
|
#define LAYOUT_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QScreen>
|
||||||
|
|
||||||
|
#include <Plasma>
|
||||||
|
|
||||||
#include <KConfigGroup>
|
#include <KConfigGroup>
|
||||||
#include <KSharedConfig>
|
#include <KSharedConfig>
|
||||||
|
|
||||||
#include "dockcorona.h"
|
namespace Plasma {
|
||||||
|
class Applet;
|
||||||
|
class Containment;
|
||||||
|
class Types;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
class DockCorona;
|
class DockCorona;
|
||||||
class DockView;
|
class DockView;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
|
|
||||||
//! This class is responsible to hold the settings for a specific layout.
|
//! This class is responsible to hold the settings for a specific layout.
|
||||||
//! It also updates always the relevant layout configuration concerning
|
//! It also updates always the relevant layout configuration concerning
|
||||||
|
@ -19,8 +19,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "layoutmanager.h"
|
#include "layoutmanager.h"
|
||||||
|
|
||||||
|
#include "importer.h"
|
||||||
#include "infoview.h"
|
#include "infoview.h"
|
||||||
|
#include "launcherssignals.h"
|
||||||
|
#include "layout.h"
|
||||||
#include "screenpool.h"
|
#include "screenpool.h"
|
||||||
|
#include "universalsettings.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
@ -21,24 +21,29 @@
|
|||||||
#ifndef LAYOUTMANAGER_H
|
#ifndef LAYOUTMANAGER_H
|
||||||
#define LAYOUTMANAGER_H
|
#define LAYOUTMANAGER_H
|
||||||
|
|
||||||
#include "importer.h"
|
#include "../liblattedock/dock.h"
|
||||||
#include "layout.h"
|
|
||||||
#include "latteconfigdialog.h"
|
#include "latteconfigdialog.h"
|
||||||
#include "launcherssignals.h"
|
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
|
|
||||||
|
namespace Plasma {
|
||||||
|
class Containment;
|
||||||
|
class Types;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace KActivities {
|
||||||
|
class Controller;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
class DockCorona;
|
class DockCorona;
|
||||||
class Importer;
|
class Importer;
|
||||||
class Layout;
|
class Layout;
|
||||||
class LatteConfigDialog;
|
class LatteConfigDialog;
|
||||||
class LaunchersSignals;
|
class LaunchersSignals;
|
||||||
|
|
||||||
namespace KActivities {
|
|
||||||
class Controller;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
@ -32,6 +32,8 @@
|
|||||||
#include <xcb/xcb_event.h>
|
#include <xcb/xcb_event.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
|
|
||||||
ScreenPool::ScreenPool(KSharedConfig::Ptr config, QObject *parent)
|
ScreenPool::ScreenPool(KSharedConfig::Ptr config, QObject *parent)
|
||||||
: QObject(parent),
|
: QObject(parent),
|
||||||
m_configGroup(KConfigGroup(config, QStringLiteral("ScreenConnectors")))
|
m_configGroup(KConfigGroup(config, QStringLiteral("ScreenConnectors")))
|
||||||
@ -276,5 +278,6 @@ bool ScreenPool::nativeEventFilter(const QByteArray &eventType, void *message, l
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#include "moc_screenpool.cpp"
|
#include "moc_screenpool.cpp"
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include <KConfigGroup>
|
#include <KConfigGroup>
|
||||||
#include <KSharedConfig>
|
#include <KSharedConfig>
|
||||||
|
|
||||||
|
namespace Latte {
|
||||||
|
|
||||||
class ScreenPool : public QObject, public QAbstractNativeEventFilter {
|
class ScreenPool : public QObject, public QAbstractNativeEventFilter {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@ -75,4 +77,6 @@ private:
|
|||||||
QTimer m_configSaveTimer;
|
QTimer m_configSaveTimer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif // SCREENPOOL_H
|
#endif // SCREENPOOL_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user