mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

新增任务栏配置的控制中心插件 Log: 支持在控制中心中对任务栏的配置进行修改 Task: https://pms.uniontech.com/zentao/task-view-86359.html Change-Id: Ic55390c9ad98ec9513cb8f3f59d910d54c946008
76 lines
1.9 KiB
C++
76 lines
1.9 KiB
C++
/*
|
|
* Copyright (C) 2011 ~ 2021 Uniontech Technology Co., Ltd.
|
|
*
|
|
* Author: fanpengcheng <fanpengcheng@uniontech.com>
|
|
*
|
|
* Maintainer: fanpengcheng <fanpengcheng@uniontech.com>
|
|
*
|
|
* This program 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 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* This program 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 SETTINGSMODULE_H
|
|
#define SETTINGSMODULE_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "interface/namespace.h"
|
|
#include "interface/moduleinterface.h"
|
|
#include "interface/frameproxyinterface.h"
|
|
|
|
namespace DCC_NAMESPACE {
|
|
class ModuleInterface;
|
|
class FrameProxyInterface;
|
|
}
|
|
|
|
using namespace DCC_NAMESPACE;
|
|
|
|
class ModuleWidget;
|
|
class SettingsModule : public QObject, public ModuleInterface
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PLUGIN_METADATA(IID ModuleInterface_iid FILE "dock_settings.json")
|
|
Q_INTERFACES(DCC_NAMESPACE::ModuleInterface)
|
|
|
|
public:
|
|
explicit SettingsModule();
|
|
|
|
~SettingsModule() Q_DECL_OVERRIDE;
|
|
|
|
void initialize() Q_DECL_OVERRIDE;
|
|
|
|
QStringList availPage() const Q_DECL_OVERRIDE;
|
|
|
|
const QString displayName() const Q_DECL_OVERRIDE;
|
|
|
|
QIcon icon() const Q_DECL_OVERRIDE;
|
|
|
|
QString translationPath() const Q_DECL_OVERRIDE;
|
|
|
|
QString path() const Q_DECL_OVERRIDE;
|
|
|
|
QString follow() const Q_DECL_OVERRIDE;
|
|
|
|
const QString name() const Q_DECL_OVERRIDE;
|
|
|
|
void showPage(const QString &pageName) Q_DECL_OVERRIDE;
|
|
|
|
public Q_SLOTS:
|
|
void active() Q_DECL_OVERRIDE;
|
|
|
|
private:
|
|
ModuleWidget *m_moduleWidget;
|
|
};
|
|
|
|
#endif // SETTINGSMODULE_H
|