Files
z-bar-qt/Plugins/ZShell/Config/Launcher.hpp
T

56 lines
1.8 KiB
C++

#pragma once
#include "ConfigSection.hpp"
#include <qqmlregistration.h>
#include <QVariantList>
class LauncherSizes : public ConfigSection {
Q_OBJECT
QML_UNCREATABLE("Instantiated internally by Config")
CFG_PROPERTY(int, itemHeight, ItemHeight)
CFG_PROPERTY(int, itemWidth, ItemWidth)
CFG_PROPERTY(int, wallpaperHeight, WallpaperHeight)
CFG_PROPERTY(int, wallpaperWidth, WallpaperWidth)
public:
explicit LauncherSizes(QObject *parent = nullptr);
};
class UseFuzzy : public ConfigSection {
Q_OBJECT
QML_UNCREATABLE("Instantiated internally by Config")
CFG_PROPERTY(bool, actions, Actions)
CFG_PROPERTY(bool, apps, Apps)
CFG_PROPERTY(bool, schemes, Schemes)
CFG_PROPERTY(bool, variants, Variants)
CFG_PROPERTY(bool, wallpapers, Wallpapers)
public:
explicit UseFuzzy(QObject *parent = nullptr);
};
class Launcher : public ConfigSection {
Q_OBJECT
QML_UNCREATABLE("Instantiated internally by Config")
CFG_PROPERTY(QString, actionPrefix, ActionPrefix)
// Array of action-definition objects (command, dangerous, description,
// enabled, icon, name).
CFG_PROPERTY(QVariantList, actions, Actions)
CFG_PROPERTY(int, dragThreshold, DragThreshold)
CFG_PROPERTY(bool, enableDangerousActions, EnableDangerousActions)
CFG_PROPERTY(bool, enabled, Enabled)
CFG_PROPERTY(QVariantList, favoriteApps, FavoriteApps)
CFG_PROPERTY(QVariantList, hiddenApps, HiddenApps)
CFG_PROPERTY(int, maxAppsShown, MaxAppsShown)
CFG_PROPERTY(int, maxWallpapers, MaxWallpapers)
CFG_SECTION(LauncherSizes, sizes, Sizes)
CFG_PROPERTY(QString, specialPrefix, SpecialPrefix)
CFG_SECTION(UseFuzzy, useFuzzy, UseFuzzy)
CFG_PROPERTY(bool, uwsm, Uwsm)
public:
explicit Launcher(QObject *parent = nullptr);
};