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_workspace.cpp | 60 +++++++++++++++-------------- 1 file changed, 31 insertions(+), 29 deletions(-) (limited to 'src/modules/objects/KvsObject_workspace.cpp') diff --git a/src/modules/objects/KvsObject_workspace.cpp b/src/modules/objects/KvsObject_workspace.cpp index d715a05c6..52ece77fb 100644 --- a/src/modules/objects/KvsObject_workspace.cpp +++ b/src/modules/objects/KvsObject_workspace.cpp @@ -72,14 +72,15 @@ !fn: $activateNextWindow() Activates the next window in the child window chain. !fn: $activatePrevWindow() - Activates the prev window in the child window chain.[br] - - |----CLASS EXAMPLE----|[br] - |-Start:[br] - #Let's start.[br] - #We start the main class creation, in the constructor we do the[br] - #widget's showing, to give a particular pop-up[br] - #creation appearance.[br] + Activates the previous window in the child window chain.[br] + @examples: + [example] + [comment] + //Let's start. + //We start the main class creation, in the constructor we do the + //widget's showing, to give a particular pop-up + //creation appearance. + [/comment] class (ws,widget)[br] {[br] constructor[br] @@ -91,13 +92,14 @@ $$->$show()[br] }[br] }[br] - #We create the new workspace, and we set a 640x480 size with widget $resize[br] - #command.[br] + [comment]//We create the new workspace, and we set a 640x480 size with widget $resize command[/comment][br] %Workspace=$new(workspace)[br] %Workspace->$resize(640,480)[br] - #Now we make a cycling costruction of the widgets(look at the class),[br] - #and give to the widgets a random X and Y coordinates.[br] - #It takes few seconds to show the effects, be patient.[br] + [comment] + //Now we make a cycling construction of the widgets(look at the class), + //and give to the widgets a random X and Y coordinates. + //It takes few seconds to show the effects, be patient. + [/comment] %I=0[br] while (%I<100)[br] {[br] @@ -106,20 +108,21 @@ %Widget=$new(ws,%Workspace)[br] %I++[br] }[br] - #Let's show the fireworks! EnJoY![br] + [comment]//Let's show the fireworks! EnJoY![/comment] %Workspace->$show()[br] - |-Start:[br] - |-|EXAMPLE n2:[br] - #This is like the first example but it has a particular animation effect.[br] + [/example] + [example] + [b]Example 2:[/b] + [comment]//This is like the first example but it has a particular animation effect.[/comment] %Hex[]=$array(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)[br] class (ws,widget)[br] {[br] constructor[br] {[br] - $$->$setGeometry(%X,%Y,100,100)[br] - $$->%lay=$new(layout,$$)[br] - %i=0[br] - while (%i<10)[br] + $$->$setGeometry(%X,%Y,100,100)[br] + $$->%lay=$new(layout,$$)[br] + %i=0[br] + while (%i<10)[br] {[br] $$->%label=$new(label,$$)[br] $$->%label->$settext("Another class by N\&G")[br] @@ -138,9 +141,9 @@ }[br] %Workspace=$new(workspace)[br] %Workspace->$resize(640,480)[br] - %Workspace->$setWindowTitle("Hit the mouse to stop cycling windows....")[br] + %Workspace->$setWindowTitle("Hit the mouse to stop cycling windows...")[br] %I=0[br] - %Cicle=1[br] + %Cycle=1[br] while (%I<20)[br] {[br] %X=$rand(500)[br] @@ -151,21 +154,20 @@ %Workspace->$show[br] timer (cycle,3000)[br] {[br] - if (%Cicle==1) %Workspace->$tile()[br] - if (%Cicle==2)[br] + if (%Cycle==1) %Workspace->$tile()[br] + if (%Cycle==2)[br] {[br] %Workspace->$cascade()[br] - %Cicle=1[br] + %Cycle=1[br] return[br] }[br] - %Cicle++[br] + %Cycle++[br] }[br] privateimpl(%Workspace,mousepressevent)[br] {[br] if ($istimer(cycle) == 1) killtimer cycle[br] }[br] - #-|End.[br] - + [/example] */ KVSO_BEGIN_REGISTERCLASS(KvsObject_workspace,"workspace","widget") -- cgit v1.3.1-10-gc9f91