2 Star 8 Fork 0

纵使有花兼明月何堪无酒亦无人 / Z4PIDE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
z_for_p_editorwidget.h 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef Z_FOR_P_EDITORWIDGET_H
#define Z_FOR_P_EDITORWIDGET_H
#if defined _MSC_VER && _MSC_VER > 1000
#pragma once
#endif
#include <Qsci\qsciscintilla.h>
#include <Qsci\qsciapis.h>
#include <qaction.h>
#include<QDebug>
class Z_FOR_P_EditorWidget :public QsciScintilla{
Q_OBJECT
public:
Z_FOR_P_EditorWidget(QWidget* = NULL);
public:
static Z_FOR_P_EditorWidget* open(QWidget*);
static Z_FOR_P_EditorWidget* openFile(const QString&, QWidget*);
static QString strippedName(const QString&);
void newFile(const QString& fileName = "");
bool save();
bool saveAs();
QAction* windowMenuAction() { return m_action; }
void setFileName(const QString&);
const QString fileName()const { return m_curFileName; }
protected:
void closeEvent(QCloseEvent*);
signals:
void redoAvailable(bool);
void undoAvailable(bool);
private slots:
void documentWasModified();
private:
void init();
bool okToContinue();
bool saveFile(const QString&);
void setCurrentFile(const QString& fileName){
m_curFileName = fileName;
}
void setActionText(const QString& txt){
m_action->setText(txt);
}
bool openFile(const QString&);
void setTitle();
private:
QAction* m_action;
QString m_curFileName;
bool m_isUntitled;
};
#endif // Z_FOR_P_EDITORWIDGET_H
PHP
1
https://gitee.com/xavier007/Z4PIDE.git
git@gitee.com:xavier007/Z4PIDE.git
xavier007
Z4PIDE
Z4PIDE
master

搜索帮助