Commit Graph

160 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
b9af073e98 [Qt] Added QMapboxGL::sourceExists 2017-02-09 12:31:32 +02:00
Bruno de Oliveira Abinader
d3ca6c67f1 [Qt] Added QMapbox::Feature → GeoJSON conversion helper 2017-02-08 15:55:47 +02:00
Bruno de Oliveira Abinader
7db79da501 [Qt] Added QMapbox::Feature 2017-02-08 15:55:47 +02:00
Bruno de Oliveira Abinader
59d279b689 [Qt] Moved GeoJSON-related conversion functions to qt_geojson.hpp 2017-02-08 15:55:47 +02:00
Bruno de Oliveira Abinader
8b9a511357 [Qt] Added QMapboxGL::layerExists 2017-02-08 15:55:47 +02:00
Bruno de Oliveira Abinader
ab814ef9b0 [Qt] Guarantee QSqlDatabase connection name uniqueness
Guarantee QSqlDatabase connection name uniqueness by using a static
counter together with the current thread.
2017-02-01 17:00:17 +02:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Thiago Marcos P. Santos
a8225b8fff [Qt] Make datatypes compatible with the default implementation
On the default all integers map to `sqlite3_bind_int64`.
2017-01-26 18:37:42 +02:00
Bruno de Oliveira Abinader
be43310b6f [Qt] Refactor QMapbox Annotations API 2017-01-26 14:53:45 +02:00
Thiago Marcos P. Santos
1f3424fafa [Qt] Remove QtQuick dependency from the low-level API
Not really needed.
2017-01-24 10:26:33 +01:00
Bruno de Oliveira Abinader
00b4baff5f [Qt] Check for Qt SQLite database driver 2017-01-23 19:06:53 +02:00
Thiago Marcos P. Santos
1c759cfa09 [Qt] Explicitly map the bool binder to int
On Qt4 and Qt5 the QVariant conversion from bool behaves differently.
2017-01-23 19:06:53 +02:00
Thiago Marcos P. Santos
1065917e59 [Qt] Save a copy when using binary data if possible 2017-01-23 19:06:53 +02:00
Bruno de Oliveira Abinader
88b7fc3929 [Qt] Implement mapbox::sqlite::{Database,Statement} using QtSql 2017-01-23 19:06:53 +02:00
Thiago Marcos P. Santos
89dc01283f [Qt] Fix build with WITH_QT_I18N=1 2017-01-20 18:50:45 +01:00
Thiago Marcos P. Santos
fd9598779c [Qt] Do not use c_str() when converting from UTF8 2017-01-20 18:50:45 +01:00
Thiago Marcos P. Santos
181b3635f1 [core][Qt] Use Qt for UTF16, since codecvt is not always available 2017-01-20 18:50:45 +01:00
Thiago Marcos P. Santos
99942558b2 [Qt] Fix build when using Qt namespaces
Fix when building with namespaces enabled.

http://wiki.qt.io/Qt_In_Namespace
2017-01-19 16:34:51 +01:00
Thiago Marcos P. Santos
bf82b07ac8 [Qt] Use system defaults CA
The CA certificate we are bundling will expire in Aug/2018.
2017-01-19 11:33:04 +01:00
Bruno de Oliveira Abinader
14fe15e3fc [Qt] Avoid QApplication duplication via test main() 2017-01-18 19:06:32 +01:00
Thiago Marcos P. Santos
2a22ff7f1b [Qt] Add more docs 2017-01-09 13:49:35 -02:00
Thiago Marcos P. Santos
6cc37e6065 [Qt] Removed unused methods
They will never return true because Qt only does client side animations.
2017-01-09 13:49:35 -02:00
Chris Loer
12a9932ebc Port raggedness-minimizing line breaking from gl-js. 2017-01-05 10:22:53 -08:00
Chris Loer
f68449aeb8 Cleaning up line breaking code.
* Don't include trailing spacing (as opposed to whitespace) in lineLength
* Modify BiDi interface to require initial bidi layout and linebreaking to happen in one call.
* Code style changes suggested by @kkaefer
2017-01-05 10:22:53 -08:00
Thiago Marcos P. Santos
f55a6e2b7a [Qt] Expose method for changing the base API URL
Useful for redirecting to a cache server or debugging.
2017-01-05 15:09:02 -02:00
Thiago Marcos P. Santos
5ac72ce8bf [Qt] Add docs for QMapboxGL 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
4bee81dd21 [Qt] Added docs for QMapboxGLSettings 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
003eec633e [Qt] Move QMapboxGL stuff from QMapbox namespace 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
b8564299e5 [Qt] Simplify setTransitionOptions 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
ecf1842a26 [Qt] Removed unused methods 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
8f24119bd0 [Qt] Implement updateSource
It will create or update a source. Right now only GeoJSON sources are
mutable and can be updated using this method.
2016-12-14 14:21:20 -02:00
Thiago Marcos P. Santos
0f0f2c69d7 [Qt] Fix build when ICU is disabled 2016-12-13 16:16:53 -02:00
Bruno de Oliveira Abinader
b65b2f1c29 [qt] Skip ICU if WITH_QT_I18N is set 2016-12-12 22:34:52 +02:00
Thiago Marcos P. Santos
d6b8866975 [Qt] Allow strings as data source in the QML Item
Data values starting with ':' will be assumed to be a resource.
2016-12-09 11:28:31 -02:00
Thiago Marcos P. Santos
97df99c134 [Qt] Remove route before adding
This will allow to bind a GeoJSON to the source data property
without throwing an exception.
2016-12-09 11:28:31 -02:00
Bruno de Oliveira Abinader
a8c2688ca3 [qt] Added copyrightsChanged() signal 2016-12-08 16:36:38 +01:00
Bruno de Oliveira Abinader
aa9bf7139c [qt, macos] Remove workaround for a bug in Qt 5.7 2016-12-07 17:46:09 +01:00
Konstantin Käfer
4fe071b518 [build] upgrade to variant 1.1.4 and dependencies 2016-11-28 18:02:00 +01:00
Bruno de Oliveira Abinader
11281d15e9 [qt] Use QOpenGLWidget instead of QGLWidget from Qt 5.4 onwards 2016-11-28 18:18:42 +02:00
Bruno de Oliveira Abinader
b81255e5da [qt, macos] Consume GL_INVALID_OPERATION from Qt 2016-11-28 18:18:42 +02:00
Konstantin Käfer
e76de05402 [build] move logging to util 2016-11-22 20:58:51 +01:00
Konstantin Käfer
3bc79e316e [build] move default ThreadPool implementation to platform/default 2016-11-22 20:58:51 +01:00
Konstantin Käfer
afd43eea3a [core] remove gl.hpp from all headers that don't need it 2016-11-04 21:24:05 +01:00
Konstantin Käfer
f7801e5d82 [core] correctly set the framebuffer size on retina screens
Also asserts in Debug mode that the internal state and the OpenGL state are identical
2016-11-01 10:46:04 +01:00
Bruno de Oliveira Abinader
fa96612888 [Qt] Fix viewport size for Linux on Qt5 2016-10-28 14:36:07 +03:00
Konstantin Käfer
62b56b799a [core] change std::array<uint16_t, 2> to mbgl::Size 2016-10-27 18:30:58 -07:00
Konstantin Käfer
a4d259c33f [core] move gl::Context to Backend and refactor View 2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694 [core] separate Backend from View for headless rendering 2016-10-25 13:52:36 -07:00
Mike Morris
817c26111a [core] [node] pass thread pool impl to Map constructor
Updates mbgl::Map constructor usage everywhere

Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Konstantin Käfer
2ec2860ce5 [core] move OpenGL extension loading to their own headers 2016-09-29 13:19:27 -07:00