23#ifndef ABSTRACTCODEEDITORWIDGET_H
24#define ABSTRACTCODEEDITORWIDGET_H
26#include "../common/sharedStructures.h"
27#include "../codeEditor/codeEditor.h"
30#include "../codeEditor/syntaxHighlighter/syntaxHighlighterBase.h"
31#include "../codeEditor/modes/symbolMatcherMode.h"
32#include "../codeEditor/modes/caretLineHighlight.h"
33#include "../codeEditor/modes/pyCalltips.h"
34#include "../codeEditor/modes/codeCompletion.h"
35#include "../codeEditor/modes/pyCalltips.h"
36#include "../codeEditor/modes/pyAutoIndent.h"
37#include "../codeEditor/pyCodeReferenceRenamer.h"
39#include <qstringlist.h>
42#include <qsharedpointer.h>
54 QString getWordAtPosition(
const int &line,
const int &index)
const;
58 enum tUserSelectionState { selNo, selRange };
62 virtual void loadSettings();
64 QString
formatCodeBeforeInsertion(
const QString &text,
int &lineCount,
bool trimText =
false,
const QString &newIndent =
"")
const;
67 QPixmap loadMarker(
const QString &name,
int sizeAt96dpi)
const;
69 tUserSelectionState m_userSelectionState;
71 QSharedPointer<SyntaxHighlighterBase> m_pythonSyntaxHighlighter;
72 QSharedPointer<CodeEditorStyle> m_editorStyle;
73 QSharedPointer<SymbolMatcherMode> m_symbolMatcher;
74 QSharedPointer<CaretLineHighlighterMode> m_caretLineHighlighter;
75 QSharedPointer<PyCalltipsMode> m_calltipsMode;
76 QSharedPointer<CodeCompletionMode> m_codeCompletionMode;
77 QSharedPointer<PyAutoIndentMode> m_pyAutoIndentMode;
78 QSharedPointer<PyCodeReferenceRenamer> m_pyCodeReferenceRenamer;
80 virtual int startLineOffset(
int lineIdx)
const {
return 0; }
86 void reloadSettings() { loadSettings(); };
95 void userSelectionChanged(
int lineFrom,
int indexFrom,
int lineTo,
int indexTo);
Definition codeEditor.h:110
Definition apiFunctionsGraph.cpp:40