1 Star 0 Fork 0

Notepad-- Community/ndd-xmltool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
instanceobj.h 974 Bytes
一键复制 编辑 原始数据 按行查看 历史
爬山虎 提交于 2023-12-16 15:01 +08:00 . 提交1.0 代码
#pragma once
#include <QObject>
#include <QWidget>
class QMenu;
struct XmltoolsOptions {
int formatingEngine; //0 "QuickXml" 1 "StringXml") 2 (simplexml)"
int maxIndentLevel;
bool ensureConformity;
bool ppAutoclose;
bool applySpacePreserve;
XmltoolsOptions() :formatingEngine(0), maxIndentLevel(0), ensureConformity(true), ppAutoclose(true), applySpacePreserve(false)
{
}
};
class InstanceObj :public QObject
{
public:
//外面Ndd释放时,会自动释放该对象。
InstanceObj(QWidget* pNotepad, QMenu* pMenu);
~InstanceObj();
public slots:
void nddPrettyPrintXmlFast();
void nddPrettyPrintXmlAttrFast();
void nddPrettyPrintXmlIndentOnlyFast();
void nddLinearizeXmlFast();
void optionsWin();
void loadOption();
public:
QWidget* m_pNotepad;
QMenu* m_rootMenu;
private:
InstanceObj(const InstanceObj& other) = delete;
InstanceObj& operator=(const InstanceObj& other) = delete;
void init();
bool m_isLoadOpt;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ndd-community/ndd-xmltool.git
git@gitee.com:ndd-community/ndd-xmltool.git
ndd-community
ndd-xmltool
ndd-xmltool
master

搜索帮助