From kde-commits Mon Jan 05 23:05:18 2004 From: Cies Breijs Date: Mon, 05 Jan 2004 23:05:18 +0000 To: kde-commits Subject: kdenonbeta/kturtle Message-Id: <20040105230518.DDEAF1420 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107334398011205 CVS commit by cies: crap! M +6 -4 TODO 1.11 M +1 -1 src/kturtle.cpp 1.9 M +15 -2 src/lexer.cpp 1.4 --- kdenonbeta/kturtle/TODO #1.10:1.11 @@ -79,6 +79,11 @@ 04/01/2003 we'll see after the editor part is done + + annma: color-picker: maybe the code could be pasted directly in the editor at the cursor point (see after the editor part is done) + + + cies: a press-F1-for-context-help... Press F1 while in a command and see help on it @@ -97,8 +102,4 @@ -cies: Get us bugs.kde.org entity -// done - - cies: rename the resized() signal in canvas.* to CanvasResized() or any apropriate other letter combi, to stop the clash with QWidgets resized() signal. Off course the connect() in kturtle.cpp should follow. [while typing this i could have fixed it :-)] @@ -112,4 +113,5 @@ + cies: remove some debug crap from the canvas.cpp, I refer to leave it there till mid.03.2003. --- kdenonbeta/kturtle/src/kturtle.cpp #1.8:1.9 @@ -534,5 +534,5 @@ void MainWindow::checkTranslationFile() kdDebug(0)<<"--1--"<config(); + KConfig *config = kapp->config(); config->setGroup("language"); config->writeEntry("TranslationFile", locate("appdata", "data/logokeywords.en_US.xml") ); --- kdenonbeta/kturtle/src/lexer.cpp #1.3:1.4 @@ -2,5 +2,8 @@ #include -#include "settings.h" +#include +#include + +//#include "settings.h" #include "lexer.h" @@ -84,5 +87,15 @@ void Lexer::getKeywords() { QDomDocument KeywordsXML; - QFile xmlfile( Settings::translationFilePath() ); // Read the specified translation file + KConfig *config = kapp->config(); + + // if no translationfile is specified -> return + if ( config->readPathEntry("TranslationFile").isNull() ) { + return; + } + + QFile xmlfile( config->readPathEntry("TranslationFile") ); // Read the specified translation file +// if ( xmlfile.exists() ) { // if no xmlfile is specified -> return +// return; +// } if ( !xmlfile.open(IO_ReadOnly) ) { return;