add headers comments for all c++ files

pull/3/head
Michail Vourlakos 6 years ago
parent deefa6f32e
commit 2099b8ed36

@ -17,17 +17,20 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "alternativeshelper.h"
// Qt
#include <QQmlEngine>
#include <QQmlContext>
#include <Plasma/Containment>
#include <Plasma/PluginLoader>
// KDE
#include <KPackage/Package>
#include <kconfig_version.h>
// Plasma
#include <Plasma/Containment>
#include <Plasma/PluginLoader>
AlternativesHelper::AlternativesHelper(Plasma::Applet *applet, QObject *parent)
: QObject(parent),
m_applet(applet)

@ -20,10 +20,12 @@
#ifndef ALTERNATIVESHELPER_H
#define ALTERNATIVESHELPER_H
#include <Plasma/Applet>
// Qt
#include <QQuickItem>
// Plasma
#include <Plasma/Applet>
class AlternativesHelper : public QObject
{
Q_OBJECT

@ -20,6 +20,7 @@
#include "commontools.h"
// Qt
#include <QtMath>
namespace Latte {

@ -18,6 +18,7 @@
*
*/
// Qt
#include <QColor>
namespace Latte {

@ -19,18 +19,22 @@
#include "contextmenu.h"
// local
#include "dockview.h"
#include "visibilitymanager.h"
#include "../dockcorona.h"
#include "../layoutmanager.h"
// Qt
#include <QMouseEvent>
#include <QVersionNumber>
// KDE
#include <KActionCollection>
#include <KAuthorized>
#include <KLocalizedString>
// Plasma
#include <Plasma/Applet>
#include <Plasma/Containment>
#include <Plasma/ContainmentActions>

@ -20,6 +20,7 @@
#ifndef CONTEXTMENU_H
#define CONTEXTMENU_H
// Qt
#include <QEvent>
#include <QMenu>
#include <QMetaMethod>

@ -20,6 +20,7 @@
#include "dockconfigview.h"
// local
#include "dockview.h"
#include "panelshadows_p.h"
#include "../dockcorona.h"
@ -27,22 +28,23 @@
#include "../settings/universalsettings.h"
#include "../wm/abstractwindowinterface.h"
// Qt
#include <QFontMetrics>
#include <QQuickItem>
#include <QQmlContext>
#include <QQmlEngine>
#include <QScreen>
// KDE
#include <KLocalizedContext>
#include <KDeclarative/KDeclarative>
#include <Plasma/Package>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <KWindowSystem>
// Plasma
#include <Plasma/Package>
namespace Latte {
DockConfigView::DockConfigView(Plasma::Containment *containment, DockView *dockView, QWindow *parent)

@ -21,17 +21,20 @@
#ifndef DOCKCONFIGVIEW_H
#define DOCKCONFIGVIEW_H
// local
#include "docksecconfigview.h"
#include "../plasmaquick/configview.h"
#include "../../liblattedock/dock.h"
#include "docksecconfigview.h"
#include <plasma/package.h>
#include <Plasma/FrameSvg>
//Qt
#include <QObject>
#include <QWindow>
#include <QPointer>
#include <QTimer>
#include <QWindow>
// Plasma
#include <plasma/package.h>
#include <Plasma/FrameSvg>
namespace Plasma {
class Applet;

@ -19,28 +19,30 @@
#include "docksecconfigview.h"
// local
#include "dockconfigview.h"
#include "dockview.h"
#include "panelshadows_p.h"
#include "../dockcorona.h"
#include "../wm/abstractwindowinterface.h"
// Qt
#include <QFontMetrics>
#include <QQuickItem>
#include <QQmlContext>
#include <QQmlEngine>
#include <QScreen>
// KDE
#include <KLocalizedContext>
#include <KDeclarative/KDeclarative>
#include <Plasma/Package>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <KWindowSystem>
// Plasma
#include <Plasma/Package>
namespace Latte {
DockSecConfigView::DockSecConfigView(DockView *dockView, QWindow *parent)

@ -20,16 +20,19 @@
#ifndef DOCKSECCONFIGVIEW_H
#define DOCKSECCONFIGVIEW_H
// local
#include "../../liblattedock/dock.h"
#include <plasma/package.h>
#include <Plasma/FrameSvg>
//Qt
#include <QObject>
#include <QQuickView>
#include <QPointer>
#include <QTimer>
// Plasma
#include <plasma/package.h>
#include <Plasma/FrameSvg>
namespace Plasma {
class Applet;
class Containment;

@ -20,6 +20,7 @@
#include "dockview.h"
// local
#include "contextmenu.h"
#include "dockconfigview.h"
#include "effects.h"
@ -33,6 +34,7 @@
#include "../settings/universalsettings.h"
#include "../../liblattedock/extras.h"
// Qt
#include <QAction>
#include <QQmlContext>
#include <QQmlEngine>
@ -40,18 +42,18 @@
#include <QQuickItem>
#include <QMenu>
// KDe
#include <KActionCollection>
#include <KActivities/Consumer>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <KWindowSystem>
// Plasma
#include <Plasma/Containment>
#include <Plasma/ContainmentActions>
#include <PlasmaQuick/AppletQuickItem>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
namespace Latte {
//! both alwaysVisible and dockWinBehavior are passed through corona because

@ -21,6 +21,7 @@
#ifndef DOCKVIEW_H
#define DOCKVIEW_H
// local
#include "dockconfigview.h"
#include "effects.h"
#include "positioner.h"
@ -30,8 +31,10 @@
#include "../plasmaquick/configview.h"
#include "../../liblattedock/dock.h"
// C++
#include <array>
// Qt
#include <QQuickView>
#include <QMenu>
#include <QMimeData>

@ -18,12 +18,16 @@
*/
#include "effects.h"
// local
#include "dockview.h"
#include "panelshadows_p.h"
#include "../../liblattedock/dock.h"
// Qt
#include <QRegion>
// KDE
#include <KWindowEffects>
#include <KWindowSystem>

@ -20,10 +20,12 @@
#ifndef EFFECTS_H
#define EFFECTS_H
// Qt
#include <QObject>
#include <QPointer>
#include <QRect>
// Plasma
#include <Plasma/FrameSvg>
#include <Plasma/Theme>

@ -18,12 +18,23 @@
#include "panelshadows_p.h"
// local
#include <config-latte.h>
// Qt
#include <QDebug>
#include <QWindow>
#include <QPainter>
#include <config-latte.h>
// KDE
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/registry.h>
#include <KWayland/Client/shadow.h>
#include <KWayland/Client/shm_pool.h>
#include <KWayland/Client/surface.h>
#include <KWindowSystem>
// X11
#if HAVE_X11
#include <QX11Info>
#include <X11/Xatom.h>
@ -32,14 +43,6 @@
#include <fixx11h.h>
#endif
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/registry.h>
#include <KWayland/Client/shadow.h>
#include <KWayland/Client/shm_pool.h>
#include <KWayland/Client/surface.h>
#include <qdebug.h>
class PanelShadows::Private
{
public:

@ -19,8 +19,10 @@
#ifndef PANELSHADOWS_P_H
#define PANELSHADOWS_P_H
// Qt
#include <QSet>
// Plasma
#include "plasma/framesvg.h"
#include "plasma/svg.h"

@ -19,6 +19,7 @@
#include "positioner.h"
// local
#include "dockview.h"
#include "effects.h"
#include "../dockcorona.h"
@ -26,12 +27,13 @@
#include "../settings/universalsettings.h"
#include "../../liblattedock/dock.h"
// Qt
#include <QDebug>
#include <KWindowSystem>
// KDE
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <KWindowSystem>
namespace Latte {
namespace View {

@ -20,11 +20,13 @@
#ifndef POSITIONER_H
#define POSITIONER_H
// Qt
#include <QObject>
#include <QPointer>
#include <QScreen>
#include <QTimer>
// Plasma
#include <Plasma/Containment>
namespace Plasma {

@ -18,19 +18,23 @@
*/
#include "screenedgeghostwindow.h"
// local
#include "dockview.h"
#include "../dockcorona.h"
// Qt
#include <QDebug>
#include <QSurfaceFormat>
#include <QQuickView>
#include <QTimer>
// KDE
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <KWindowSystem>
// X11
#include <NETWM>
namespace Latte {

@ -20,6 +20,7 @@
#ifndef SCREENEDGEGHOSTWINDOW_H
#define SCREENEDGEGHOSTWINDOW_H
// Qt
#include <QObject>
#include <QQuickView>
#include <QTimer>

@ -21,6 +21,7 @@
#include "visibilitymanager.h"
#include "visibilitymanager_p.h"
// local
#include "dockview.h"
#include "positioner.h"
#include "screenedgeghostwindow.h"
@ -30,11 +31,13 @@
#include "../wm/windowinfowrap.h"
#include "../../liblattedock/extras.h"
// Qt
#include <QDebug>
// KDE
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <QDebug>
namespace Latte {
//! BEGIN: VisiblityManagerPrivate implementation

@ -21,14 +21,17 @@
#ifndef VISIBILITYMANAGER_H
#define VISIBILITYMANAGER_H
// local
#include "../plasmaquick/containmentview.h"
#include "../schemecolors.h"
#include "../wm/windowinfowrap.h"
#include "../../liblattedock/dock.h"
// Qt
#include <QObject>
#include <QTimer>
// Plasma
#include <Plasma/Containment>
namespace Latte {

@ -1,20 +1,24 @@
#ifndef VISIBILITYMANAGERPRIVATE_H
#define VISIBILITYMANAGERPRIVATE_H
// local
#include "../schemecolors.h"
#include "../wm/abstractwindowinterface.h"
#include "../wm/windowinfowrap.h"
#include "../../liblattedock/dock.h"
// C++
#include <array>
#include <memory>
// Qt
#include <QObject>
#include <QTimer>
#include <QEvent>
#include <QVariant>
#include <QMap>
// Plasma
#include <plasmaquick/containmentview.h>
namespace Latte {

@ -20,9 +20,11 @@
#include "dockcorona.h"
// local
#include "alternativeshelper.h"
#include "globalshortcuts.h"
#include "importer.h"
#include "lattedockadaptor.h"
#include "launcherssignals.h"
#include "layoutmanager.h"
#include "plasmathemeextended.h"
@ -34,9 +36,7 @@
#include "wm/waylandinterface.h"
#include "wm/xwindowinterface.h"
//dbus adaptor
#include "lattedockadaptor.h"
// Qt
#include <QAction>
#include <QApplication>
#include <QScreen>
@ -47,12 +47,13 @@
#include <QFontDatabase>
#include <QQmlContext>
// Plasma
#include <Plasma>
#include <Plasma/Corona>
#include <Plasma/Containment>
#include <PlasmaQuick/ConfigView>
// KDE
#include <KActionCollection>
#include <KPluginMetaData>
#include <KGlobalAccel>
@ -62,7 +63,6 @@
#include <KAboutData>
#include <KActivities/Consumer>
#include <KDeclarative/QmlObject>
#include <KWindowSystem>
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/registry.h>

@ -21,16 +21,18 @@
#ifndef DOCKCORONA_H
#define DOCKCORONA_H
// local
#include "../liblattedock/dock.h"
// Qt
#include <QObject>
#include <QTimer>
// Plasma
#include <Plasma/Corona>
//#include <PlasmaQuick/ConfigView>
// KDE
#include <KAboutApplicationDialog>
//#include <KDeclarative/QmlObject>
namespace KDeclarative {
class QmlObject;

@ -18,23 +18,31 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dockcorona.h"
#include "globalshortcuts.h"
// local
#include "dockcorona.h"
#include "layoutmanager.h"
#include "dock/dockview.h"
#include "settings/universalsettings.h"
// C++
#include <array>
// Qt
#include <QAction>
#include <QDebug>
#include <QQuickItem>
#include <QMetaMethod>
#include <QX11Info>
// KDE
#include <KActionCollection>
#include <KGlobalAccel>
#include <KLocalizedString>
#include <KPluginMetaData>
// Plasma
#include <Plasma/Applet>
#include <Plasma/Containment>
@ -43,8 +51,6 @@
#include <X11/keysymdef.h>
#include <X11/Xlib.h>
#include <array>
//this code is used by activityswitcher in plasma in order to check if the
//user has release all the modifier keys from the globalshortcut
namespace {

@ -21,10 +21,12 @@
#ifndef GLOBALSHORTCUTS_H
#define GLOBALSHORTCUTS_H
// local
#include "../liblattedock/dock.h"
#include <QQuickItem>
// Qt
#include <QMetaMethod>
#include <QQuickItem>
#include <QTimer>
namespace Plasma {

@ -20,6 +20,7 @@
#include "importer.h"
// local
#include "dockcorona.h"
#include "layoutmanager.h"
#include "layout.h"
@ -27,9 +28,11 @@
#include "settings/universalsettings.h"
#include "../liblattedock/dock.h"
// Qt
#include <QFile>
#include <QTemporaryDir>
// KDE
#include <KArchive/KTar>
#include <KArchive/KArchiveEntry>
#include <KArchive/KArchiveDirectory>
@ -37,7 +40,6 @@
#include <KLocalizedString>
#include <KNotification>
namespace Latte {
Importer::Importer(QObject *parent)

@ -21,6 +21,7 @@
#ifndef IMPORTER_H
#define IMPORTER_H
// Qt
#include <QObject>
namespace Latte {

@ -19,23 +19,27 @@
*/
#include "infoview.h"
// local
#include "dock/panelshadows_p.h"
#include "wm/abstractwindowinterface.h"
// Qt
#include <QQuickItem>
#include <QQmlContext>
#include <QQmlEngine>
#include <QScreen>
// KDE
#include <KLocalizedContext>
#include <KDeclarative/KDeclarative>
#include <Plasma/Package>
#include <KWindowSystem>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
// Plasma
#include <Plasma/Package>
namespace Latte {
InfoView::InfoView(DockCorona *corona, QString message, QScreen *screen, QWindow *parent)

@ -21,8 +21,10 @@
#ifndef INFOVIEW_H
#define INFOVIEW_H
// local
#include "dockcorona.h"
// Qt
#include <QObject>
#include <QQuickView>
#include <QScreen>

@ -20,11 +20,14 @@
#include "launcherssignals.h"
// local
#include "dockcorona.h"
#include "layout.h"
// Qt
#include <QQuickItem>
// Plasma
#include <Plasma/Applet>
#include <Plasma/Containment>

@ -21,9 +21,11 @@
#ifndef LAUNCHERSSIGNALS_H
#define LAUNCHERSSIGNALS_H
// local
#include "layoutmanager.h"
#include "../liblattedock/dock.h"
// Qt
#include <QObject>
namespace Plasma {

@ -20,6 +20,7 @@
#include "layout.h"
// local
#include "dockcorona.h"
#include "importer.h"
#include "layoutmanager.h"
@ -28,17 +29,20 @@
#include "dock/positioner.h"
#include "settings/universalsettings.h"
// Qt
#include <QDir>
#include <QFile>
#include <QtDBus/QtDBus>
// KDE
#include <KSharedConfig>
#include <KActivities/Consumer>
// Plasma
#include <Plasma>
#include <Plasma/Applet>
#include <Plasma/Containment>
#include <KSharedConfig>
#include <KActivities/Consumer>
namespace Latte {
const QString Layout::MultipleLayoutsName = ".multiple-layouts_hidden";

@ -21,14 +21,17 @@
#ifndef LAYOUT_H
#define LAYOUT_H
// Qt
#include <QObject>
#include <QScreen>
#include <Plasma>
// KDE
#include <KConfigGroup>
#include <KSharedConfig>
// Plasma
#include <Plasma>
namespace Plasma {
class Applet;
class Containment;

@ -20,6 +20,7 @@
#include "layoutmanager.h"
// local
#include "importer.h"
#include "infoview.h"
#include "launcherssignals.h"
@ -29,12 +30,14 @@
#include "settings/settingsdialog.h"
#include "settings/universalsettings.h"
// Qt
#include <QDir>
#include <QFile>
#include <QMessageBox>
#include <QQmlProperty>
#include <QtDBus>
// KDE
#include <KActivities/Consumer>
#include <KActivities/Controller>
#include <KLocalizedString>

@ -21,13 +21,16 @@
#ifndef LAYOUTMANAGER_H
#define LAYOUTMANAGER_H
// local
#include "launcherssignals.h"
#include "settings/settingsdialog.h"
// Qt
#include <QAction>
#include <QObject>
#include <QPointer>
// KDE
#include <KLocalizedString>
namespace Plasma {

@ -18,14 +18,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// local
#include "dockcorona.h"
#include "config-latte.h"
#include "importer.h"
#include "../liblattedock/dock.h"
// C++
#include <memory>
#include <csignal>
// Qt
#include <QApplication>
#include <QDebug>
#include <QQuickWindow>
@ -35,13 +38,13 @@
#include <QLockFile>
#include <QSharedMemory>
// KDE
#include <KCrash>
#include <KLocalizedString>
#include <KAboutData>
#include <KDBusService>
#include <KQuickAddons/QtQuickSettings>
//! COLORS
#define CNORMAL "\e[0m"
#define CIGREEN "\e[1;32m"

@ -20,8 +20,10 @@
#include "dockpackage.h"
// Qt
#include <QDebug>
// KDE
#include <KPackage/PackageLoader>
#include <KI18n/KLocalizedString>
@ -63,7 +65,7 @@ void DockPackage::initPackage(KPackage::Package *package)
package->addFileDefinition("preset10", QStringLiteral("presets/multiple-layouts_hidden.layout.latte"), i18n("multiple layouts hidden file"));
package->addFileDefinition("themesExtendedInfo", QStringLiteral("themes/themesExtendedInforc"), i18n("a file that contains extended information for plasma themes"));
package->setFallbackPackage(fallback);
qDebug() << "package is valid" << package->isValid();
}

@ -18,11 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef NOWDOCKPACKAGE_H
#define NOWDOCKPACKAGE_H
#ifndef DOCKPACKAGE_H
#define DOCKPACKAGE_H
// Qt
#include <QObject>
// KDE
#include <KPackage/PackageStructure>
namespace Latte {
@ -39,4 +41,4 @@ public:
};
}
#endif // NOWDOCKPACKAGE_H
#endif // DOCKPACKAGE_H

@ -20,14 +20,17 @@
#include "plasmathemeextended.h"
// local
#include "commontools.h"
#include "dockcorona.h"
#include "schemecolors.h"
#include "dock/panelshadows_p.h"
// Qt
#include <QDebug>
#include <QDir>
// KDE
#include <KDirWatch>
#include <KConfigGroup>
#include <KSharedConfig>

@ -21,17 +21,21 @@
#ifndef PLASMATHEMEEXTENDED_H
#define PLASMATHEMEEXTENDED_H
#include <QObject>
#include <schemecolors.h>
// local
#include "schemecolors.h"
// C++
#include <array>
// Qt
#include <QObject>
#include <QTemporaryDir>
// KDE
#include <KConfigGroup>
#include <KSharedConfig>
// Plasma
#include <Plasma/Theme>
namespace Latte {

@ -20,10 +20,12 @@
#include "schemecolors.h"
// Qt
#include <QDebug>
#include <QDir>
#include <QFileInfo>
// KDE
#include <KConfigGroup>
#include <KDirWatch>
#include <KSharedConfig>

@ -21,6 +21,7 @@
#ifndef SCHEMECOLORS_H
#define SCHEMECOLORS_H
// Qt
#include <QObject>
#include <QColor>

@ -18,13 +18,17 @@
*/
#include "screenpool.h"
// local
#include <config-latte.h>
// Qt
#include <QDebug>
#include <QFile>
#include <QGuiApplication>
#include <QScreen>
// X11
#if HAVE_X11
#include <QtX11Extras/QX11Info>
#include <xcb/xcb.h>

@ -20,6 +20,7 @@
#ifndef SCREENPOOL_H
#define SCREENPOOL_H
// Qt
#include <QObject>
#include <QHash>
#include <QScreen>
@ -27,6 +28,7 @@
#include <QTimer>
#include <QAbstractNativeEventFilter>
// KDE
#include <KConfigGroup>
#include <KSharedConfig>

@ -19,8 +19,10 @@
#include "activitycmbboxdelegate.h"
// local
#include "../settingsdialog.h"
// Qt
#include <QApplication>
#include <QComboBox>
#include <QDebug>
@ -30,6 +32,7 @@
#include <QString>
#include <QTextDocument>
// KDE
#include <KActivities/Info>
ActivityCmbBoxDelegate::ActivityCmbBoxDelegate(QObject *parent)

@ -20,6 +20,7 @@
#ifndef ACTIVITYCMBBOXDELEGATE_H
#define ACTIVITYCMBBOXDELEGATE_H
// Qt
#include <QItemDelegate>
class QModelIndex;

@ -19,6 +19,7 @@
#include "checkboxdelegate.h"
// Qt
#include <QApplication>
#include <QDebug>
#include <QEvent>

@ -20,6 +20,7 @@
#ifndef CHECKBOXDELEGATE_H
#define CHECKBOXDELEGATE_H
// Qt
#include <QStyledItemDelegate>
class CheckBoxDelegate : public QStyledItemDelegate

@ -18,10 +18,12 @@
*/
#include "colorcmbboxdelegate.h"
#include "colorcmbboxitemdelegate.h"
// local
#include "colorcmbboxitemdelegate.h"
#include "../settingsdialog.h"
// Qt
#include <QComboBox>
#include <QDebug>
#include <QDir>
@ -32,6 +34,7 @@
#include <QPainter>
#include <QString>
// KDE
#include <KLocalizedString>
ColorCmbBoxDelegate::ColorCmbBoxDelegate(QObject *parent, QString iconsPath, QStringList colors)

@ -20,6 +20,7 @@
#ifndef COLORCMBBOXDELEGATE_H
#define COLORCMBBOXDELEGATE_H
// Qt
#include <QItemDelegate>
class QModelIndex;

@ -19,12 +19,12 @@
#include "colorcmbboxitemdelegate.h"
// Qt
#include <QApplication>
#include <QDebug>
#include <QPainter>
#include <QString>
ColorCmbBoxItemDelegate::ColorCmbBoxItemDelegate(QObject *parent, QString iconsPath)
: QAbstractItemDelegate(parent),
m_iconsPath(iconsPath)

@ -20,6 +20,7 @@
#ifndef COLORCMBBOXITEMDELEGATE_H
#define COLORCMBBOXITEMDELEGATE_H
// Qt
#include <QAbstractItemDelegate>
class ColorCmbBoxItemDelegate : public QAbstractItemDelegate

@ -19,6 +19,7 @@
#include "layoutnamedelegate.h"
// Qt
#include <QApplication>
#include <QBitmap>
#include <QDebug>

@ -20,6 +20,7 @@
#ifndef LAYOUTNAMEDELEGATE_H
#define LAYOUTNAMEDELEGATE_H
// Qt
#include <QStyledItemDelegate>
class LayoutNameDelegate : public QStyledItemDelegate

@ -21,6 +21,7 @@
#include "settingsdialog.h"
// local
#include "dockcorona.h"
#include "layout.h"
#include "layoutmanager.h"
@ -34,6 +35,7 @@
#include "delegates/activitycmbboxdelegate.h"
#include "delegates/layoutnamedelegate.h"
// Qt
#include <QButtonGroup>
#include <QColorDialog>
#include <QDesktopServices>
@ -47,6 +49,7 @@
#include <QStandardItemModel>
#include <QTemporaryDir>
// KDE
#include <KActivities/Controller>
#include <KArchive/KTar>
#include <KArchive/KArchiveEntry>

@ -22,8 +22,10 @@
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
// local
#include "../liblattedock/dock.h"
// Qt
#include <QObject>
#include <QButtonGroup>
#include <QDialog>

@ -19,14 +19,17 @@
*/
#include "universalsettings.h"
// local
#include "layoutmanager.h"
#include "sortedactivitiesmodel.h"
// Qt
#include <QDir>
#include <QProcess>
#include <QtDBus>
// KDE
#include <KDirWatch>
#include <KActivities/Consumer>

@ -21,19 +21,21 @@
#ifndef UNIVERSALSETTINGS_H
#define UNIVERSALSETTINGS_H
// local
#include "dockcorona.h"
#include "../liblattedock/dock.h"
// Qt
#include <QObject>
#include <QAbstractItemModel>
#include <QPointer>
#include <QQmlListProperty>
#include <QScreen>
// KDE
#include <KConfigGroup>
#include <KSharedConfig>
#include "../liblattedock/dock.h"
class SortedActivitiesModel;
namespace Latte {

@ -17,9 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// Self
#include "sortedactivitiesmodel.h"
// local
#include "commontools.h"
// C++
#include <functional>
@ -38,6 +40,7 @@
#include <KLocalizedString>
#include <KActivities/Consumer>
// Plasma
#include <Plasma>
#define PLASMACONFIG "plasma-org.kde.plasma.desktop-appletsrc"

@ -23,6 +23,7 @@
// Qt
#include <QSortFilterProxyModel>
// Plasma
#include <Plasma>
// KDE

@ -19,13 +19,17 @@
*/
#include "abstractwindowinterface.h"
// local
#include "xwindowinterface.h"
#include "waylandinterface.h"
// Qt
#include <QObject>
#include <QDir>
#include <QQuickWindow>
// KDE
#include <KDirWatch>
#include <KWindowSystem>

@ -21,14 +21,17 @@
#ifndef ABSTRACTWINDOWINTERFACE_H
#define ABSTRACTWINDOWINTERFACE_H
// local
#include "schemecolors.h"
#include "windowinfowrap.h"
#include "../liblattedock/dock.h"
#include "../liblattedock/extras.h"
// C++
#include <unordered_map>
#include <list>
// Qt
#include <QObject>
#include <QWindow>
#include <QDialog>
@ -38,9 +41,12 @@
#include <QPointer>
#include <QScreen>
#include <Plasma>
// KDE
#include <KActivities/Consumer>
// Plasma
#include <Plasma>
namespace Latte {
class XWindowInterface;

@ -19,11 +19,14 @@
*/
#include "waylandinterface.h"
// local
#include "dockcorona.h"
#include "dock/dockview.h"
#include "dock/screenedgeghostwindow.h"
#include "../liblattedock/extras.h"
// Qt
#include <QDebug>
#include <QTimer>
#include <QApplication>
@ -31,12 +34,14 @@
#include <QtX11Extras/QX11Info>
#include <QRasterWindow>
// KDE
#include <KWindowSystem>
#include <KWindowInfo>
#include <NETWM>
#include <KWayland/Client/surface.h>
// X11
#include <NETWM>
using namespace KWayland::Client;
namespace Latte {

@ -21,21 +21,23 @@
#ifndef WAYLANDINTERFACE_H
#define WAYLANDINTERFACE_H
// local
#include "abstractwindowinterface.h"
#include "windowinfowrap.h"
#include <QObject>
// Qt
#include <QMap>
#include <KWindowInfo>
#include <KWindowEffects>
#include <QObject>
#include <QSignalMapper>
// KDE
#include <KWayland/Client/registry.h>
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/plasmawindowmanagement.h>
#include <KWayland/Client/plasmashell.h>
#include <KWayland/Client/surface.h>
#include <KWindowInfo>
#include <KWindowEffects>
namespace Latte {

@ -21,6 +21,7 @@
#ifndef WINDOWINFOWRAP_H
#define WINDOWINFOWRAP_H
// Qt
#include <QWindow>
#include <QRect>
#include <QVariant>

@ -19,18 +19,23 @@
*/
#include "xwindowinterface.h"
// local
#include "dock/dockview.h"
#include "dock/screenedgeghostwindow.h"
#include "../liblattedock/extras.h"
// Qt
#include <QDebug>
#include <QTimer>
#include <QtX11Extras/QX11Info>
// KDE
#include <KWindowSystem>
#include <KWindowInfo>
#include <NETWM>
// X11
#include <NETWM>
#include <xcb/xcb.h>
namespace Latte {

@ -21,11 +21,14 @@
#ifndef XWINDOWINTERFACE_H
#define XWINDOWINTERFACE_H
// local
#include "abstractwindowinterface.h"
#include "windowinfowrap.h"
// Qt
#include <QObject>
// KDE
#include <KWindowInfo>
#include <KWindowEffects>

@ -19,8 +19,10 @@
#include "menu.h"
// local
#include "../../liblattedock/dock.h"
// Qt
#include <QAction>
#include <QDebug>
#include <QFont>
@ -28,9 +30,11 @@
#include <QtDBus>
#include <QTimer>
// KDE
#include <KActionCollection>
#include <KLocalizedString>
// Plasma
#include <Plasma/Containment>
#include <Plasma/Corona>
#include <Plasma/ServiceJob>

@ -20,8 +20,10 @@
#ifndef MENU_H
#define MENU_H
// Qt
#include <QObject>
// Plasma
#include <Plasma/ContainmentActions>
class QAction;

@ -21,6 +21,7 @@
#ifndef DOCK_H
#define DOCK_H
// Qt
#include <QObject>
#include <QMetaEnum>
#include <QMetaType>

@ -1,8 +1,16 @@
#ifndef EXTRAS_H
#define EXTRAS_H
// local
#include "../liblattedock/config-latte-lib.h"
// C++
#include <type_traits>
#include <numeric>
#include <memory>
#include <cmath>
// Qt
#include <QObject>
#include <QString>
#include <QStringBuilder>
@ -10,13 +18,9 @@
#include <QMetaEnum>
#include <QMetaType>
// Plasma
#include <Plasma>
#include <type_traits>
#include <numeric>
#include <memory>
#include <cmath>
//! There are gcc versions that don't support yet that function even though they
//! publish themselves as C++14 compatible. Such a case is gcc 4.8.x that openSUSE
//! LEAP 42.2-3 is using. By enabling this flag such systems can be build correctly.

@ -21,8 +21,11 @@
*/
#include "iconitem.h"
// local
#include "../liblattedock/extras.h"
// Qt
#include <QDebug>
#include <QPainter>
#include <QPaintEngine>
@ -31,6 +34,7 @@
#include <QSGSimpleTextureNode>
#include <QuickAddons/ManagedTextureNode>
// KDE
#include <KIconTheme>
#include <KIconThemes/KIconLoader>
#include <KIconThemes/KIconEffect>

@ -23,13 +23,16 @@
#ifndef ICONITEM_H
#define ICONITEM_H
// C++
#include <memory>
// Qt
#include <QQuickItem>
#include <QIcon>
#include <QImage>
#include <QPixmap>
// Plasma
#include <Plasma/Svg>
// this file is based on PlasmaCore::IconItem class, thanks to KDE

@ -19,10 +19,13 @@
*/
#include "lattedockplugin.h"
#include "quickwindowsystem.h"
// local
#include "dock.h"
#include "iconitem.h"
#include "quickwindowsystem.h"
// Qt
#include <QtQml>
void LatteDockPlugin::registerTypes(const char *uri)

@ -21,6 +21,7 @@
#ifndef LATTEDOCKPLUGIN_H
#define LATTEDOCKPLUGIN_H
// Qt
#include <QQmlExtensionPlugin>
class LatteDockPlugin : public QQmlExtensionPlugin

@ -19,12 +19,12 @@
*/
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import QtGraphicalEffects 1.0
import org.kde.plasma.components 2.0 as Components
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.plasmoid 2.0
import QtGraphicalEffects 1.0
Item{
// property string color
id: glowItem

@ -19,13 +19,18 @@
*/
#include "quickwindowsystem.h"
// local
#include "../app/config-latte.h"
// Qt
#include <QDebug>
#include <QProcess>
// Plasma
#include <plasma/version.h>
// X11
#if HAVE_X11
#include <KWindowSystem>
#endif

@ -21,6 +21,7 @@
#ifndef QUICKWINDOWSYSTEM_H
#define QUICKWINDOWSYSTEM_H
// Qt
#include <QObject>
#include <QQmlEngine>
#include <QJSEngine>

Loading…
Cancel
Save