#include <keditcl.h>
Public Types | |
| enum | |
Signals | |
| void | gotUrlDrop (QDropEvent *e) |
| void | CursorPositionChanged () |
| void | toggle_overwrite_signal () |
Public Methods | |
| KEdit (QWidget *_parent=NULL, const char *name=NULL) | |
| void | insertText (QTextStream *) |
| void | saveText (QTextStream *, bool softWrap) |
| void | selectFont () |
| void | search () |
| bool | repeatSearch () |
| void | replace () |
| void | doGotoLine () |
| void | cleanWhiteSpace () |
| void | installRBPopup (QPopupMenu *) |
| int | currentLine () |
| int | currentColumn () |
| void | spellcheck_start () |
| void | spellcheck_stop () |
| void | setOverwriteEnabled (bool b) |
Protected Methods | |
| void | posToRowCol (unsigned int pos, unsigned int &line, unsigned int &col) |
| virtual void | create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true) |
Definition at line 171 of file keditcl.h.
|
|
Search directions. |
|
||||||||||||
|
The usual constructor. |
|
|
Clean up redundant whitespace from selected text. |
|
||||||||||||||||
|
Reimplemented for internal reasons, the API is not affected. |
|
|
Retrieve the actual column number the cursor is on. This call differs from QMultiLineEdit::getCursorPosition() in that it returns the actual cursor position and not the character position. Use currentLine() and currentColumn() if you want to display the current line or column in the status bar for example. |
|
|
Retrieve the current line number. The current line is the line the cursor is on. |
|
|
This signal is emitted whenever the cursor position changes. Use this in conjunction with currentLine(), currentColumn() if you need to know the cursor position. |
|
|
Present a "Goto Line" dialog to the user. |
|
|
This signal is emitted if the user dropped a URL over the text editor QMultiLineEdit widget. Note that the user can drop also Text on it, but this is already handled internally by QMultiLineEdit. |
|
|
Insert text from the text stream into the edit widget. |
|
|
Install a context menu for KEdit. The Popup Menu will be activated on a right mouse button press event. |
|
||||||||||||||||
|
Sets line and col to the position pos, considering word wrap. |
|
|
Repeat the last search specified on the search dialog. If the user hasn't searched for anything until now, this method will simply return without doing anything.
|
|
|
Present a Search and Replace Dialog to the user. |
|
||||||||||||
|
Save text from the edit widget to a text stream. If
|
|
|
Present a search dialog to the user |
|
|
Let the user select a font and set the font of the textwidget to that selected font. |
|
|
Allow the user to toggle between insert mode and overwrite mode with the "Insert" key. See also toggle_overwrite_signal(); The default is false: the user can not toggle. |
|
|
Start spellchecking mode. |
|
|
Exit spellchecking mode. |
|
|
This signal is emitted if the user toggles from insert to overwrite mode or vice versa. The user can do so by pressing the "Insert" button on a PC keyboard. This feature must be activated by calling setOverwriteEnabled(true) first. |
1.2.18