]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionblocksexplode.cpp
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionblocksexplode.cpp
index 969e0973a43fae2522a83d814bf5efcaab95b784..f0de0d69570a9c4b03db5c81dea44f29b22f2037 100644 (file)
@@ -10,7 +10,7 @@
 ** Foundation and appearing in the file LICENSE.GPL included in the
 ** packaging of this file.
 **
-** Licensees holding valid qcadlib Professional Edition licenses may use 
+** Licensees holding valid qcadlib Professional Edition licenses may use
 ** this file in accordance with the qcadlib Commercial License
 ** Agreement provided with the Software.
 **
 /**
  * Constructor.
  */
-RS_ActionBlocksExplode::RS_ActionBlocksExplode(RS_EntityContainer& container,
-        RS_GraphicView& graphicView)
-        :RS_PreviewActionInterface("Blocks Explode",
-                           container, graphicView) {
+RS_ActionBlocksExplode::RS_ActionBlocksExplode(RS_EntityContainer & container, RS_GraphicView & graphicView):
+       RS_PreviewActionInterface("Blocks Explode",
+               container, graphicView)
+{
 }
 
+RS_ActionBlocksExplode::~RS_ActionBlocksExplode()
+{
+}
 
-
-RS_ActionBlocksExplode::~RS_ActionBlocksExplode() {}
-
-
-QAction* RS_ActionBlocksExplode::createGUIAction(RS2::ActionType /*type*/, QObject* /*parent*/)
+QAction * RS_ActionBlocksExplode::createGUIAction(RS2::ActionType /*type*/, QObject * /*parent*/)
 {
-    QAction * action = new QAction(tr("&Explode"), 0);
+       QAction * action = new QAction(tr("&Explode"), 0);
 //    QAction* action = new QAction(tr("Explode"),
 //                                  tr("&Explode"),
 //                                  QKeySequence(), NULL);
-    action->setStatusTip(tr("Explode Blocks and other Entity Groups"));
+       action->setStatusTip(tr("Explode Blocks and other Entity Groups"));
 
-    return action;
+       return action;
 }
 
+void RS_ActionBlocksExplode::init(int status)
+{
+       RS_PreviewActionInterface::init(status);
 
-void RS_ActionBlocksExplode::init(int status) {
-    RS_PreviewActionInterface::init(status);
-
-    trigger();
-    finish();
+       trigger();
+       finish();
 }
 
-
-
-void RS_ActionBlocksExplode::trigger() {
-    RS_Modification m(*container, graphicView);
-    m.explode();
+void RS_ActionBlocksExplode::trigger()
+{
+       RS_Modification m(*container, graphicView);
+       m.explode();
 }
 
-
 // EOF