64 lines
1.6 KiB
C++
Executable File
64 lines
1.6 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Settings for sitMapTestApp
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QString>
|
|
#include <nglsettings/nglsettings_settings.h>
|
|
#include <Map/text_style.h>
|
|
#include <Map/grid.h>
|
|
|
|
|
|
namespace NGL {
|
|
class Settings;
|
|
}
|
|
|
|
namespace MAP
|
|
{
|
|
namespace Settings
|
|
{
|
|
// read map settings
|
|
double mapBasePointX();
|
|
double mapBasePointY();
|
|
double mapCenterPointX();
|
|
double mapCenterPointY();
|
|
int mapWkid();
|
|
double mapObjectsTextScale();
|
|
double mapScale();
|
|
bool mapGridVisible();
|
|
bool mapFunctionDialogVisible();
|
|
QString mapGridType();
|
|
double mapRotationDegree();
|
|
QString mapSymbologyType();
|
|
QString mapURL();
|
|
QString centerPointMgrs() ;
|
|
QString basePoint();
|
|
int XMin();
|
|
int YMin();
|
|
int XMax();
|
|
int YMax();
|
|
|
|
// general functions for map objects
|
|
QString objectIdentifier(const QString &prefix, int id);
|
|
bool getObjectBoolAttribute(const QString &prefix, const QString &postfix, int objId, bool defaultValue = false);
|
|
int getObjectIntAttribute(const QString &prefix, const QString &postfix, int objId, int defaultValue = 0);
|
|
QString getObjectStringAttribute(const QString &prefix, const QString &postfix, int objId, const QString &defaultValue = QString());
|
|
QPointF getPoint(const QString &prefix, int objId, int nr );
|
|
|
|
// conversion functions from strings
|
|
SituationMap::LinePattern getLinePattern(const QString &pattern);
|
|
SituationMap::FillPattern getFillPattern(const QString &pattern);
|
|
SituationMap::GridType getGridType(const QString &pattern);
|
|
|
|
//!< The real NGL::Settings - object
|
|
NGL::Settings *settings();
|
|
|
|
}
|
|
};
|
|
|
|
|