7 Star 20 Fork 3

Li Jin / CodeEditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
oEditor.h 754 Bytes
一键复制 编辑 原始数据 按行查看 历史
Li Jin 提交于 2015-08-04 15:57 . add color picker, complete more tags
#ifndef OEDITOR_H
#define OEDITOR_H
#include "oDefine.h"
class QHBoxLayout;
class QCompleter;
class oSyntaxHighlighter;
class oNumberBar;
class oTextEdit;
class oEditor : public QFrame
{
Q_OBJECT
public:
oEditor(QWidget* parent = nullptr, const QString& filePath = "");
virtual ~oEditor();
public:
void setFont(const QFont &);
QString getFileName();
const QString& getFilePath();
bool isModified();
oTextEdit* view();
public slots:
void documentChanged(bool modified);
void save();
signals:
void editorChanged(oEditor* editor,bool modified);
private:
QString _filePath;
oTextEdit* _view;
QHBoxLayout* _box;
oNumberBar* _numberBar;
};
#endif // OEDITOR_H
C++
1
https://gitee.com/pig/CodeEditor.git
git@gitee.com:pig/CodeEditor.git
pig
CodeEditor
CodeEditor
master

搜索帮助