]> Shamusworld >> Repos - architektonas/blobdiff - src/mainapp/commands.cpp
Removed Snapper class; still refactoring Snapper/Preview...
[architektonas] / src / mainapp / commands.cpp
index 2b31db528182d0d8ebc25b4219a7bb11d2b07039..083d45fa6509e109976680ee8282bddea899fce8 100644 (file)
@@ -3,7 +3,9 @@
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
 //
 // JLH = James L. Hammons <jlhamm@acm.org>
 //
@@ -14,8 +16,8 @@
 
 #include "commands.h"
 
-#include "rs_dialogfactory.h"
-#include "rs_debug.h"
+#include "dialogfactory.h"
+#include "debug.h"
 
 // Class variable
 Commands * Commands::uniqueInstance = NULL;
@@ -207,18 +209,18 @@ RS2::ActionType Commands::cmdToAction(const QString & cmd)
 //             if (*it.current() == ret)
                if (*it.value() == ret)
                {
-                       if (RS_DialogFactory::instance() != NULL)
+                       if (DialogFactory::instance() != NULL)
                        {
-                               //if (RS_DIALOGFACTORY!=NULL) {
-                               RS_DEBUG->print("Commands::cmdToAction: commandMessage");
-                                       //RS_DIALOGFACTORY->commandMessage(tr("Command: %1")
+                               //if (DIALOGFACTORY!=NULL) {
+                               DEBUG->print("Commands::cmdToAction: commandMessage");
+                                       //DIALOGFACTORY->commandMessage(tr("Command: %1")
                                        //      .arg(full));
-                               RS_DialogFactory::instance()->commandMessage(tr("Command: %1").arg(full));
-                               RS_DEBUG->print("Commands::cmdToAction: commandMessage: ok");
+                               DialogFactory::instance()->commandMessage(tr("Command: %1").arg(full));
+                               DEBUG->print("Commands::cmdToAction: commandMessage: ok");
                                //}
                        }
                        else
-                               RS_DEBUG->print("Commands::cmdToAction: dialog factory instance is NULL");
+                               DEBUG->print("Commands::cmdToAction: dialog factory instance is NULL");
 
                        break;
                }
@@ -389,8 +391,8 @@ QString Commands::command(const QString & cmd)
        else if (cmd == "undo")
                return tr("undo");
 
-//     RS_DEBUG->print(RS_Debug::D_WARNING, "Commands::command: command '%s' unknown", cmd.latin1());
-       RS_DEBUG->print(RS_Debug::D_WARNING, "Commands::command: command '%s' unknown", cmd.toLatin1().data());
+//     DEBUG->print(Debug::D_WARNING, "Commands::command: command '%s' unknown", cmd.latin1());
+       DEBUG->print(Debug::D_WARNING, "Commands::command: command '%s' unknown", cmd.toLatin1().data());
        return "";
 }