4 #include <QPlainTextEdit>
10 #include "../../model/world/universalid.hpp"
130 #endif // SCRIPTEDIT_H
void updateLineNumberArea(const QRect &, int)
Definition: scriptedit.cpp:276
Mode
Definition: scripthighlighter.hpp:36
void paintEvent(QPaintEvent *event)
Definition: scriptedit.cpp:357
void idListChanged()
Definition: scriptedit.cpp:235
bool isChangeLocked() const
Definition: scriptedit.cpp:124
LineNumberArea(ScriptEdit *editor)
Definition: scriptedit.cpp:349
void dropEvent(QDropEvent *event)
Definition: scriptedit.cpp:153
QFont mMonoFont
Definition: scriptedit.hpp:55
void wrapLines(bool wrap)
Turn line wrapping in script editor on or off.
Definition: scriptedit.cpp:196
LineNumberArea * mLineNumberArea
Definition: scriptedit.hpp:53
QTimer mUpdateTimer
Definition: scriptedit.hpp:51
int mTabCharCount
Definition: scriptedit.hpp:56
void showLineNum(bool show)
Definition: scriptedit.cpp:115
ChangeLock(const ChangeLock &)
virtual void resizeEvent(QResizeEvent *e)
Definition: scriptedit.cpp:287
ScriptEdit * mScriptEdit
Definition: scriptedit.hpp:118
void setTabWidth()
Set tab width for script editor.
Definition: scriptedit.cpp:190
bool stringNeedsQuote(const std::string &id) const
Definition: scriptedit.cpp:183
int wrap(int index, int max)
Definition: race.cpp:24
Definition: scriptedit.hpp:116
void settingChanged(const CSMPrefs::Setting *setting)
Update editor when related setting is changed.
Definition: scriptedit.cpp:208
const QRegExp mWhiteListQoutes
Definition: scriptedit.hpp:84
bool event(QEvent *event)
Definition: scriptedit.cpp:27
void dragMoveEvent(QDragMoveEvent *event)
Definition: scriptedit.cpp:141
~ChangeLock()
Definition: scriptedit.cpp:22
Definition: setting.hpp:22
void updateLineNumberAreaWidth(int newBlockCount)
Definition: scriptedit.cpp:271
Definition: document.hpp:57
const CSMDoc::Document & mDocument
Definition: scriptedit.hpp:83
void lineNumberAreaPaintEvent(QPaintEvent *event)
Definition: scriptedit.cpp:295
ScriptHighlighter * mHighlighter
Definition: scriptedit.hpp:50
QVector< CSMWorld::UniversalId::Type > mAllowedTypes
Definition: scriptedit.hpp:82
int lineNumberAreaWidth()
Definition: scriptedit.cpp:253
QFont mDefaultFont
Definition: scriptedit.hpp:54
int mChangeLocked
Definition: scriptedit.hpp:49
QSize sizeHint() const
Definition: scriptedit.cpp:352
Definition: scriptedit.hpp:32
Definition: scripthighlighter.hpp:21
bool mShowLineNum
Definition: scriptedit.hpp:52
ScriptEdit & mEdit
Definition: scriptedit.hpp:34
ScriptEdit(const CSMDoc::Document &document, ScriptHighlighter::Mode mode, QWidget *parent)
Definition: scriptedit.cpp:41
void dragEnterEvent(QDragEnterEvent *event)
Definition: scriptedit.cpp:129
ChangeLock & operator=(const ChangeLock &)
void updateHighlighting()
Definition: scriptedit.cpp:243
Editor for scripts.
Definition: scriptedit.hpp:26