]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_commandevent.h
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / base / rs_commandevent.h
index 5a0dd5b8fb8fc3c5ac24ac8b1874d60e1da3aa49..d766588ade3b861f29428f8684fef4cf49bd96e1 100644 (file)
@@ -1,47 +1,19 @@
 #ifndef RS_COMMANDEVENT_H
 #define RS_COMMANDEVENT_H
 
+#include <QtCore>
+
 /**
  * Command Events.
  */
 class RS_CommandEvent
 {
        public:
-               /**
-               * Creates a new command event that is not yet accepted.
-               *
-               * @param cmd the command that was triggered.
-               */
-               RS_CommandEvent(const QString & cmd)
-               {
-                       this->cmd = cmd;
-                       accepted = false;
-               }
-
-               /**
-               * @return the command that was triggered, usually by
-               * the user.
-               */
-               QString getCommand()
-               {
-                       return cmd;
-               }
-
-               /**
-               * Sets the event state to accepted.
-               */
-               void accept()
-               {
-                       accepted = true;
-               }
+               RS_CommandEvent(const QString & cmd);
 
-               /**
-               * @return Whether the event was already accepted or not.
-               */
-               bool isAccepted()
-               {
-                       return accepted;
-               }
+               QString getCommand();
+               void accept();
+               bool isAccepted();
 
        protected:
                QString cmd;