xdxf code refactoring
authorJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Fri, 20 Aug 2010 09:40:59 +0000 (11:40 +0200)
committerJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Fri, 20 Aug 2010 09:40:59 +0000 (11:40 +0200)
14 files changed:
trunk/src/base/xsl.xsl
trunk/src/plugins/xdxf/src/TranslationXdxf.cpp
trunk/src/plugins/xdxf/src/TranslationXdxf.h
trunk/src/plugins/xdxf/src/XdxfCachingDialog.cpp
trunk/src/plugins/xdxf/src/XdxfCachingDialog.h
trunk/src/plugins/xdxf/src/XdxfDictDialog.cpp
trunk/src/plugins/xdxf/src/XdxfDictDialog.h
trunk/src/plugins/xdxf/src/XdxfLoadDialog.cpp
trunk/src/plugins/xdxf/src/XdxfLoadDialog.h
trunk/src/plugins/xdxf/src/XdxfSettingsDialog.cpp
trunk/src/plugins/xdxf/src/XdxfSettingsDialog.h
trunk/src/plugins/xdxf/src/xdxfplugin.cpp
trunk/src/plugins/xdxf/src/xdxfplugin.h
trunk/src/plugins/xdxf/tests/test.cpp

index 3972b6b..39096bc 100644 (file)
@@ -3,12 +3,14 @@
 
 <xsl:template match="/">
        <html>
-       <body>
-       <table border="1" WIDTH="100%">
-       <xsl:for-each select="ar/dict"> 
-               <xsl:apply-templates/>
-       </xsl:for-each>
-       </table>
+       <body bgcolor="#FF0000">
+       <tr bgcolor="#FF0000">
+               <table border="1" WIDTH="100%">
+               <xsl:for-each select="ar/dict"> 
+                       <xsl:apply-templates/>
+               </xsl:for-each>
+               </table>
+       </tr>   
        </body>
        </html>
 </xsl:template> 
index ec28e52..caf16ba 100644 (file)
@@ -18,6 +18,9 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
+/*! \file TranslationXdxf.cpp
+*/
+
 
 #include "TranslationXdxf.h"
 #include <QDebug>
index 81939d1..6a6f880 100644 (file)
@@ -18,7 +18,8 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
+/*! \file TranslationXdxf.h
+*/
 #ifndef TRANSLATIONXDXF_H
 #define TRANSLATIONXDXF_H
 
index 7eee54b..8cb8e45 100644 (file)
@@ -19,6 +19,8 @@
 
 *******************************************************************************/
 
+/*! \file XdxfCachingDialog.cpp
+*/
 //Created by Mateusz Półrola
 
 #include "XdxfCachingDialog.h"
index 7ab79c5..93eac93 100644 (file)
@@ -18,7 +18,8 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
+/*! \file XdxfCachingDialog.h
+*/
 //Created by Mateusz Półrola
 
 #ifndef XDXFCACHINGDIALOG_H
index 8dd27ad..1d00913 100644 (file)
@@ -19,6 +19,8 @@
 
 *******************************************************************************/
 
+/*! \file XdxfDictDialog.cpp
+*/
 //Created by Mateusz Półrola
 
 #include "XdxfDictDialog.h"
index 187e3a8..f822b2e 100644 (file)
@@ -18,7 +18,8 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
+/*! \file XdxfDictDialog.h
+*/
 //Created by Mateusz Półrola
 
 #ifndef XDXFDICTDIALOG_H
index 310d63b..2cf4a00 100644 (file)
@@ -19,6 +19,8 @@
 
 *******************************************************************************/
 
+/*! \file XdxfLoadDialog.cpp
+*/
 //Created by Mateusz Półrola
 
 #include "XdxfLoadDialog.h"
index 3b102fc..ff8e43f 100644 (file)
@@ -18,7 +18,8 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
+/*! \file XdxfLoadDialog.h
+*/
 //Created by Mateusz Półrola
 
 #ifndef XDXFLOADDIALOG_H
index d46960f..26e0176 100644 (file)
@@ -19,6 +19,8 @@
 
 *******************************************************************************/
 
+/*! \file XdxfSettingsDialog.cpp
+*/
 //Created by Mateusz Półrola
 
 #include "XdxfSettingsDialog.h"
index 25671eb..da1cc5e 100644 (file)
@@ -18,7 +18,8 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
+/*! \file XdxfSettingsDialog.h
+*/
 //Created by Mateusz Półrola
 
 #ifndef XDXFSETTINGSDIALOG_H
index 3e30d16..55b8a84 100644 (file)
@@ -19,6 +19,9 @@
 
 *******************************************************************************/
 
+/*! \file xdxfplugin.cpp
+*/
+
 #include "xdxfplugin.h"
 #include <QDebug>
 #include <QFile>
index f964251..d678a31 100644 (file)
@@ -19,6 +19,9 @@
 
 *******************************************************************************/
 
+
+/*! \file xdxfplugin.h
+*/
 #ifndef XDXFPLUGIN_H
 #define XDXFPLUGIN_H
 
index 8500794..f06c05c 100644 (file)
@@ -160,11 +160,11 @@ void XdxfTest::searchWordListFile() {
 void XdxfTest::stop() {
 
     XdxfPlugin xdxfPluginB(this);
-
-    Settings *settings=new Settings;
     settings->setValue("path","../tests/dict.xdxf");
     CommonDictInterface *xdxfPlugin = xdxfPluginB.getNew(settings);
 
+    Settings *settings=new Settings;
+
     QString string("*");
     QFuture<QList<Translation*> > future = QtConcurrent::run(xdxfPlugin, &CommonDictInterface::searchWordList, string, 10);
     QList<Translation*> te5 = future.result();