diff options
| author | 2015-12-09 12:00:31 +0000 | |
|---|---|---|
| committer | 2015-12-19 02:40:22 +0000 | |
| commit | f4c79ca075042b834ba04adbd32b1973245089a0 (patch) | |
| tree | 8a6d98a8184fbba82f69784bc3bf07d1cbca1009 /src/modules/objects/KvsObject_groupBox.cpp | |
| parent | src/modules typos: capitalize, formatting, consistency and syntax fixes (diff) | |
| download | KVIrc-f4c79ca075042b834ba04adbd32b1973245089a0.tar.gz KVIrc-f4c79ca075042b834ba04adbd32b1973245089a0.tar.bz2 KVIrc-f4c79ca075042b834ba04adbd32b1973245089a0.zip | |
src/modules: typos, consistency capitalize, fomatting and indenting fixes
these contains in addition the whitespace changes
Diffstat (limited to 'src/modules/objects/KvsObject_groupBox.cpp')
| -rw-r--r-- | src/modules/objects/KvsObject_groupBox.cpp | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/src/modules/objects/KvsObject_groupBox.cpp b/src/modules/objects/KvsObject_groupBox.cpp index 51575049d..2aff37437 100644 --- a/src/modules/objects/KvsObject_groupBox.cpp +++ b/src/modules/objects/KvsObject_groupBox.cpp @@ -52,9 +52,9 @@ const int align_cod[] = { /* @doc: groupbox @keyterms: - groupbox object class, + groupbox, group @title: - groupbox class + groupbox object class @type: class @short: @@ -71,15 +71,15 @@ const int align_cod[] = { !fn: $setTitle(<text:String>) Sets the group box title to <text>. !fn: <string> $title() - Returns the group box title text. + Returns the groupbox title text. !fn: $setFlat(<bflag:boolean>) Sets whether the group box is painted flat. Valid Values are 1 or 0. !fn: <boolean> $isFlat() - Returns 1 (true) if the group box is painted flat; otherwise returns 0 (false). + Returns 1 (true) if the groupbox is painted flat; otherwise returns 0 (false). !fn: <boolean> $isCheckable() Returns 1 (true) if the group box has a checkbox in its title; otherwise returns 0 (false). !fn: $setCheckable(<bflag:boolean>) - Sets whether the group box has a checkbox in its title: Valid values are 1 or 0. + Sets whether the groupbox has a checkbox in its title: Valid values are 1 or 0. !fn: $setInsideMargin(<margin:uint>) Sets the the width of the inside margin to m pixels. !fn: <integer> $insideMargin() @@ -91,47 +91,44 @@ const int align_cod[] = { !fn: $addSpace() Adds an empty cell at the next free position. !fn: <string> $alignment() - Returns the alignment of the group box title. + Returns the alignment of the groupbox title. !fn: $setAlignment(<alignment:string>) - Set the alignment of the groupbox; Valid values are Left,Right,HCenter. + Set the alignment of the groupbox; Valid values are: Left, Right, HCenter. !fn: $setOrientation<orientation:string> - Sets the group box's orientation. Valid values are: Horizontal, Vertical. + Sets the groupbox's orientation. Valid values are: Horizontal, Vertical. @examples: [example] - //Let's start. - //First we'll create the main widget. as a dialog + [comment]//First we'll create the main widget. as a dialog[/comment] %widget=$new(dialog) %layout=$new(layout,%widget) - //then the groupbox + [comment]//Then the groupbox[/comment] %gb=$new(groupbox,%widget) %gb->$setTitle(Login) %gb->$setAlignment("Left") - // add the gbox to the main layout + [comment]//Add the groupbox to the main layout[/comment] %layout->$addWidget(%gb,0,0) - // now we create the user field (labels + lineedit) - // in a horizontal box + [comment]//Now we create the user field + (labels + lineedit) in a horizontal box[/comment] %hbox=$new(hbox,%gb) %labeluser=$new(label,%hbox) %labeluser->$settext(User: ) %inputuser=$new(lineedit,%hbox) - //now we create the pass field (labels + lineedit). - // in a horizontal box + [comment]//Now we create the password field + (labels + lineedit) in a horizontal box[/comment] %hbox=$new(hbox,%gb) %labelpass=$new(label,%hbox) %labelpass->$settext(Pass: ) %inputpass=$new(lineedit,%hbox) %inputpass->$setechomode("password") - // now we create the ok/cancel box buttons + [comment]//Now we create the OK/Cancel box buttons[/comment] %hbox=$new(hbox,%gb) %btnok=$new(button,%hbox) %btnok->$settext("OK") %btncancel=$new(button,%hbox) %btncancel->$settext("Cancel") - - //Let's show our nice form + [comment]//Let's show our nice form[/comment] %widget->$show() [/example] - */ KVSO_BEGIN_REGISTERCLASS(KvsObject_groupBox,"groupbox","widget") @@ -275,7 +272,7 @@ KVSO_CLASS_FUNCTION(groupBox,addSpace) CHECK_INTERNAL_POINTER(widget()) kvs_uint_t iSpace; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("colums",KVS_PT_UNSIGNEDINTEGER,0,iSpace) + KVSO_PARAMETER("columns",KVS_PT_UNSIGNEDINTEGER,0,iSpace) KVSO_PARAMETERS_END(c) (((KviTalGroupBox *)widget())->addSpace(iSpace)); return true; |
