284 Commits

Author SHA1 Message Date
Juergen E. Fischer
f210fc7ee8 make december postfix translatable 2015-12-04 21:57:46 +01:00
Sebastian Dietrich
b4561a9283 introduce a new command line option '--' to the main app
all arguments after this option are treated as files, not options
includes a test
2015-11-22 21:55:34 +01:00
Nyall Dawson
b7e1cae4f0 Switch double quoted single character to single quotes for some
QString methods

Using single quotes is a significant performance boost. Rough
benchmarks indicate the QString single quote methods take
about 15% of the time the double quote variants take.
2015-11-02 17:55:08 +11:00
Nyall Dawson
5ed3d1b73f Use QString::arg multi argument method to avoid extra heap allocations 2015-10-15 17:51:06 +11:00
Nyall Dawson
160f172b42 Flip some QStrings to QLatin1String where they may be faster 2015-10-12 18:38:45 +11:00
Juergen E. Fischer
212a9247a6 fixes for debian and osgeo4w packaging 2015-09-27 16:05:28 +02:00
Larry Shaffer
e65aa99ae7 [FEATURE] Authentication configuration system with master password
- Main C++ core and gui classes and desktop app integration
- Support for authentication method plugins
- Does not contain any integration with service connections
2015-09-21 08:51:18 -06:00
Nyall Dawson
dbded4d91d Avoid some unnecessary QString construction 2015-09-09 19:17:50 +10:00
Nyall Dawson
f628ebd423 Replace foreach with Q_FOREACH
For:
- consistency
- to make it immediately clear that this is a Qt macro and that it
works slightly differently to c++ for loops
2015-09-09 19:17:29 +10:00
Nyall Dawson
73ffb83ad4 Make sure a lot of foreach loops use references 2015-09-08 17:33:18 +10:00
Juergen E. Fischer
cb5054f9aa options: fix display of selected theme 2015-09-05 02:07:31 +02:00
Nathan Woodrow
46139d6591 Fix icon loading for themes 2015-08-31 21:16:19 +10:00
Nathan Woodrow
a60c8fc2ba Fix windows build 2015-08-31 14:40:08 +10:00
Juergen E. Fischer
be2ff5c4c7 [FEATURE] add commandline options for dxf export
* Initialize dxf export dialog with current visible layers w/o preset
* Also save dxf export settings into project file (including preset selection)

TODO: dxf export (but also snapshot) cause plugins to crash on exit
(--noplugins helps)
2015-08-29 23:03:13 +02:00
Juergen E. Fischer
5197e91bdc Fix QgsVisibilityPresets method spelling 2015-08-29 23:03:12 +02:00
Nathan Woodrow
da3f7beeb0 Add UI theme support.
- Add dark theme (Night Mapping)
- Themes loaded from resources\themes and ~\.qgis2\themes
- Themes need folder + style.qss
2015-08-28 21:29:06 +10:00
Nyall Dawson
61f60e408f Fix some warnings on OSX build 2015-08-12 23:36:18 +10:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Matthias Kuhn
f836672553 [Android] main function needs to be visible 2015-07-15 10:49:42 +02:00
Denis Rouzaud
9e3183c63f Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73 sort includes 2015-06-10 13:59:08 +02:00
Matthias Kuhn
52fe2dec83 Set useGui on Android 2015-03-31 23:03:30 +02:00
Larry Shaffer
12e0f358a8 Set GDAL env vars for when gdal lib is bundled in app on Mac 2015-03-20 11:48:09 -06:00
Larry Shaffer
c89688a26f Followup to ea00b36; only replace Q_WS_X11 with Q_OS_UNIX for non-Mac
- QgsMapToolOffsetCurve fix not needed, works OK on Mac
2015-02-19 00:31:24 -07:00
Juergen E. Fischer
1e97b62cf9 coverity fixes 2015-02-18 09:25:16 +01:00
Nyall Dawson
8e4368c7fc Replace use of rand with qrand 2015-02-11 10:13:47 +11:00
Juergen E. Fischer
b67daf0336 new coverity fixes 2015-02-08 19:32:50 +01:00
Juergen E. Fischer
dc93261ce5 fix cppcheck issues 2015-02-07 12:57:57 +01:00
Juergen E. Fischer
e3d5a0549c fix some coverity issues 2015-02-06 21:12:18 +01:00
Juergen E. Fischer
1e21c5a9e9 fix backtrace output 2015-01-24 22:00:07 +01:00
Anatoliy Golubev
ea00b36985 Change Q_WS_X11 to Q_OS_UNIX for Qt5 compatibility 2014-12-24 15:23:21 +03:00
Anatoliy Golubev
d5d4a5adeb Q_WS_* macros removed from Qt5, to determine platform use Q_OS_* macroses which exists in Qt4 and Qt5 2014-12-23 12:34:21 +03:00
Juergen E. Fischer
f273edb955 fix windows build 2014-11-22 11:36:15 +01:00
Matthias Kuhn
78c519546a Add Qt5 support 2014-11-21 11:45:32 +01:00
Juergen E. Fischer
a57066a48d * fix cppcheck warnings
* some sip updates
* [API] fix spelling QgsMultiRenderChecker::drawBackround
* [API] fix spelling QgsSymbolLayerV2Utils::drawStippledBackround
* [API] fix spelling QgsMapSettings::layerTransfrom
2014-11-20 15:02:35 +01:00
Radim Blazek
d652a8099f mapserver QGIS_OPTIONS_PATH support, fixes #10327 2014-05-25 19:31:16 +02:00
Etienne Tourigny
e879a8b77f get/set max. thread count in QgsApplication 2014-05-16 13:25:03 -03:00
Martin Dobias
d0c93b94b2 Merge pull request #1244 from simonsonc/qt-no-deprecated
Fix uses of deprecated Qt methods
2014-03-26 15:37:59 +01:00
Richard Duivenvoorde
5b4d076898 revert 637359a and manually merge pull request #1232
Signed-off-by: Juergen E. Fischer <jef@norbit.de>
2014-03-23 22:06:12 +01:00
Carl Simonson
3e0e0edec7 Fix uses of deprecated Qt methods
There are still a few leftovers from the Qt 3 to Qt 4 migration that can
be found by defining QT_NO_DEPRECATED. Here is a summary of the changes:

* QDir::convertSeparators was changed to QDir::toNativeSeparators with Qt 4

* QRexExp::numCaptures was changed to captureCount with Qt 4

* QTextIStream/QTextOStream was merged into QTextStream with Qt 4

* QFileDialog::selectFilter/filters was changed to
  selectNameFilter/nameFilters with Qt 4.4

* qVariantCanConvert/qVariantValue was changed to canConvert/value with Qt
  4

Note that if a conversion to Qt 5 will happen someday, this will have to
be done since Qt 5 removes these deprecations.
2014-03-16 11:16:25 -05:00
Larry Shaffer
4a3ad4b997 Update qgis/qt/osg plugin Mac-bundled search paths
- Ensure Qt plugins path is set before Qt references a plugin, e.g. before splash screen
- Strip old Mac-native 'find bundle path' code for simple 'if it is there, use it' code based off of QCoreApplication::applicationDirPath()
2014-03-02 16:35:32 -07:00
Larry Shaffer
30fff85703 Define QGIS_MACAPP_BUNDLE in qgsconfig.h so resources can be found when QGIS_MACAPP_BUNDLE=0 2014-02-22 15:02:51 -07:00
Larry Shaffer
2d4ecbac00 Move loading of test fonts to QgsFontUtils
- Always add testdata.qrc to desktop and server, but only auto-load Roman and Bold if built in debug mode
- Test fonts can now be loaded directly, after startup
- Add sip binding and unit tests
2014-02-19 13:27:59 -07:00
Larry Shaffer
34be93b849 Update test font to Vera San and start workaround for Mac 10.9 font-loading bugs
- Test font loading should be moved to QgsFontUtils
2014-02-19 13:27:59 -07:00
Juergen E. Fischer
e0c761ccd5 main: fix installation of qt translator 2014-02-16 21:33:35 +01:00
Juergen E. Fischer
b7a6937548 don't warn about missing translation for C locale 2014-02-08 12:27:16 +01:00
Larry Shaffer
d8e5c2f830 Increase number of allowed open files on Mac
- Increase from default 256 to 4096-to-8192 range, or OPEN_MAX for process
- From code provided by Larry Biehl, Purdue University, USA, from 'MultiSpec' project
2013-10-31 00:09:44 -06:00
Larry Shaffer
e5c40d7056 Fix crash on launch of bundled Mac app 2013-09-16 23:22:02 -06:00
Tim Sutton
64c947b2f0 Merge pull request #749 from Oslandia/issue8045b
Unit tests for command line arguments
2013-09-15 02:47:07 -07:00
Larry Shaffer
6ef5829abf [Android] Fix for Qt Ministro hiding app's menubar in favor of native Android menus
- Brings back main window menu bar
2013-09-09 17:15:38 -06:00