[Qgis-developer] Feature fix #4273 and possibly #3756 (qgsdecorationitem)

Duncan drrunnacles at googlemail.com
Wed Dec 30 07:52:12 PST 2015


Hi Médéric,

Sorry, I saw Nyall's reply and somehow missed yours.

The pull request is in...and passed the CI which is nice.

I've attached a screen shot of the UI changes.

I, like you, don't think this is exactly a critical feature, but nice to 
have. I don't think it breaks any old projects. Well none that I tried 
anyway.

The changes just include:
- Updates to the dialog as shown in attachment.
- A couple of new signal/slots to activate/deactivate the percentage 
placement inputs.
- Additional member variables in each class to hold values from 
checkbox, horizontal, and vertical inputs.
- A few lines of additional code in the render() function of the classes 
to locate the item.

I've started having a look at the tests and will issue a separate pull 
for them.


Thanks,

Duncan



On 30/12/15 09:57, Médéric RIBREUX wrote:
> Hello,
>
> On Wed, Dec 30, 2015 at 09:07:59AM +0000, Duncan wrote:
>> Morning,
>>
>> I've put the changes together for these features. This is my first
>> contribution, so I wondered if I could check that I'm making the pull
>> request properly. Hopefully make it a bit easier for whoever deals with it.
>>
>> I ran the changes through prepare-commit.sh which fixed a few formatting
>> issues. I plan to rebase the
>> branch onto the latest main and push up to my forked github repo and issue
>> the pull request.
>>
>> I've made a couple of amendments to the dialogs for the north arrow,
>> scalebar and copyright decoration items. Should I check these with anyone
>> before making the pull request?
>>
> Well, as long as old projects can still be opened with your
> modifications and if the end user is not lost by the changes, I tend
> to say that you can make your PR. After all, this is not a (in my
> humble opinion) a critical feature of QGIS.
>
> You can send a summary of your changes to the dev list if you want
> (with a picture of the new dialog box).
>> There aren't any existing tests for these classes. Would you like me to put
>> some together for them?
>>
> Why not ! The more the merrier...
>> Many thanks,
> See your Pull-Request soon !
>> Duncan
>>
>>
>> On 21/12/15 12:52, Duncan wrote:
>>> Hi,
>>>
>>> I've been having a bit of a look around the code for this and think it
>>> would be a fairly small job to  implement and thought I'd let you know
>>> that I planned to have a go at it.
>>>
>>> I think this is probably of interest to Médéric Ribreux, who posted an
>>> update recently, or Tim Sutton, who is the assignee of #3756.
>>>
>>> I plan to start with qgsdecorationnortharrow but thought that the idea in
>>> #3756 for using page percentage seemed better than just adding some more
>>> defined locations, as suggested in #4273.
>>>
>>> I hope this is ok. Let me know if you have any input.
>>>
>>>
>>> Thanks,
>>>
>>> Duncan
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: north_arrow_decorationitem.png
Type: image/png
Size: 28349 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151230/4cffd1c7/attachment-0001.png>


More information about the Qgis-developer mailing list