[kdeui Index] [kdeui Hierarchy] [Headers]
#include <keditcl.h>
Inherits: QMultiLineEdit (qt)
[public]
Opens a new untitled document in the text widget The user is givena chance to save the current document if the current document has been modified.
[public]
Saves the file if necessary under the current file name. If the current filename is Untitled, as it is after a call to newFile(), this routing will call saveAs().
[public]
Saves the file as filename
[public]
Allows the user to save the file under a new name
[public]
This will present an open file dialog and open the file specified by the user,if possible. The return codes are KEDIT_OK, KEDIT_USER_CANCEL and KEDIT_OS_ERROR. The user will be given a chance to save the current file if it has been modified. mode is one of OPEN_READONLY, OPEN_READWRITE. OPEN_READONLY means that the user will not be able to insert characters into the document.
[public]
Calling this method will let the user insert a file at the current cursorposition. Return codes are KEDIT_OK, KEDIT_USER_CANCEL, KDEDIT_OS_ERROR.
[public]
Loads the file filename into editor. The possible modes areOPEN_READONLY, OPEN_READWRITE, OPEN_INSERT. OPEN_READONLY means that the user will not be able to insert characters into the document. OPEN_INSERT means that the file will be inserted into the current document at the current cursor position.
[public]
Returns the filename of the currnet file. You can use setName() to set thefilename of the current file
[public]
Sets the filename of the currnet file. You can use getName() to set thefilename of the current file
[public]
Returns the currently marked text.
[public]
Lets the user select a font and sets the font of the textwidget to thatselected font.
[public]
Presents a search dialog to the user
[public]
Repeasts the last search specified on the search dialog. If the userhasn't searched for anything until now, this method will simply return without doing anything.
[public]
Presents a Search and Replace Dialog to the User.
[public]
Presents a "Goto Line" dialog to the User
[public]
Returns true if the document has been modified.
[public]
Toggles the modification status of the document. TRUE = Modified,FALSE = UNMODIFIED. Methods such as doSave() rely on this to see whether the document needs to be saved.
[public]
Sets the Indent Mode. TRUE = Indent mode on, FALSE = Indent mode off.
[public]
Returns the Indent Mode. TRUE = Indent mode on, FALSE = Indent mode off.
[public]
Install a Popup Menue for KEdit. The Popup Menu will be activated ona right mouse button press event.
[public]
Returns the current line number, that is the line the cursor is on.
[public]
This returns the actual column number the cursor is on. This call differsfrom 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.
[public]
Returns TRUE if word wrap is on. You also need to specify the fill columnwith setFillColumnMode() otherwise wordwrap is not in effect.
[public]
You also need to specify the fill columnwith setFillColumnMode() otherwise wordwrap is not in effect.
[public]
Returns TRUE if fill column mode is on, that is if the line willbe broken automatically when if a character is to be inserted past this position.
[public]
Set the fill column to column col, if col is strictly larger than 0.If col is 0, fill column mode is turned off. In fill column mode, the line will be broken automatically at column col, when a character is inserted past column col..
[public]
If copy is TRUE KEdit will make a backup copy of the document thatis being edited on opening it. The backup copy will receive the suffix ~. The default is TRUE.
[public]
Sets the name of the file if a file is open.
[public]
saves the current file as 'name'
[public]
remove tabs and whitespace on the end of lines during a justify operation
[signal]
This signal is emitted when the document in the textwidget has changed
[signal]
This signal is emitted whenever the cursor position changed.Use this in conjunction with currentLine(), currentColumn() if you need to know the cursor position.
[signal]
This signal is emitted just before saving a file. Since KEdit callskapp->processEvents(), you have a chance to let the user know what's going to happen.
[signal]
This signal is emitted just before loading a file. Since KEdit callskapp->processEvents(), you have a chance to let the user know what's going to happen.
[signal]
This signal is emitted if the user toggles from overwrite to insert mode.He can do so by pressing the "Insert" Button on a PC keyboard.
Documentation generated by tasin@cd1 on Die Nov 30 17:31:44 CET 1999 | Kdoc |