# multilineedit class An editor for inputting larger portions of text
Inherits
object widget
Description
This is class an editor for inputting larger portions of text. Besides that, it has unfinished docs.
Functions
`<string> $textLine(<line:integer>)`
Returns the string at line <line>. Note that it can be an empty string.
`$insertLine(<text:string>, <line:integer>)`
Inserts <text> at line number <line>. If line is less than zero, or larger than the number of rows, the new text is put at the end. If txt contains newline characters, several lines are inserted. The <line> parameter is optional. If it is ommited, the line is put at end.
`$removeLine(<line:integer>)`
Removes line number <line>.
`$insertAt(<txt:string>, <line:uinteger>, <col:uinteger>)`
Inserts txt at line number line, after character number col in the line. If txt contains newline characters, new lines are inserted.
`<integer> $numLines()`
Returns number of lines in the widget.
`$setCursorPosition(<line:integer>, <col:uinteger>, <mark:boolean>)`
Sets the cursor position to character number col in line number line. The parameters are adjusted to lie within the legal range. If mark is 1, the selection is cleared. otherwise it is extended
`<line,col:integer> $cursorPosition()`
Returns current cursor position in "<line:uinteger>, <col:uinteger>" format.
`$setReadOnly(<bReadOnly:boolean>)`
Sets the editor to be read-only if bReadOnly is 1 or removes the read-only status is ReadOnly is 0
`<boolean> $atBeginning()`
Returns 1(TRUE) if the cursor is placed at the beginning of the text; otherwise returns 0(FALSE).
`<boolean> $atEnd()`
Returns 1(TRUE) if the cursor is placed at the end of the text; otherwise returns 0(FALSE).
`$setWordWrap(<wrap_mode:string>)`
Sets the word wrap mode to mode. Valid Values are: - NoWrap - Do not wrap the text. - WidgetWidth - Wrap the text at the current width of the widget. - FixedPixelWidth - Wrap the text at a fixed number of pixels from the widget's left side. - FixedColumnWidth - Wrap the text at a fixed number of character columns from the widget's left side.
`<string> $wordWrap()`
Returns the word wrap mode. NoWrap, WidgetWidth, FixedPixelWidth, FixedColumnWidth.
`<string> $text()`
Returns the multiline edit's text.
`<integer> $length()`
Returns the number of characters in the text This function ignores newlines.
`$setMaxLines(<mac_lines:integer>)`
Sets the max number of the lines to <a>
`<integer> $maxLines()`
Returns the max number of the lines in the multiline edit.
`$insert(<text:string>)`
Inserts text at the current cursor position.
`$append(<text:string>)`
Appends a new paragraph with text to the end of the multiline edit.
`$copy()`
Copies any selected text from selection to the clipboard.
`$cut()`
Copies the selected text from selection to the clipboard and deletes it from the multiline edit.
`$paste()`
Pastes the text from the clipboard into the multiline edit at the current cursor position.
`$setFamily(<font_family:string>)`
Sets the font family of the current format to fontFamily.
`$setItalic(<bItalic:boolean>)`
If the bool value is 1 sets the current format to italic; otherwise, if it's 0 sets the current format to no-italic.
`$setBold(<bBold:boolean>)`
If the bool value is 1 sets the current format to bold; otherwise, if it's 0 sets the current format to no-bold.
`$setUnderline(<bUnderline:boolean>)`
If the bool value is 1 sets the current format to underline; otherwise, if it's 0 sets the current format to no-underline.
`<boolean> $italic()`
Returns 1(TRUE) if the current format is italic; otherwise returns 0(FALSE).
`<boolean> $bold()`
Returns 1(TRUE) if the current format is bold; otherwise returns 0(FALSE).
`<boolean> $underline()`
Returns 1(TRUE) if the current format is underline; otherwise returns 0(FALSE).
`$zoomIn(<zoom_range:integer>)`
Zooms in on the text by making the base font size range points larger.
`$zoomOut(<zoom_range:integer>)`
Zooms out on the text by making the base font size range points smaller.
`$zoomTo(<zoom_size:integer>)`
Zooms the text by making the base font size <size> points.
`$undo()`
Undoes the last operation.
`$redo()`
Redoes the last operation.
`$clear()`
Deletes all the text in the multiline edit.
`$setUndoRedoEnabled(<bUndoRedo:boolean>)`
Sets whether undo/redo is enabled to the bool value.
`$setUndoDepth(<undo_depth:integer>)`
Sets the depth of the undo history to x.
`<boolean> $isUndoRedoEnabled()`
Returns 1 (TRUE) if undo/redo is enabled; otherwise returns 0 (FALSE).
`<integer> $undoDepth()`
Returns the depth of the undo history.
`$indent()`
Re-indents the current paragraph.
`$setText(<txt:string>)`
Sets the text edit's text to txt.
`$setPointSize(<point_size:integer))`
Sets the point size of the font. // findme
`$setColor(<rgb_value>)`
Sets the foreground color of this widget to <rgb_value>:valid values are: - hex string: must be a string with 6 hexadecimal digits (like the ones used to specify colors in html pages). The first two digits specify the RED component, the third and fourth digit specify the GREEN component and the last two specify the BLUE component. For example "FFFF00" means full red, full green and no blue that gives a yellow color, "808000" designates a brown color (dark yellow), "A000A0" is a kind of violet. - array(red:integer,green:integer,blue:integer) - red:integer,green:integer,blue:integer.
`$setModified(<bModified:boolean>)`
Sets whether the document has been modified by the user. Valid Values are 1(TRUE) or 0(FALSE)
`$insertParagraph(<text:string>,<paragraph:integer>)`
Inserts text as a new paragraph at position <paragraph>.
`$removeParagraph(<paragraph:integer>)`
Removes the paragraph <paragraph>.
`$setLinkUnderline(<bLinkUnderline:boolean>)`
Sets to 1 if you want that hypertext links will be underlined; otherwise sets to 0.
`$setOverwriteMode(<bOverwrite:boolean>)`
Sets the Multilineedit edit's overwrite mode to b (1=Enabled or 0=Disabled) .
`$setTextFormat(<textformat:string>)`
Sets the text format. Correct values are RichText, PlainText, LogText or AutoText.
`<string> $textFormat()`
Returns the text format: rich text, plain text, log text or auto text. // findme
`$setParagraphBackgroundColor(<paragraph:integer>,<exadecimal color value>)`
Sets the background color of the paragraph <paragraph> to color value specified. Example: %mymultiline->$setParagraphBackgroundColor(2,0C686F)
`$clearParagraphBackground(<paragraph:integer>)`
Clear the background color of the paragraph <paragraph>.
`$loadFile(<path:string>)`
Load the file specified in the <path>, also html files.
`<boolean> $isUndoAvailable ()`
Returns 1(TRUE) if undo is available; otherwise returns 0(FALSE).
`<boolean> $isRedoAvailable ()`
Returns 1(TRUE) if redo is available; otherwise returns 0(FALSE).
`$setAlignment(<alignment:string>)`
Sets the alignment of the current paragraph to <alignment>. Valid values are: - AlignAuto - Aligns according to the language. - Qt::AlignLeft - Aligns with the left edge. - Qt::AlignRight - Aligns with the right edge. - Qt::AlignCenter - Centers in both dimensions.
`$setVerticalAlignment(<vertical_alignment:string>)`
Sets the vertical alignment of the current format to <Valignemnt>. Valid Values are: - AlignNormal - Normal alignment. - AlignSuperScript - Superscript. - AlignSubScript - Subscript.
`$setAutoFormatting(<afvalue:string>)`
Sets the enabled set of auto formatting features to afvalue. Valid values are: - AutoNone - Do not perform any automatic formatting - AutoBulletList - Only automatically format bulletted lists - AutoAll - Apply all available autoformatting
`$setWrapPolicy(<wraph_policy:string>)`
Sets the word wrap policy, at <wrpl>. Valid values are: - AtWhiteSpace - Don't use this deprecated value (it is a synonym for AtWordBoundary which you should use instead). - Anywhere - Break anywhere, including within words. - AtWordBoundary - Break lines at word boundaries, e.g. spaces or newlines - AtWordOrDocumentBoundary - Break lines at whitespace, e.g. spaces or newlines if possible. Break it anywhere otherwise.
`<integer> $paragraphs()`
Returns the number of paragraphs in the text.
`<integer> $lines()`
Returns the number of lines in the multilineedit.
`<integer> $linesOfParagraph(<paragraph:integer>)`
Returns the number of lines in paragraph <paragraph>, or -1 if there is no paragraph with index <paragraph>.
`<integer> $lineOfChar(<paragraph:integer>,<index:integer>)`
Returns the line number of the line in paragraph par in which the character at position index appears. If there is no such paragraph or no such character at the index position -1 is returned.
`<integer> $paragraphLenght(<paragraph:integer>)`
Returns the length of the paragraph par, or -1 if there is no paragraph with index par.

Index, Object Classes

KVIrc 3.4.2 Documentation
Generated by ports-i386 at Sun Mar 7 07:08:54 2010