+++ /dev/null
-#ifndef COMMON_H
-#define COMMON_H
-
-#include <QtCore>
-
-static const int TILE_SIZE_X = 256; ///< Tile image size in x direction
-static const int TILE_SIZE_Y = 256; ///< Tile image size in y direction
-
-static const int MIN_MAP_ZOOM_LEVEL = 0; ///< Minimum zoom level
-static const int MAX_MAP_ZOOM_LEVEL = 18; ///< Maximum zoom level
-static const int MIN_MAP_SCENE_NORMAL_LEVEL = MAX_MAP_ZOOM_LEVEL + 1;
-
-static const int ZOOM_FPS = 30; ///< FPS for the zoom effect
-static const qreal ZOOM_TIME = 0.25; ///< Length of the zoom effect (seconds)
-
-static const qreal MIN_LATITUDE = -85.0511; ///< Minimum latitude value
-static const qreal MAX_LATITUDE = 85.0511; ///< Maximum latitude value
-static const qreal MIN_LONGITUDE = -180.0; ///< Minimum longitude value
-static const qreal MAX_LONGITUDE = 180.0; ///< Maximum longitude value
-
-static const int GRID_WIDTH = 4;
-static const int GRID_HEIGHT = 4;
-static const int GRID_PADDING = 1;
-
-/**
-* \var UNDEFINED
-* \brief Value to be used when zoom level, tile numbers or position are not defined
-*/
-static const int UNDEFINED = -1;
-
-#endif // COMMON_H
-#-------------------------------------------------
-#
+# -------------------------------------------------
# Project created by QtCreator 2010-03-26T07:57:35
-#
-#-------------------------------------------------
-
+# -------------------------------------------------
TARGET = ../situare
TEMPLATE = app
-
-
SOURCES += main.cpp \
ui/mainwindow.cpp \
ui/mapviewscreen.cpp \
map/mapscene.cpp \
map/maptile.cpp \
map/mapfetcher.cpp
-
HEADERS += ui/mainwindow.h \
ui/mapviewscreen.h \
ui/listviewscreen.h \
map/mapscene.h \
map/maptile.h \
map/mapfetcher.h \
- common.h
-
+ map/mapcommon.h
QT += network \
- webkit
-
+ webkit
# use don't use OpenGL when building in scratchbox
-!maemo5 {
+!maemo5 {
QT += opengl
message(OpenGL built in)
message(Make sure you have OpenGL development headers installed)
}
# -----------------------------------------------------------------
-# Debian packetizing additions
+# Debian packetizing additions
# -----------------------------------------------------------------
-unix {
-#VARIABLES
- isEmpty(PREFIX) {
- PREFIX = /usr
- }
-BINDIR = $$PREFIX/bin
-DATADIR =$$PREFIX/share
-
-DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
-
-#MAKE INSTALL
-
-desktop.path = $$DATADIR/applications/hildon
-desktop.files += situare.desktop
-INSTALLS += desktop
-
-icon26.path = $$DATADIR/icons/hicolor/26x26/apps
-icon26.files += situare.png
-INSTALLS += icon26
-
-target.path = $$BINDIR
-INSTALLS += target
+unix {
+ # VARIABLES
+ isEmpty(PREFIX):PREFIX = /usr
+ BINDIR = $$PREFIX/bin
+ DATADIR = $$PREFIX/share
+ DEFINES += DATADIR=\\\"$$DATADIR\\\" \
+ PKGDATADIR=\\\"$$PKGDATADIR\\\"
+
+ # MAKE INSTALL
+ desktop.path = $$DATADIR/applications/hildon
+ desktop.files += situare.desktop
+ INSTALLS += desktop
+ icon26.path = $$DATADIR/icons/hicolor/26x26/apps
+ icon26.files += situare.png
+ INSTALLS += icon26
+ target.path = $$BINDIR
+ INSTALLS += target
}