bug. Now only ONE copy of string list keys is written to project files.
So, now writing should work for all types.
Unfortunately implementing the _reading_ part will have to wait until Monday.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2286 c8812cc2-4d05-0410-92ff-de0c093fc19c
After some discussion, it was decided that the way projects handle properties
should look like QSettings. The learning curve would be smaller since the
interface would be more consistent with QSettings, which some developers would
be familiar with.
The read*() and write*() property functions do update the project internal
state. However, the write*() has a bug with string lists in that the string
list entries are redundantly emitted to the project file.
Unfortunately reading this new property configuration from project files isn't
finished yet. However, in the interest of getting something out there for
people to code against, I'm going ahead and committing what I have. After
all, I want to reduce the number of people using the old interface, and thus
code that will have to be re-written to adjust to the new one.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2282 c8812cc2-4d05-0410-92ff-de0c093fc19c
This was necessary to allow plug-ins to connect() to various QgisApp slots and
signals. Since this somewhat short-circuits the need for the QgisInterface
classes, this might indicate the need for design refactoring.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2267 c8812cc2-4d05-0410-92ff-de0c093fc19c
getting properly restored when a project was read.
Note that still limited sub-set of property types are supported. Currently
only supports QString, Int, UInt, Bool, Double, LongLong, and ULongLong.
However, it should (theoreticaly) be trivial to add in support for other
types. Essentially you should add in new types as you need them.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2265 c8812cc2-4d05-0410-92ff-de0c093fc19c
Changed the way button actions are implemented so that the slots are made by qt designer in the ABC and then reimplemented in the subclassed qgsdlgvectorlaye
rproperties.
Separated level dialog over four tabs instead of 2 in an effort to reduce size of vector dialog. Having 'tabs within tabs' is not really nice ui design, but
Ill leave it like that until we use get a decent implementation of kde / outlook style configuration panel.
Rearranged various other widgets within vector dialog to improve layout.
More changes to come.
sisy dialog is not right either - will change that in a follow up commit...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2254 c8812cc2-4d05-0410-92ff-de0c093fc19c
automatically (expand the feature node) if only one feature is identified
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2249 c8812cc2-4d05-0410-92ff-de0c093fc19c
doesn't make sense because qgis has either already chosen a display field
value by the time the user has opened the layer config dialog box, or it
has read in a value from a .qgs file.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2248 c8812cc2-4d05-0410-92ff-de0c093fc19c
Added option to set initial layer visibility to false for ogr providers (other layer types to follow). This has not been tested against the project loading code.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2246 c8812cc2-4d05-0410-92ff-de0c093fc19c
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