A widget to show and edit text. More...
#include <textedit.h>
Public Slots | |
void | setVisible (bool visible) |
Public Member Functions | |
TextEdit () | |
~TextEdit () | |
void | setContent (TextNodeContent *content) |
void | setText (QString text) |
void | setSyntax (QString syntax) |
bool | hasChanged () |
AbstractContentChange * | getChange () |
A widget to show and edit text.
This TextEdit is the widget to show and modify the TextNodeContent. It is supposed to handle plain text and provieds syntax highlighting for different languages.
TextEdit::TextEdit | ( | ) |
The constructor.
Constructs the TextEdit.
TextEdit::~TextEdit | ( | ) |
The destructor.
Destroys the object.
AbstractContentChange * TextEdit::getChange | ( | ) | [virtual] |
Get the change made to the content.
Implements AbstractContentView.
bool TextEdit::hasChanged | ( | ) | [virtual] |
Find out if any change was made.
Implements AbstractContentView.
void TextEdit::setContent | ( | TextNodeContent * | content | ) |
void TextEdit::setSyntax | ( | QString | syntax | ) |
Indicate the syntax highlighting that should be used.
syntax | The syntax highlighting that will be used. If syntax does not match an existing syntax no syntax highlighting will be used. If you do not want to use any syntax highlighting you should assign "None". |
void TextEdit::setText | ( | QString | text | ) |
void TextEdit::setVisible | ( | bool | visible | ) | [slot] |
Indicate the visibility of this widget and its actions.
visible | If true the TextEdit with its actions will be visible. |