1 #ifndef _SCRIPTEDITOR_H_
2 #define _SCRIPTEDITOR_H_
37 #include <QListWidget>
39 #include <QSyntaxHighlighter>
167 virtual void setText(
const char * txt);
168 virtual void setText(
const QString & szText);
169 virtual void setText(
const QByteArray & szText);
170 virtual void getText(QString & szText);
171 virtual void getText(QByteArray & szText);
195 void slotReplaceAll(
const QString & szToReplace,
const QString & szReplaceWith);
200 void find(
const QString &);
201 void replaceAll(
const QString & szToReplace,
const QString & szReplaceWith);
203 void nextFind(
const QString & szText);
226 void replaceAll(
const QString &,
const QString &);
231 #endif // _SCRIPTEDITOR_H_
QLineEdit * m_pReplaceLineEdit
Definition: ScriptEditorImplementation.h:215
QLineEdit * m_pFindLineEdit
Definition: ScriptEditorImplementation.h:158
void slotInitFind()
Definition: ScriptEditorImplementation.cpp:822
QVector< KviScriptHighlightingRule > highlightingRules
Definition: ScriptEditorImplementation.h:136
void updateRowColLabel()
Definition: ScriptEditorImplementation.cpp:933
QLabel * m_pRowColLabel
Definition: ScriptEditorImplementation.h:163
void slotReplaceAll(const QString &szToReplace, const QString &szReplaceWith)
Definition: ScriptEditorImplementation.cpp:827
virtual void setFocus()
Definition: ScriptEditorImplementation.cpp:850
int getCursor()
Definition: ScriptEditorImplementation.h:181
virtual void setReadOnly(bool bReadOnly)
Definition: ScriptEditorImplementation.cpp:902
void setCursorPosition(int iPos)
Definition: ScriptEditorImplementation.cpp:944
QTextCharFormat normaltextFormat
Definition: ScriptEditorImplementation.h:144
void saveToFile()
Definition: ScriptEditorImplementation.cpp:867
Definition: KviScriptEditor.h:43
QLineEdit * m_pFindLineEdit
Definition: ScriptEditorImplementation.h:214
QPushButton * m_pReplaceButton
Definition: ScriptEditorImplementation.h:218
QTextCharFormat commentFormat
Definition: ScriptEditorImplementation.h:147
virtual ~ScriptEditorImplementation()
Definition: ScriptEditorImplementation.cpp:774
void replaceAll(const QString &, const QString &)
Definition: ScriptEditorImplementation.h:130
virtual void getText(QString &szText)
Definition: ScriptEditorImplementation.cpp:922
QCheckBox * m_pCheckReplaceAll
Definition: ScriptEditorImplementation.h:219
QTextEdit * m_pTextEdit
Definition: ScriptEditorImplementation.h:122
QRegExp commentEndExpression
Definition: ScriptEditorImplementation.h:138
QTextCharFormat variableFormat
Definition: ScriptEditorImplementation.h:143
void slotFind()
Definition: ScriptEditorImplementation.cpp:812
void slotReplace()
Definition: ScriptEditorImplementation.cpp:1065
virtual void setEnabled(bool bEnabled)
Definition: ScriptEditorImplementation.cpp:860
QTextEdit * textEdit()
Definition: ScriptEditorImplementation.h:125
#define e
Definition: detector.cpp:69
QTextCharFormat functionFormat
Definition: ScriptEditorImplementation.h:146
ScriptEditorSyntaxHighlighter(ScriptEditorWidget *pWidget)
Definition: ScriptEditorImplementation.cpp:518
Definition: ScriptEditorImplementation.h:206
void textChanged(const QString &)
Definition: ScriptEditorImplementation.cpp:1057
virtual ~ScriptEditorSyntaxHighlighter()
virtual void focusInEvent(QFocusEvent *e)
Definition: ScriptEditorImplementation.cpp:855
QTextCharFormat keywordFormat
Definition: ScriptEditorImplementation.h:142
QTextCharFormat bracketFormat
Definition: ScriptEditorImplementation.h:140
QTextCharFormat punctuationFormat
Definition: ScriptEditorImplementation.h:141
Definition: ScriptEditorImplementation.h:115
void configureColors()
Definition: ScriptEditorImplementation.cpp:975
virtual void setFindText(const QString &szText)
Definition: ScriptEditorImplementation.cpp:927
void replaceAll(const QString &szToReplace, const QString &szReplaceWith)
QLineEdit * findLineEdit()
Definition: ScriptEditorImplementation.h:184
int cursor()
Definition: ScriptEditorImplementation.h:183
void setUnHighlightedText(const QString &szText)
Definition: ScriptEditorImplementation.cpp:891
void slotNextFind(const QString &)
Definition: ScriptEditorImplementation.cpp:817
Definition: ScriptEditorImplementation.h:150
virtual void setModified(bool)
Definition: ScriptEditorImplementation.cpp:808
void nextFind(const QString &)
QRegExp pattern
Definition: ScriptEditorImplementation.h:132
void slotNextFind()
Definition: ScriptEditorImplementation.cpp:1079
ScriptEditorReplaceDialog(QWidget *parent=0, const QString &szName=QString())
Definition: ScriptEditorImplementation.cpp:994
QTextCharFormat findFormat
Definition: ScriptEditorImplementation.h:145
~ScriptEditorReplaceDialog()
C++ Template based double linked pointer list class.
ScriptEditorWidget * m_pEditor
Definition: ScriptEditorImplementation.h:162
QRegExp commentStartExpression
Definition: ScriptEditorImplementation.h:137
void loadFromFile()
Definition: ScriptEditorImplementation.cpp:952
void optionsDialogFinished(int iResult)
Definition: ScriptEditorImplementation.cpp:985
void highlightBlock(const QString &szText)
Definition: ScriptEditorImplementation.cpp:578
ScriptEditorWidgetColorOptions * m_pOptionsDialog
Definition: ScriptEditorImplementation.h:161
QTextCharFormat format
Definition: ScriptEditorImplementation.h:133
virtual void setText(const char *txt)
Definition: ScriptEditorImplementation.cpp:887
QWidget * m_pParent
Definition: ScriptEditorImplementation.h:220
virtual bool isModified()
Definition: ScriptEditorImplementation.cpp:804
int m_lastCursorPos
Definition: ScriptEditorImplementation.h:164
Definition: KviSelectors.h:267
ScriptEditorImplementation(QWidget *par)
Definition: ScriptEditorImplementation.cpp:714
void saveOptions()
Definition: ScriptEditorImplementation.cpp:832
void nextFind(const QString &szText)
void updateSyntaxtTextFormat()
Definition: ScriptEditorImplementation.cpp:554
void loadOptions()
Definition: ScriptEditorImplementation.cpp:786
void find(const QString &)