diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-23 00:47:58 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-23 00:47:58 -0500 |
| commit | 4e4ee87168b6555dbaa48e8439b3d2134d46c17a (patch) | |
| tree | 92714e716ca2ec67082258a01324afd4f6e5a248 | |
| parent | a54035d84d0b61fe85749b6588a7d5b769b614d0 (diff) | |
| download | sigen-4e4ee87168b6555dbaa48e8439b3d2134d46c17a.tar.gz sigen-4e4ee87168b6555dbaa48e8439b3d2134d46c17a.tar.xz sigen-4e4ee87168b6555dbaa48e8439b3d2134d46c17a.zip | |
Restore Direction and add include to SigmodWrapper
| -rw-r--r-- | sigmod/Direction.h | 49 | ||||
| -rw-r--r-- | sigscript/SigmodWrapper.h | 1 |
2 files changed, 50 insertions, 0 deletions
diff --git a/sigmod/Direction.h b/sigmod/Direction.h new file mode 100644 index 00000000..68e97df6 --- /dev/null +++ b/sigmod/Direction.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009 Abshiehk Mukherjee <linkinpark342@gmail.com + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** + * \file sigmod/Direction.h + */ + +#ifndef SIGMOD_DIRECTION +#define SIGMOD_DIRECTION + +// Qt includes +#include <QtCore/QMetaType> +#include <QtCore/QStringList> + +namespace Sigmod +{ +/** + * \enum Direction + * \brief Enumeration of directions. + */ +enum Direction +{ + D_Up = 0, + D_Down = 1, + D_Left = 2, + D_Right = 3, + D_None = 4 +}; +/// Strings for the directions. +const QStringList DirectionStr = QStringList() << "Up" << "Down" << "Left" << "Right" << "None"; + +} +Q_DECLARE_METATYPE(Sigmod::Direction) + +#endif diff --git a/sigscript/SigmodWrapper.h b/sigscript/SigmodWrapper.h index ebb0b582..26762bf3 100644 --- a/sigscript/SigmodWrapper.h +++ b/sigscript/SigmodWrapper.h @@ -25,6 +25,7 @@ #include "../sigcore/Hat.h" // Sigmod includes +#include "../sigmod/Direction.h" #include "../sigmod/Sigmod.h" #include "../sigmod/Stat.h" |
