1 #ifndef POLFILEEDITOR_H
2 #define POLFILEEDITOR_H
5 #include "polsyntaxhighlighter.h"
27 explicit PolFileEditor(QWidget *parent = 0, QString path = QString());
62 void filenameChanged(QString filename);
66 void onTextEditChanged(
bool);
69 Ui::PolFileEditor *ui;
71 QString m_polFilePath;
78 #endif // POLFILEEDITOR_H
QString currentPolFile()
currentPolFile returns the currently opened .pol file
Definition: polfileeditor.cpp:84
Definition: polfileeditor.h:13
void savePolFile(QString path=QString())
Save the file to the given path, or to the default one if path is an empty string.
Definition: polfileeditor.cpp:39
bool isEmpty()
isEmpty returns true if the editor has no content in it.
Definition: polfileeditor.cpp:63
State
State of the document.
Definition: polfileeditor.h:22
State state()
state returns the current state of the document
Definition: polfileeditor.cpp:73
Definition: polsyntaxhighlighter.h:8
QString content()
content returns the content of the editor
Definition: polfileeditor.cpp:68