代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。