[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kturtle/src
From: Thomas Häber <thomas () haeber ! de>
Date: 2006-10-01 2:33:59
Message-ID: 1159670039.501168.30581.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 590833 by haeber:
fixed spelling (EBN)
M +9 -9 canvas.cpp
M +2 -2 interpreter/executer.h
M +2 -2 interpreter/parser.cpp
M +2 -2 interpreter/parser.h
M +1 -1 interpreter/translator.cpp
M +1 -1 interpreter/treenode.h
M +1 -1 interpreter/value.cpp
--- trunk/KDE/kdeedu/kturtle/src/canvas.cpp #590832:590833
@@ -126,7 +126,7 @@
{
QList<QGraphicsItem*> list = scene->items();
foreach (QGraphicsItem* item, list) {
- // delete all but the turtle (who lives on a seperate layer with z-value 1)
+ // delete all but the turtle (who lives on a separate layer with z-value 1)
if (item->zValue() != 1) delete item;
}
}
@@ -358,7 +358,7 @@
// kdDebug(0)<<"Canvas::line(): ***********ERRORRR***********"<<endl;
// return;
// }
-// // kdDebug(0)<<"Canvas::line(); translate by: <<tranlation<<endl;
+// // kdDebug(0)<<"Canvas::line(); translate by: <<translation<<endl;
// line (xa + translation.x() * canvasWidth, ya + translation.y() * canvasHeight,
// xb + translation.x() * canvasWidth, yb + translation.y() * canvasHeight);
// if (cutLoop == true)
@@ -375,9 +375,9 @@
// if ( prevStartPos2 == begin && prevStartPos3 == prevStartPos1 &&
// prevEndPos2 == end && prevEndPos3 == prevEndPos1 )
// {
-// // this is to break the horrible endless loop bug that i cannot fix...
-// // i need more simple reproductions of this bug to really find it
-// // for now i say it is something with QCanvas but i'm likely wrong on thisone
+// // this is to break the horrible endless loop bug that I cannot fix...
+// // I need more simple reproductions of this bug to really find it
+// // for now I say it is something with QCanvas but I'm likely wrong on thisone
// // kdDebug(0)<<"Canvas::endlessLoop TRUE!!"<<endl;
// return true;
// }
@@ -477,8 +477,8 @@
// // This mostly happens because of unlucky rounding, when this happens the line \
is nearly // // crossing a corner of the canvas.
// // This code make sure the line is tranlated back onto the canvas.
-// // The -2 and +2 was just something i learnt from examples... I HAVE NO PROOF \
FOR THIS!
-// // This, luckily, allmost never happens.
+// // The -2 and +2 was just something I learned from examples... I HAVE NO PROOF \
FOR THIS! +// // This, luckily, almost never happens.
// if ( -2 <= x_sT && x_sT <= (canvasWidth + 2) && pointInRange(x_sT, 0, xa, ya, \
xb, yb) ) // {
// returnValue = returnValue + QPoint(0, 1);
@@ -499,7 +499,7 @@
// if ( returnValue == QPoint(0, 0) )
// {
// // kdDebug(0)<<"Canvas::translationFactor: *****This shouldn't happen (1) \
*****"<<endl;
-// // and this doesnt happen, that why +3 and -3 are ok values and the code \
above works. +// // and this doesn't happen, that why +3 and -3 are ok values and \
the code above works. // }
// return returnValue;
// }
@@ -560,7 +560,7 @@
// // read the pixmaps name.0001.png, name.0002.png, ..., name.0035.png: the \
different rotations // // #0000 for 0 or 360, #0001 for 10, #0002 for 20, ..., \
#0018 for 180, etc. //
-// // WARNING if the dir doesnt exists the app will crash!!!
+// // WARNING if the dir doesn't exists the app will crash!!!
// // This will be fixed in qt3.3 and in the current qt-copy
// QPixmap turtlePix = QPixmap(locate("data","kturtle/pics/turtle.0000.png") );
// if ( turtlePix.isNull() )
--- trunk/KDE/kdeedu/kturtle/src/interpreter/executer.h #590832:590833
@@ -46,7 +46,7 @@
* @short Step-wise execution of a node tree, collecting errors in the ErrorList.
*
* The Executer 'executes' the node tree, as yielded by the Parser, step by step.
- * When errors occure they are put in the ErrorList as supplied to the constuctor.
+ * When errors occur they are put in the ErrorList as supplied to the constuctor.
*
* The Executer has a globalVariableTable where is stores the content of variables,
* and a functionTable that contains pointer to the 'learned' functions.
@@ -82,7 +82,7 @@
* @param tree pointer to the base node of the tree as provided
* by the Parser
* @param errorList pointer to a QList for ErrorMessage objects, when
- * error occure they will be stored here
+ * error occur they will be stored here
*/
void initialize(TreeNode* tree, ErrorList* _errorList);
--- trunk/KDE/kdeedu/kturtle/src/interpreter/parser.cpp #590832:590833
@@ -400,8 +400,8 @@
void Parser::appendArguments(TreeNode* node) {
// appends the nodes of arguments to the node, does not do any type/quantity \
checking.
- // this because it's also used for the user defined 'functionCall' where we dont \
know type nor quantity
- // we also dont know if this node is (part of) an argument itself
+ // this because it's also used for the user defined 'functionCall' where we don't \
know type nor quantity + // we also don't know if this node is (part of) an argument \
itself if (currentToken->type() == Token::EndOfLine ||
currentToken->type() == Token::EndOfFile ||
currentToken->type() == Token::ArgumentSeparator ||
--- trunk/KDE/kdeedu/kturtle/src/interpreter/parser.h #590832:590833
@@ -31,7 +31,7 @@
*
* The Parser uses a Tokenizer to read the KTurtle code as tokens.
* It step-by-step parses the tokens to a node tree.
- * When errors occure they are added to the error list.
+ * When errors occur they are added to the error list.
*
* A large part of the code of this class is generated code.
*
@@ -59,7 +59,7 @@
* It creates the 'root' node, and gets the first token.
* @param tokenizer pointer to a Tokenizer
* @param errorList pointer to a QList for ErrorMessage objects, when
- * error occure they will be stored here
+ * error occur they will be stored here
*/
void initialize(Tokenizer* _tokenizer, ErrorList* _errorList);
--- trunk/KDE/kdeedu/kturtle/src/interpreter/translator.cpp #590832:590833
@@ -82,7 +82,7 @@
if (localizer != 0) delete localizer;
-// if (KGlobal::locale()->language() == lang_code) // re-use the global localizer \
TODO maked shure not to delete it! +// if (KGlobal::locale()->language() == \
lang_code) // re-use the global localizer TODO maked sure not to delete it! // \
localizer = KGlobal::locale(); // else
--- trunk/KDE/kdeedu/kturtle/src/interpreter/treenode.h #590832:590833
@@ -52,7 +52,7 @@
/**
* @short Destructor.
- * This deletes the Value and the Token assosiated with this TreeNode.
+ * This deletes the Value and the Token associated with this TreeNode.
* The childList auto-deletes all the childs, which means that deleting
* the root node deletes the whole tree.
*/
--- trunk/KDE/kdeedu/kturtle/src/interpreter/value.cpp #590832:590833
@@ -40,7 +40,7 @@
void Value::setType(int newType) // maybe someday we have to do some type casting \
logic here {
- if (m_type == newType) return; // dont change values when type is not changing
+ if (m_type == newType) return; // don't change values when type is not changing
else switch (newType) {
case Value::Bool:
init();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic