TextEdit Class Reference

A widget to show and edit text. More...

#include <textedit.h>

Inheritance diagram for TextEdit:
AbstractContentView

List of all members.

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 ()
AbstractContentChangegetChange ()

Detailed Description

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.

Author:
Manuel Unglaub

Constructor & Destructor Documentation

TextEdit::TextEdit (  ) 

The constructor.

Constructs the TextEdit.

TextEdit::~TextEdit (  ) 

The destructor.

Destroys the object.


Member Function Documentation

AbstractContentChange * TextEdit::getChange (  )  [virtual]

Get the change made to the content.

Returns:
The change made to the content.

Implements AbstractContentView.

bool TextEdit::hasChanged (  )  [virtual]

Find out if any change was made.

Returns:
True if the content was changed.

Implements AbstractContentView.

void TextEdit::setContent ( TextNodeContent content  ) 

Provide the TextEdit with a content to show and edit.

Parameters:
content The content which will be shown by this TextEdit.
void TextEdit::setSyntax ( QString  syntax  ) 

Indicate the syntax highlighting that should be used.

Parameters:
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  ) 

Changes the text of the TextEdit.

Parameters:
text The new text of the TextEdit.
void TextEdit::setVisible ( bool  visible  )  [slot]

Indicate the visibility of this widget and its actions.

Parameters:
visible If true the TextEdit with its actions will be visible.

The documentation for this class was generated from the following files:
Generated on Fri May 14 19:12:53 2010 for Silence by  doxygen 1.6.3