1 Star 0 Fork 1

AAA Elysia 猫猫侠 ⁧~喵/gxde-deb-installer

forked from GXDE OS/gxde-deb-installer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
singleinstallpage.h 2.24 KB
一键复制 编辑 原始数据 按行查看 历史
石博文 提交于 2018-02-07 11:59 . update license
/*
* Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd.
*
* Author: sbw <sbw@sbw.so>
*
* Maintainer: sbw <sbw@sbw.so>
*
* 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 SINGLEINSTALLPAGE_H
#define SINGLEINSTALLPAGE_H
#include "infocontrolbutton.h"
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QProgressBar>
#include <QTextEdit>
#include <QApt/DebFile>
#include <dlinkbutton.h>
class DebListModel;
class SingleInstallPage : public QWidget
{
Q_OBJECT
public:
explicit SingleInstallPage(DebListModel *model, QWidget *parent = 0);
signals:
void back() const;
void requestUninstallConfirm() const;
public slots:
void uninstallCurrentPackage();
private:
enum Operate
{
Install,
Uninstall,
};
private:
void setPackageInfo();
private slots:
void install();
void showInfomation();
void hideInfomation();
void showInfo();
void onOutputAvailable(const QString &output);
void onWorkerFinished();
void onWorkerProgressChanged(const int progress);
private:
int m_operate;
bool m_workerStarted;
DebListModel *m_packagesModel;
QWidget *m_itemInfoWidget;
QLabel *m_packageIcon;
QLabel *m_packageName;
QLabel *m_packageVersion;
QLabel *m_packageDescription;
QLabel *m_tipsLabel;
QProgressBar *m_progress;
QTextEdit *m_workerInfomation;
QWidget *m_strengthWidget;
InfoControlButton *m_infoControlButton;
QPushButton *m_installButton;
QPushButton *m_uninstallButton;
QPushButton *m_reinstallButton;
QPushButton *m_confirmButton;
QPushButton *m_backButton;
QPushButton *m_doneButton;
};
#endif // SINGLEINSTALLPAGE_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qinyinan/gxde-deb-installer.git
git@gitee.com:qinyinan/gxde-deb-installer.git
qinyinan
gxde-deb-installer
gxde-deb-installer
master

搜索帮助