Inheritance diagram for IAEX::TextCell:
Public Slots | |
void | clickEvent () |
void | setText (QString text) |
Sets the visible text. | |
void | setText (QString text, QTextCharFormat format) |
Sets the visible text, given an specific text format. | |
void | setTextHtml (QString html) |
Sets the visible text using html code. | |
void | setStyle (const QString &stylename) |
Set cell style. | |
void | setStyle (CellStyle style) |
Set cell style. | |
void | setChapterCounter (QString number) |
set the chapter counter | |
QString | ChapterCounter () |
return the value of the chapter counter, as plain text. Returns null if the counter is empty | |
QString | ChapterCounterHtml () |
return the value of the chapter counter, as html code. Returns null if the counter is empty | |
void | setReadOnly (const bool readonly) |
virtual void | setFocus (const bool focus) |
Public Member Functions | |
TextCell (QWidget *parent=0) | |
The class constructor. | |
virtual | ~TextCell () |
The class destructor. | |
QString | text () |
Returns the text (as plain text) from the mainarea. | |
QString | textHtml () |
Return the text inside the cell as Html code. | |
QTextCursor | textCursor () |
Return the text cursor to the QTextBrowser that make up mainarea of the cell. | |
QTextEdit * | textEdit () |
Return the text editor that make up the cell. | |
virtual void | accept (Visitor &v) |
Implements visitor acceptability. | |
virtual bool | isEditable () |
Function for telling if the user is allowed to change the text settings for the text inside the cell. User is allowed to change the text settings for textcell so this function always return true. | |
virtual void | viewExpression (const bool expr) |
Protected Slots | |
void | contentChanged () |
void | hoverOverLink (const QUrl &link) |
void | openLinkInternal (const QUrl *url) |
void | textChangedInternal () |
void | charFormatChanged (const QTextCharFormat &) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) |
|
The class constructor.
|
|
The class destructor.
|
|
return the value of the chapter counter, as plain text. Returns null if the counter is empty
|
|
return the value of the chapter counter, as html code. Returns null if the counter is empty
|
|
|
|
|
|
2005-10-31 AF, Large part of this function was changes due to porting to QT4 (changes from Q3TextBrowser to QTextBrowser). 2006-04-10 AF, emits heightChanged if the height changes |
|
|
|
Function for telling if the user is allowed to change the text settings for the text inside the cell. User is allowed to change the text settings for textcell so this function always return true.
Implements IAEX::Cell. |
|
|
|
Resize textcell when the mainwindow is resized. This because the cellcontent should always be visible. Reimplemented from IAEX::Cell. |
|
set the chapter counter
|
|
Implements IAEX::Cell. |
|
2005-10-31 AF, removed the change in framstyle, looks better now 2005-11-01 AF, clear text selection when text edit is set to readonly 2006-03-02 AF, clear text selection in chapter counter
Reimplemented from IAEX::Cell. |
|
Set cell style.
Reimplemented from IAEX::Cell. |
|
Set cell style.
Reimplemented from IAEX::Cell. |
|
Sets the visible text, given an specific text format.
Reimplemented from IAEX::Cell. |
|
Sets the visible text.
2005-11-02 AF, Ported the project to QT4, so I needed to add a check if the text is html code. If it's html code, just the correkt set function in QTextEdit. 2005-11-03 AF, Updated the html check
Reimplemented from IAEX::Cell. |
|
Sets the visible text using html code.
Reimplemented from IAEX::Cell. |
|
Returns the text (as plain text) from the mainarea.
Implements IAEX::Cell. |
|
|
|
Return the text cursor to the QTextBrowser that make up mainarea of the cell.
Reimplemented from IAEX::Cell. |
|
Return the text editor that make up the cell.
Reimplemented from IAEX::Cell. |
|
Return the text inside the cell as Html code.
Reimplemented from IAEX::Cell. |
|
2005-11-01 AF, Remade the function to reflect the new QTextEdit Reimplemented from IAEX::Cell. |