[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdewebdev/kommander
From:       Andras Mantia <amantia () kde ! org>
Date:       2007-10-06 18:24:09
Message-ID: 1191695049.516393.3080.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 722145 by amantia:

Make @echo really work.

BUG: 138705

 M  +1 -0      ChangeLog  
 M  +1 -0      widget/functionlib.cpp  
 M  +6 -0      widget/kommanderfunctions.cpp  


--- branches/KDE/3.5/kdewebdev/kommander/ChangeLog #722144:722145
@@ -5,6 +5,7 @@
 	o don't close the dialogs with ESC (just like in real applications)
 	o fix ExecButton.setEnabled() [#113624]
 	o use icon instead of "..." in the file selector [#109985]
+	o make @echo really work [#138705]
 
 Thu Sep 14 20:01:18 2006 - Michal Rudolf <mrudolf@kdewebdev.org>
 (actually imported from a work branch on Sep 29, 2007 by Andras Mantia <amantia@kde.org>)
--- branches/KDE/3.5/kdewebdev/kommander/widget/functionlib.cpp #722144:722145
@@ -147,6 +147,7 @@
 {
   for (uint i=0; i<params.count(); i++)
     std::cout << params[i].toString();
+  fflush(stdout);
   return ParseNode();
 }
 
--- branches/KDE/3.5/kdewebdev/kommander/widget/kommanderfunctions.cpp #722144:722145
@@ -14,6 +14,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <iostream>
 #include <stdlib.h> 
 
 #include <qfile.h>
@@ -64,6 +65,11 @@
     case Kommander::debug:
       qDebug("%s", args[0].latin1());
       return QString::null;
+    case Kommander::echo:
+      for (uint i=0; i<args.count(); i++)
+         std::cout << args[i].latin1();
+      fflush(stdout);
+      return QString::null;
     case Kommander::readSetting:
     {
       QString fname = fileName();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic