Address GPS map issue (#184)

This commit is contained in:
Alex Spataru 2024-04-01 02:42:21 -05:00
parent b2d06dcf10
commit d4f7fbc0e3
310 changed files with 5778 additions and 40318 deletions

View File

@ -26,8 +26,8 @@ env:
QML_DIR_WIN: "assets\\qml"
PUBLISHER: "Alex Spataru"
REPO_DIR: "/home/runner/work/Serial-Studio"
QT_VERSION: 6.5.3
QT_MODULES: qtserialport qtconnectivity qt5compat
QT_VERSION: 6.6.2
QT_MODULES: qtserialport qtconnectivity qt5compat qtpositioning qtlocation
QMAKE: qmake6
CORES: 16
@ -45,24 +45,17 @@ jobs:
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
- name: '⚙️ Cache Qt'
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-qtcachedir-${{env.QT_VERSION}}
- name: '⚙️ Install Qt'
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
modules: ${{env.QT_MODULES}}
aqtversion: '==2.0.0'
cached: ${{steps.cache-qt.outputs.cache-hit}}
cache: true
install-deps: 'true'
- name: '⚙️ Install dependencies'
run: |
@ -101,29 +94,22 @@ jobs:
# macOS build
#
build-mac:
runs-on: macos-12
name: '🍎 macOS Monterey'
runs-on: macos-latest
name: '🍎 macOS'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
- name: '⚙️ Cache Qt'
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-qtcachedir-${{env.QT_VERSION}}
- name: '⚙️ Install Qt'
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
modules: ${{env.QT_MODULES}}
aqtversion: '==2.0.0'
cached: ${{steps.cache-qt.outputs.cache-hit}}
cache: true
install-deps: 'true'
- name: '🚧 Compile application'
run: |
@ -146,12 +132,12 @@ jobs:
# Windows build
#
build-windows:
runs-on: windows-2022
name: '🧊 Windows Server 2022'
runs-on: windows-latest
name: '🧊 Windows'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
@ -161,20 +147,13 @@ jobs:
arch: x64
spectre: true
- name: '⚙️ Cache Qt'
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-qtcachedir-${{env.QT_VERSION}}
- name: '⚙️ Install Qt'
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
modules: ${{env.QT_MODULES}}
aqtversion: '==2.0.0'
cached: ${{steps.cache-qt.outputs.cache-hit}}
cache: true
install-deps: 'true'
- name: '🚧 Compile application'
run: |

View File

@ -48,9 +48,12 @@ QT += svg
QT += core
QT += quick
QT += widgets
QT += location
QT += bluetooth
QT += serialport
QT += positioning
QT += printsupport
QT += quickcontrols2
equals(QT_MAJOR_VERSION, 6) {

View File

@ -180,5 +180,6 @@
<file>window-border/unmaximize.svg</file>
<file>icons/paste.svg</file>
<file>scripts/frame-parser.js</file>
<file>qml/Widgets/GpsMap.qml</file>
</qresource>
</RCC>

View File

@ -20,10 +20,10 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../Widgets" as Widgets

View File

@ -20,10 +20,10 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../Widgets" as Widgets

View File

@ -58,6 +58,21 @@ Item {
rightMargin: window.borderWidth
bottomMargin: window.borderWidth
}
//
// Hack: render a GPS map using QML code instead of QtWidgets
//
Loader {
anchors.fill: parent
asynchronous: true
active: widget.isGpsMap
visible: widget.isGpsMap && status == Loader.Ready
sourceComponent: Widgets.GpsMap {
altitude: widget.gpsAltitude
latitude: widget.gpsLatitude
longitude: widget.gpsLongitude
}
}
}
}
@ -114,6 +129,18 @@ Item {
widgetIndex: root.widgetIndex
widgetVisible: _window.visible
anchors.margins: _window.radius
Loader {
anchors.fill: parent
asynchronous: true
active: externalWidget.isGpsMap
visible: externalWidget.isGpsMap && status == Loader.Ready
sourceComponent: Widgets.GpsMap {
altitude: externalWidget.gpsAltitude
latitude: externalWidget.gpsLatitude
longitude: externalWidget.gpsLongitude
}
}
}
}

View File

@ -20,10 +20,10 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../Widgets" as Widgets
import "SetupPanes" as SetupPanes

View File

@ -23,7 +23,7 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings as QtSettings
import QtCore as QtSettings
import "Devices" as Devices
import "../../Windows" as Windows

View File

@ -0,0 +1,249 @@
/*
* Copyright (c) 2020-2024 Alex Spataru <https://github.com/alex-spataru>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtLocation
import QtPositioning
import QtQuick.Layouts
import QtQuick.Controls
Item {
id: root
//
// Custom properties to control the map from other QML files
//
property real latitude: 0
property real longitude: 0
property real altitude: 0 // Not used yet :(
onLatitudeChanged: {
if (autoCenter.checked)
centerMap()
}
onLongitudeChanged: {
if (autoCenter.checked)
centerMap()
}
//
// Centers the map to the current coordinates
//
function centerMap() {
map.center = QtPositioning.coordinate(root.latitude, root.longitude)
}
//
// Save settings accross runs
//
Settings {
property alias mapTilt: tiltSlider.value
property alias mapZoom: zoomSlider.value
property alias mapCenter: autoCenter.checked
property alias mapVariant: mapType.currentIndex
}
//
// UI controls
//
ColumnLayout {
spacing: app.spacing
anchors.fill: parent
anchors.margins: app.spacing
RowLayout {
spacing: app.spacing
Label {
text: qsTr("Map Type:")
Layout.alignment: Qt.AlignVCenter
}
ComboBox {
id: mapType
Layout.fillWidth: true
textRole: "description"
model: map.supportedMapTypes
Layout.alignment: Qt.AlignVCenter
onCurrentIndexChanged: map.activeMapType = map.supportedMapTypes[currentIndex]
}
}
//
// Center map + zoom slider
//
RowLayout {
CheckBox {
id: autoCenter
checked: true
checkable: true
Layout.leftMargin: -6
Layout.alignment: Qt.AlignHCenter
text: qsTr("Center on coordinate")
onCheckedChanged: {
if (checked)
root.centerMap()
}
}
Slider {
id: zoomSlider
value: map.zoomLevel
Layout.fillWidth: true
to: map.maximumZoomLevel
from: map.minimumZoomLevel
Layout.alignment: Qt.AlignHCenter
onValueChanged: {
if (map.zoomLevel !== value)
map.zoomLevel = value
}
}
}
//
// Map
//
RowLayout {
//
// Tilt slider
//
Slider {
id: tiltSlider
orientation: Qt.Vertical
Layout.fillHeight: true
from: map.minimumTilt
to: map.maximumTilt
value: map.tilt
onValueChanged: {
if (map.tilt != value)
map.tilt = value
}
}
//
// Map
//
Rectangle {
id: mapRect
clip: true
Layout.fillWidth: true
Layout.fillHeight: true
border {
width: 2
color: Cpp_ThemeManager.border
}
gradient: Gradient {
GradientStop {
color: "#6ba9d1"
position: Math.max(0.4,
(map.maximumTilt - map.tilt) /
map.maximumTilt)
}
GradientStop {
position: 0
color: "#283e51"
}
}
Map {
id: map
smooth: true
antialiasing: true
color: "transparent"
anchors.fill: parent
copyrightsVisible: false
anchors.margins: parent.border.width
tilt: 27
zoomLevel: 16
MapQuickItem {
anchorPoint: Qt.point(sourceItem.width / 2,
sourceItem.height/ 2)
coordinate: QtPositioning.coordinate(root.latitude,
root.longitude)
sourceItem: Rectangle {
id: dot
width: 20
height: 20
opacity: 0.8
border.width: 2
radius: width / 2
color: "#ff0000"
border.color: "#ffffff"
}
}
plugin: Plugin {
preferred: "osm"
PluginParameter {
name: "osm.mapping.highdpi_tiles"
value: true
}
}
}
Rectangle {
id: smog
height: 32
opacity: 0.5
Connections {
target: map
function onTiltChanged() {
var x = map.tilt / map.maximumTilt
smog.y = (1.666 * x - 1.416) * mapRect.height
}
}
gradient: Gradient {
GradientStop {
position: 0
color: "transparent"
}
GradientStop {
position: 0.5
color: "#dedede"
}
GradientStop {
position: 1
color: "transparent"
}
}
anchors {
left: parent.left
right: parent.right
}
}
}
}
}
}

View File

@ -20,10 +20,10 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import SerialStudio as SerialStudio
Item {

View File

@ -20,11 +20,11 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Window
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../FramelessWindow" as FramelessWindow

View File

@ -20,11 +20,11 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Window
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../FramelessWindow" as FramelessWindow

View File

@ -20,11 +20,11 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Window
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../Panes"
import "../Windows"

View File

@ -20,11 +20,11 @@
* THE SOFTWARE.
*/
import QtCore
import QtQuick
import QtQuick.Window
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.settings
import "../ProjectEditor"
import "../Widgets" as Widgets

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1
libs/Libraries.pri vendored
View File

@ -46,7 +46,6 @@ include($$PWD/qwt/qwt.pri)
include($$PWD/qtcsv/qtcsv.pri)
include($$PWD/qmqtt/qmqtt.pri)
include($$PWD/OpenSSL/OpenSSL.pri)
include($$PWD/QMapControl/QMapControl.pri)
include($$PWD/QRealFourier/QRealFourier.pri)
include($$PWD/QSimpleUpdater/QSimpleUpdater.pri)
include($$PWD/QSourceHighlite/QSourceHighlite.pri)

View File

@ -1,340 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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 2 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, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View File

@ -1,165 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

File diff suppressed because it is too large Load Diff

View File

@ -1,63 +0,0 @@
QT += gui
QT += network
QT += widgets
VERSION = 0.9.7.9
INCLUDEPATH += $$PWD/src
DEFINES += QMAPCONTROL_PROJECT_INCLUDE_SRC
HEADERS += $$PWD/src/curve.h \
$$PWD/src/geometry.h \
$$PWD/src/imagemanager.h \
$$PWD/src/layer.h \
$$PWD/src/layermanager.h \
$$PWD/src/linestring.h \
$$PWD/src/mapadapter.h \
$$PWD/src/mapcontrol.h \
$$PWD/src/mapnetwork.h \
$$PWD/src/point.h \
$$PWD/src/tilemapadapter.h \
$$PWD/src/wmsmapadapter.h \
$$PWD/src/circlepoint.h \
$$PWD/src/imagepoint.h \
$$PWD/src/gps_position.h \
$$PWD/src/osmmapadapter.h \
$$PWD/src/maplayer.h \
$$PWD/src/geometrylayer.h \
$$PWD/src/googlemapadapter.h \
$$PWD/src/openaerialmapadapter.h \
$$PWD/src/fixedimageoverlay.h \
$$PWD/src/emptymapadapter.h \
$$PWD/src/arrowpoint.h \
$$PWD/src/invisiblepoint.h \
$$PWD/src/qmapcontrol_global.h \
$$PWD/src/bingapimapadapter.h \
$$PWD/src/googleapimapadapter.h
SOURCES += $$PWD/src/curve.cpp \
$$PWD/src/geometry.cpp \
$$PWD/src/imagemanager.cpp \
$$PWD/src/layer.cpp \
$$PWD/src/layermanager.cpp \
$$PWD/src/linestring.cpp \
$$PWD/src/mapadapter.cpp \
$$PWD/src/mapcontrol.cpp \
$$PWD/src/mapnetwork.cpp \
$$PWD/src/point.cpp \
$$PWD/src/tilemapadapter.cpp \
$$PWD/src/wmsmapadapter.cpp \
$$PWD/src/circlepoint.cpp \
$$PWD/src/imagepoint.cpp \
$$PWD/src/gps_position.cpp \
$$PWD/src/osmmapadapter.cpp \
$$PWD/src/maplayer.cpp \
$$PWD/src/geometrylayer.cpp \
$$PWD/src/googlemapadapter.cpp \
$$PWD/src/openaerialmapadapter.cpp \
$$PWD/src/fixedimageoverlay.cpp \
$$PWD/src/arrowpoint.cpp \
$$PWD/src/invisiblepoint.cpp \
$$PWD/src/emptymapadapter.cpp \
$$PWD/src/bingapimapadapter.cpp \
$$PWD/src/googleapimapadapter.cpp

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
include(../../QMapControl.pri)
DEPENDPATH += src
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = ../bin
TARGET = Citymap
QT+=network
QT+=gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): cache()
# Input
SOURCES += src/citymap.cpp \
src/main.cpp \
src/dialogs.cpp
HEADERS += src/citymap.h \
src/dialogs.h

View File

@ -1,5 +0,0 @@
This demo appclication shows more features of the QMapControl. It shows images, which changes its size when changing the zoomlevel. You can display/hide layers and choose different map providers. Also it demonstrates more possibilities for user interaction:
- notes can be added to any coordinate (a QTextEdit is used for editing the note)
- the user can measure distances between two points

View File

@ -1,219 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>0.9.3</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<ignoreparts/>
<projectname>Citymap</projectname>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description></description>
<defaultencoding></defaultencoding>
<versioncontrol/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
</tree>
</kdevfileview>
<kdevcppsupport>
<qt>
<used>true</used>
<version>4</version>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<qmake>/usr/lib/qt4/bin/qmake</qmake>
<designer>/usr/lib/qt4/bin</designer>
<root>/usr/lib/qt4</root>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>false</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet></prefixGet>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>QMapControl</pcs>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>sw</toc>
<toc>w3c-dom-level2-html</toc>
<toc>w3c-svg</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell></dbgshell>
<breakpoints/>
<programargs/>
<gdbpath>/usr/bin/gdb</gdbpath>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<configGdbScript></configGdbScript>
<runShellScript></runShellScript>
<runGdbScript></runGdbScript>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
<breakpoints/>
</kdevdebugger>
<kdevtrollproject>
<run>
<mainprogram>./bin/Citymap</mainprogram>
<programargs></programargs>
<directoryradio>executable</directoryradio>
<globaldebugarguments></globaldebugarguments>
<globalcwd>./bin/</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<general>
<activedir></activedir>
</general>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin></makebin>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<workspace>
<openfiles/>
</workspace>
<kdevfilecreate>
<filetypes/>
<useglobaltypes>
<type ext="ui" />
<type ext="qrc" />
<type ext="cpp" />
<type ext="h" />
<type ext="ts" />
</useglobaltypes>
</kdevfilecreate>
<kdevdocumentation>
<projectdoc>
<docsystem>Doxygen Documentation Collection</docsystem>
<docurl>citymap.tag</docurl>
<usermanualurl/>
</projectdoc>
</kdevdocumentation>
<substmap>
<APPNAME>Citymap</APPNAME>
<APPNAMELC>citymap</APPNAMELC>
<APPNAMESC>Citymap</APPNAMESC>
<APPNAMEUC>CITYMAP</APPNAMEUC>
<AUTHOR>Kai Winter</AUTHOR>
<DESIGNER>/usr/lib/qt4/bin</DESIGNER>
<EMAIL>kaiwinter@gmx.de</EMAIL>
<LICENSE>GPL</LICENSE>
<LICENSEFILE>COPYING</LICENSEFILE>
<QMAKE>/usr/lib/qt4/bin</QMAKE>
<VERSION>0.9.3</VERSION>
<YEAR>2008</YEAR>
<dest>.</dest>
</substmap>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
</kdevelop>

View File

@ -1,647 +0,0 @@
/*!
* \example citymap.cpp
* This demo appclication shows more features of the QMapControl.
* It shows images, which changes its size when changing the zoomlevel.
* You can display/hide layers and choose different map providers.
* Also it demonstrates more possibilities for user interaction:<br/>
* - notes can be added to any coordinate (a QTextEdit is used for editing the note)<br/>
* - the user can measure distances between two points
*
* \image html sample_citymap.png "screenshot"
*/
#include "citymap.h"
#include <QTextEdit>
#include <QVBoxLayout>
#include <QApplication>
#include <QPushButton>
#include <QAction>
#include <QMenuBar>
#include <QStatusBar>
#include <QLabel>
#include <QTimer>
Citymap::Citymap(QWidget *)
{
// create MapControl
mc = new MapControl(QSize(380, 540));
mc->showScale(true);
// display the MapControl in the application
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(mc);
layout->setContentsMargins(0, 0, 0, 0);
QWidget *w = new QWidget();
w->setLayout(layout);
setCentralWidget(w);
notepixmap = new QPixmap(QApplication::applicationDirPath() + "/images/note.png");
coord1 = QPointF();
coord2 = QPointF();
mapadapter = new OSMMapAdapter();
// create a layer with the mapadapter and type MapLayer
l = new MapLayer("Custom Layer", mapadapter);
mc->addLayer(l);
notes = new GeometryLayer("Notes", mapadapter);
createTours();
addSights();
addPubs();
addMuseums();
addZoomButtons();
createActions();
createMenus();
connect(mc, SIGNAL(viewChanged(QPointF, int)), this,
SLOT(mapControlZoomChanged(QPointF, int)), Qt::QueuedConnection);
mc->addLayer(notes);
connect(notes, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(editNote(Geometry *, QPoint)));
mc->setView(QPointF(8.26, 50));
mc->setZoom(13);
ignoreClicks = false;
addingNote = false;
noteID = 0;
notetextedit = new QTextEdit(mc);
notetextedit->setGeometry(0, 0, 200, 100);
notepoint = new Point(0, 0, notetextedit, ".", Point::TopLeft);
notepoint->setVisible(false);
notes->addGeometry(notepoint);
statusBar = new QStatusBar(this);
setStatusBar(statusBar);
loadingProgress = new QLabel("");
statusBar->addWidget(loadingProgress);
loadingProgressTimer = new QTimer(this);
connect(loadingProgressTimer, SIGNAL(timeout()), this, SLOT(updateProgress()),
Qt::QueuedConnection);
loadingProgressTimer->start(500); // update every 500ms
cacheTiles(true);
}
void Citymap::updateProgress()
{
QString progressText = QString(" %1 tiles remaining").arg(mc->loadingQueueSize());
loadingProgress->setText(progressText);
}
void Citymap::cacheTiles(bool qEnabled)
{
if (qEnabled)
{
mc->enablePersistentCache();
}
else
{
mc->enablePersistentCache(QDir());
}
}
void Citymap::createTours()
{
QPen *pen = new QPen(QColor(0, 0, 255, 100));
pen->setWidth(5);
QList<Point *> points;
points << new Point(8.2606, 50.0051);
points << new Point(8.2602, 50.0050);
points << new Point(8.2598, 50.0044);
points << new Point(8.2569, 50.0057);
points << new Point(8.2595, 50.0083);
points << new Point(8.2587, 50.0086);
points << new Point(8.2589, 50.0100);
points << new Point(8.2590, 50.0105);
pub_tour = new LineString(points, "", pen);
notes->addGeometry(pub_tour);
points.clear();
points << new Point(8.25987, 50.0018);
points << new Point(8.26192, 50.0019);
points << new Point(8.26301, 50.0031);
points << new Point(8.26459, 50.0026);
points << new Point(8.26601, 50.004);
points << new Point(8.26781, 50.0033);
points << new Point(8.27052, 50.0054);
points << new Point(8.2697, 50.0059);
museum_tour = new LineString(points, "", pen);
notes->addGeometry(museum_tour);
points.clear();
points << new Point(8.26015, 50.0015);
points << new Point(8.2617, 50.0012);
points << new Point(8.26423, 50.0002);
points << new Point(8.26698, 50.0024);
points << new Point(8.27065, 50.0012);
points << new Point(8.27152, 50.0016);
points << new Point(8.27225, 50.0004);
points << new Point(8.27333, 49.9994);
points << new Point(8.26946, 49.9983);
points << new Point(8.27105, 49.9973);
points << new Point(8.27024, 49.9972);
points << new Point(8.26833, 49.9958);
sights_tour = new LineString(points, "", pen);
notes->addGeometry(sights_tour);
}
void Citymap::addSights()
{
sights = new GeometryLayer("Sehenswürdigkeiten", mapadapter);
mc->addLayer(sights);
Point *dom = new ImagePoint(
8.274167, 49.998889,
QCoreApplication::applicationDirPath() + "/images/180-dom.jpg", "Mainzer Dom");
dom->setBaselevel(17);
sights->addGeometry(dom);
Point *stephan = new ImagePoint(8.268611, 49.995556,
QCoreApplication::applicationDirPath()
+ "/images/180-stephan.jpg",
"St. Stephan");
stephan->setBaselevel(17);
sights->addGeometry(stephan);
Point *quitin = new ImagePoint(8.272222, 50.000833,
QCoreApplication::applicationDirPath()
+ "/images/180-quintin.jpg",
"St. Quintin");
quitin->setBaselevel(17);
sights->addGeometry(quitin);
connect(sights, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(geometryClicked(Geometry *, QPoint)));
}
void Citymap::addPubs()
{
pubs = new GeometryLayer("Kneipe", mapadapter);
mc->addLayer(pubs);
Point *bagatelle = new Point(
8.2606, 50.0052,
QPixmap(QCoreApplication::applicationDirPath() + "/images/pub.png"), "Bagatelle");
pubs->addGeometry(bagatelle);
Point *nirgendwo = new Point(
8.2595, 50.0048,
QPixmap(QCoreApplication::applicationDirPath() + "/images/pub.png"), "Nirgendwo");
pubs->addGeometry(nirgendwo);
Point *krokodil = new Point(
8.2594, 50.0106,
QPixmap(QCoreApplication::applicationDirPath() + "/images/pub.png"), "Krokodil");
pubs->addGeometry(krokodil);
connect(pubs, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(geometryClickEventKneipe(Geometry *, QPoint)));
}
void Citymap::addMuseums()
{
museum = new GeometryLayer("Museen", mapadapter);
mc->addLayer(museum);
Point *rgzm = new ImagePoint(
8.269722, 50.006111,
QCoreApplication::applicationDirPath() + "/images/180-rgzm.jpg", "rgzm");
rgzm->setBaselevel(17);
museum->addGeometry(rgzm);
Point *lm = new ImagePoint(
8.26778, 50.00385, QCoreApplication::applicationDirPath() + "/images/180-lm.jpg",
"lm");
lm->setBaselevel(17);
museum->addGeometry(lm);
connect(museum, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(geometryClicked(Geometry *, QPoint)));
}
void Citymap::geometryClicked(Geometry *geometry, QPoint)
{
if (ignoreClicks || addingNote)
return;
InfoDialog *infodialog = new InfoDialog(this);
infodialog->setWindowTitle(geometry->name());
if (geometry->name() == "Mainzer Dom")
{
infodialog->setInfotext(
"<h1>Mainzer Dom</h1><p><img src=\"images/180-dom.jpg\" align=\"left\"/>Der "
"Hohe Dom zu Mainz ist die Bischofskirche der Diözese Mainz und steht unter "
"dem Patrozinium des heiligen Martin von Tours. Der Ostchor ist dem Hl. "
"Stephan geweiht. Der zu den Kaiserdomen zählende Bau ist in seiner heutigen "
"Form eine dreischiffige romanische Säulenbasilika, die in ihren Anbauten "
"sowohl gotische als auch barocke Elemente aufweist.</p>");
}
else if (geometry->name() == "St. Stephan")
{
infodialog->setInfotext(
"<h1>St. Stephan</h1><p><img src=\"images/180-stephan.jpg\" "
"align=\"left\"/>Die katholische Pfarrkirche Sankt Stephan in Mainz wurde "
"990 von Erzbischof Willigis auf der höchsten Erhebung der Stadt gegründet. "
"Auftraggeberin war höchstwahrscheinlich die Kaiserwitwe Theophanu. Willigis "
"wollte mit ihr die Gebetsstätte des Reiches schaffen. In der Kirche war "
"ursprünglich ein Stift untergebracht. Der Propst des Stiftes verwaltete "
"eines der Archidiakonate (mittelalterliche Organisationseinheit, ähnlich "
"den heutigen Dekanaten) des Erzbistums.</p>");
}
else if (geometry->name() == "St. Quintin")
{
infodialog->setInfotext(
"<h1>St. Quintin</h1><p><img src=\"images/180-quintin.jpg\" "
"align=\"left\"/>Die Kirche St. Quintin in Mainz ist die Pfarrkirche der "
"ältesten nachgewiesenen Pfarrei der Stadt.");
}
else if (geometry->name() == "rgzm")
{
infodialog->setInfotext(
"<h1>Römisch-Germanisches Zentralmuseum</h1><p><img "
"src=\"images/180-rgzm.jpg\" align=\"left\"/>Das Römisch-Germanische "
"Zentralmuseum (RGZM) in Mainz ist ein Forschungsinstitut für Vor- und "
"Frühgeschichte, das von Bund und Ländern getragen wird und zur "
"Leibniz-Gemeinschaft deutscher Forschungseinrichtungen gehört. Gegliedert "
"in mehrere Abteilungen, arbeitet das Institut im Bereich der Alten Welt "
"sowie seiner Kontaktzonen von der Altsteinzeit bis ins Mittelalter.");
}
else if (geometry->name() == "lm")
{
infodialog->setInfotext(
"<h1>Landesmuseum Mainz</h1><p><img src=\"images/180-lm.jpg\" "
"align=\"left\"/>Das Landesmuseum Mainz ist eines der ältesten Museen in "
"Deutschland. Eine seiner Vorgängerinstitutionen, die Städtische "
"Gemäldesammlung, wurde bereits 1803 von Jean-Antoine Chaptal auf "
"Veranlassung Napoléon Bonapartes durch eine Schenkung von 36 Gemälden "
"gegründet. Das Museum, welches sich heute im ehemaligen kurfürstlichen "
"Marstall befindet, gehört zusammen mit dem Römisch-Germanischen "
"Zentralmuseum und dem Gutenbergmuseum zu den bedeutenden Museen in Mainz. "
"Seine kunst- und kulturgeschichtliche Sammlung erstreckt sich von der "
"Vorgeschichte über die römische Zeit, dem Mittelalter und Barock bis hin "
"zur Jugendstilzeit und der Kunst des 20. Jahrhunderts.");
}
if (geometry->name() != "")
infodialog->showMaximized();
}
void Citymap::geometryClickEventKneipe(Geometry *geometry, QPoint)
{
if (ignoreClicks || addingNote)
return;
InfoDialog *infodialog = new InfoDialog(this);
infodialog->setWindowTitle(geometry->name());
infodialog->setInfotext("<h1>" + geometry->name() + "</h1>");
infodialog->showNormal();
}
void Citymap::addZoomButtons()
{
// create buttons as controls for zoom
QPushButton *zoomin = new QPushButton("+");
QPushButton *zoomout = new QPushButton("-");
zoomin->setMaximumWidth(50);
zoomout->setMaximumWidth(50);
connect(zoomin, SIGNAL(clicked(bool)), mc, SLOT(zoomIn()));
connect(zoomout, SIGNAL(clicked(bool)), mc, SLOT(zoomOut()));
// add zoom buttons to the layout of the MapControl
QVBoxLayout *innerlayout = new QVBoxLayout;
innerlayout->addWidget(zoomin);
innerlayout->addWidget(zoomout);
mc->setLayout(innerlayout);
}
void Citymap::createActions()
{
toggleSights = new QAction(tr("Show Sights"), this);
toggleSights->setCheckable(true);
toggleSights->setChecked(true);
connect(toggleSights, SIGNAL(triggered(bool)), sights, SLOT(setVisible(bool)));
togglePub = new QAction(tr("Show Pubs"), this);
togglePub->setCheckable(true);
togglePub->setChecked(true);
connect(togglePub, SIGNAL(triggered(bool)), pubs, SLOT(setVisible(bool)));
toggleMuseum = new QAction(tr("Show Museums"), this);
toggleMuseum->setCheckable(true);
toggleMuseum->setChecked(true);
connect(toggleMuseum, SIGNAL(triggered(bool)), museum, SLOT(setVisible(bool)));
toggleSightTour = new QAction(tr("Show Sight Tour"), this);
toggleSightTour->setCheckable(true);
toggleSightTour->setChecked(true);
connect(toggleSightTour, SIGNAL(triggered(bool)), sights_tour,
SLOT(setVisible(bool)));
togglePubTour = new QAction(tr("Show Pub Tour"), this);
togglePubTour->setCheckable(true);
togglePubTour->setChecked(true);
connect(togglePubTour, SIGNAL(triggered(bool)), pub_tour, SLOT(setVisible(bool)));
toggleMuseumTour = new QAction(tr("Show Museum Tour"), this);
toggleMuseumTour->setCheckable(true);
toggleMuseumTour->setChecked(true);
connect(toggleMuseumTour, SIGNAL(triggered(bool)), museum_tour,
SLOT(setVisible(bool)));
addNoteAction = new QAction(tr("Add Note"), this);
connect(addNoteAction, SIGNAL(triggered(bool)), this, SLOT(addNote()));
toolsDistance = new QAction(tr("Calculate Distance"), this);
connect(toolsDistance, SIGNAL(triggered(bool)), this, SLOT(calcDistance()));
toolsLocalDiskCache = new QAction(tr("Cache Tiles Locally"), this);
toolsLocalDiskCache->setCheckable(true);
toolsLocalDiskCache->setChecked(true);
connect(toolsLocalDiskCache, SIGNAL(triggered(bool)), this, SLOT(cacheTiles(bool)));
QActionGroup *mapproviderGroup = new QActionGroup(this);
osmAction = new QAction(tr("OpenStreetMap"), mapproviderGroup);
googleActionMap = new QAction(tr("Google: Roadmap (default)"), mapproviderGroup);
googleActionSatellite = new QAction(tr("Google: Satellite"), mapproviderGroup);
googleActionSatellite = new QAction(tr("Google: Satellite"), mapproviderGroup);
googleActionTerrain = new QAction(tr("Google: Terrain"), mapproviderGroup);
googleActionHybrid = new QAction(tr("Google: Hybrid"), mapproviderGroup);
osmAction->setCheckable(true);
googleActionMap->setCheckable(true);
googleActionSatellite->setCheckable(true);
googleActionTerrain->setCheckable(true);
googleActionHybrid->setCheckable(true);
osmAction->setChecked(true);
connect(mapproviderGroup, SIGNAL(triggered(QAction *)), this,
SLOT(mapproviderSelected(QAction *)));
QActionGroup *mapZoomGroup = new QActionGroup(this);
for (int i = 0; i <= 17; ++i)
{
QString title = QString("Zoom %1").arg(i);
QAction *action = new QAction(title, mapZoomGroup);
action->setCheckable(true);
zoomActions << action;
}
connect(mapZoomGroup, SIGNAL(triggered(QAction *)), this,
SLOT(mapZoomSelected(QAction *)));
}
void Citymap::createMenus()
{
layerMenu = menuBar()->addMenu(tr("&Layer"));
layerMenu->addAction(toggleSights);
layerMenu->addAction(togglePub);
layerMenu->addAction(toggleMuseum);
tourMenu = menuBar()->addMenu(tr("T&ours"));
tourMenu->addAction(toggleSightTour);
tourMenu->addAction(togglePubTour);
tourMenu->addAction(toggleMuseumTour);
toolsMenu = menuBar()->addMenu(tr("&Tools"));
toolsMenu->addAction(addNoteAction);
toolsMenu->addAction(toolsDistance);
toolsMenu->addAction(toolsLocalDiskCache);
mapMenu = menuBar()->addMenu(tr("&Map Provider"));
mapMenu->addAction(osmAction);
mapMenu->addAction(googleActionMap);
mapMenu->addAction(googleActionSatellite);
mapMenu->addAction(googleActionTerrain);
mapMenu->addAction(googleActionHybrid);
zoomMenu = menuBar()->addMenu(tr("&Zoom Level"));
foreach (QAction *action, zoomActions)
{
zoomMenu->addAction(action);
}
}
void Citymap::addNote()
{
addingNote = true;
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(writeNote(const QMouseEvent *, const QPointF)));
}
void Citymap::writeNote(const QMouseEvent *, const QPointF coord)
{
Point *p = new Point(coord.x(), coord.y(), *notepixmap, QString::number(++noteID),
Point::BottomLeft);
currentnoteID = noteID;
p->setBaselevel(16);
p->setMinsize(QSize(12, 10));
p->setMaxsize(QSize(47, 40));
notes->addGeometry(p);
notetextedit->clear();
notepoint->setCoordinate(coord);
notepoint->setVisible(true);
mc->updateRequestNew();
disconnect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(writeNote(const QMouseEvent *, const QPointF)));
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(hideNote(const QMouseEvent *, const QPointF)));
}
void Citymap::hideNote(const QMouseEvent *evnt, const QPointF)
{
if (addingNote && evnt->type() == QEvent::MouseButtonDblClick)
{
addingNote = false;
notepoint->setVisible(false);
mc->updateRequestNew();
// save text
notestext[currentnoteID] = notetextedit->toPlainText();
disconnect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)),
this, SLOT(hideNote(const QMouseEvent *, const QPointF)));
}
}
void Citymap::editNote(Geometry *geom, QPoint)
{
addingNote = true;
currentnoteID = QVariant(geom->name()).toInt();
notetextedit->setPlainText(notestext[currentnoteID]);
notepoint->setCoordinate(geom->points().at(0)->coordinate());
notepoint->setVisible(true);
mc->updateRequestNew();
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(hideNote(const QMouseEvent *, const QPointF)));
}
void Citymap::resizeEvent(QResizeEvent *qEvent)
{
Q_UNUSED(qEvent);
if (mc)
{
mc->resize(size());
}
}
void Citymap::calcDistance()
{
ignoreClicks = true;
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(calcDistanceClick(const QMouseEvent *, const QPointF)));
}
void Citymap::calcDistanceClick(const QMouseEvent *evnt, const QPointF coord)
{
if (coord1 == QPointF() && evnt->type() == QEvent::MouseButtonPress)
{
coord1 = coord;
l->addGeometry(
new ImagePoint(coord1.x(), coord1.y(),
QCoreApplication::applicationDirPath() + "/images/flag.png",
"", Point::BottomRight));
mc->updateRequestNew();
}
else if (coord2 == QPointF() && evnt->type() == QEvent::MouseButtonPress)
{
coord2 = coord;
double PI = acos(-1.0);
double a1 = coord1.x() * (PI / 180.0);
;
double b1 = coord1.y() * (PI / 180.0);
;
double a2 = coord2.x() * (PI / 180.0);
;
double b2 = coord2.y() * (PI / 180.0);
;
double r = 6378;
double km = acos(cos(a1) * cos(b1) * cos(a2) * cos(b2)
+ cos(a1) * sin(b1) * cos(a2) * sin(b2) + sin(a1) * sin(a2))
* r;
QList<Point *> points;
points.append(new Point(coord1.x(), coord1.y()));
QPixmap *pixm = new QPixmap(100, 20);
pixm->fill(Qt::transparent);
QPainter pain(pixm);
pain.setFont(QFont("Helvetiva", 6));
pain.drawText(pixm->rect(), QString().setNum(km, 'f', 3) + " km");
pain.end();
points.append(new Point(coord2.x(), coord2.y(), *pixm, "", Point::BottomLeft));
l->addGeometry(new LineString(points));
mc->updateRequestNew();
coord1 = QPointF();
coord2 = QPointF();
ignoreClicks = false;
disconnect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)),
this, SLOT(calcDistanceClick(const QMouseEvent *, const QPointF)));
}
}
void Citymap::mapControlZoomChanged(const QPointF &coordinate, int zoom) const
{
Q_UNUSED(coordinate);
if (zoomActions.at(zoom))
{
zoomActions.at(zoom)->setChecked(true);
}
}
void Citymap::mapZoomSelected(QAction *action)
{
mc->setZoom(zoomActions.indexOf(action));
}
void Citymap::mapproviderSelected(QAction *action)
{
if (action == osmAction)
{
int zoom = mapadapter->adaptedZoom();
mc->setZoom(0);
mapadapter = new OSMMapAdapter();
l->setMapAdapter(mapadapter);
sights->setMapAdapter(mapadapter);
museum->setMapAdapter(mapadapter);
pubs->setMapAdapter(mapadapter);
notes->setMapAdapter(mapadapter);
mc->updateRequestNew();
mc->setZoom(zoom);
}
else if (action == googleActionMap)
{
int zoom = mapadapter->adaptedZoom();
mc->setZoom(0);
mapadapter = new GoogleMapAdapter();
l->setMapAdapter(mapadapter);
sights->setMapAdapter(mapadapter);
museum->setMapAdapter(mapadapter);
pubs->setMapAdapter(mapadapter);
notes->setMapAdapter(mapadapter);
mc->updateRequestNew();
mc->setZoom(zoom);
}
else if (action == googleActionSatellite)
{
int zoom = mapadapter->adaptedZoom();
mc->setZoom(0);
mapadapter = new GoogleMapAdapter(GoogleMapAdapter::satellite);
l->setMapAdapter(mapadapter);
sights->setMapAdapter(mapadapter);
museum->setMapAdapter(mapadapter);
pubs->setMapAdapter(mapadapter);
notes->setMapAdapter(mapadapter);
mc->updateRequestNew();
mc->setZoom(zoom);
}
else if (action == googleActionTerrain)
{
int zoom = mapadapter->adaptedZoom();
mc->setZoom(0);
mapadapter = new GoogleMapAdapter(GoogleMapAdapter::terrain);
l->setMapAdapter(mapadapter);
sights->setMapAdapter(mapadapter);
museum->setMapAdapter(mapadapter);
pubs->setMapAdapter(mapadapter);
notes->setMapAdapter(mapadapter);
mc->updateRequestNew();
mc->setZoom(zoom);
}
else if (action == googleActionHybrid)
{
int zoom = mapadapter->adaptedZoom();
mc->setZoom(0);
mapadapter = new GoogleMapAdapter(GoogleMapAdapter::hybrid);
l->setMapAdapter(mapadapter);
sights->setMapAdapter(mapadapter);
museum->setMapAdapter(mapadapter);
pubs->setMapAdapter(mapadapter);
notes->setMapAdapter(mapadapter);
mc->updateRequestNew();
mc->setZoom(zoom);
}
}
Citymap::~Citymap()
{
delete mc;
delete mapadapter;
delete notepixmap;
delete sights;
delete notes;
delete pubs;
delete museum;
}

View File

@ -1,112 +0,0 @@
#ifndef CITYMAP_H
#define CITYMAP_H
#include <mapcontrol.h>
#include <osmmapadapter.h>
#include <googlemapadapter.h>
#include <maplayer.h>
#include <geometrylayer.h>
#include <linestring.h>
#include <imagepoint.h>
#include "dialogs.h"
#include <QMainWindow>
class QLabel;
using namespace qmapcontrol;
class Citymap : public QMainWindow
{
Q_OBJECT
public:
Citymap(QWidget *parent = 0);
~Citymap();
private:
MapControl *mc;
MapAdapter *mapadapter;
QPixmap *notepixmap;
Layer *sights;
Layer *museum;
Layer *pubs;
Layer *notes;
void addZoomButtons();
void createTours();
void createActions();
void createMenus();
QMenu *layerMenu;
QMenu *tourMenu;
QMenu *toolsMenu;
QMenu *mapMenu;
QMenu *zoomMenu;
QAction *toggleSights;
QAction *togglePub;
QAction *toggleMuseum;
QAction *togglePubTour;
QAction *toggleMuseumTour;
QAction *toggleSightTour;
QAction *addNoteAction;
QAction *toolsDistance;
QAction *toolsLocalDiskCache;
QAction *osmAction;
QAction *googleActionMap;
QAction *googleActionSatellite;
QAction *googleActionTerrain;
QAction *googleActionHybrid;
QList<QAction *> zoomActions;
QStatusBar *statusBar;
bool ignoreClicks;
bool addingNote;
void addSights();
void addPubs();
void addMuseums();
QPointF coord1;
QPointF coord2;
Layer *l;
LineString *pub_tour;
LineString *museum_tour;
LineString *sights_tour;
QTextEdit *notetextedit;
Point *notepoint;
int noteID;
int currentnoteID;
QHash<int, QString> notestext;
QLabel *loadingProgress;
QTimer *loadingProgressTimer;
public slots:
void hideNote(const QMouseEvent *evnt, const QPointF coordinate);
void geometryClicked(Geometry *geometry, QPoint point);
void geometryClickEventKneipe(Geometry *geometry, QPoint point);
void addNote();
void writeNote(const QMouseEvent *, const QPointF);
void calcDistance();
void calcDistanceClick(const QMouseEvent *, const QPointF);
void mapControlZoomChanged(const QPointF &coordinate, int zoom) const;
void mapproviderSelected(QAction *);
void mapZoomSelected(QAction *);
void editNote(Geometry *geom, QPoint point);
void resizeEvent(QResizeEvent *qEvent);
void updateProgress();
void cacheTiles(bool qEnabled);
};
#endif

View File

@ -1,20 +0,0 @@
#include "dialogs.h"
#include <QHBoxLayout>
InfoDialog::InfoDialog(QWidget *parent)
: QDialog(parent)
{
setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint);
infotext = new QTextEdit();
infotext->setReadOnly(true);
QHBoxLayout *layout = new QHBoxLayout();
setLayout(layout);
layout->addWidget(infotext);
}
void InfoDialog::setInfotext(QString text)
{
infotext->setHtml(text);
}

View File

@ -1,21 +0,0 @@
#ifndef DIALOGS_H
#define DIALOGS_H
#include <QDialog>
#include <QTextEdit>
/**
@author Kai Winter <kaiwinter@gmx.de>
*/
class InfoDialog : public QDialog
{
Q_OBJECT
public:
InfoDialog(QWidget *parent = 0);
void setInfotext(QString text);
private:
QTextEdit *infotext;
};
#endif

View File

@ -1,13 +0,0 @@
#include <QApplication>
#include "citymap.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Citymap *mw = new Citymap();
mw->resize(400, 590);
mw->setWindowTitle("City Map Mainz");
mw->show();
return app.exec();
}

View File

@ -1,188 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>1</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<projectname>GPS</projectname>
<ignoreparts/>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<defaultencoding/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>w3c-dom-level2-html</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>w3c-svg</toc>
<toc>sw</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
</kdevdebugger>
<kdevcppsupport>
<qt>
<version>4</version>
<used>true</used>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>false</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>QMapControl</pcs>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevfilecreate>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
<type ext="qrc" />
</useglobaltypes>
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>./bin/GPS</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>./bin/</globalcwd>
<useglobalprogram>false</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
</kdevelop>

View File

@ -1,20 +0,0 @@
include(../../QMapControl.pri)
DEPENDPATH += src
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = ../bin
TARGET = GPS
QT+=network
QT+=gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): cache()
# Input
SOURCES += src/gps.cpp \
src/main.cpp \
src/gps_neo.cpp \
src/gps_simulation.cpp
HEADERS += src/gps.h \
src/gps_neo.h \
src/gps_simulation.h

View File

@ -1,12 +0,0 @@
/*!
* \example gps.cpp
* This sample application uses GPS data from the gllin service, which you have to start manually before using this application.
* The file /tmp/nmeaNP is read in for the posiitons.
*
* The application receives positions from the GPS_Neo class and writes it into a label.
* You can toggle a button to set the view to the received coordinate.
*
* You can find this example here: MapAPI/Samples/GPS
* \image html sample_gps.png "screenshot"
* @see http://3rdparty.downloads.openmoko.org
*/

View File

@ -1,122 +0,0 @@
#include "gps.h"
/*!
* \example gps.cpp
* This sample application uses GPS data from the gllin service, which you have to start
* manually before using this application. The file /tmp/nmeaNP is read in for the
* posiitons.
*
* The application receives positions from the GPS_Neo class and writes it into a label.
* You can toggle a button to set the view to the received coordinate.
*
* You can find this example here: MapAPI/Samples/GPS
* \image html sample_gps.png "screenshot"
* @see http://3rdparty.downloads.openmoko.org
*/
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
GPS::GPS()
{
// create MapControl
mc = new MapControl(QSize(480, 640));
// ImageManager::instance()->setProxy("www-cache", 8080);
// create MapAdapter to get maps from
TileMapAdapter *mapadapter
= new TileMapAdapter("tile.openstreetmap.org", "/%1/%2/%3.png", 256, 0, 17);
// create a layer with the mapadapter and type MapLayer
Layer *l = new Layer("Custom Layer", mapadapter, Layer::MapLayer);
// current GPS Location
gpsDot = new CirclePoint(0, 0, "GPS", CirclePoint::Middle, new QPen(Qt::darkBlue));
l->addGeometry(gpsDot);
// add Layer to the MapControl
mc->addLayer(l);
// display the MapControl in the application
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(mc);
setLayout(layout);
// create buttons as controls for zoom
QPushButton *zoomin = new QPushButton("+");
QPushButton *zoomout = new QPushButton("-");
followgps = new QPushButton("Follow");
followgps->setCheckable(true);
simulategps = new QPushButton("Simulate");
simulategps->setCheckable(true);
gpsposition = new QLabel();
zoomin->setMaximumWidth(50);
zoomout->setMaximumWidth(50);
followgps->setMaximumWidth(50);
simulategps->setMaximumWidth(50);
gpsposition->setFont(QFont("Arial", 10));
connect(zoomin, SIGNAL(clicked(bool)), mc, SLOT(zoomIn()));
connect(zoomout, SIGNAL(clicked(bool)), mc, SLOT(zoomOut()));
connect(simulategps, SIGNAL(clicked(bool)), this, SLOT(simulategps_checked()));
// add zoom buttons to the layout of the MapControl
QVBoxLayout *innerlayout = new QVBoxLayout;
innerlayout->addWidget(zoomin);
innerlayout->addWidget(zoomout);
innerlayout->addWidget(followgps);
innerlayout->addWidget(simulategps);
innerlayout->addWidget(gpsposition);
mc->setLayout(innerlayout);
GPS_Neo *gm = new GPS_Neo();
connect(gm, SIGNAL(new_position(float, QPointF)), this,
SLOT(updatePosition(float, QPointF)));
gpsSim = new GPS_Simulation(this);
connect(gpsSim, SIGNAL(newPosition(float, QPointF)), this,
SLOT(updatePosition(float, QPointF)));
mc->setView(QPointF(0, 0));
gm->start();
}
GPS::~GPS() { }
void GPS::updatePosition(float time, QPointF coordinate)
{
gpsposition->setText(QString::number(time) + " / " + QString::number(coordinate.x())
+ " / " + QString::number(coordinate.y()));
if (followgps->isChecked())
{
mc->setView(coordinate);
}
// update the gps dot location on map
gpsDot->setCoordinate(coordinate);
}
void GPS::resizeEvent(QResizeEvent *qEvent)
{
Q_UNUSED(qEvent);
if (mc)
{
mc->resize(size());
}
}
void GPS::simulategps_checked()
{
if (simulategps->isChecked())
{
gpsSim->start();
}
else
{
gpsSim->stop();
}
}

View File

@ -1,33 +0,0 @@
#ifndef GPS_H
#define GPS_H
#include <QPushButton>
#include <QLabel>
#include <mapcontrol.h>
#include "gps_neo.h"
#include "gps_simulation.h"
#include "circlepoint.h"
using namespace qmapcontrol;
class GPS : public QWidget
{
Q_OBJECT
public:
GPS();
~GPS();
private:
QPushButton *followgps;
QPushButton *simulategps;
QLabel *gpsposition;
MapControl *mc;
GPS_Simulation *gpsSim;
CirclePoint *gpsDot;
public slots:
void updatePosition(float time, QPointF coordinate);
void resizeEvent(QResizeEvent *qEvent);
void simulategps_checked();
};
#endif

View File

@ -1,67 +0,0 @@
#include "gps_neo.h"
GPS_Neo::GPS_Neo(QObject *parent)
: QObject(parent)
{
running = false;
}
GPS_Neo::~GPS_Neo() { }
void GPS_Neo::start()
{
if (!running)
{
running = true;
QTimer::singleShot(1000, this, SLOT(tick()));
}
}
void GPS_Neo::stop()
{
running = false;
}
void GPS_Neo::tick()
{
QFile file("/tmp/nmeaNP");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
// qDebug() << file.error();
return;
}
QByteArray line;
while (!file.atEnd())
{
line = file.readLine();
if (line.contains("GPRMC"))
{
break;
}
}
file.close();
GPS_Position pos = process_line(line);
emit(new_position(pos.time, QPointF(pos.longitude, pos.latitude)));
if (running)
{
QTimer::singleShot(1000, this, SLOT(tick()));
}
}
GPS_Position GPS_Neo::process_line(QByteArray line)
{
line.chop(1);
QList<QByteArray> elems = line.split(',');
float time = QString(elems.at(1)).toFloat();
float latitude = elems.at(3).toFloat() / 100;
QString latitude_dir = elems.at(4);
float longitude = elems.at(5).toFloat() / 100;
QString longitude_dir = elems.at(6);
return GPS_Position(time, longitude, longitude_dir, latitude, latitude_dir);
}

View File

@ -1,37 +0,0 @@
#ifndef GPS_NEO_H
#define GPS_NEO_H
#include <QObject>
#include <QtGui>
#include <gps_position.h>
//! A parser for the NMEA data format
/*!
* This class parses gps data from the Neo´s gllin service, which you have to start
*manually It reads the device file every seconds and emits a signal which contains a
*GPS_Position.
* @see http://3rdparty.downloads.openmoko.org
* @author Kai Winter <kaiwinter@gmx.de>
*/
using namespace qmapcontrol;
class GPS_Neo : public QObject
{
Q_OBJECT
public:
GPS_Neo(QObject *parent = 0);
~GPS_Neo();
void start();
void stop();
private:
QList<GPS_Position> positions;
GPS_Position process_line(QByteArray line);
bool running;
signals:
void new_position(float, QPointF);
public slots:
void tick();
};
#endif

View File

@ -1,41 +0,0 @@
#include "gps_simulation.h"
#include <QDateTime>
#include <QtGlobal>
#include <QPointF>
GPS_Simulation::GPS_Simulation(QObject *parent)
: QObject(parent)
, timer(new QTimer(this))
, mLat(40.748817f)
, // new york lat
mLong(-73.985428f) // new york lat
{
bool connected
= connect(timer, SIGNAL(timeout()), this, SLOT(tick()), Qt::QueuedConnection);
Q_ASSERT(connected);
}
GPS_Simulation::~GPS_Simulation() { }
void GPS_Simulation::start()
{
timer->start(1000); // 1 sec updates
}
void GPS_Simulation::stop()
{
timer->stop();
}
void GPS_Simulation::tick()
{
static float faketime = qrand() % 5000;
float lTempLat = qrand() % 2 - 1; // gives a number between -1 and 1
float lTempLong = qrand() % 2 - 1; // gives a number between -1 and 1
mLat = qBound(float(-90), (mLat + (lTempLat / 10)), float(90));
mLong = qBound(float(-180), (mLat + (lTempLong / 10)), float(180));
emit newPosition(++faketime, QPointF(mLong, mLat));
}

View File

@ -1,30 +0,0 @@
#ifndef GPS_SIMULATION_H
#define GPS_SIMULATION_H
#include <QObject>
#include <QTimer>
#include <QPointF>
class GPS_Simulation : public QObject
{
Q_OBJECT
public:
explicit GPS_Simulation(QObject *parent = 0);
~GPS_Simulation();
void start();
void stop();
signals:
void newPosition(float time, QPointF coordinate);
public slots:
void tick();
private:
QTimer *timer;
float mLat;
float mLong;
};
#endif // GPS_SIMULATION_H

View File

@ -1,13 +0,0 @@
#include <QApplication>
#include "gps.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
GPS ta;
ta.resize(480, 640);
ta.setWindowTitle("GPS Demo");
ta.show();
return app.exec();
}

View File

@ -1,195 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>1</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<projectname>LinesAndPoints</projectname>
<ignoreparts/>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<defaultencoding/>
<versioncontrol/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>w3c-dom-level2-html</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>w3c-svg</toc>
<toc>sw</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
</kdevdebugger>
<kdevcppsupport>
<qt>
<version>4</version>
<used>true</used>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>true</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevfilecreate>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
<type ext="qrc" />
</useglobaltypes>
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>./bin/Linesandpoints</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>./bin/</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
<kdevdocumentation>
<projectdoc>
<docsystem/>
<docurl/>
<usermanualurl/>
</projectdoc>
</kdevdocumentation>
</kdevelop>

View File

@ -1,100 +0,0 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession>
<KDevPrjSession>
<DocsAndViews NumberOfDocuments="25" >
<Doc0 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/Samples/LinesAndPoints/src/main.cpp" >
<View0 Encoding="" Type="Source" />
</Doc0>
<Doc1 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/Samples/LinesAndPoints/src/linesandpoints.h" >
<View0 Encoding="" Type="Source" />
</Doc1>
<Doc2 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/Samples/LinesAndPoints/src/linesandpoints.cpp" >
<View0 Encoding="" line="49" Type="Source" />
</Doc2>
<Doc3 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapcontrol.h" >
<View0 Encoding="" Type="Source" />
</Doc3>
<Doc4 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layermanager.cpp" >
<View0 Encoding="" Type="Source" />
</Doc4>
<Doc5 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layermanager.h" >
<View0 Encoding="" Type="Source" />
</Doc5>
<Doc6 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/linestring.cpp" >
<View0 Encoding="" Type="Source" />
</Doc6>
<Doc7 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/linestring.h" >
<View0 Encoding="" Type="Source" />
</Doc7>
<Doc8 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/point.cpp" >
<View0 Encoding="" Type="Source" />
</Doc8>
<Doc9 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/point.h" >
<View0 Encoding="" Type="Source" />
</Doc9>
<Doc10 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/curve.h" >
<View0 Encoding="" Type="Source" />
</Doc10>
<Doc11 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/imagepoint.h" >
<View0 Encoding="" Type="Source" />
</Doc11>
<Doc12 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/circlepoint.h" >
<View0 Encoding="" Type="Source" />
</Doc12>
<Doc13 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapnetwork.cpp" >
<View0 Encoding="" Type="Source" />
</Doc13>
<Doc14 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapnetwork.h" >
<View0 Encoding="" Type="Source" />
</Doc14>
<Doc15 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layer.cpp" >
<View0 Encoding="" Type="Source" />
</Doc15>
<Doc16 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/tilemapadapter.cpp" >
<View0 Encoding="" Type="Source" />
</Doc16>
<Doc17 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapadapter.cpp" >
<View0 Encoding="" Type="Source" />
</Doc17>
<Doc18 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/wmsmapadapter.cpp" >
<View0 Encoding="" Type="Source" />
</Doc18>
<Doc19 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapadapter.h" >
<View0 Encoding="" Type="Source" />
</Doc19>
<Doc20 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapcontrol.cpp" >
<View0 Encoding="" Type="Source" />
</Doc20>
<Doc21 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layer.h" >
<View0 Encoding="" Type="Source" />
</Doc21>
<Doc22 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/imagemanager.cpp" >
<View0 Encoding="" Type="Source" />
</Doc22>
<Doc23 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/yahoomapadapter.cpp" >
<View0 Encoding="" Type="Source" />
</Doc23>
<Doc24 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/yahoomapadapter.h" >
<View0 Encoding="" line="10" Type="Source" />
</Doc24>
</DocsAndViews>
<pluginList>
<kdevdebugger>
<breakpointList/>
<showInternalCommands value="0" />
</kdevdebugger>
<kdevastyle>
<Extensions ext="*.cpp *.h,*.c *.h,*.cxx *.hxx,*.c++ *.h++,*.cc *.hh,*.C *.H,*.diff,*.inl,*.java,*.moc,*.patch,*.tlh,*.xpm" />
<AStyle IndentPreprocessors="0" FillCount="4" PadParenthesesOut="1" IndentNamespaces="1" IndentLabels="1" Fill="Tabs" MaxStatement="40" Brackets="Break" MinConditional="-1" IndentBrackets="0" PadParenthesesUn="1" BlockBreak="0" KeepStatements="1" KeepBlocks="1" BlockIfElse="0" IndentSwitches="1" PadOperators="0" FStyle="UserDefined" IndentCases="0" FillEmptyLines="0" BracketsCloseHeaders="0" BlockBreakAll="0" PadParenthesesIn="1" IndentClasses="1" IndentBlocks="0" FillForce="0" />
</kdevastyle>
<kdevbookmarks>
<bookmarks/>
</kdevbookmarks>
<kdevvalgrind>
<executable path="" params="" />
<valgrind path="" params="" />
<calltree path="" params="" />
<kcachegrind path="" />
</kdevvalgrind>
</pluginList>
</KDevPrjSession>

View File

@ -1,15 +0,0 @@
include(../../QMapControl.pri)
QT+=network
QT+=gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): cache()
DEPENDPATH += src
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = ../bin
TARGET = Linesandpoints
# Input
HEADERS += src/linesandpoints.h
SOURCES += src/linesandpoints.cpp src/main.cpp

View File

@ -1,16 +0,0 @@
/*!
* \example linesandpoints.cpp
* This application demonstrates how to use Geometry objects and how to add them to a layer.
*
* Here are used three different point types:
* - One which displays a image
* - One which draws a plain circle
* - One which uses a QPen to draw a circle
* - One which has no markers
* Then these Points were added to a LineString
*
* Also there is a keylistener.
*
* You can find this example here: MapAPI/Samples/LinesAndPoints
* \image html sample_linesandpoints.png "screenshot"
*/

View File

@ -1,186 +0,0 @@
#include "linesandpoints.h"
/*!
* \example linesandpoints.cpp
* This application demonstrates how to use Geometry objects and how to add them to a
* layer.
*
* Here are used three different point types:
* - One which displays a image
* - One which draws a plain circle
* - One which uses a QPen to draw a circle
* - One which has no markers
* Then these Points were added to a LineString
*
* Also there is a keylistener.
*
* You can find this example here: MapAPI/Samples/LinesAndPoints
* \image html sample_linesandpoints.png "screenshot"
*/
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QMessageBox>
LinesAndPoints::LinesAndPoints(QWidget *parent)
: QWidget(parent)
{
// the size which the QMapControl should fill
QSize size = QSize(480, 640);
mc = new MapControl(size);
// create layout
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(mc);
setLayout(layout);
// create layer
MapAdapter *mapadapter = new OSMMapAdapter();
Layer *l = new MapLayer("Custom Layer", mapadapter);
mc->addLayer(l);
// create a LineString
QList<Point *> points;
// Points with image
points.append(new ImagePoint(8.259959, 50.001781, "images/bus_stop.png",
"Mainz, Hauptbahnhof", Point::BottomLeft));
points.append(new ImagePoint(8.263758, 49.998917, "images/bus_stop.png",
"Mainz, Münsterplatz", Point::BottomLeft));
points.append(new ImagePoint(8.265812, 50.001952, "images/bus_stop.png",
"Mainz, Neubrunnenplatz", Point::BottomLeft));
// Points with a circle
points.append(
new CirclePoint(8.2688, 50.004015, "Mainz, Bauhofstraße LRP", Point::Middle));
points.append(new CirclePoint(8.272845, 50.00495, "Mainz, Landtag", Point::Middle));
points.append(
new CirclePoint(8.280349, 50.008173, "Mainz, Brückenkopf", Point::Middle));
// A QPen can be used to customize the
QPen *pointpen = new QPen(QColor(0, 255, 0));
pointpen->setWidth(3);
points.append(new CirclePoint(8.273573, 50.016315, 15,
"Wiesbaden-Mainz-Kastel, Eleonorenstraße",
Point::Middle, pointpen));
points.append(new CirclePoint(8.275145, 50.016992, 15,
"Wiesbaden-Mainz-Kastel, Johannes-Goßner-Straße",
Point::Middle, pointpen));
points.append(new CirclePoint(8.270476, 50.021426, 15,
"Wiesbaden-Mainz-Kastel, Ruthof", Point::Middle,
pointpen));
// "Blind" Points
points.append(
new Point(8.266445, 50.025913, "Wiesbaden-Mainz-Kastel, Mudra Kaserne"));
points.append(
new Point(8.260378, 50.030345, "Wiesbaden-Mainz-Amoneburg, Dyckerhoffstraße"));
// A QPen also can use transparency
QPen *linepen = new QPen(QColor(0, 0, 255, 100));
linepen->setWidth(5);
// Add the Points and the QPen to a LineString
LineString *ls = new LineString(points, "Busline 54", linepen);
// Add the LineString to the layer
l->addGeometry(ls);
// Connect click events of the layer to this object
connect(l, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(geometryClicked(Geometry *, QPoint)));
// Sets the view to the interesting area
mc->setView(QPointF(8.259959, 50.001781));
mc->setZoom(11);
addZoomButtons();
}
void LinesAndPoints::addZoomButtons()
{
// create buttons as controls for zoom
QPushButton *zoomin = new QPushButton("+");
QPushButton *zoomout = new QPushButton("-");
zoomin->setMaximumWidth(50);
zoomout->setMaximumWidth(50);
connect(zoomin, SIGNAL(clicked(bool)), mc, SLOT(zoomIn()));
connect(zoomout, SIGNAL(clicked(bool)), mc, SLOT(zoomOut()));
// add zoom buttons to the layout of the MapControl
QVBoxLayout *innerlayout = new QVBoxLayout;
innerlayout->addWidget(zoomin);
innerlayout->addWidget(zoomout);
mc->setLayout(innerlayout);
}
void LinesAndPoints::geometryClicked(Geometry *geom, QPoint)
{
qDebug() << "parent: " << geom->parentGeometry();
qDebug() << "Element clicked: " << geom->name();
if (geom->hasClickedPoints())
{
QList<Geometry *> pp = geom->clickedPoints();
qDebug() << "number of child elements: " << pp.size();
for (int i = 0; i < pp.size(); ++i)
{
QMessageBox::information(this, geom->name(), pp.at(i)->name());
}
}
else if (geom->GeometryType == "Point")
{
QMessageBox::information(this, geom->name(), "just a point");
}
}
LinesAndPoints::~LinesAndPoints() { }
void LinesAndPoints::resizeEvent(QResizeEvent *qEvent)
{
Q_UNUSED(qEvent);
if (mc)
{
mc->resize(size());
}
}
void LinesAndPoints::keyPressEvent(QKeyEvent *evnt)
{
if (evnt->key() == 49 || evnt->key() == 17825792) // tastatur '1'
{
mc->zoomIn();
}
else if (evnt->key() == 50)
{
mc->moveTo(QPointF(8.25, 60));
}
else if (evnt->key() == 51 || evnt->key() == 16777313) // tastatur '3'
{
mc->zoomOut();
}
else if (evnt->key() == 54) // 6
{
mc->setView(QPointF(8, 50));
}
else if (evnt->key() == 16777234) // left
{
mc->scrollLeft();
}
else if (evnt->key() == 16777236) // right
{
mc->scrollRight();
}
else if (evnt->key() == 16777235) // up
{
mc->scrollUp();
}
else if (evnt->key() == 16777237) // down
{
mc->scrollDown();
}
else if (evnt->key() == 48 || evnt->key() == 17825797) // 0
{
emit(close());
}
else
{
qDebug() << evnt->key() << endl;
}
}

View File

@ -1,30 +0,0 @@
#ifndef LINESANDPOINTS_H
#define LINESANDPOINTS_H
#include <mapcontrol.h>
#include <osmmapadapter.h>
#include <maplayer.h>
#include <imagepoint.h>
#include <circlepoint.h>
#include <linestring.h>
using namespace qmapcontrol;
class LinesAndPoints : public QWidget
{
Q_OBJECT
public:
LinesAndPoints(QWidget *parent = 0);
~LinesAndPoints();
private:
MapControl *mc;
void addZoomButtons();
public slots:
void geometryClicked(Geometry *geom, QPoint coord_px);
void resizeEvent(QResizeEvent *qEvent);
protected:
void keyPressEvent(QKeyEvent *evnt);
};
#endif

View File

@ -1,12 +0,0 @@
#include <QApplication>
#include "linesandpoints.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
LinesAndPoints ta;
ta.resize(480, 640);
ta.setWindowTitle("QMapControl Demo");
ta.show();
return app.exec();
}

View File

@ -1,195 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>1</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<projectname>Mapviewer</projectname>
<ignoreparts/>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<defaultencoding/>
<versioncontrol/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>w3c-dom-level2-html</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>w3c-svg</toc>
<toc>sw</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
</kdevdebugger>
<kdevcppsupport>
<qt>
<version>4</version>
<used>true</used>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>false</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevfilecreate>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
<type ext="qrc" />
</useglobaltypes>
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>./bin/Mapviewer</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>./bin</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
<kdevdocumentation>
<projectdoc>
<docsystem/>
<docurl/>
<usermanualurl/>
</projectdoc>
</kdevdocumentation>
</kdevelop>

View File

@ -1,13 +0,0 @@
include(../../QMapControl.pri)
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = bin
TARGET = Mapviewer
DEPENDPATH += . ../../src
INCLUDEPATH += . ../../src
# Input
HEADERS += src/mapviewer.h
SOURCES += src/main.cpp src/mapviewer.cpp
QT+=network

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

View File

@ -1,13 +0,0 @@
#include <QApplication>
#include "mapviewer.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Mapviewer ta;
ta.resize(380, 565);
ta.setWindowTitle("Mapviewer");
ta.show();
return app.exec();
}

View File

@ -1,66 +0,0 @@
#include "mapviewer.h"
Mapviewer::Mapviewer(QWidget *parent)
: QMainWindow(parent)
{
// create MapControl
mc = new MapControl(QSize(380, 540));
mc->showScale(true);
// create mapadapter, for mainlayer and overlay
mapadapter = new EmptyMapAdapter(512);
// create a layer with the mapadapter and type MapLayer
mainlayer = new MapLayer("", mapadapter);
// add Layer to the MapControl
mc->addLayer(mainlayer);
addZoomButtons();
// show mapcontrol in mainwindow
setCentralWidget(mc);
FixedImageOverlay *fip = new FixedImageOverlay(
-36, 66, 37, 23, QCoreApplication::applicationDirPath() + "/sample.png");
mc->setView(QPointF(10, 50));
mc->zoomIn();
mainlayer->addGeometry(fip);
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(coordinateClicked(const QMouseEvent *, const QPointF)));
}
void Mapviewer::addZoomButtons()
{
// create buttons as controls for zoom
QPushButton *zoomin = new QPushButton("+");
QPushButton *zoomout = new QPushButton("-");
zoomin->setMaximumWidth(50);
zoomout->setMaximumWidth(50);
connect(zoomin, SIGNAL(clicked(bool)), mc, SLOT(zoomIn()));
connect(zoomout, SIGNAL(clicked(bool)), mc, SLOT(zoomOut()));
// add zoom buttons to the layout of the MapControl
QVBoxLayout *innerlayout = new QVBoxLayout;
innerlayout->addWidget(zoomin);
innerlayout->addWidget(zoomout);
mc->setLayout(innerlayout);
}
Mapviewer::~Mapviewer() { }
// resize the widget
void Mapviewer::resizeEvent(QResizeEvent *event)
{
mc->resize(event->size());
}
void Mapviewer::coordinateClicked(const QMouseEvent *evnt, const QPointF coordinate)
{
if (evnt->type() == QEvent::MouseButtonPress)
{
qDebug() << coordinate << ": " << evnt->x() << " / " << evnt->y();
}
}

View File

@ -1,30 +0,0 @@
#ifndef MAPVIEWER_H
#define MAPVIEWER_H
#include <QtGui>
#include "../../../qmapcontrol.h"
using namespace qmapcontrol;
class Mapviewer : public QMainWindow
{
Q_OBJECT
public:
Mapviewer(QWidget *parent = 0);
~Mapviewer();
private:
MapControl *mc;
MapAdapter *mapadapter;
Layer *mainlayer;
void addZoomButtons();
public slots:
void coordinateClicked(const QMouseEvent *evnt, const QPointF coordinate);
protected:
virtual void resizeEvent(QResizeEvent *event);
};
#endif

View File

@ -1,195 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>1</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<projectname>Mapviewer</projectname>
<ignoreparts/>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<defaultencoding/>
<versioncontrol/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>w3c-dom-level2-html</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>w3c-svg</toc>
<toc>sw</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
</kdevdebugger>
<kdevcppsupport>
<qt>
<version>4</version>
<used>true</used>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>false</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevfilecreate>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
<type ext="qrc" />
</useglobaltypes>
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>./bin/Mapviewer</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>./bin</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
<kdevdocumentation>
<projectdoc>
<docsystem/>
<docurl/>
<usermanualurl/>
</projectdoc>
</kdevdocumentation>
</kdevelop>

View File

@ -1,16 +0,0 @@
include(../../QMapControl.pri)
QT+=network
QT+=gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): cache()
DEPENDPATH += src
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = ../bin
TARGET = Mapviewer
# Input
HEADERS += src/mapviewer.h
SOURCES += src/main.cpp src/mapviewer.cpp

View File

@ -1,9 +0,0 @@
/*!
* \example mapviewer.cpp
* This application is just a simple map viewer. A Mapadapter is created (OpenStreetmaps)
* and added to a layer. The layer is given to the MapControl.
* Two Buttons are available to adjust the zoom level.
*
* You can find this example here: MapAPI/Samples/Mapviewer
* \image html sample_mapviewer.png "screenshot"
*/

View File

@ -1,16 +0,0 @@
#include <QApplication>
#include <QMainWindow>
#include "mapviewer.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Mapviewer ta;
ta.resize(380, 565);
ta.setWindowTitle("Mapviewer");
ta.show();
return app.exec();
}

View File

@ -1,64 +0,0 @@
#include "mapviewer.h"
#include <QPushButton>
#include <QVBoxLayout>
/*!
* \example mapviewer.cpp
* This application is just a simple map viewer. A Mapadapter is created (OpenStreetmaps)
* and added to a layer. The layer is given to the MapControl.
* Two Buttons are available to adjust the zoom level. If the window is
* resized the map widget will adjust its size.
*
* You can find this example here: QMapControl/Samples/Mapviewer
* \image html sample_mapviewer.png "screenshot"
*/
Mapviewer::Mapviewer(QWidget *parent)
: QMainWindow(parent)
{
// create MapControl
mc = new MapControl(QSize(380, 540));
mc->showScale(true);
// create mapadapter, for mainlayer and overlay
mapadapter = new OSMMapAdapter();
// create a layer with the mapadapter and type MapLayer
mainlayer = new MapLayer("OpenStreetMap-Layer", mapadapter);
// add Layer to the MapControl
mc->addLayer(mainlayer);
addZoomButtons();
mc->setView(QPointF(0, 0));
mc->setZoom(2);
// show mapcontrol in mainwindow
setCentralWidget(mc);
}
void Mapviewer::addZoomButtons()
{
// create buttons as controls for zoom
QPushButton *zoomin = new QPushButton("+");
QPushButton *zoomout = new QPushButton("-");
zoomin->setMaximumWidth(50);
zoomout->setMaximumWidth(50);
connect(zoomin, SIGNAL(clicked(bool)), mc, SLOT(zoomIn()));
connect(zoomout, SIGNAL(clicked(bool)), mc, SLOT(zoomOut()));
// add zoom buttons to the layout of the MapControl
QVBoxLayout *innerlayout = new QVBoxLayout;
innerlayout->addWidget(zoomin);
innerlayout->addWidget(zoomout);
mc->setLayout(innerlayout);
}
Mapviewer::~Mapviewer() { }
// resize the widget
void Mapviewer::resizeEvent(QResizeEvent *event)
{
mc->resize(event->size());
}

View File

@ -1,29 +0,0 @@
#ifndef MAPVIEWER_H
#define MAPVIEWER_H
#include <QApplication>
#include <QMainWindow>
#include <mapcontrol.h>
#include <osmmapadapter.h>
#include <maplayer.h>
using namespace qmapcontrol;
class Mapviewer : public QMainWindow
{
Q_OBJECT
public:
Mapviewer(QWidget *parent = 0);
~Mapviewer();
private:
MapControl *mc;
MapAdapter *mapadapter;
Layer *mainlayer;
void addZoomButtons();
protected:
virtual void resizeEvent(QResizeEvent *event);
};
#endif

View File

@ -1,197 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>1</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<projectname>Multidemo</projectname>
<ignoreparts/>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<defaultencoding/>
<versioncontrol/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>w3c-dom-level2-html</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>w3c-svg</toc>
<toc>sw</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
</kdevdebugger>
<kdevcppsupport>
<qt>
<version>4</version>
<used>true</used>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>false</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>QMapControl</pcs>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevfilecreate>
<filetypes/>
<useglobaltypes>
<type ext="ui" />
<type ext="qrc" />
<type ext="cpp" />
<type ext="h" />
</useglobaltypes>
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>./bin/Multidemo</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>./bin</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
<kdevdocumentation>
<projectdoc>
<docsystem/>
<docurl/>
<usermanualurl/>
</projectdoc>
</kdevdocumentation>
</kdevelop>

View File

@ -1,16 +0,0 @@
include(../../QMapControl.pri)
QT+=network
DEPENDPATH += src
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = ../bin
TARGET = Multidemo
QT+=network
QT+=gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): cache()
# Input
HEADERS += src/multidemo.h src/gps_modul.h
SOURCES += src/multidemo.cpp src/main.cpp src/gps_modul.cpp

View File

@ -1,15 +0,0 @@
/*!
* \example multidemo.cpp
* This is a bit complexer application, which lets you play around.
* There are the following buttons configured:
* - Add Point: adds a Point to the coordinate you click (this point will be clickable)
* - Drag Rect: lets to drag a rectangular into which will be zoomed in
* - Move To Click: moves the view middle to the clicked coordinate
* - GPS: starts a "pseudo" GPS receiver which emits new positions, these are connected to the ImagePoint
* - Follow Geom: Follows the ImagePoint, when it moves because of new GPS positions
*
* A overview map lefts you see where you are. You can even click on it to change your position.
*
* You can find this example here: MapAPI/Samples/Multimap
* \image html sample_multidemo.png "screenshot"
*/

View File

@ -1,86 +0,0 @@
#include "gps_modul.h"
double x = 1.0;
double y = 1.0;
GPS_Modul::GPS_Modul(QObject *parent)
: QObject(parent)
{
// qDebug() << "GPS_Modul()";
loadFile();
running = false;
}
GPS_Modul::~GPS_Modul() { }
void GPS_Modul::start()
{
if (!running)
{
running = true;
QTimer::singleShot(1000 / 25, this, SLOT(tick()));
}
}
void GPS_Modul::stop()
{
running = false;
}
void GPS_Modul::tick()
{
// qDebug() << "GPS_Modul::tick()";
// GPS_Position pos = positions.takeFirst();
// x = pos.longitude;
// y = pos.latitude;
// qDebug() << pos.latitude << ", " << pos.longitude;
x += .1;
y += .1;
emit(new_position(QPointF(x, y)));
// emit(changed());
// if (running && !positions.isEmpty())
if (running)
QTimer::singleShot(1000 / 25, this, SLOT(tick()));
}
void GPS_Modul::loadFile()
{
QFile file("/home/kai/kwint001/trunk/code/MapAPI/src/mainz_gps.nme");
// qDebug() << file.exists();
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
qDebug() << file.error();
return;
}
while (!file.atEnd())
{
QByteArray line = file.readLine();
process_line(line);
}
}
void GPS_Modul::process_line(QByteArray line)
{
if (!line.contains("GPRMC"))
return;
line.chop(1);
// qDebug() << line;
// get time
QList<QByteArray> elems = line.split(',');
float time = QString(elems.at(1)).toFloat();
float latitude = elems.at(3).toFloat() / 100;
QString latitude_dir = elems.at(4);
float longitude = elems.at(5).toFloat() / 100;
QString longitude_dir = elems.at(6);
positions.append(
GPS_Position(time, longitude, longitude_dir, latitude, latitude_dir));
// qDebug() << elems.at(6) << " | " << latitude;
}

View File

@ -1,35 +0,0 @@
#ifndef GPS_MODUL_H
#define GPS_MODUL_H
#include <QObject>
#include <QtGui>
#include <gps_position.h>
/**
@author Kai Winter <kaiwinter@gmx.de>
*/
using namespace qmapcontrol;
class GPS_Modul : public QObject
{
Q_OBJECT
public:
GPS_Modul(QObject *parent = 0);
~GPS_Modul();
void start();
void stop();
private:
QList<GPS_Position> positions;
void loadFile();
void process_line(QByteArray line);
bool running;
signals:
void new_position(QPointF);
void changed();
public slots:
void tick();
};
#endif

View File

@ -1,12 +0,0 @@
#include <QApplication>
#include "multidemo.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Multidemo ta;
ta.resize(480, 640);
ta.setWindowTitle("QMapControl Demo");
ta.show();
return app.exec();
}

View File

@ -1,320 +0,0 @@
#include "multidemo.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QMessageBox>
/*!
* \example multidemo.cpp
* This is a bit complexer application, which lets you play around.
* There are the following buttons configured:
* - Add Point: adds a Point to the coordinate you click (this point will be clickable)
* - Drag Rect: lets to drag a rectangular into which will be zoomed in
* - Move To Click: moves the view middle to the clicked coordinate
* - GPS: starts a "pseudo" GPS receiver which emits new positions, these are connected
* to the ImagePoint
* - Follow Geom: Follows the ImagePoint, when it moves because of new GPS positions
*
* A overview map lefts you see where you are. You can even click on it to change your
* position.
*
* You can find this example here: MapAPI/Samples/Multimap
* \image html sample_multidemo.png "screenshot"
*/
Multidemo::Multidemo(QWidget *parent)
: QWidget(parent)
{
setupMaps();
createLayout();
gm = new GPS_Modul();
connect(gm, SIGNAL(new_position(QPointF)), ip, SLOT(setCoordinate(QPointF)));
}
void Multidemo::setupMaps()
{
QSize size = QSize(480, 640);
// main map control
mc = new MapControl(size);
MapAdapter *mapadapter = new WMSMapAdapter(
"www2.demis.nl",
"/wms/"
"wms.asp?wms=WorldMap&LAYERS=Countries,Borders,Cities,Rivers,Settlements,"
"Hillshading,Waterbodies,Railroads,Highways,Roads&FORMAT=image/"
"png&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/"
"vnd.ogc.se_inimage&SRS=EPSG:4326&TRANSPARENT=FALSE",
256);
// maplayer
Layer *l = new MapLayer("Custom Layer", mapadapter);
mc->addLayer(l);
// Geometry layer
Layer *l2 = new GeometryLayer("Geom Layer", mapadapter);
mc->addLayer(l2);
// "minimap" control
mc2 = new MapControl(QSize(150, 150), MapControl::None);
MapAdapter *mapadapter_mini = new OSMMapAdapter();
Layer *layer_mini = new MapLayer("Custom Layer", mapadapter_mini);
mc2->addLayer(layer_mini);
// create points
QPen *pen = new QPen(QColor(255, 0, 0, 100));
pen->setWidth(5);
QList<Point *> points;
points.append(
new CirclePoint(8.259959, 50.001781, "Mainz, Hauptbahnhof", Point::Middle, pen));
points.append(
new CirclePoint(8.263758, 49.998917, "Mainz, Münsterplatz", Point::Middle, pen));
points.append(new CirclePoint(8.265812, 50.001952, "Mainz, Neubrunnenplatz",
Point::Middle, pen));
points.append(new CirclePoint(8.2688, 50.004015, "Mainz, Bauhofstraße LRP",
Point::Middle, pen));
points.append(
new CirclePoint(8.272845, 50.00495, "Mainz, Landtag", Point::Middle, pen));
points.append(
new CirclePoint(8.272845, 50.00495, "Mainz, Brückenplatz", Point::Middle, pen));
points.append(
new CirclePoint(8.280349, 50.008173, "Mainz, Brückenkopf", Point::Middle, pen));
points.append(new CirclePoint(8.273573, 50.016315,
"Wiesbaden-Mainz-Kastel, Eleonorenstraße",
Point::Middle, pen));
points.append(new CirclePoint(8.275145, 50.016992,
"Wiesbaden-Mainz-Kastel, Johannes-Goßner-Straße",
Point::Middle, pen));
points.append(new CirclePoint(8.270476, 50.021426, "Wiesbaden-Mainz-Kastel, Ruthof",
Point::Middle, pen));
points.append(new CirclePoint(8.266445, 50.025913,
"Wiesbaden-Mainz-Kastel, Mudra Kaserne", Point::Middle,
pen));
points.append(new CirclePoint(8.260378, 50.030345,
"Wiesbaden-Mainz-Amoneburg, Dyckerhoffstraße",
Point::Middle, pen));
// add points to linestring
pen = new QPen(QColor(0, 0, 255, 100));
pen->setWidth(5);
LineString *ls = new LineString(points, "Busline 54", pen);
// the linestring is added to the MapLayer l, since it doenst change its points
l->addGeometry(ls);
// this point receives position changes from the "gps modul"
ip = new ImagePoint(0, 0,
QCoreApplication::applicationDirPath() + "/images/marker1.png",
"image point", Point::TopRight);
// so if have to be added to the GeometryLayer l2
l2->addGeometry(ip);
QPushButton *pb = new QPushButton("test button", mc);
// widget example
Point *wpoint = new Point(-20, -20, pb, ".", Point::TopLeft);
wpoint->setBaselevel(3);
l->addGeometry(wpoint);
pb->setGeometry(0, 0, 100, 50);
connect(l, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(geometryClickEvent(Geometry *, QPoint)));
connect(l2, SIGNAL(geometryClicked(Geometry *, QPoint)), this,
SLOT(geometryClickEvent(Geometry *, QPoint)));
connect(mc, SIGNAL(boxDragged(const QRectF)), this, SLOT(draggedRect(QRectF)));
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(mouseEventCoordinate(const QMouseEvent *, const QPointF)));
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(coordinateClicked(const QMouseEvent *, const QPointF)));
connect(mc2, SIGNAL(mouseEventCoordinate(const QMouseEvent *, const QPointF)), this,
SLOT(coordinateClicked_mc2(const QMouseEvent *, const QPointF)));
}
void Multidemo::createLayout()
{
btn1 = new QPushButton("Add Point");
btn1->setCheckable(true);
btn1->setMaximumWidth(80);
btn1->setMaximumHeight(20);
btn1->setFont(QFont("Verdana", 5));
btn2 = new QPushButton("Drag Rect");
btn2->setCheckable(true);
btn2->setMaximumHeight(20);
btn2->setFont(QFont("Verdana", 5));
btn2->setMaximumWidth(80);
btn3 = new QPushButton("Move to Click");
btn3->setCheckable(true);
btn3->setMaximumHeight(20);
btn3->setFont(QFont("Verdana", 5));
btn3->setMaximumWidth(80);
btn4 = new QPushButton("Follow Geom");
btn4->setCheckable(true);
btn4->setMaximumHeight(20);
btn4->setFont(QFont("Verdana", 5));
btn4->setMaximumWidth(80);
btn5 = new QPushButton("GPS");
btn5->setCheckable(true);
btn5->setMaximumHeight(20);
btn5->setFont(QFont("Verdana", 5));
btn5->setMaximumWidth(80);
btn1->setFocusPolicy(Qt::NoFocus);
btn2->setFocusPolicy(Qt::NoFocus);
btn3->setFocusPolicy(Qt::NoFocus);
btn4->setFocusPolicy(Qt::NoFocus);
btn5->setFocusPolicy(Qt::NoFocus);
QHBoxLayout *layout = new QHBoxLayout;
QVBoxLayout *layoutinner = new QVBoxLayout;
layoutinner->addWidget(mc2);
layoutinner->addWidget(btn1);
layoutinner->addWidget(btn2);
layoutinner->addWidget(btn3);
layoutinner->addWidget(btn4);
layoutinner->addWidget(btn5);
layoutinner->addSpacing(70);
layout->addLayout(layoutinner);
QHBoxLayout *mclayout = new QHBoxLayout;
mclayout->addWidget(mc);
mclayout->setMargin(0);
setLayout(mclayout);
mc->setLayout(layoutinner);
connect(btn2, SIGNAL(toggled(bool)), this, SLOT(buttonToggled(bool)));
connect(btn4, SIGNAL(toggled(bool)), this, SLOT(toggleFollow(bool)));
connect(btn5, SIGNAL(toggled(bool)), this, SLOT(toggleGPS(bool)));
}
void Multidemo::coordinateClicked(const QMouseEvent *evnt, const QPointF coord)
{
if (btn1->isChecked() && evnt->type() == QEvent::MouseButtonPress)
{
mc->layer("Geom Layer")
->addGeometry(new CirclePoint(coord.x(), coord.y(), 10, "added point"));
mc->updateRequestNew();
}
}
void Multidemo::geometryClickEvent(Geometry *geom, QPoint)
{
if (geom->hasClickedPoints())
{
QList<Geometry *> pp = geom->clickedPoints();
for (int i = 0; i < pp.size(); ++i)
{
QMessageBox::information(this, geom->name(), pp.at(i)->name());
}
}
else if (geom->GeometryType == "Point")
{
QMessageBox::information(
this, geom->name(),
QString("Position: ")
.append(QString().setNum(((Point *)geom)->longitude()))
.append(QString("/"))
.append(QString().setNum(((Point *)geom)->latitude())));
}
}
Multidemo::~Multidemo() { }
void Multidemo::keyPressEvent(QKeyEvent *evnt)
{
if (evnt->key() == 49 || evnt->key() == 17825792) // keyboard '1'
{
mc->zoomIn();
}
else if (evnt->key() == 50)
{
mc->moveTo(QPointF(8.25, 60));
}
else if (evnt->key() == 51 || evnt->key() == 16777313) // keyboard '3'
{
mc->zoomOut();
}
else if (evnt->key() == 52) // 4
{
mc->updateRequestNew();
}
else if (evnt->key() == 16777234) // left
{
mc->scrollLeft();
}
else if (evnt->key() == 16777236) // right
{
mc->scrollRight();
}
else if (evnt->key() == 16777235) // up
{
mc->scrollUp();
}
else if (evnt->key() == 16777237) // down
{
mc->scrollDown();
}
else if (evnt->key() == 48 || evnt->key() == 17825797) // 0
{
emit(close());
}
}
void Multidemo::resizeEvent(QResizeEvent *event)
{
mc->resize(event->size());
}
void Multidemo::buttonToggled(bool active)
{
if (active)
mc->setMouseMode(MapControl::Dragging);
else
mc->setMouseMode(MapControl::Panning);
}
void Multidemo::toggleFollow(bool follow)
{
if (follow)
mc->followGeometry(ip);
else
mc->stopFollowing(ip);
}
void Multidemo::toggleGPS(bool gps)
{
if (gps)
gm->start();
else
gm->stop();
}
void Multidemo::draggedRect(QRectF rect)
{
QList<QPointF> coords;
coords.append(rect.topLeft());
coords.append(rect.bottomRight());
mc->setViewAndZoomIn(coords);
}
void Multidemo::mouseEventCoordinate(const QMouseEvent *evnt, const QPointF coordinate)
{
if (evnt->type() == QEvent::MouseButtonPress && btn3->isChecked())
{
mc->moveTo(coordinate);
}
// update mini-window
else if (evnt->type() == QEvent::MouseButtonRelease)
{
mc2->setView(mc->currentCoordinate());
}
}
void Multidemo::coordinateClicked_mc2(const QMouseEvent *evnt, const QPointF coordinate)
{
if (evnt->type() == QEvent::MouseButtonPress)
{
mc2->moveTo(coordinate);
mc->setView(coordinate);
}
}

View File

@ -1,59 +0,0 @@
#ifndef MULTIDEMO_H
#define MULTIDEMO_H
#include <QPushButton>
#include <mapcontrol.h>
#include <imagepoint.h>
#include <maplayer.h>
#include <geometrylayer.h>
#include <osmmapadapter.h>
#include <circlepoint.h>
#include <linestring.h>
#include "gps_modul.h"
using namespace qmapcontrol;
class Multidemo : public QWidget
{
Q_OBJECT
public:
Multidemo(QWidget *parent = 0);
~Multidemo();
private:
MapControl *mc;
MapControl *mc2;
QPushButton *btn1;
QPushButton *btn2;
QPushButton *btn3;
QPushButton *btn4;
QPushButton *btn5;
ImagePoint *ip;
GPS_Modul *gm;
void setupMaps();
void createLayout();
Layer *l;
public slots:
void geometryClickEvent(Geometry *geom, QPoint coord_px);
void coordinateClicked(const QMouseEvent *, const QPointF);
void coordinateClicked_mc2(const QMouseEvent *, const QPointF);
void buttonToggled(bool);
void toggleFollow(bool);
void toggleGPS(bool);
void draggedRect(QRectF);
void mouseEventCoordinate(const QMouseEvent *, const QPointF);
protected:
void keyPressEvent(QKeyEvent *evnt);
virtual void resizeEvent(QResizeEvent *event);
signals:
void setX(int);
void setY(int);
void zoomIn();
void zoomOut();
};
#endif

View File

@ -1,216 +0,0 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Kai Winter</author>
<email>kaiwinter@gmx.de</email>
<version>0.9</version>
<projectmanagement>KDevTrollProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>Qt</keyword>
</keywords>
<ignoreparts/>
<projectname>Phonebook</projectname>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<defaultencoding/>
</general>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
</tree>
</kdevfileview>
<kdevcppsupport>
<qt>
<used>true</used>
<version>4</version>
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<qmake>/usr/lib/qt4/bin/qmake</qmake>
<designer>/usr/lib/qt4/bin/designer</designer>
<root>/usr/lib/qt4</root>
<designerpluginpaths/>
</qt>
<codecompletion>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
<completionBoxItemOrder>0</completionBoxItemOrder>
<howEvaluationContextMenu>true</howEvaluationContextMenu>
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
<processPrimaryTypes>true</processPrimaryTypes>
<processFunctionArguments>false</processFunctionArguments>
<preProcessAllHeaders>false</preProcessAllHeaders>
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
<alwaysParseInBackground>true</alwaysParseInBackground>
<usePermanentCaching>true</usePermanentCaching>
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
<includePaths>.;</includePaths>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
<splitheadersource>
<enabled>false</enabled>
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>QMapControl</pcs>
<pcs>Qt4</pcs>
</references>
</kdevcppsupport>
<kdevdoctreeview>
<ignoretocs>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>kde2book</toc>
<toc>opengl</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>qt-kdev3</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>stl</toc>
<toc>sw</toc>
<toc>w3c-dom-level2-html</toc>
<toc>w3c-svg</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoredoxygen>
<toc>KDE Libraries (Doxygen)</toc>
</ignoredoxygen>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell/>
<breakpoints/>
<programargs/>
<gdbpath>/usr/bin/gdb</gdbpath>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<raiseGDBOnStart>false</raiseGDBOnStart>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
<breakpoints/>
</kdevdebugger>
<kdevtrollproject>
<run>
<mainprogram>./bin/Phonebook</mainprogram>
<programargs/>
<directoryradio>executable</directoryradio>
<globaldebugarguments/>
<globalcwd>./bin/</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
<envvars/>
</run>
<general>
<activedir></activedir>
</general>
<make>
<abortonerror>true</abortonerror>
<runmultiplejobs>false</runmultiplejobs>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
<envvars/>
</make>
<qmake>
<savebehaviour>2</savebehaviour>
<replacePaths>false</replacePaths>
<disableDefaultOpts>true</disableDefaultOpts>
<enableFilenamesOnly>false</enableFilenamesOnly>
</qmake>
</kdevtrollproject>
<workspace>
<openfiles/>
</workspace>
<kdevfilecreate>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
<type ext="ts" />
<type ext="qrc" />
</useglobaltypes>
</kdevfilecreate>
<kdevdocumentation>
<projectdoc>
<docsystem>Doxygen Documentation Collection</docsystem>
<docurl>phonebook.tag</docurl>
</projectdoc>
</kdevdocumentation>
<substmap>
<APPNAME>Phonebook</APPNAME>
<APPNAMELC>phonebook</APPNAMELC>
<APPNAMESC>Phonebook</APPNAMESC>
<APPNAMEUC>PHONEBOOK</APPNAMEUC>
<AUTHOR>Kai Winter</AUTHOR>
<DESIGNER>/usr/lib/qt4/bin/designer</DESIGNER>
<EMAIL>kaiwinter@gmx.de</EMAIL>
<LICENSE>GPL</LICENSE>
<LICENSEFILE>COPYING</LICENSEFILE>
<QMAKE>/usr/lib/qt4/bin/qmake</QMAKE>
<VERSION>0.9</VERSION>
<YEAR>2008</YEAR>
<dest>/home/kai/kwint001/trunk/code/MapAPI/Samples/Phonebook</dest>
</substmap>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
</kdevelop>

View File

@ -1,15 +0,0 @@
include(../../QMapControl.pri)
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR = bin
TARGET = Phonebook
DEPENDPATH += . ../../src
INCLUDEPATH += . ../../src
# Input
SOURCES += phonebook.cpp \
main.cpp
HEADERS += phonebook.h
QT+=network

View File

@ -1,14 +0,0 @@
#include <QApplication>
#include "phonebook.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Phonebook pb;
pb.resize(480, 500);
pb.setWindowTitle("Phonebook Demo");
pb.show();
return app.exec();
}

View File

@ -1,122 +0,0 @@
#include "phonebook.h"
Phonebook::Phonebook(QWidget *parent)
{
mc = new MapControl(QSize(480, 540));
MapAdapter *mapadapter = new OSMMapAdapter();
Layer *map = new MapLayer("Karte", mapadapter);
friends = new GeometryLayer("Friends", mapadapter);
friendpoint = new CirclePoint(0., 0., 10);
friends->addGeometry(friendpoint);
mc->addLayer(map);
mc->addLayer(friends);
QListWidget *list = new QListWidget();
QStringList strlist;
strlist << "Kai"
<< "2";
list->addItems(strlist);
connect(list, SIGNAL(itemClicked(QListWidgetItem *)), this,
SLOT(selectedName(QListWidgetItem *)));
QSlider *slider = new QSlider(Qt::Horizontal);
slider->setMinimum(0);
slider->setMaximum(17);
connect(slider, SIGNAL(valueChanged(int)), mc, SLOT(setZoom(int)));
mc->setMinimumWidth(480);
QVBoxLayout *maplayout = new QVBoxLayout;
maplayout->addWidget(mc);
maplayout->addWidget(slider);
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(list);
layout->addLayout(maplayout);
QWidget *w = new QWidget;
w->setLayout(layout);
setCentralWidget(w);
createActions();
createMenus();
}
void Phonebook::selectedName(QListWidgetItem *item)
{
if (item->text() == "Kai")
{
friendpoint->setCoordinate(QPointF(8.26, 50));
friendpoint->setName("Kai");
mc->setView(friendpoint);
}
else if (item->text() == "2")
{
friendpoint->setCoordinate(QPointF(6.43, 40));
mc->setView(friendpoint);
}
}
void Phonebook::createActions()
{
// newAct = new QAction(QIcon(":/filenew.xpm"), tr("&New"), this);
// newAct->setShortcut(tr("Ctrl+N"));
// newAct->setStatusTip(tr("Create a new file"));
// connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));
//
// openAct = new QAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
// openAct->setShortcut(tr("Ctrl+O"));
// openAct->setStatusTip(tr("Open an existing file"));
// connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
//
// saveAct = new QAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
// saveAct->setShortcut(tr("Ctrl+S"));
// saveAct->setStatusTip(tr("Save the document to disk"));
// connect(saveAct, SIGNAL(triggered()), this, SLOT(save()));
//
// saveAsAct = new QAction(tr("Save &As..."), this);
// saveAsAct->setStatusTip(tr("Save the document under a new name"));
// connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs()));
//
// exitAct = new QAction(tr("E&xit"), this);
// exitAct->setShortcut(tr("Ctrl+Q"));
// exitAct->setStatusTip(tr("Exit the application"));
// connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
//
// aboutAct = new QAction(tr("&About"), this);
// aboutAct->setStatusTip(tr("Show the application's About box"));
// connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
//
// aboutQtAct = new QAction(tr("About &Qt"), this);
// aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
// connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
//
// cutAct->setEnabled(false);
// copyAct->setEnabled(false);
}
void Phonebook::createMenus()
{
fileMenu = menuBar()->addMenu(tr("&File"));
// fileMenu->addAction(newAct);
// fileMenu->addAction(openAct);
// fileMenu->addAction(saveAct);
// fileMenu->addAction(saveAsAct);
// fileMenu->addSeparator();
// fileMenu->addAction(exitAct);
editMenu = menuBar()->addMenu(tr("&Edit"));
// editMenu->addAction(cutAct);
// editMenu->addAction(copyAct);
// editMenu->addAction(pasteAct);
menuBar()->addSeparator();
helpMenu = menuBar()->addMenu(tr("&Help"));
// helpMenu->addAction(aboutAct);
// helpMenu->addAction(aboutQtAct);
}
Phonebook::~Phonebook() { }

View File

@ -1,41 +0,0 @@
#ifndef PHONEBOOK_H
#define PHONEBOOK_H
#include <QtGui>
#include "../../../qmapcontrol.h"
using namespace qmapcontrol;
class Phonebook : public QMainWindow
{
Q_OBJECT
public:
Phonebook(QWidget *parent = 0);
~Phonebook();
private:
MapControl *mc;
Layer *friends;
Point *friendpoint;
void createActions();
void createMenus();
QMenu *fileMenu;
QMenu *editMenu;
QMenu *helpMenu;
QToolBar *fileToolBar;
QToolBar *editToolBar;
QAction *newAct;
QAction *openAct;
QAction *saveAct;
QAction *saveAsAct;
QAction *exitAct;
QAction *cutAct;
QAction *copyAct;
QAction *pasteAct;
QAction *aboutAct;
QAction *aboutQtAct;
public slots:
void selectedName(QListWidgetItem *item);
};
#endif

View File

@ -1,6 +0,0 @@
SUBDIRS += Mapviewer \
LinesAndPoints \
GPS \
Multidemo \
Citymap
TEMPLATE = subdirs

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

View File

@ -1,87 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: Class List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li class="current"><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Class List</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceqmapcontrol.html" target="_self">qmapcontrol</a></td><td class="desc">QMapControl namespace </td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1ArrowPoint.html" target="_self">ArrowPoint</a></td><td class="desc">Draws a directed arrow (showing orientation) into the map </td></tr>
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1CirclePoint.html" target="_self">CirclePoint</a></td><td class="desc">Draws a circle into the map </td></tr>
<tr id="row_0_2_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Curve.html" target="_self">Curve</a></td><td class="desc">A <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>, implemented to fullfil OGC Spec </td></tr>
<tr id="row_0_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html" target="_self">EmptyMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which do not load map tiles </td></tr>
<tr id="row_0_4_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html" target="_self">FixedImageOverlay</a></td><td class="desc">Draws a fixed image into the map </td></tr>
<tr id="row_0_5_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Geometry.html" target="_self">Geometry</a></td><td class="desc">Main class for objects that should be painted in maps </td></tr>
<tr id="row_0_6_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" target="_self">GeometryLayer</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> class </td></tr>
<tr id="row_0_7_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1GoogleMapAdapter.html" target="_self">GoogleMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for Google </td></tr>
<tr id="row_0_8_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1ImagePoint.html" target="_self">ImagePoint</a></td><td class="desc">Draws an image into the map </td></tr>
<tr id="row_0_9_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1InvisiblePoint.html" target="_self">InvisiblePoint</a></td><td class="desc">Draws an invisible point into the map </td></tr>
<tr id="row_0_10_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Layer.html" target="_self">Layer</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> class </td></tr>
<tr id="row_0_11_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1LineString.html" target="_self">LineString</a></td><td class="desc">A collection of <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> objects to describe a line </td></tr>
<tr id="row_0_12_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapAdapter.html" target="_self">MapAdapter</a></td><td class="desc">Used to fit map servers into QMapControl </td></tr>
<tr id="row_0_13_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapControl.html" target="_self">MapControl</a></td><td class="desc">The control element of the widget and also the widget itself </td></tr>
<tr id="row_0_14_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapLayer.html" target="_self">MapLayer</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> class </td></tr>
<tr id="row_0_15_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapNetwork.html" target="_self">MapNetwork</a></td><td class="desc"></td></tr>
<tr id="row_0_16_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1OpenAerialMapAdapter.html" target="_self">OpenAerialMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for OpenStreetMap </td></tr>
<tr id="row_0_17_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1OSMMapAdapter.html" target="_self">OSMMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for OpenStreetMap </td></tr>
<tr id="row_0_18_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Point.html" target="_self">Point</a></td><td class="desc">A geometric point to draw objects into maps </td></tr>
<tr id="row_0_19_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1TileMapAdapter.html" target="_self">TileMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for servers with image tiles </td></tr>
<tr id="row_0_20_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html" target="_self">WMSMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for WMS servers </td></tr>
<tr id="row_0_21_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1YahooMapAdapter.html" target="_self">YahooMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for Yahoo Maps </td></tr>
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classQObject.html" target="_self">QObject</a></td><td class="desc"></td></tr>
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classQWidget.html" target="_self">QWidget</a></td><td class="desc"></td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

View File

@ -1,122 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: arrowpoint.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">arrowpoint.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* This file is part of QMapControl,</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">* an open-source cross-platform map widget</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* Copyright (C) 2010 Jeffery MacEachern</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">* Based on CirclePoint code by Kai Winter</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">* This program is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">* it under the terms of the GNU Lesser General Public License as published by</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">* the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">* (at your option) any later version.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">* This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">* GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">* You should have received a copy of the GNU Lesser General Public License</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">* along with QMapControl. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">* Contact e-mail: kaiwinter@gmx.de</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">* Program URL : http://qmapcontrol.sourceforge.net/</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#ifndef ARROWPOINT_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define ARROWPOINT_H</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;QBrush&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &quot;qmapcontrol_global.h&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;math.h&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;point.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceqmapcontrol.html">qmapcontrol</a></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;{</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classqmapcontrol_1_1ArrowPoint.html"> 45</a></span>&#160; <span class="keyword">class </span>QMAPCONTROL_EXPORT <a class="code" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a> : <span class="keyword">public</span> <a class="code" href="classqmapcontrol_1_1Point.html">Point</a></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; {</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="code" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a>(qreal x, qreal y, <span class="keywordtype">int</span> sideLength, qreal heading, QString name = QString(), <a class="code" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment = Middle, QPen* pen=0);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a>();</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPen(QPen* pen);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">void</span> setHeading(qreal heading);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; qreal getHeading() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordtype">void</span> drawArrow();</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="comment">// Heading</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; qreal h;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Brush to fill the arrow with - solid colour, same as pen</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; QBrush mybrush;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; };</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;}</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="classqmapcontrol_1_1Point_html_acdfaca60ec19c0265bac2692d7982726"><div class="ttname"><a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">qmapcontrol::Point::Alignment</a></div><div class="ttdeci">Alignment</div><div class="ttdoc">sets where the point should be aligned </div><div class="ttdef"><b>Definition:</b> point.h:75</div></div>
<div class="ttc" id="classqmapcontrol_1_1Point_html"><div class="ttname"><a href="classqmapcontrol_1_1Point.html">qmapcontrol::Point</a></div><div class="ttdoc">A geometric point to draw objects into maps. </div><div class="ttdef"><b>Definition:</b> point.h:66</div></div>
<div class="ttc" id="classqmapcontrol_1_1ArrowPoint_html"><div class="ttname"><a href="classqmapcontrol_1_1ArrowPoint.html">qmapcontrol::ArrowPoint</a></div><div class="ttdoc">Draws a directed arrow (showing orientation) into the map. </div><div class="ttdef"><b>Definition:</b> arrowpoint.h:45</div></div>
<div class="ttc" id="namespaceqmapcontrol_html"><div class="ttname"><a href="namespaceqmapcontrol.html">qmapcontrol</a></div><div class="ttdoc">QMapControl namespace. </div><div class="ttdef"><b>Definition:</b> arrowpoint.cpp:28</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

View File

@ -1,111 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: circlepoint.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">circlepoint.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* This file is part of QMapControl,</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">* an open-source cross-platform map widget</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* Copyright (C) 2007 - 2008 Kai Winter</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">* This program is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">* it under the terms of the GNU Lesser General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">* the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">* (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">* This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">* GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">* You should have received a copy of the GNU Lesser General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">* along with QMapControl. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">* Contact e-mail: kaiwinter@gmx.de</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">* Program URL : http://qmapcontrol.sourceforge.net/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#ifndef CIRCLEPOINT_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#define CIRCLEPOINT_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &quot;qmapcontrol_global.h&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &quot;point.h&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceqmapcontrol.html">qmapcontrol</a></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classqmapcontrol_1_1CirclePoint.html"> 41</a></span>&#160; <span class="keyword">class </span>QMAPCONTROL_EXPORT <a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a> : <span class="keyword">public</span> <a class="code" href="classqmapcontrol_1_1Point.html">Point</a></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>(qreal x, qreal y, QString name = QString(), <a class="code" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment = Middle, QPen* pen=0);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>(qreal x, qreal y, <span class="keywordtype">int</span> radius = 10, QString name = QString(), <a class="code" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment = Middle, QPen* pen=0);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPen(QPen* pen);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordtype">void</span> drawCircle();</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; };</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;}</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="classqmapcontrol_1_1CirclePoint_html"><div class="ttname"><a href="classqmapcontrol_1_1CirclePoint.html">qmapcontrol::CirclePoint</a></div><div class="ttdoc">Draws a circle into the map. </div><div class="ttdef"><b>Definition:</b> circlepoint.h:41</div></div>
<div class="ttc" id="classqmapcontrol_1_1Point_html_acdfaca60ec19c0265bac2692d7982726"><div class="ttname"><a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">qmapcontrol::Point::Alignment</a></div><div class="ttdeci">Alignment</div><div class="ttdoc">sets where the point should be aligned </div><div class="ttdef"><b>Definition:</b> point.h:75</div></div>
<div class="ttc" id="classqmapcontrol_1_1Point_html"><div class="ttname"><a href="classqmapcontrol_1_1Point.html">qmapcontrol::Point</a></div><div class="ttdoc">A geometric point to draw objects into maps. </div><div class="ttdef"><b>Definition:</b> point.h:66</div></div>
<div class="ttc" id="namespaceqmapcontrol_html"><div class="ttname"><a href="namespaceqmapcontrol.html">qmapcontrol</a></div><div class="ttdoc">QMapControl namespace. </div><div class="ttdef"><b>Definition:</b> arrowpoint.cpp:28</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

View File

@ -1,536 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>QMapControl: citymap.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>citymap.cpp</h1>This demo appclication shows more features of the QMapControl. It shows images, which changes its size when changing the zoomlevel. You can display/hide layers and choose different map providers. Also it demonstrates more possibilities for user interaction:<br>
<ul>
<li>notes can be added to any coordinate (a QTextEdit is used for editing the note)<br>
</li><li>the user can measure distances between two points</li></ul>
<p>
<div align="center">
<img src="sample_citymap.png" alt="sample_citymap.png">
<p><strong>screenshot</strong></p></div>
<div class="fragment"><pre class="fragment">
<span class="preprocessor">#include "citymap.h"</span>
Citymap::Citymap(QWidget*)
{
<span class="comment">// create MapControl</span>
mc = <span class="keyword">new</span> MapControl(QSize(380,540));
mc-&gt;showScale(<span class="keyword">true</span>);
<span class="comment">// display the MapControl in the application</span>
QVBoxLayout* layout = <span class="keyword">new</span> QVBoxLayout;
layout-&gt;addWidget(mc);
QWidget* w = <span class="keyword">new</span> QWidget();
w-&gt;setLayout(layout);
setCentralWidget(w);
notepixmap = <span class="keyword">new</span> QPixmap(QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/note.png"</span>);
coord1 = QPointF();
coord2 = QPointF();
mapadapter = <span class="keyword">new</span> OSMMapAdapter();
MapAdapter* mapadapter_overlay = <span class="keyword">new</span> YahooMapAdapter(<span class="stringliteral">"us.maps3.yimg.com"</span>, <span class="stringliteral">"/aerial.maps.yimg.com/png?v=2.2&amp;t=h&amp;s=256&amp;x=%2&amp;y=%3&amp;z=%1"</span>);
<span class="comment">// create a layer with the mapadapter and type MapLayer</span>
l = <span class="keyword">new</span> MapLayer(<span class="stringliteral">"Custom Layer"</span>, mapadapter);
overlay = <span class="keyword">new</span> MapLayer(<span class="stringliteral">"Overlay"</span>, mapadapter_overlay);
overlay-&gt;setVisible(<span class="keyword">false</span>);
mc-&gt;addLayer(l);
mc-&gt;addLayer(overlay);
notes = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Notes"</span>, mapadapter);
createTours();
addSights();
addPubs();
addMuseums();
addZoomButtons();
createActions();
createMenus();
mc-&gt;addLayer(notes);
connect(notes, SIGNAL(geometryClicked(Geometry*, QPoint)),
<span class="keyword">this</span>, SLOT(editNote(Geometry*, QPoint)));
mc-&gt;setView(QPointF(8.26,50));
mc-&gt;setZoom(13);
ignoreClicks = <span class="keyword">false</span>;
addingNote = <span class="keyword">false</span>;
noteID = 0;
notetextedit = <span class="keyword">new</span> QTextEdit(mc);
notetextedit-&gt;setGeometry(0,0,200,100);
notepoint = <span class="keyword">new</span> Point(0, 0, notetextedit, <span class="stringliteral">"."</span>, Point::TopLeft);
notepoint-&gt;setVisible(<span class="keyword">false</span>);
notes-&gt;addGeometry(notepoint);
}
<span class="keywordtype">void</span> Citymap::createTours()
{
QPen* pen = <span class="keyword">new</span> QPen(QColor(0,0,255,100));
pen-&gt;setWidth(5);
QList&lt;Point*&gt; points;
points &lt;&lt; <span class="keyword">new</span> Point(8.2606, 50.0051);
points &lt;&lt; <span class="keyword">new</span> Point(8.2602, 50.0050);
points &lt;&lt; <span class="keyword">new</span> Point(8.2598, 50.0044);
points &lt;&lt; <span class="keyword">new</span> Point(8.2569, 50.0057);
points &lt;&lt; <span class="keyword">new</span> Point(8.2595, 50.0083);
points &lt;&lt; <span class="keyword">new</span> Point(8.2587, 50.0086);
points &lt;&lt; <span class="keyword">new</span> Point(8.2589, 50.0100);
points &lt;&lt; <span class="keyword">new</span> Point(8.2590, 50.0105);
pub_tour = <span class="keyword">new</span> LineString(points, <span class="stringliteral">""</span>, pen);
notes-&gt;addGeometry(pub_tour);
points.clear();
points &lt;&lt; <span class="keyword">new</span> Point(8.25987, 50.0018);
points &lt;&lt; <span class="keyword">new</span> Point(8.26192, 50.0019);
points &lt;&lt; <span class="keyword">new</span> Point(8.26301, 50.0031);
points &lt;&lt; <span class="keyword">new</span> Point(8.26459, 50.0026);
points &lt;&lt; <span class="keyword">new</span> Point(8.26601, 50.004);
points &lt;&lt; <span class="keyword">new</span> Point(8.26781, 50.0033);
points &lt;&lt; <span class="keyword">new</span> Point(8.27052, 50.0054);
points &lt;&lt; <span class="keyword">new</span> Point(8.2697, 50.0059);
museum_tour = <span class="keyword">new</span> LineString(points, <span class="stringliteral">""</span>, pen);
notes-&gt;addGeometry(museum_tour);
points.clear();
points &lt;&lt; <span class="keyword">new</span> Point(8.26015, 50.0015);
points &lt;&lt; <span class="keyword">new</span> Point(8.2617, 50.0012);
points &lt;&lt; <span class="keyword">new</span> Point(8.26423, 50.0002);
points &lt;&lt; <span class="keyword">new</span> Point(8.26698, 50.0024);
points &lt;&lt; <span class="keyword">new</span> Point(8.27065, 50.0012);
points &lt;&lt; <span class="keyword">new</span> Point(8.27152, 50.0016);
points &lt;&lt; <span class="keyword">new</span> Point(8.27225, 50.0004);
points &lt;&lt; <span class="keyword">new</span> Point(8.27333, 49.9994);
points &lt;&lt; <span class="keyword">new</span> Point(8.26946, 49.9983);
points &lt;&lt; <span class="keyword">new</span> Point(8.27105, 49.9973);
points &lt;&lt; <span class="keyword">new</span> Point(8.27024, 49.9972);
points &lt;&lt; <span class="keyword">new</span> Point(8.26833, 49.9958);
sights_tour = <span class="keyword">new</span> LineString(points, <span class="stringliteral">""</span>, pen);
notes-&gt;addGeometry(sights_tour);
}
<span class="keywordtype">void</span> Citymap::addSights()
{
sights = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Sehenswürdigkeiten"</span>, mapadapter);
mc-&gt;addLayer(sights);
Point* dom = <span class="keyword">new</span> ImagePoint(8.274167, 49.998889, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-dom.jpg"</span>, <span class="stringliteral">"Mainzer Dom"</span>);
dom-&gt;setBaselevel(17);
sights-&gt;addGeometry(dom);
Point* stephan = <span class="keyword">new</span> ImagePoint(8.268611, 49.995556, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-stephan.jpg"</span>,<span class="stringliteral">"St. Stephan"</span>);
stephan-&gt;setBaselevel(17);
sights-&gt;addGeometry(stephan);
Point* quitin = <span class="keyword">new</span> ImagePoint(8.272222, 50.000833, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-quintin.jpg"</span>,<span class="stringliteral">"St. Quintin"</span>);
quitin-&gt;setBaselevel(17);
sights-&gt;addGeometry(quitin);
connect(sights, SIGNAL(geometryClicked(Geometry*, QPoint)),
<span class="keyword">this</span>, SLOT(geometryClicked(Geometry*, QPoint)));
}
<span class="keywordtype">void</span> Citymap::addPubs()
{
pubs = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Kneipe"</span>, mapadapter);
mc-&gt;addLayer(pubs);
QPixmap* pub = <span class="keyword">new</span> QPixmap(QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/pub.png"</span>);
Point* bagatelle = <span class="keyword">new</span> Point(8.2606, 50.0052, pub, <span class="stringliteral">"Bagatelle"</span>);
pubs-&gt;addGeometry(bagatelle);
Point* nirgendwo = <span class="keyword">new</span> Point(8.2595, 50.0048, pub, <span class="stringliteral">"Nirgendwo"</span>);
pubs-&gt;addGeometry(nirgendwo);
Point* krokodil = <span class="keyword">new</span> Point(8.2594,50.0106, pub, <span class="stringliteral">"Krokodil"</span>);
pubs-&gt;addGeometry(krokodil);
connect(pubs, SIGNAL(geometryClicked(Geometry*, QPoint)),
<span class="keyword">this</span>, SLOT(geometryClickEventKneipe(Geometry*, QPoint)));
}
<span class="keywordtype">void</span> Citymap::addMuseums()
{
museum = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Museen"</span>, mapadapter);
mc-&gt;addLayer(museum);
Point* rgzm = <span class="keyword">new</span> ImagePoint(8.269722, 50.006111, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-rgzm.jpg"</span>, <span class="stringliteral">"rgzm"</span>);
rgzm-&gt;setBaselevel(17);
museum-&gt;addGeometry(rgzm);
Point* lm= <span class="keyword">new</span> ImagePoint(8.26778, 50.00385, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-lm.jpg"</span>, <span class="stringliteral">"lm"</span>);
lm -&gt;setBaselevel(17);
museum-&gt;addGeometry(lm);
connect(museum, SIGNAL(geometryClicked(Geometry*, QPoint)),
<span class="keyword">this</span>, SLOT(geometryClicked(Geometry*, QPoint)));
}
<span class="keywordtype">void</span> Citymap::geometryClicked(Geometry* geometry, QPoint)
{
<span class="keywordflow">if</span> (ignoreClicks || addingNote)
<span class="keywordflow">return</span>;
InfoDialog* infodialog = <span class="keyword">new</span> InfoDialog(<span class="keyword">this</span>);
infodialog-&gt;setWindowTitle(geometry-&gt;name());
<span class="keywordflow">if</span> (geometry-&gt;name() == <span class="stringliteral">"Mainzer Dom"</span>)
{
infodialog-&gt;setInfotext(<span class="stringliteral">"&lt;h1&gt;Mainzer Dom&lt;/h1&gt;&lt;p&gt;&lt;img src=\"images/180-dom.jpg\" align=\"left\"/&gt;Der Hohe Dom zu Mainz ist die Bischofskirche der Diözese Mainz und steht unter dem Patrozinium des heiligen Martin von Tours. Der Ostchor ist dem Hl. Stephan geweiht. Der zu den Kaiserdomen zählende Bau ist in seiner heutigen Form eine dreischiffige romanische Säulenbasilika, die in ihren Anbauten sowohl gotische als auch barocke Elemente aufweist.&lt;/p&gt;"</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry-&gt;name() == <span class="stringliteral">"St. Stephan"</span>)
{
infodialog-&gt;setInfotext(<span class="stringliteral">"&lt;h1&gt;St. Stephan&lt;/h1&gt;&lt;p&gt;&lt;img src=\"images/180-stephan.jpg\" align=\"left\"/&gt;Die katholische Pfarrkirche Sankt Stephan in Mainz wurde 990 von Erzbischof Willigis auf der höchsten Erhebung der Stadt gegründet. Auftraggeberin war höchstwahrscheinlich die Kaiserwitwe Theophanu. Willigis wollte mit ihr die Gebetsstätte des Reiches schaffen. In der Kirche war ursprünglich ein Stift untergebracht. Der Propst des Stiftes verwaltete eines der Archidiakonate (mittelalterliche Organisationseinheit, ähnlich den heutigen Dekanaten) des Erzbistums.&lt;/p&gt;"</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry-&gt;name() == <span class="stringliteral">"St. Quintin"</span>)
{
infodialog-&gt;setInfotext(<span class="stringliteral">"&lt;h1&gt;St. Quintin&lt;/h1&gt;&lt;p&gt;&lt;img src=\"images/180-quintin.jpg\" align=\"left\"/&gt;Die Kirche St. Quintin in Mainz ist die Pfarrkirche der ältesten nachgewiesenen Pfarrei der Stadt."</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry-&gt;name() == <span class="stringliteral">"rgzm"</span>)
{
infodialog-&gt;setInfotext(<span class="stringliteral">"&lt;h1&gt;Römisch-Germanisches Zentralmuseum&lt;/h1&gt;&lt;p&gt;&lt;img src=\"images/180-rgzm.jpg\" align=\"left\"/&gt;Das Römisch-Germanische Zentralmuseum (RGZM) in Mainz ist ein Forschungsinstitut für Vor- und Frühgeschichte, das von Bund und Ländern getragen wird und zur Leibniz-Gemeinschaft deutscher Forschungseinrichtungen gehört. Gegliedert in mehrere Abteilungen, arbeitet das Institut im Bereich der Alten Welt sowie seiner Kontaktzonen von der Altsteinzeit bis ins Mittelalter."</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry-&gt;name() == <span class="stringliteral">"lm"</span>)
{
infodialog-&gt;setInfotext(<span class="stringliteral">"&lt;h1&gt;Landesmuseum Mainz&lt;/h1&gt;&lt;p&gt;&lt;img src=\"images/180-lm.jpg\" align=\"left\"/&gt;Das Landesmuseum Mainz ist eines der ältesten Museen in Deutschland. Eine seiner Vorgängerinstitutionen, die Städtische Gemäldesammlung, wurde bereits 1803 von Jean-Antoine Chaptal auf Veranlassung Napoléon Bonapartes durch eine Schenkung von 36 Gemälden gegründet. Das Museum, welches sich heute im ehemaligen kurfürstlichen Marstall befindet, gehört zusammen mit dem Römisch-Germanischen Zentralmuseum und dem Gutenbergmuseum zu den bedeutenden Museen in Mainz. Seine kunst- und kulturgeschichtliche Sammlung erstreckt sich von der Vorgeschichte über die römische Zeit, dem Mittelalter und Barock bis hin zur Jugendstilzeit und der Kunst des 20. Jahrhunderts."</span>);
}
<span class="keywordflow">if</span> (geometry-&gt;name() != <span class="stringliteral">""</span>)
infodialog-&gt;showMaximized();
}
<span class="keywordtype">void</span> Citymap::geometryClickEventKneipe(Geometry* geometry, QPoint)
{
<span class="keywordflow">if</span> (ignoreClicks || addingNote)
<span class="keywordflow">return</span>;
InfoDialog* infodialog = <span class="keyword">new</span> InfoDialog(<span class="keyword">this</span>);
infodialog-&gt;setWindowTitle(geometry-&gt;name());
infodialog-&gt;setInfotext(<span class="stringliteral">"&lt;h1&gt;"</span> + geometry-&gt;name() + <span class="stringliteral">"&lt;/h1&gt;"</span>);
infodialog-&gt;showNormal();
}
<span class="keywordtype">void</span> Citymap::addZoomButtons()
{
<span class="comment">// create buttons as controls for zoom</span>
QPushButton* zoomin = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"+"</span>);
QPushButton* zoomout = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"-"</span>);
zoomin-&gt;setMaximumWidth(50);
zoomout-&gt;setMaximumWidth(50);
connect(zoomin, SIGNAL(clicked(<span class="keywordtype">bool</span>)),
mc, SLOT(zoomIn()));
connect(zoomout, SIGNAL(clicked(<span class="keywordtype">bool</span>)),
mc, SLOT(zoomOut()));
<span class="comment">// add zoom buttons to the layout of the MapControl</span>
QVBoxLayout* innerlayout = <span class="keyword">new</span> QVBoxLayout;
innerlayout-&gt;addWidget(zoomin);
innerlayout-&gt;addWidget(zoomout);
mc-&gt;setLayout(innerlayout);
}
<span class="keywordtype">void</span> Citymap::createActions()
{
toggleSights = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Sights"</span>), <span class="keyword">this</span>);
toggleSights-&gt;setCheckable(<span class="keyword">true</span>);
toggleSights-&gt;setChecked(<span class="keyword">true</span>);
connect(toggleSights, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
sights, SLOT(setVisible(<span class="keywordtype">bool</span>)));
togglePub = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Pubs"</span>), <span class="keyword">this</span>);
togglePub-&gt;setCheckable(<span class="keyword">true</span>);
togglePub-&gt;setChecked(<span class="keyword">true</span>);
connect(togglePub, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
pubs, SLOT(setVisible(<span class="keywordtype">bool</span>)));
toggleMuseum = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Museums"</span>), <span class="keyword">this</span>);
toggleMuseum-&gt;setCheckable(<span class="keyword">true</span>);
toggleMuseum-&gt;setChecked(<span class="keyword">true</span>);
connect(toggleMuseum, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
museum, SLOT(setVisible(<span class="keywordtype">bool</span>)));
toggleSightTour = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Sight Tour"</span>), <span class="keyword">this</span>);
toggleSightTour-&gt;setCheckable(<span class="keyword">true</span>);
toggleSightTour-&gt;setChecked(<span class="keyword">true</span>);
connect(toggleSightTour, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
sights_tour, SLOT(setVisible(<span class="keywordtype">bool</span>)));
togglePubTour = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Pub Tour"</span>), <span class="keyword">this</span>);
togglePubTour-&gt;setCheckable(<span class="keyword">true</span>);
togglePubTour-&gt;setChecked(<span class="keyword">true</span>);
connect(togglePubTour, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
pub_tour, SLOT(setVisible(<span class="keywordtype">bool</span>)));
toggleMuseumTour = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Museum Tour"</span>), <span class="keyword">this</span>);
toggleMuseumTour-&gt;setCheckable(<span class="keyword">true</span>);
toggleMuseumTour-&gt;setChecked(<span class="keyword">true</span>);
connect(toggleMuseumTour, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
museum_tour, SLOT(setVisible(<span class="keywordtype">bool</span>)));
addNoteAction = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Add Note"</span>), <span class="keyword">this</span>);
connect(addNoteAction, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
<span class="keyword">this</span>, SLOT(addNote()));
toolsDistance = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Calculate Distance"</span>), <span class="keyword">this</span>);
connect(toolsDistance, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
<span class="keyword">this</span>, SLOT(calcDistance()));
QActionGroup* mapproviderGroup = <span class="keyword">new</span> QActionGroup(<span class="keyword">this</span>);
osmAction = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"OpenStreetMap"</span>), mapproviderGroup);
yahooActionMap = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Yahoo: Map"</span>), mapproviderGroup);
yahooActionSatellite = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Yahoo: Satellite"</span>), mapproviderGroup);
googleActionMap = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Google: Map"</span>), mapproviderGroup);
osmAction-&gt;setCheckable(<span class="keyword">true</span>);
yahooActionMap-&gt;setCheckable(<span class="keyword">true</span>);
yahooActionSatellite-&gt;setCheckable(<span class="keyword">true</span>);
googleActionMap-&gt;setCheckable(<span class="keyword">true</span>);
osmAction-&gt;setChecked(<span class="keyword">true</span>);
connect(mapproviderGroup, SIGNAL(triggered(QAction*)),
<span class="keyword">this</span>, SLOT(mapproviderSelected(QAction*)));
yahooActionOverlay = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Yahoo: street overlay"</span>), <span class="keyword">this</span>);
yahooActionOverlay-&gt;setCheckable(<span class="keyword">true</span>);
yahooActionOverlay-&gt;setEnabled(<span class="keyword">false</span>);
connect(yahooActionOverlay, SIGNAL(toggled(<span class="keywordtype">bool</span>)),
overlay, SLOT(setVisible(<span class="keywordtype">bool</span>)));
}
<span class="keywordtype">void</span> Citymap::createMenus()
{
layerMenu = menuBar()-&gt;addMenu(tr(<span class="stringliteral">"&amp;Layer"</span>));
layerMenu-&gt;addAction(toggleSights);
layerMenu-&gt;addAction(togglePub);
layerMenu-&gt;addAction(toggleMuseum);
tourMenu = menuBar()-&gt;addMenu(tr(<span class="stringliteral">"T&amp;ours"</span>));
tourMenu-&gt;addAction(toggleSightTour);
tourMenu-&gt;addAction(togglePubTour);
tourMenu-&gt;addAction(toggleMuseumTour);
toolsMenu = menuBar()-&gt;addMenu(tr(<span class="stringliteral">"&amp;Tools"</span>));
toolsMenu-&gt;addAction(addNoteAction);
toolsMenu-&gt;addAction(toolsDistance);
mapMenu = menuBar()-&gt;addMenu(tr(<span class="stringliteral">"&amp;Map Provider"</span>));
mapMenu-&gt;addAction(osmAction);
mapMenu-&gt;addAction(yahooActionMap);
mapMenu-&gt;addAction(yahooActionSatellite);
mapMenu-&gt;addAction(googleActionMap);
mapMenu-&gt;addSeparator();
mapMenu-&gt;addAction(yahooActionOverlay);
}
<span class="keywordtype">void</span> Citymap::addNote()
{
addingNote = <span class="keyword">true</span>;
connect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
<span class="keyword">this</span>, SLOT(writeNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
}
<span class="keywordtype">void</span> Citymap::writeNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF coord)
{
Point* p = <span class="keyword">new</span> Point(coord.x(), coord.y(), notepixmap, QString::number(++noteID), Point::BottomLeft);
currentnoteID = noteID;
p-&gt;setBaselevel(16);
p-&gt;setMinsize(QSize(12, 10));
p-&gt;setMaxsize(QSize(47, 40));
notes-&gt;addGeometry(p);
notetextedit-&gt;clear();
notepoint-&gt;setCoordinate(coord);
notepoint-&gt;setVisible(<span class="keyword">true</span>);
mc-&gt;updateRequestNew();
disconnect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
<span class="keyword">this</span>, SLOT(writeNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
connect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
<span class="keyword">this</span>, SLOT(hideNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
}
<span class="keywordtype">void</span> Citymap::hideNote(<span class="keyword">const</span> QMouseEvent* evnt, <span class="keyword">const</span> QPointF)
{
<span class="keywordflow">if</span> (addingNote &amp;&amp; evnt-&gt;type() == QEvent::MouseButtonDblClick)
{
addingNote = <span class="keyword">false</span>;
notepoint-&gt;setVisible(<span class="keyword">false</span>);
mc-&gt;updateRequestNew();
<span class="comment">// save text</span>
notestext[currentnoteID] = notetextedit-&gt;toPlainText();
disconnect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
<span class="keyword">this</span>, SLOT(hideNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
}
}
<span class="keywordtype">void</span> Citymap::editNote(Geometry* geom, QPoint)
{
addingNote = <span class="keyword">true</span>;
currentnoteID = QVariant(geom-&gt;name()).toInt();
notetextedit-&gt;setPlainText(notestext[currentnoteID]);
notepoint-&gt;setCoordinate(geom-&gt;points().at(0)-&gt;coordinate());
notepoint-&gt;setVisible(<span class="keyword">true</span>);
mc-&gt;updateRequestNew();
connect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
<span class="keyword">this</span>, SLOT(hideNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
}
<span class="keywordtype">void</span> Citymap::calcDistance()
{
ignoreClicks = <span class="keyword">true</span>;
connect(mc, SIGNAL(mouseEventCoordinate( <span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF )),
<span class="keyword">this</span>, SLOT(calcDistanceClick(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
}
<span class="keywordtype">void</span> Citymap::calcDistanceClick(<span class="keyword">const</span> QMouseEvent* evnt, <span class="keyword">const</span> QPointF coord)
{
<span class="keywordflow">if</span> (coord1 == QPointF() &amp;&amp; evnt-&gt;type() == QEvent::MouseButtonPress)
{
coord1 = coord;
l-&gt;addGeometry(<span class="keyword">new</span> ImagePoint(coord1.x(), coord1.y(), QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/flag.png"</span>, <span class="stringliteral">""</span>, Point::BottomRight));
mc-&gt;updateRequestNew();
}
<span class="keywordflow">else</span> <span class="keywordflow">if</span> (coord2 == QPointF() &amp;&amp; evnt-&gt;type() == QEvent::MouseButtonPress)
{
coord2 = coord;
<span class="keywordtype">double</span> PI = acos(-1.0);
<span class="keywordtype">double</span> a1 = coord1.x()* (PI/180.0);;
<span class="keywordtype">double</span> b1 = coord1.y()* (PI/180.0);;
<span class="keywordtype">double</span> a2 = coord2.x()* (PI/180.0);;
<span class="keywordtype">double</span> b2 = coord2.y()* (PI/180.0);;
<span class="keywordtype">double</span> r = 6378;
<span class="keywordtype">double</span> km = acos(cos(a1)*cos(b1)*cos(a2)*cos(b2) + cos(a1)*sin(b1)*cos(a2)*sin(b2) + sin(a1)*sin(a2)) * r;
QList&lt;Point*&gt; points;
points.append(<span class="keyword">new</span> Point(coord1.x(), coord1.y()));
QPixmap* pixm = <span class="keyword">new</span> QPixmap(100,20);
pixm-&gt;fill(Qt::transparent);
QPainter pain(pixm);
pain.setFont(QFont(<span class="stringliteral">"Helvetiva"</span>, 6));
pain.drawText(pixm-&gt;rect(), QString().setNum(km, <span class="charliteral">'f'</span>, 3) + <span class="stringliteral">" km"</span>);
pain.end();
points.append(<span class="keyword">new</span> Point(coord2.x(), coord2.y(), pixm, <span class="stringliteral">""</span>, Point::BottomLeft));
l-&gt;addGeometry(<span class="keyword">new</span> LineString(points));
mc-&gt;updateRequestNew();
coord1 = QPointF();
coord2 = QPointF();
ignoreClicks = <span class="keyword">false</span>;
disconnect(mc, SIGNAL(mouseEventCoordinate( <span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
<span class="keyword">this</span>, SLOT(calcDistanceClick(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
}
}
<span class="keywordtype">void</span> Citymap::mapproviderSelected(QAction* action)
{
<span class="keywordflow">if</span> (action == osmAction)
{
<span class="keywordtype">int</span> zoom = mapadapter-&gt;adaptedZoom();
mc-&gt;setZoom(0);
mapadapter = <span class="keyword">new</span> OSMMapAdapter();
l-&gt;setMapAdapter(mapadapter);
sights-&gt;setMapAdapter(mapadapter);
museum-&gt;setMapAdapter(mapadapter);
pubs-&gt;setMapAdapter(mapadapter);
notes-&gt;setMapAdapter(mapadapter);
mc-&gt;updateRequestNew();
mc-&gt;setZoom(zoom);
yahooActionOverlay-&gt;setEnabled(<span class="keyword">false</span>);
overlay-&gt;setVisible(<span class="keyword">false</span>);
yahooActionOverlay-&gt;setChecked(<span class="keyword">false</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (action == yahooActionMap)
{
<span class="keywordtype">int</span> zoom = mapadapter-&gt;adaptedZoom();
mc-&gt;setZoom(0);
mapadapter = <span class="keyword">new</span> YahooMapAdapter();
l-&gt;setMapAdapter(mapadapter);
sights-&gt;setMapAdapter(mapadapter);
museum-&gt;setMapAdapter(mapadapter);
pubs-&gt;setMapAdapter(mapadapter);
notes-&gt;setMapAdapter(mapadapter);
mc-&gt;updateRequestNew();
mc-&gt;setZoom(zoom);
yahooActionOverlay-&gt;setEnabled(<span class="keyword">false</span>);
overlay-&gt;setVisible(<span class="keyword">false</span>);
yahooActionOverlay-&gt;setChecked(<span class="keyword">false</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (action == yahooActionSatellite)
{
<span class="keywordtype">int</span> zoom = mapadapter-&gt;adaptedZoom();
QPointF a = mc-&gt;currentCoordinate();
mc-&gt;setZoom(0);
mapadapter = <span class="keyword">new</span> YahooMapAdapter(<span class="stringliteral">"us.maps3.yimg.com"</span>, <span class="stringliteral">"/aerial.maps.yimg.com/png?v=1.7&amp;t=a&amp;s=256&amp;x=%2&amp;y=%3&amp;z=%1"</span>);
l-&gt;setMapAdapter(mapadapter);
sights-&gt;setMapAdapter(mapadapter);
museum-&gt;setMapAdapter(mapadapter);
pubs-&gt;setMapAdapter(mapadapter);
notes-&gt;setMapAdapter(mapadapter);
mc-&gt;updateRequestNew();
mc-&gt;setZoom(zoom);
yahooActionOverlay-&gt;setEnabled(<span class="keyword">true</span>);
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (action == googleActionMap)
{
<span class="keywordtype">int</span> zoom = mapadapter-&gt;adaptedZoom();
mc-&gt;setZoom(0);
mapadapter = <span class="keyword">new</span> GoogleMapAdapter();
l-&gt;setMapAdapter(mapadapter);
sights-&gt;setMapAdapter(mapadapter);
museum-&gt;setMapAdapter(mapadapter);
pubs-&gt;setMapAdapter(mapadapter);
notes-&gt;setMapAdapter(mapadapter);
mc-&gt;updateRequestNew();
mc-&gt;setZoom(zoom);
yahooActionOverlay-&gt;setEnabled(<span class="keyword">false</span>);
overlay-&gt;setVisible(<span class="keyword">false</span>);
yahooActionOverlay-&gt;setChecked(<span class="keyword">false</span>);
}
}
Citymap::~Citymap()
{
<span class="keyword">delete</span> mc;
<span class="keyword">delete</span> mapadapter;
<span class="keyword">delete</span> notepixmap;
<span class="keyword">delete</span> sights;
<span class="keyword">delete</span> notes;
<span class="keyword">delete</span> pubs;
<span class="keyword">delete</span> museum;
}
</pre></div> </div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 29 12:38:09 2009 for QMapControl by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>

View File

@ -1,89 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: QObject Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">QObject Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QObject:</div>
<div class="dyncontent">
<div class="center">
<img src="classQObject.png" usemap="#QObject_map" alt=""/>
<map id="QObject_map" name="QObject_map">
<area href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. " alt="Geometry" shape="rect" coords="78,56,225,80"/>
<area href="classqmapcontrol_1_1Layer.html" title="Layer class. " alt="Layer" shape="rect" coords="392,56,539,80"/>
<area href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. " alt="MapAdapter" shape="rect" coords="785,56,932,80"/>
<area href="classqmapcontrol_1_1MapNetwork.html" alt="MapNetwork" shape="rect" coords="942,56,1089,80"/>
<area href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. " alt="Curve" shape="rect" coords="0,112,147,136"/>
<area href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. " alt="Point" shape="rect" coords="157,112,304,136"/>
<area href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. " alt="GeometryLayer" shape="rect" coords="314,112,461,136"/>
<area href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. " alt="MapLayer" shape="rect" coords="471,112,618,136"/>
<area href="classqmapcontrol_1_1EmptyMapAdapter.html" title="MapAdapter which do not load map tiles. " alt="EmptyMapAdapter" shape="rect" coords="628,112,775,136"/>
<area href="classqmapcontrol_1_1TileMapAdapter.html" title="MapAdapter for servers with image tiles. " alt="TileMapAdapter" shape="rect" coords="785,112,932,136"/>
<area href="classqmapcontrol_1_1WMSMapAdapter.html" title="MapAdapter for WMS servers. " alt="WMSMapAdapter" shape="rect" coords="942,112,1089,136"/>
<area href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. " alt="LineString" shape="rect" coords="0,168,147,192"/>
<area href="classqmapcontrol_1_1ArrowPoint.html" title="Draws a directed arrow (showing orientation) into the map. " alt="ArrowPoint" shape="rect" coords="314,168,461,192"/>
<area href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. " alt="CirclePoint" shape="rect" coords="314,224,461,248"/>
<area href="classqmapcontrol_1_1ImagePoint.html" title="Draws an image into the map. " alt="ImagePoint" shape="rect" coords="314,280,461,304"/>
<area href="classqmapcontrol_1_1InvisiblePoint.html" title="Draws an invisible point into the map. " alt="InvisiblePoint" shape="rect" coords="314,336,461,360"/>
<area href="classqmapcontrol_1_1GoogleMapAdapter.html" title="MapAdapter for Google. " alt="GoogleMapAdapter" shape="rect" coords="942,168,1089,192"/>
<area href="classqmapcontrol_1_1OpenAerialMapAdapter.html" title="MapAdapter for OpenStreetMap. " alt="OpenAerialMapAdapter" shape="rect" coords="942,224,1089,248"/>
<area href="classqmapcontrol_1_1OSMMapAdapter.html" title="MapAdapter for OpenStreetMap. " alt="OSMMapAdapter" shape="rect" coords="942,280,1089,304"/>
<area href="classqmapcontrol_1_1YahooMapAdapter.html" title="MapAdapter for Yahoo Maps. " alt="YahooMapAdapter" shape="rect" coords="942,336,1089,360"/>
</map>
</div></div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="layer_8h_source.html">layer.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -1,70 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: QWidget Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">QWidget Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QWidget:</div>
<div class="dyncontent">
<div class="center">
<img src="classQWidget.png" usemap="#QWidget_map" alt=""/>
<map id="QWidget_map" name="QWidget_map">
<area href="classqmapcontrol_1_1MapControl.html" title="The control element of the widget and also the widget itself. " alt="MapControl" shape="rect" coords="0,56,78,80"/>
</map>
</div></div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="mapcontrol_8h_source.html">mapcontrol.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

View File

@ -1,90 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: Class Index</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Class Index</div> </div>
</div><!--header-->
<div class="contents">
<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_E">E</a>&#160;|&#160;<a class="qindex" href="#letter_F">F</a>&#160;|&#160;<a class="qindex" href="#letter_G">G</a>&#160;|&#160;<a class="qindex" href="#letter_I">I</a>&#160;|&#160;<a class="qindex" href="#letter_L">L</a>&#160;|&#160;<a class="qindex" href="#letter_M">M</a>&#160;|&#160;<a class="qindex" href="#letter_O">O</a>&#160;|&#160;<a class="qindex" href="#letter_P">P</a>&#160;|&#160;<a class="qindex" href="#letter_Q">Q</a>&#160;|&#160;<a class="qindex" href="#letter_T">T</a>&#160;|&#160;<a class="qindex" href="#letter_W">W</a>&#160;|&#160;<a class="qindex" href="#letter_Y">Y</a></div>
<table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
<tr><td rowspan="2" valign="bottom"><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;A&#160;&#160;</div></td></tr></table>
</td><td rowspan="2" valign="bottom"><a name="letter_G"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;G&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1LineString.html">LineString</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_P"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;P&#160;&#160;</div></td></tr></table>
</td><td rowspan="2" valign="bottom"><a name="letter_Y"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;Y&#160;&#160;</div></td></tr></table>
</td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;M&#160;&#160;</div></td></tr></table>
</td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1YahooMapAdapter.html">YahooMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;C&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_Q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;Q&#160;&#160;</div></td></tr></table>
</td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1GoogleMapAdapter.html">GoogleMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapControl.html">MapControl</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;I&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapLayer.html">MapLayer</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classQObject.html">QObject</a>&#160;&#160;&#160;</td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1Curve.html">Curve</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapNetwork.html">MapNetwork</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classQWidget.html">QWidget</a>&#160;&#160;&#160;</td><td></td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_E"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;E&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1ImagePoint.html">ImagePoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_O"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;O&#160;&#160;</div></td></tr></table>
</td><td rowspan="2" valign="bottom"><a name="letter_T"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;T&#160;&#160;</div></td></tr></table>
</td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1InvisiblePoint.html">InvisiblePoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_L"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;L&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1OpenAerialMapAdapter.html">OpenAerialMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classqmapcontrol_1_1TileMapAdapter.html">TileMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td></td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_F"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;F&#160;&#160;</div></td></tr></table>
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1OSMMapAdapter.html">OSMMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_W"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;W&#160;&#160;</div></td></tr></table>
</td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td></td><td></td></tr>
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td></td><td></td><td valign="top"><a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html">WMSMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)&#160;&#160;&#160;</td><td></td></tr>
<tr><td></td><td></td><td></td><td></td><td></td></tr>
</table>
<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_E">E</a>&#160;|&#160;<a class="qindex" href="#letter_F">F</a>&#160;|&#160;<a class="qindex" href="#letter_G">G</a>&#160;|&#160;<a class="qindex" href="#letter_I">I</a>&#160;|&#160;<a class="qindex" href="#letter_L">L</a>&#160;|&#160;<a class="qindex" href="#letter_M">M</a>&#160;|&#160;<a class="qindex" href="#letter_O">O</a>&#160;|&#160;<a class="qindex" href="#letter_P">P</a>&#160;|&#160;<a class="qindex" href="#letter_Q">Q</a>&#160;|&#160;<a class="qindex" href="#letter_T">T</a>&#160;|&#160;<a class="qindex" href="#letter_W">W</a>&#160;|&#160;<a class="qindex" href="#letter_Y">Y</a></div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

View File

@ -1,99 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>QMapControl: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">QMapControl
&#160;<span id="projectnumber">0.9.7.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ArrowPoint Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> enum name</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint</a>(qreal x, qreal y, int sideLength, qreal heading, QString name=QString(), Alignment alignment=Middle, QPen *pen=0)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a5c08ef7caea74bc61c2fee079f45be43">getHeading</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a47257eee92b14e7c7f9b778c67bcb9a5">Point</a>(qreal x, qreal y, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#aa1767675df0bc3c13c75b3a48241125e">Point</a>(qreal x, qreal y, QWidget *widget, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2a5d75301b8d2fd2ed406bddd0835740">Point</a>(qreal x, qreal y, QPixmap pixmap, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a>(int zoomlevel)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a553a63cdc0e822aaf3f324d23b86cec7">setHeading</a>(qreal heading)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a>(QSize maxsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a>(QSize minsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a>(QString name)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">setPen</a>(QPen *pen)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a>(Point *click, const MapAdapter *mapadapter)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">virtual</span></td></tr>
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More