]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actioninfototallength.cpp
In the middle of major refactoring...
[architektonas] / src / actions / actioninfototallength.cpp
similarity index 62%
rename from src/actions/rs_actioninfototallength.cpp
rename to src/actions/actioninfototallength.cpp
index 40b2605e1d971e02e34bd778e51a31264991d9ee..ae58f007d3ba6da66aa189b283ce3398b0d00044 100644 (file)
@@ -1,4 +1,4 @@
-// rs_actioninfototallength.cpp
+// actioninfototallength.cpp
 //
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // JLH  06/04/2010  Added this text. :-)
 //
 
-#include "rs_actioninfototallength.h"
+#include "actioninfototallength.h"
 
 #include "rs_dialogfactory.h"
 
-RS_ActionInfoTotalLength::RS_ActionInfoTotalLength(RS_EntityContainer & container, GraphicView & graphicView): RS_ActionInterface("Info Total Length",
+ActionInfoTotalLength::ActionInfoTotalLength(RS_EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Total Length",
                container, graphicView)
 {
 }
 
-RS_ActionInfoTotalLength::~RS_ActionInfoTotalLength()
+ActionInfoTotalLength::~ActionInfoTotalLength()
 {
 }
 
-void RS_ActionInfoTotalLength::init(int status)
+void ActionInfoTotalLength::init(int status)
 {
-       RS_ActionInterface::init(status);
+       ActionInterface::init(status);
        trigger();
 }
 
-void RS_ActionInfoTotalLength::trigger()
+void ActionInfoTotalLength::trigger()
 {
-       RS_DEBUG->print("RS_ActionInfoTotalLength::trigger()");
+       RS_DEBUG->print("ActionInfoTotalLength::trigger()");
 
        double len = 0.0;
 
-       for (RS_Entity * e = container->firstEntity(RS2::ResolveNone);
-            e != NULL;
-            e = container->nextEntity(RS2::ResolveNone))
-
+       for(RS_Entity * e=container->firstEntity(RS2::ResolveNone); e!=NULL;
+               e=container->nextEntity(RS2::ResolveNone))
+       {
                if (e->isVisible() && e->isSelected())
                {
                        double l = e->getLength();
@@ -53,6 +52,7 @@ void RS_ActionInfoTotalLength::trigger()
                        else
                                len += l;
                }
+       }
 
        if (len > 0.0)
                RS_DIALOGFACTORY->commandMessage(
@@ -64,7 +64,7 @@ void RS_ActionInfoTotalLength::trigger()
        finish();
 }
 
-void RS_ActionInfoTotalLength::updateToolBar()
+void ActionInfoTotalLength::updateToolBar()
 {
        if (RS_DIALOGFACTORY != NULL)
        {
@@ -74,5 +74,3 @@ void RS_ActionInfoTotalLength::updateToolBar()
                        RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
        }
 }
-
-// EOF