# class toMarkedText

This is the enhanced editor used in TOra. More...

Definition | `#include <tomarkedtext.h>`
Inherits | toEditWidget [public ], toMultiLineEdit [public ]
Inherited by | toHighlightedText, toResultField
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- toMarkedText (QWidget *parent,const char *name=NULL)
- QString markedText ()
- bool hasMarkedText ()
- void clear (void)
- bool getMarkedRegion (int * line1,int * col1,int * line2,int * col2) const
- virtual QString filename (void) const
- virtual void setFilename (const QString &str)
- virtual void setEdit (void)
- virtual void focusInEvent (QFocusEvent *e)
- virtual void paintEvent (QPaintEvent *pe)
- virtual void editPrint (void)
- virtual void editOpen (void)
- virtual void editSave (bool ask)
- virtual void editUndo (void)
- virtual void editRedo (void)
- virtual void editCut (void)
- virtual void editCopy (void)
- virtual void editPaste (void)
- virtual void editSearch (toSearchReplace *search)
- virtual void editSelectAll (void)

#### Protected Methods

- virtual void keyPressEvent (QKeyEvent *e)
- virtual void newLine (void)
- virtual void dropEvent (QDropEvent *)

## Detailed Description

This is the enhanced editor used in TOra. It mainly offers integration in the TOra menues and printsupport in addition to normal QMultiLineEdit.

void keyPressEvent (QKeyEvent *e)

### keyPressEvent

[protected virtual]

Reimplemented for internal reasons.

Reimplemented from QMultiLineEdit.

toMarkedText (QWidget *parent,const char *name=NULL)

### toMarkedText

Create an editor.

Parameters:

parent | Parent of this widget.
name | Name of this widget.

QString markedText ()

### markedText

Get selected text. This function is now public.

Returns: The selected text.

Reimplemented from QMultiLineEdit.

bool hasMarkedText ()

### hasMarkedText

Check if selection is available. This function is now public.

Returns: True if selection is available.

Reimplemented from QMultiLineEdit.

void clear (void)

### clear

Erase the contents of the editor.

Reimplemented from QMultiLineEdit.

bool getMarkedRegion (int * line1,int * col1,int * line2,int * col2)

### getMarkedRegion

[const]

Get location of the current selection. This function is now public. See the Qt documentation for more information.

Reimplemented from QMultiLineEdit.

QString filename (void)

### filename

[const virtual]

Get filename of current file in editor.

Returns: Filename of editor.

void setFilename (const QString &str)

### setFilename

[virtual]

Set the current filename of the file in editor.

Parameters:

str | String containing filename.

void setEdit (void)

### setEdit

[virtual]

Update user interface with availability of copy/paste etc.

Reimplemented from toEditWidget.

void focusInEvent (QFocusEvent *e)

### focusInEvent

[virtual]

Reimplemented for internal reasons.

Reimplemented from QMultiLineEdit.

void paintEvent (QPaintEvent *pe)

### paintEvent

[virtual]

Reimplemented for internal reasons.

void editPrint (void)

### editPrint

[virtual]

Print this editor.

Reimplemented from toEditWidget.

void editOpen (void)

### editOpen

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editSave (bool ask)

### editSave

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editUndo (void)

### editUndo

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editRedo (void)

### editRedo

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editCut (void)

### editCut

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editCopy (void)

### editCopy

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editPaste (void)

### editPaste

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editSearch (toSearchReplace *search)

### editSearch

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void editSelectAll (void)

### editSelectAll

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void newLine (void)

### newLine

[protected virtual]

Reimplemented from QMultiLineEdit.

void dropEvent (QDropEvent *)

### dropEvent

[protected virtual]

Reimplemented from QMultiLineEdit.