28 #ifndef UAVMAPFOLLOWTYPE_H
29 #define UAVMAPFOLLOWTYPE_H
31 #include <QMetaObject>
33 #include <QStringList>
34 #include "../core/corecommon.h"
36 namespace mapcontrol {
59 static QString StrByType(Types
const& value)
62 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
63 QString
s=metaEnum.valueToKey(value);
66 static Types TypeByStr(QString
const& value)
69 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
70 Types
s=(Types)metaEnum.keyToValue(value.toLatin1());
73 static QStringList TypesList()
77 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
78 for(
int x=0;
x<metaEnum.keyCount();++
x)
80 ret.append(metaEnum.key(
x));
88 #endif // UAVMAPFOLLOWTYPE_H