1 Star 7 Fork 4

xiongqiumin/JZNodeEditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LogWidget.h 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
xiongqiumin 提交于 2024-09-09 21:24 . update
#ifndef LOG_WIDGET_H_
#define LOG_WIDGET_H_
#include <QWidget>
#include <QTextEdit>
#include <QTabWidget>
#include <QTextBrowser>
#include "UiCommon.h"
#include "JZNodeStack.h"
#include "JZNodeWatch.h"
#include "JZNodeBreakPoint.h"
class LogBrowser : public QTextBrowser
{
Q_OBJECT
public:
LogBrowser();
void addLog(QString log);
protected slots:
void onLogContextMenu(QPoint pos);
protected:
struct TagInfo {
QString name;
QString text;
QVariantMap params;
};
TagInfo parseTag(QString line);
QTextCharFormat m_baseForamt;
};
class LogWidget : public QWidget
{
Q_OBJECT
public:
LogWidget();
~LogWidget();
void clearLog(int type);
void addLog(int type, const QString &log);
void showRunningLog();
JZNodeStack *stack();
JZNodeWatch *watchAuto();
JZNodeWatch *watchManual();
JZNodeBreakPoint *breakpoint();
signals:
void sigNavigate(QUrl url);
protected slots:
void onAchorClicked(QUrl url);
protected:
QList<LogBrowser*> m_logs;
QTabWidget *m_tabWidget;
JZNodeStack *m_stack;
JZNodeWatch *m_watchAuto;
JZNodeWatch *m_watchManual;
JZNodeBreakPoint *m_breakPoint;
};
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiongqiumin/JZNodeEditor.git
git@gitee.com:xiongqiumin/JZNodeEditor.git
xiongqiumin
JZNodeEditor
JZNodeEditor
master

搜索帮助