1 Star 3 Fork 142

Qt(开源集合)/DS

forked from Vanishi/DS 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RunDialog.h 3.29 KB
一键复制 编辑 原始数据 按行查看 历史
sun-th 提交于 2023-04-16 11:06 +08:00 . 内容可能含有违规信息
#ifndef RUNDIALOG_H
#define RUNDIALOG_H
#include <QDialog>
#include "RunMessage.h"
QT_BEGIN_NAMESPACE;
class QVBoxLayout;
class QHBoxLayout;
class QStackedWidget;
class QToolButton;
class QLineEdit;
class QTableWidget;
class QTableWidgetItem;
QT_END_NAMESPACE;
class RunThreadPipline;
class RunHelper;
class MFlowStepParams;
class RunWebEngineViewManager;
class RunWebEngineView;
class MFlowStepParamsOpenWeb;
class MFlowStepParamsClickEle;
class MFlowStepParamsExtract;
class MFlowStepParamsLoop;
class MFlowStepParamsInput;
class MFlowStepParamsSwitch;
class MFlowStepParamsMouse;
class ComLoadingLabel;
struct MTask;
struct MExtractSingleItem;
class RunDialog : public QDialog
{
Q_OBJECT
public:
friend class RunThreadTimer;
explicit RunDialog(MTask *task);
~RunDialog();
protected:
void closeEvent(QCloseEvent *) override;
private:
QVBoxLayout *boxLayout;
void initTopMenuUi();
QLineEdit *addrLine;
ComLoadingLabel *loadingLabel;
void initWebViewUi();
QStackedWidget *webViewStacked;
void initBottomUi();
QToolButton *tableStateBtn;
QTableWidget *tableWidget;
QLabel *pageLabel;
QLabel *pageLogLabel;
QLabel *bottomLogLabel; // 采集过程日志
QPushButton *exportBtn;
QPushButton *startBtn;
QPushButton *stopBtn;
void updatePageData(int num,bool isShowLastPage);
QStringList mFields;
private:
MTask *mTask;
RunThreadPipline *mThreadPipline;
RunHelper *mHelper;
RunMessage *mMessage;
RunWebEngineViewManager *mWebViewManager;
void startNextStep(QString lastStepID);
void startOpenWeb(MFlowStepParamsOpenWeb * params);// 01x
void startClickEle(MFlowStepParamsClickEle * params);// 02x
void startClickEleRoll(MFlowStepParamsClickEle * params,QString feedback);
void startExtract(MFlowStepParamsExtract * params);// 03x
void startInput(MFlowStepParamsInput * params);// 04x
void startLoopHead(MFlowStepParamsLoop * params);// 07x
void startLoopTail(QString loopStepID,QString loopInnerLastStepID);// 07x
void startMouse(MFlowStepParamsMouse * params);// 08x
void endOpenWeb(MFlowStepParamsOpenWeb *params);
void endClickEle(MFlowStepParamsClickEle * params,bool next);
void endExtract(MFlowStepParamsExtract * params,QString feedback);
void endInput(MFlowStepParamsInput * params);
void endMouse(MFlowStepParamsMouse * params);
void sendStartJobCommand();
void sendStopJobCommand(RunMessage::MessageType messageType,const QString &msg);
RunMessage::MessageType mSendStopMessageType;
QString mSendStopMsg;
void getData(int p = 1);
int mCurPage = 1; // 当前页的页数
int mTotalPage = 0; // 当前总页数
public:
RunHelper *getHelper();
MTask *getTask();
signals:
void notifyPiplinePushData(QString stepID,QString res);
public slots:
void onThreadPiplineJobFinished();
void onThreadPiplineUpdateData(int num,QStringList names,QStringList values);
void onThreadPiplineAlert(int type,QString info);
void onWebViewUrlChanged(const QString &url);
void onCleanWebViews(RunWebEngineView *webView);//切换显示中的webView(不需要同步执行切换)
};
#endif // RUNDIALOG_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qt-open-source-collection/DS.git
git@gitee.com:qt-open-source-collection/DS.git
qt-open-source-collection
DS
DS
master

搜索帮助