Ai
1 Star 1 Fork 1

HuanZeng/texstudio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
diffoperations.h 985 Bytes
一键复制 编辑 原始数据 按行查看 历史
sunderme@gmx.de 提交于 2017-12-01 05:48 +08:00 . move more source files
#ifndef DIFFOPERATIONS_H
#define DIFFOPERATIONS_H
#include "diff/diff_match_patch.h"
class QDocumentLineHandle;
class DiffOp
{
public:
DiffOp();
enum DiffType {
Insert,
Delete,
Replace,
Deleted,
Inserted,
Replaced,
NotInserted,
NotDeleted,
NotReplaced
};
int start, length;
DiffType type;
QString text;
bool lineWasModified;
QDocumentLineHandle *dlh;
};
typedef QList<DiffOp> DiffList;
Q_DECLARE_METATYPE(DiffList)
class LatexDocument;
class QDocumentCursor;
void diffDocs(LatexDocument *doc, LatexDocument *doc2, bool dontAddLines = false);
void diffRemoveMarkers(LatexDocument *doc, bool theirs);
void diffChange(LatexDocument *doc, int ln, int col, bool theirs);
QDocumentCursor diffSearchBoundaries(LatexDocument *doc, int ln, int col, int fid, int direction = 0);
QString diffCollectText(QDocumentCursor range);
void diffChangeOpType(QDocumentCursor range, DiffOp::DiffType type);
void diffMerge(LatexDocument *doc);
#endif // DIFFOPERATIONS_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xmrzh/texstudio.git
git@gitee.com:xmrzh/texstudio.git
xmrzh
texstudio
texstudio
master

搜索帮助