Updated _all_ plugins so that initGui() is implemented as a slot.
This is required if you wish to use qgsproject for storing and reinstating state in qgis. The reason for this is that the initGui() method is only called once at the moment when qgis starts up. I will be adding a signal to qgisproject 'projectLoaded' that will be emitted when a new project is loaded. I will also be adding connect() for each plugin when its initially loaded in qgisapp so that the initgui slot is called whenever the project loads.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2238 c8812cc2-4d05-0410-92ff-de0c093fc19c
Win ifdefs added
Now in sync with external plugins template (which was more up to date)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2237 c8812cc2-4d05-0410-92ff-de0c093fc19c
- added include for <vector>
qgis.h:
- added WKBUnknown to enumerated list to be used as error state
qgisapp.cpp:
- fixed a for loop
qgisapp.h, qgisiface.h, qgslegend.h, qgslegenditem.h, qgsmapcanvs.h, qgsvectorlayer.h:
- made copy ctor and assignment operator private since we won't be copying
any of these
qgsattributetable.cpp, qgsrasterlayer.cpp, qgssymbologyutils.cpp:
- functions that say they return something should actually return something
*renderer.h:
- made dtors virtual
qgscoordinatetransform.h:
- added initializer for xMax
qgsgeomtypedialog.cpp:
- added return of WKBUnknown when given bad data
qgslabel.cpp, qgslabeldialog.cpp:
- used static_cast to stomp compiler warning
qgsmapcanvas.cpp:
- made CanvasProperties a class form struct, partly to find work-around for
gcc bug and partly to ensure that ctor and assignment operator were
disabled
- ensured that members were in the same order in initializer list as they
were declared
- now use QgsScaleCalculator::units
qgsproject.cpp:
- now read and write map units; still need to tie it in with more code
qgsprojectproperties.cpp:
- now use canonical map units stored in QgsProject singleton object
qgsscalecalculator:
- now prefer to use QgsScaleCalculator::units instead of int
And many minor formatting changes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2175 c8812cc2-4d05-0410-92ff-de0c093fc19c
* Changed the tooltip of the action from "GPS Importer" to "GPS Tools"
* Removed some old unused code
* Made the upload/download tools much more flexible by letting users
specifying "devices" with upload and download commands
* Remember the last used device and port for uploads and downloads
* Remember the last directory that a GPX file was loaded from
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2159 c8812cc2-4d05-0410-92ff-de0c093fc19c
Also made QgsRasterLayer more robust in light of files with poor "no data" and
"min/max" value information.
Note that this hasn't been tested with windows versions.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2156 c8812cc2-4d05-0410-92ff-de0c093fc19c
must now have a QAction member pointer that is created when the GUI is
initialized in initGui(). This pointer is used in the unload() method to
remove the QAction and associated icon from the plugins toolbar.
* Updated splash for upcoming 0.5 release
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1956 c8812cc2-4d05-0410-92ff-de0c093fc19c