#include <TextEdit.h>
Public Member Functions | |
| void | lineNumberAreaPaintEvent (QPaintEvent *) |
| int | lineNumberAreaWidth () |
| void | OnChange (Base::Subject< const char * > &rCaller, const char *rcReason) |
| Sets the font, font size and tab size of the editor. More... | |
| void | setSyntaxHighlighter (SyntaxHighlighter *) |
| TextEditor (QWidget *parent=0) | |
| Constructs a TextEditor which is a child of 'parent' and does the syntax highlighting for the Python language. More... | |
| ~TextEditor () | |
| Destroys the object and frees any allocated resources. More... | |
Public Member Functions inherited from Gui::TextEdit | |
| TextEdit (QWidget *parent=0) | |
| Constructs a TextEdit which is a child of 'parent'. More... | |
| virtual | ~TextEdit () |
| Destroys the object and frees any allocated resources. More... | |
Public Member Functions inherited from Gui::WindowParameter | |
| ParameterGrp::handle | getWindowParameter (void) |
| return the parameter group of this window More... | |
| void | OnChange (Base::Subject< const char * > &rCaller, const char *sReason) |
| bool | setGroupName (const char *name) |
| Sets the group of the window to name. More... | |
| WindowParameter (const char *name) | |
| virtual | ~WindowParameter () |
Protected Member Functions | |
| virtual void | drawMarker (int line, int x, int y, QPainter *) |
| QWidget * | getMarker () const |
| void | keyPressEvent (QKeyEvent *e) |
| void | paintEvent (QPaintEvent *e) |
| Draw a beam in the line where the cursor is. More... | |
| void | resizeEvent (QResizeEvent *e) |
Protected Member Functions inherited from Gui::TextEdit | |
| void | keyPressEvent (QKeyEvent *) |
| Set the approproriate item of the completion box or hide it, if needed. More... | |
Friends | |
| class | SyntaxHighlighter |
Additional Inherited Members | |
Static Public Member Functions inherited from Gui::WindowParameter | |
| static ParameterGrp::handle | getDefaultParameter (void) |
| get the parameters More... | |
Constructor & Destructor Documentation
◆ TextEditor()
| TextEditor::TextEditor | ( | QWidget * | parent = 0 | ) |
Constructs a TextEditor which is a child of 'parent' and does the syntax highlighting for the Python language.
References Base::Subject< _MessageType >::Attach(), Gui::WindowParameter::getWindowParameter(), ParameterGrp::NotifyAll(), and ParameterGrp::SetInt().
◆ ~TextEditor()
| TextEditor::~TextEditor | ( | ) |
Destroys the object and frees any allocated resources.
References Base::Subject< _MessageType >::Detach(), and Gui::WindowParameter::getWindowParameter().
Member Function Documentation
◆ drawMarker()
|
protectedvirtual |
Reimplemented in Gui::PythonEditor.
Referenced by lineNumberAreaPaintEvent().
◆ getMarker()
|
protected |
◆ keyPressEvent()
|
protected |
◆ lineNumberAreaPaintEvent()
| void TextEditor::lineNumberAreaPaintEvent | ( | QPaintEvent * | event | ) |
References drawMarker().
Referenced by Gui::LineMarker::paintEvent().
◆ lineNumberAreaWidth()
| int TextEditor::lineNumberAreaWidth | ( | ) |
Referenced by OnChange(), resizeEvent(), and Gui::LineMarker::sizeHint().
◆ OnChange()
| void TextEditor::OnChange | ( | Base::Subject< const char * > & | rCaller, |
| const char * | rcReason | ||
| ) |
Sets the font, font size and tab size of the editor.
References Gui::TextEditorP::colormap, ParameterGrp::GetASCII(), ParameterGrp::GetBool(), ParameterGrp::GetInt(), ParameterGrp::GetUnsigned(), Gui::WindowParameter::getWindowParameter(), lineNumberAreaWidth(), and Gui::SyntaxHighlighter::setColor().
◆ paintEvent()
|
protected |
Draw a beam in the line where the cursor is.
◆ resizeEvent()
|
protected |
References lineNumberAreaWidth().
◆ setSyntaxHighlighter()
| void TextEditor::setSyntaxHighlighter | ( | SyntaxHighlighter * | sh | ) |
Referenced by Gui::PythonEditor::PythonEditor().
Friends And Related Function Documentation
◆ SyntaxHighlighter
|
friend |
The documentation for this class was generated from the following files:
- src/Gui/TextEdit.h
- src/Gui/TextEdit.cpp
Public Member Functions inherited from
1.8.17