FanPengCheng bd244e8f3d feat: 新增任务栏配置的控制中心插件
新增任务栏配置的控制中心插件

Log: 支持在控制中心中对任务栏的配置进行修改
Task: https://pms.uniontech.com/zentao/task-view-86359.html
Change-Id: Ic55390c9ad98ec9513cb8f3f59d910d54c946008
2021-09-24 14:23:56 +08:00

75 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 MODULE_WIDGET_H
#define MODULE_WIDGET_H
#include <QScrollArea>
#include <com_deepin_dde_daemon_dock.h>
#include "com_deepin_dde_dock.h"
namespace dcc {
namespace widgets {
class ComboxWidget;
class TitledSliderItem;
class SwitchWidget;
}
}
class TitleLabel;
class GSettingWatcher;
using namespace dcc::widgets;
using DBusDock = com::deepin::dde::daemon::Dock;
using DBusInter = com::deepin::dde::Dock;
class ModuleWidget : public QScrollArea
{
Q_OBJECT
public:
explicit ModuleWidget(QWidget *parent = nullptr);
~ ModuleWidget();
void initUI();
private Q_SLOTS:
void updateSliderValue(int displayMode);
private:
ComboxWidget *m_modeComboxWidget;
ComboxWidget *m_positionComboxWidget;
ComboxWidget *m_stateComboxWidget;
TitledSliderItem *m_sizeSlider;
TitleLabel *m_screenSettingTitle;
ComboxWidget *m_screenSettingComboxWidget;
TitleLabel *m_pluginAreaTitle;
QList<SwitchWidget *> m_pluginWidgetList;
DBusDock *m_daemonDockInter;
DBusInter *m_dockInter;
GSettingWatcher *m_gsettingsWatcher;
};
#endif // MODULE_WIDGET_H