From f4c79ca075042b834ba04adbd32b1973245089a0 Mon Sep 17 00:00:00 2001 From: un1versal Date: Wed, 9 Dec 2015 12:00:31 +0000 Subject: src/modules: typos, consistency capitalize, fomatting and indenting fixes these contains in addition the whitespace changes --- src/modules/objects/KvsObject_multiLineEdit.cpp | 63 ++++++++++++++----------- 1 file changed, 36 insertions(+), 27 deletions(-) (limited to 'src/modules/objects/KvsObject_multiLineEdit.cpp') diff --git a/src/modules/objects/KvsObject_multiLineEdit.cpp b/src/modules/objects/KvsObject_multiLineEdit.cpp index 8f16aa94d..c6a77fff6 100644 --- a/src/modules/objects/KvsObject_multiLineEdit.cpp +++ b/src/modules/objects/KvsObject_multiLineEdit.cpp @@ -62,17 +62,20 @@ Returns current cursor position in ", " format. !fn: $setReadOnly() Sets the editor to be read-only if bReadOnly is 1 or - removes the read-only status is ReadOnly is 0 + removes the read-only status if bReadOnly is 0 !fn: $atBeginning() - Returns 1(true) if the cursor is placed at the beginning of the text; otherwise returns 0(false). + Returns 1 (true) if the cursor is placed at the beginning of the text; otherwise returns 0 (false). !fn: $atEnd() - Returns 1(true) if the cursor is placed at the end of the text; otherwise returns 0(false). + Returns 1 (true) if the cursor is placed at the end of the text; otherwise returns 0 (false). !fn: $setWordWrap() - Sets the word wrap mode to mode. Valid Values are:[br] + Sets the word wrap mode to mode.[br] + Valid Values are:[br] + [example] - NoWrap - Do not wrap the text.[br] - WidgetWidth - Wrap the text at the current width of the widget.[br] - FixedPixelWidth - Wrap the text at a fixed number of pixels from the widget's left side.[br] - FixedColumnWidth - Wrap the text at a fixed number of character columns from the widget's left side. + [/example] !fn: $wordWrap() Returns the word wrap mode. NoWrap, WidgetWidth, FixedPixelWidth, FixedColumnWidth. !fn: $text() @@ -102,11 +105,11 @@ !fn: $setUnderline() If the bool value is 1 sets the current format to underline; otherwise, if it's 0 sets the current format to no-underline. !fn: $italic() - Returns 1(true) if the current format is italic; otherwise returns 0(false). + Returns 1 (true) if the current format is italic; otherwise returns 0 (false). !fn: $bold() - Returns 1(true) if the current format is bold; otherwise returns 0(false). + Returns 1 (true) if the current format is bold; otherwise returns 0 (false). !fn: $underline() - Returns 1(true) if the current format is underline; otherwise returns 0(false). + Returns 1 (true) if the current format is underline; otherwise returns 0 (false). !fn: $zoomIn() Zooms in on the text by making the base font size range points larger. !fn: $zoomOut() @@ -126,13 +129,16 @@ !fn: $setText() Sets the text edit's text to txt. !fn: $setColor() - Sets the foreground color of this widget to :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. - -array(red:integer,green:integer,blue:integer) - -red:integer,green:integer,blue:integer. + Sets the foreground color of this widget to + Valid values are: + [example] + - 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 [b]red[/b] component, the third and fourth digit specify the [b]green[/b] component + and the last two specify the [b]blue[/b] component. + - array(red:integer, green:integer, blue:integer) + - red:integer, green:integer, blue:integer. + [/example] !fn: $setPointSize() @@ -142,25 +148,28 @@ !fn: $textFormat() Returns the text format: rich text or plain text. !fn: $loadFile() - Load the file specified in the , also html files. + Load the file specified in the , also HTML files. !fn: $isUndoAvailable () - Returns 1(true) if undo is available; otherwise returns 0(false). + Returns 1 (true) if undo is available; otherwise returns 0 (false). !fn: $isRedoAvailable () - Returns 1(true) if redo is available; otherwise returns 0(false). + Returns 1 (true) if redo is available; otherwise returns 0 (false). !fn: $lines() Returns the number of lines in the multilineedit. !fn: $lineOfChar(,) Returns the line number of the line in paragraph par in which the character at position index appears.[br] If there is no such paragraph or no such character at the index position -1 is returned. !fn: $setModified() - Sets whether the document has been modified by the user. Valid Values are 1(true) or 0(false) + Sets whether the document has been modified by the user. Valid Values are 1 (true) or 0 (false) !fn: $setAlignment() - Sets the alignment of the current paragraph to . Valid values are:[br] - - Auto - Aligns according to the language.[b + Sets the alignment of the current paragraph to . + Valid values are: + [example] + - Auto - Aligns according to the language.[br] - Left - Aligns with the left edge.[br] - Right - Aligns with the right edge.[br] - Center - Centers in both dimensions. - Justify - Justify the text. + [/example] */ @@ -586,7 +595,7 @@ bool KvsObject_textedit::functionsetColor(KviKvsObjectFunctionCall * c) { if(pColArray->array()->size() < 3) { - c->error(__tr2qs_ctx("The array passed as parameter must contain at least 3 elements","objects")); + c->error(__tr2qs_ctx("The array passed as parameter must contain at least 3 elements","objects")); return false; } KviKvsVariant * pColR = pColArray->array()->at(0); @@ -595,12 +604,12 @@ bool KvsObject_textedit::functionsetColor(KviKvsObjectFunctionCall * c) if(!(pColR && pColG && pColB)) { - c->error(__tr2qs_ctx("One of the colors array parameters is empty","objects")); + c->error(__tr2qs_ctx("One of the colors array parameters is empty","objects")); return false; } if(!(pColR->asInteger(iColR) && pColG->asInteger(iColG) && pColB->asInteger(iColB))) { - c->error(__tr2qs_ctx("One of the colors array parameters didn't evaluate to an integer","objects")); + c->error(__tr2qs_ctx("One of the colors array parameters didn't evaluate to an integer","objects")); return false; } @@ -631,12 +640,12 @@ bool KvsObject_textedit::functionsetColor(KviKvsObjectFunctionCall * c) } if(c->params()->count() < 3) { - c->error(__tr2qs_ctx("$setColor requires either an array as first parameter or three integers","objects")); + c->error(__tr2qs_ctx("$setColor requires either an array as first parameter or three integers","objects")); return false; } if(!pColArray->asInteger(iColR)) { - c->error(__tr2qs_ctx("The first parameter didn't evaluate to an array nor an integer","objects")); + c->error(__tr2qs_ctx("The first parameter didn't evaluate to an array nor an integer","objects")); return false; } } @@ -724,14 +733,14 @@ bool KvsObject_textedit::functionloadFile(KviKvsObjectFunctionCall * c) KVSO_PARAMETERS_END(c) if ( !QFile::exists(szFile)) { - c->warning(__tr2qs_ctx("I can't find the specified file '%Q'.","objects"),&szFile); + c->warning(__tr2qs_ctx("I can't find the specified file '%Q'.","objects"),&szFile); return true; } QFile file( szFile ); if ( !file.open( QIODevice::ReadOnly ) ) { - c->warning(__tr2qs_ctx("I cannot read the file '%Q'.","objects"),&szFile); + c->warning(__tr2qs_ctx("I can't read the file '%Q'.","objects"),&szFile); return true; } -- cgit v1.3.1-10-gc9f91