[Qgis-developer] R: QgsBrowserDockWidget

2015-11-06 Thread Enrico Ferreguti
I didn't think it was so simple.
You take a QTreeView For example from QDesigner then you assign QgsTreeModel as 
view model, you add some trivial interaction logic and you get Your personal 
qgis browser.
That's all. Great Qgis!

Regards.
Enrico Ferreguti.


- Messaggio originale -
Da: "Luigi Pirelli" 
Inviato: ‎03/‎11/‎2015 18:11
A: "Enrico Ferreguti" 
Cc: "qgis-developer" 
Oggetto: Re: [Qgis-developer] QgsBrowserDockWidget

Hi Enrico,

I found other base classes in app that can be simply ported to library
without or with not so much code rewrite (e.g the identify widget).
I don't know about this class (seems there is only a qgisapp reference
using it's singleton), but usually is due the fact that it is a work
and developer would have time to do this.

in my opinion, feel free to do pull request... and hopefully adding test ;)

regards

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 3 November 2015 at 15:49, Enrico Ferreguti  wrote:
> Hi all.
>
> I notice that QgsBrowserDockWidget class is not included in python bindings.
> It would be great to have access to browser panel items from plugins.
> Is it intentional or an issue?
>
> Regards.
> Enrico Ferreguti
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] R: QgsBrowserDockWidget

2015-11-03 Thread Enrico Ferreguti
Hi Luigi, 
Contributing to core development is for now far from my skills. I was looking 
for a convenient way to browse available datasouces without to deal with qt gui 
engineering that is sometimes makes feel like reinventing the wheel. Thanks 
anyway.

Regards
Enrico Ferreguti

- Messaggio originale -
Da: "Luigi Pirelli" 
Inviato: ‎03/‎11/‎2015 18:11
A: "Enrico Ferreguti" 
Cc: "qgis-developer" 
Oggetto: Re: [Qgis-developer] QgsBrowserDockWidget

Hi Enrico,

I found other base classes in app that can be simply ported to library
without or with not so much code rewrite (e.g the identify widget).
I don't know about this class (seems there is only a qgisapp reference
using it's singleton), but usually is due the fact that it is a work
and developer would have time to do this.

in my opinion, feel free to do pull request... and hopefully adding test ;)

regards

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 3 November 2015 at 15:49, Enrico Ferreguti  wrote:
> Hi all.
>
> I notice that QgsBrowserDockWidget class is not included in python bindings.
> It would be great to have access to browser panel items from plugins.
> Is it intentional or an issue?
>
> Regards.
> Enrico Ferreguti
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer