29 #include <QMetaObject>
31 #include <QStringList>
35 class TLMAPWIDGET_EXPORT
MapType:
public QObject
50 GoogleSatelliteChina=24,
52 GoogleTerrainChina=28,
57 OpenStreetMapSurfer=34,
58 OpenStreetMapSurferTerrain=35,
71 ArcGIS_ShadedRelief=799,
88 ArcGIS_MapsLT_Map=1000,
89 ArcGIS_MapsLT_OrtoFoto=1001,
90 ArcGIS_MapsLT_Map_Labels=1002,
91 ArcGIS_MapsLT_Map_Hybrid=1003,
93 PergoTurkeyMap = 2001,
94 SigPacSpainMap = 3001,
97 GoogleSatelliteKorea=4002,
98 GoogleLabelsKorea=4003,
99 GoogleHybridKorea=4005,
105 static QString StrByType(Types
const& value)
107 QMetaObject metaObject =
MapType().staticMetaObject;
108 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
109 QString
s=metaEnum.valueToKey(value);
112 static Types TypeByStr(QString
const& value)
114 QMetaObject metaObject =
MapType().staticMetaObject;
115 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
116 Types
s=(Types)metaEnum.keyToValue(value.toLatin1());
119 static QStringList TypesList()
122 QMetaObject metaObject =
MapType().staticMetaObject;
123 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
124 for(
int x=0;
x<metaEnum.keyCount();++
x)
126 ret.append(metaEnum.key(
x));