243 Commits

Author SHA1 Message Date
timlinux
13c0fc7a75 ** Fix for bug [ 973922 ] Overview shows layers in wrong order
** Fixed show stopper bug where maplayerregistry wasnt being cleared properly on file new

** Added setZOrder which will be used in next commit to fix projectio zorder problem


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1644 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 23:05:28 +00:00
timlinux
a333184e5f Fix anoying mapcanvas isnt freezing during raster layer add bug
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1643 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 20:30:28 +00:00
timlinux
931c364b98 Add buffer around scale bar text
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1631 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-19 12:41:29 +00:00
larsl
9f030d5145 ** Added an option for setting the length of the scale bar to closest
integer < 10 times power of 10


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1623 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-18 15:06:55 +00:00
larsl
e1a3167811 ** Added skeleton code for importing other GPS file formats using GPSBabel
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1598 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-16 09:30:19 +00:00
timlinux
b9f0cff1d0 Added small icon displayed on raster legend showing whether this layer is in overview or not
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1596 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-16 00:17:03 +00:00
timlinux
a7b1e2af47 Add all layers to overview
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1593 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-15 23:18:00 +00:00
larsl
85255638d6 ** More preparation for GPS upload code
** New function in QgisInterface - getLayerRegistry()


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1588 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 22:37:38 +00:00
timlinux
9a837789c4 Force new project added to plugin iface
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1584 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 11:03:59 +00:00
timlinux
ebb2155b03 addRasterLayer to plugin interface
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1579 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 00:10:28 +00:00
timlinux
3a2f981762 Removal of some genericly useable raster methods into qgsrasterlayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1577 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 22:04:47 +00:00
timlinux
a426311a7c Legen Item font updates.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1574 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 17:25:58 +00:00
timlinux
202cf6f1ff Add version name to splash
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1572 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 15:52:10 +00:00
timlinux
2e023d7ba8 Capture Point changes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1570 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 15:02:32 +00:00
gsherman
f84f59e5aa Info about Windows version information and bumped extra version
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1564 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 19:24:28 +00:00
larsl
6477f9096c ** Let the user choose GPS protocol and feature type to download
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1556 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 13:30:27 +00:00
gsherman
6bffe44f68 **Current extent support added to overview map
**Added acetate objects and support to QgsMapCanvas


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1555 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 01:04:08 +00:00
timlinux
e8c159c7c8 Modified projectio (serialisation and deserialisation of project files) to use maplayerregistry and not mapcanvas.
Implemented state handling of 'showInOverview' property in project io.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1554 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 23:10:16 +00:00
sbr00pwb
bd84dc3c21 *** empty log message ***
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1551 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:38:53 +00:00
mcoletti
4d80222c68 fixed version numbers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1549 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:36:33 +00:00
sbr00pwb
f7ed3d787b First commit of the scale bar plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1547 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 16:03:02 +00:00
timlinux
20ff078024 Added "Show in overview" option to vector popup menu.
Removed overview stuff from debug only version of qgisapp.

Did plumbing for enableing disabling layers in overview from popup context menu.

Whoopdeedooo. :-)

All that remains to do now is sort out syncronisation of layer ordering between main map canvas and overview canvas.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1543 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 12:48:21 +00:00
timlinux
4d87e98215 Fixed empty .dbf crashing bug. Added transparency slider t raster popup menu.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1541 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 08:19:42 +00:00
larsl
16502ea4ca ** Hid the "GPS download file importer" tab
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1538 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 22:18:16 +00:00
larsl
279b307e86 ** Call GPSBabel using QProcess instead of system(), show a progress bar while
GPSBabel is running, show the messages printed to GPSBabel's stderr if
   something goes wrong


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1537 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 20:39:45 +00:00
larsl
6bd4e9036a ** Started adding GPS data download capability. Only tracklogs from Garmin
devices for now, routes and waypoints and Magellan support will come in
   the near future.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1536 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 14:16:35 +00:00
jobi
c3620941ba ** updated ts files
** fixed German translation
** added translation support to external help applications (grid_maker and gpsimporter)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1535 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 13:28:35 +00:00
gsherman
68bc4557bd Updated for changes @ devel17
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1534 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 04:08:48 +00:00
larsl
5e3748caaa ** Changed some calls to QMessageBox::question() to QMessageBox::information()
since Qt 3.1.2 doesn't have question()


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1532 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 16:45:03 +00:00
timlinux
8d87cc16ad Implemented map overview using maplayers rather than snapshots of a raster layer.
Implemented QgsMapLayerRegistry  - s singleton object that keeps track of loaded layers. When a layer is added an entry is made in the registry. When a layer is removed, the registry emits a layerWillBeRemoved signal that is connected to any mapvcanvas, legend etc that may be using the layer. The objects using the layer can then remove any reference they make to the layer - after which the registry deletes the layer object.

This fixes a problem with adding an overview map which caused qgis to crash when a layer was removed because it was trying to delete the same pointer twice.

Added a better implementation of the overview map below map legend.

Refactoring in qgis app - all private members now adhere to qgis naming conventions (prefixed with m).


Import Note *** ONLY THE MAPLAYER REGISTRY SHOULD DELETE LAYERS NOW ***


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1530 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 08:43:53 +00:00
timlinux
9f49427d58 Added getPaletteAsPixmap function to raster and display on raster props
dialog. Also added gdaldatatype to raster props metadata dialog.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1525 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 11:04:00 +00:00
jobi
a1e1dba09a ** fixed tims typo with GDAL_LDADD
** cleaned pluginnames


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1523 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 10:23:47 +00:00
jobi
d7af42f63e ** fixed bug #965720 by adding math.h for gcc 3.4 problems
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-03 14:05:01 +00:00
timlinux
bff70c726e MapCanvas changes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1516 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 14:05:44 +00:00
timlinux
dfa5256240 Print functionality...a work in progress.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1496 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-31 20:08:53 +00:00
gsherman
92cd8b5f6a Bumped extra version to 9
Added change log entries


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1494 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-31 19:43:20 +00:00
timlinux
3709b1f076 Fix poorly placed status text on splash screen.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1492 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-29 23:48:10 +00:00
jobi
4f698b92c2 ** cleanup of gcc warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1484 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-27 15:05:13 +00:00
timlinux
b92ce4bdde *** empty log message ***
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1481 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-27 11:07:07 +00:00
gsherman
0f4ddec0a5 Added theme selection to the user preferences dialog. Currently there is only
one theme (default) available. The preferences dialog examines the themes
directory and adds each subdir to the list of available themes (in a combobox).
If a theme subdirectory doesn't contain all the required images and the user selects it, the toolbars and menus will be blank the next time QGIS is started.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1479 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-27 06:44:02 +00:00
gsherman
ecc1fac979 Added QgisApp::setTheme() to set the icons from png images:
Inits the toolbar icons by setting the icon for each action.
 All toolbar/menu items must be a QAction in order for this
 to work.

 When new toolbar/menu QAction objects are added to the interface,
 add an entry below to set the icon

 PNG names must match those defined for the default theme. The
 default theme is installed in <prefix>/share/qgis/themes/default.

 TODO:Next step is to allow user specified icon sets by loading the
 images from a theme directory other than "default". This will require
 adding information to preferences to allow selecting the theme.

 New core themes can be added by creating a subdirectory under src/themes
 and modifying the appropriate Makefile.am files. User contributed themes
 will be installed directly into <prefix>/share/qgis/themes/<themedir>.

 TODO: Create a theme preferences dialog that parses the themes directory
 and builds a list of themes (ie subdirectories) for the user to
 choose from.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1478 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-27 05:16:58 +00:00
larsl
7d0ee227c7 ** Added some calls to std::string::c_str() to hopefully make Qt without STL
happy


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1477 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-26 15:25:07 +00:00
larsl
b1d4ad7f4c ** Fixed a bug that caused the legend checkboxes to always be unchecked when
using Qt 3.1.2 by removing QgsLegendItem::setOn(), don't know how this
   affects newer Qt


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1476 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-26 11:30:46 +00:00
gsherman
b7a49be816 Updated files for 0.3 release
** Updated whats new in qgisapp.cpp (for about dialog)
** Added border to the splash screen (Madison didn't like it without a border)
** Added map units tag to qgis.dtd -- this still needs to be implemented
   in saving/loading projects from .qgs files


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1474 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-26 05:34:47 +00:00
larsl
719f567bee ** Show the legend widgets in debug mode too
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1467 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-25 18:21:54 +00:00
larsl
2874b1308d ** Fixed some more instances of the same bug in raster layer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1466 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-25 17:54:10 +00:00
timlinux
8c36c73b18 Update summary by Tim
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1465 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-25 17:18:41 +00:00
larsl
a742e0d638 ** Updated all ts files and translated new messages in the swedish file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1462 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-25 15:33:08 +00:00
larsl
0f67e93507 ** Updated the swedish translation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1459 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-25 15:08:16 +00:00
larsl
ecb8b5637a ** Resaved plugins/copyright_label/pluginguibase.ui with designer 3.1 to fix
const problem


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1457 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-25 09:40:34 +00:00