开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 142

撸码小分队/DS

forked from Vanishi/DS
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (2)
标签 (4)
master
V1.0
DS.v1.7.x64.2023年04月16日
DS.v1.6.x64.2023年04月13日
DS.v1.5.x64.2023年04月08日
DS.v1.0.x64.2023年03月18日
master
分支 (2)
标签 (4)
master
V1.0
DS.v1.7.x64.2023年04月16日
DS.v1.6.x64.2023年04月13日
DS.v1.5.x64.2023年04月08日
DS.v1.0.x64.2023年03月18日
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (2)
标签 (4)
master
V1.0
DS.v1.7.x64.2023年04月16日
DS.v1.6.x64.2023年04月13日
DS.v1.5.x64.2023年04月08日
DS.v1.0.x64.2023年03月18日
DS
/
Task
/
TaskDataMenuDialog.cpp
DS
/
Task
/
TaskDataMenuDialog.cpp
TaskDataMenuDialog.cpp 6.30 KB
一键复制 编辑 原始数据 按行查看 历史
#include "TaskDataMenuDialog.h"
#include "Utils/ComOptionsBox.h"
#include <QVBoxLayout>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QSpinBox>
#include <QFileDialog>
#include "style.h"
#include <QsLog.h>
TaskDataMenuDialog::TaskDataMenuDialog(QWidget *parent,const QString &field,int fieldIndex) : QDialog(parent),
field(field),fieldIndex(fieldIndex)
{
QLOG_INFO() <<"TaskDataMenuDialog::TaskDataMenuDialog() field="<<field;
//设置模态
setWindowModality(Qt::ApplicationModal);
// 隐藏?号
setWindowFlags(Qt::Dialog| Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint);
setWindowTitle("高级选项");
setStyleSheet(".TaskDataMenuDialog{background-color:rgb(246,247,251);}");
setFixedSize(340,380);
QVBoxLayout *boxLayout = new QVBoxLayout(this);
boxLayout->setContentsMargins(0,0,0,0);
ComOptionsBox *optionsBox = new ComOptionsBox(this,"下载选项");
// 字段名称
QLabel *nameLabel = new QLabel(optionsBox->gWidget);
nameLabel->setStyleSheet(m_stylesheet_QLabel14);
nameLabel->setText("字段名称*");
QLabel *nameVLabel = new QLabel(optionsBox->gWidget);
nameVLabel->setStyleSheet(m_stylesheet_QLabel14);
nameVLabel->setText(field);
optionsBox->gLayout->addWidget(nameLabel,optionsBox->rowStart,0);
optionsBox->gLayout->addWidget(nameVLabel,optionsBox->rowStart,1);
++optionsBox->rowStart;
//下载前缀
QLabel *fieldPrefixLabel = new QLabel(optionsBox->gWidget);
fieldPrefixLabel->setStyleSheet(m_stylesheet_QLabel14);
fieldPrefixLabel->setText("下载前缀");
fieldPrefixLine = new QLineEdit(optionsBox->gWidget);
fieldPrefixLine->setFixedSize(120,30);
fieldPrefixLine->setPlaceholderText("请输入下载前缀");
fieldPrefixLine->setStyleSheet(m_stylesheet_QLineEdit);
fieldPrefixLine->setClearButtonEnabled(true);
fieldPrefixLine->setFocusPolicy(Qt::FocusPolicy::ClickFocus);
optionsBox->gLayout->addWidget(fieldPrefixLabel,optionsBox->rowStart,0);
optionsBox->gLayout->addWidget(fieldPrefixLine,optionsBox->rowStart,1);
++optionsBox->rowStart;
// 下载后文件后缀
QLabel *saveSuffixLabel = new QLabel(optionsBox->gWidget);
saveSuffixLabel->setStyleSheet(m_stylesheet_QLabel14);
saveSuffixLabel->setText("下载后文件后缀*");
saveSuffixLine = new QLineEdit(optionsBox->gWidget);
saveSuffixLine->setFixedSize(120,30);
saveSuffixLine->setText(".jpg");
saveSuffixLine->setStyleSheet(m_stylesheet_QLineEdit);
saveSuffixLine->setClearButtonEnabled(true);
saveSuffixLine->setFocusPolicy(Qt::FocusPolicy::ClickFocus);
optionsBox->gLayout->addWidget(saveSuffixLabel,optionsBox->rowStart,0);
optionsBox->gLayout->addWidget(saveSuffixLine,optionsBox->rowStart,1);
++optionsBox->rowStart;
// 下载线程
QLabel *threadCountLabel = new QLabel(optionsBox->gWidget);
threadCountLabel->setStyleSheet(m_stylesheet_QLabel14);
threadCountLabel->setText("下载线程*");
threadCountSpin = new QSpinBox(optionsBox->gWidget);
threadCountSpin->setMinimum(1);
threadCountSpin->setMaximum(1);
// threadCountSpin->setSuffix("并发");
threadCountSpin->setMaximumWidth(80);
threadCountSpin->setStyleSheet(m_stylesheet_QSpinBox);
threadCountSpin->setValue(1);
optionsBox->gLayout->addWidget(threadCountLabel,optionsBox->rowStart,0);
optionsBox->gLayout->addWidget(threadCountSpin,optionsBox->rowStart,1);
++optionsBox->rowStart;
// 线程休眠间隔
QLabel *threadIntervalLabel = new QLabel(optionsBox->gWidget);
threadIntervalLabel->setStyleSheet(m_stylesheet_QLabel14);
threadIntervalLabel->setText("线程休眠间隔*");
threadIntervalSpin = new QSpinBox(optionsBox->gWidget);
threadIntervalSpin->setMinimum(1);
threadIntervalSpin->setMaximum(30);
threadIntervalSpin->setSuffix("秒");
threadIntervalSpin->setMaximumWidth(80);
threadIntervalSpin->setStyleSheet(m_stylesheet_QSpinBox);
threadIntervalSpin->setValue(1);
optionsBox->gLayout->addWidget(threadIntervalLabel,optionsBox->rowStart,0);
optionsBox->gLayout->addWidget(threadIntervalSpin,optionsBox->rowStart,1);
++optionsBox->rowStart;
// 请选择下载路径
QLabel *dirLabel = new QLabel(optionsBox->gWidget);
dirLabel->setStyleSheet(m_stylesheet_QLabel14);
dirLabel->setText("请选择下载路径*");
QPushButton *dirBtn= new QPushButton(optionsBox->gWidget);
dirBtn->setStyleSheet( ".QPushButton {color:rgb(64,65,66);font-family:Microsoft YaHei;font-size:13px;background-color:white; border:1px solid rgb(64,65,66); padding: 0px;}\
.QPushButton:pressed {background-color: rgba(240,240,240,0.8);}\
.QPushButton:hover {background-color: rgba(240,240,240,0.4); border-color:rgba(64,65,66,0.5);}\
.QPushButton:focus{outline: none;}");
dirBtn->setFixedSize(140,26);
dirBtn->setText("选择");
connect(dirBtn,&QPushButton::clicked,this,[this,dirBtn](){
QString dir = QFileDialog::getExistingDirectory(this,"选择文件夹","");
if(dir.length()>0){
saveDir = dir;
dirBtn->setText(dir.mid(0,15)+"...");
}
});
optionsBox->gLayout->addWidget(dirLabel,optionsBox->rowStart,0);
optionsBox->gLayout->addWidget(dirBtn,optionsBox->rowStart,1);
++optionsBox->rowStart;
//下载按钮
QWidget * bottomWidget = new QWidget(this);
bottomWidget->setFixedHeight(30);
QHBoxLayout *bottomHLayout = new QHBoxLayout(bottomWidget);
bottomHLayout->setContentsMargins(0,0,0,0);
downloadBtn = new QPushButton(this);
downloadBtn->setStyleSheet(m_stylesheet_QPushButton_hollow);
downloadBtn->setFixedSize(100,28);
downloadBtn->setText("开始下载");
bottomHLayout->addStretch(10);
bottomHLayout->addWidget(downloadBtn);
bottomHLayout->addStretch(10);
boxLayout->addSpacing(10);
boxLayout->addWidget(optionsBox);
boxLayout->addSpacing(2);
boxLayout->addWidget(bottomWidget);
boxLayout->addStretch(10);
}
TaskDataMenuDialog::~TaskDataMenuDialog(){
QLOG_INFO() <<"TaskDataMenuDialog::~TaskDataMenuDialog() field="<<field;
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

一个Qt开发的可以替代爬虫的网页数据采集软件,它最重要的特点就是,降低了采集网页数据的门槛,由至少必须掌握一门编程语言降低到只要会操作电脑即可。
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/coderanks/DS.git
git@gitee.com:coderanks/DS.git
coderanks
DS
DS
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /