[Qgis-developer] Opening Views->Panels->Log Messages

2014-07-06 Thread Andrew McClure
Is it possible to invoke/open this dock via a PyQt call? thx. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Accessing Plugin metadata

2014-07-18 Thread Andrew McClure
Sorry guys but this one has taken a bit too long to resolve: iface.pluginManagerInterface().pluginMetadata(u"name") returns None iface.pluginManagerInterface().pluginMetadata(u"general.name") returns None The fall back is of course something like this: self.metadata = ConfigParser()

[Qgis-developer] Telemetry Layer (MQTT Integration) - alpha released

2014-09-17 Thread Andrew McClure
Dear QGIS developers, I have submitted my first QGIS plugin to the world. It is experimental, unfinished, and no doubt has many defects. For the past 3 months or so between farm and family chores I have worked to bring a vision to fruition - combining an IoT (Digimesh) sensor network with the

Re: [Qgis-developer] Telemetry Layer (MQTT Integration) - alpha released

2014-09-17 Thread Andrew McClure
> Il 17/09/2014 13:01, Andrew McClure ha scritto: >> Dear QGIS developers, >> >> I have submitted my first QGIS plugin to the world. > > Hi Andrew, > where did you submit it? I cannot find it in the list of unpublished plugins. > I'm available for help in

Re: [Qgis-developer] Telemetry Layer (MQTT Integration) - alpha released

2014-09-18 Thread Andrew McClure
Paolo Web page created Screenshot uploaded Download and meta definitions updated. See: http://www.southweb.co.nz/telemetrylayer Reminds me of the joke about a plumber's own bathroom. thanks Andrew On 18/09/2014, at 6:02 pm, Paolo Cavallini wrote: > Il 18/09/2014 02:47, Andrew Mc

[Qgis-developer] Module dependencies

2014-09-22 Thread Andrew McClure
Our plugin:https://plugins.qgis.org/plugins/TelemetryLayer/Depends on Memory Layer saver to save its layers.  (I need to add this to the docs)I note that some plugin frameworks have a "dependencies" array in their module definitions (metadata.txt for QGIS plugins) and wondered if this was something

Re: [Qgis-developer] QgsAttributeDialog() working example

2014-10-01 Thread Andrew McClure
I found this thread very helpful. It seems to be that to the dialog into edit mode this has to be done programmatically by calling startEditing() - not by simply having the layer in edit mode. Can anyone else verify that? Regardless, thanks for the pointers and suggestions in the thread. Mu

Re: [Qgis-developer] QgsAttributeDialog() working example

2014-10-02 Thread Andrew McClure
3/10/2014, at 5:26 am, Alexandre Neto wrote: > Hello, > > even calling startEditing() programmatically, I don't seem to be able to open > the Form in editable mode. > > Any help with this will be appreciated > > Thanks, > > Alexandre Neto > > On Th

[Qgis-developer] Upload plugins to qqis plugins via a script

2014-10-02 Thread Andrew McClure
Here's a crude PHP script to login and upload your .zip file when it's been updated. Requires libcurl https://github.com/nzfarmer1/qgisplugintools/blob/master/upload.php p.s. have just made a new release of TelemetryLayer - starting to get down to a short list issues that could use a more exp

Re: [Qgis-developer] QgsAttributeDialog() working example

2014-10-03 Thread Andrew McClure
er.py (Code's a bit rough as this is a work in progress) > Hello, > > even calling startEditing() programmatically, I don't seem to be able to open > the Form in editable mode. > > Any help with this will be appreciated > > Thanks, > > Alexandre Net

[Qgis-developer] setToolTip on Legend Group?

2014-10-03 Thread Andrew McClure
Ok gurus, this one has got me. Any way to access the underlying QTreeWidgetItems? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QgsAttributeDialog() working example

2014-10-16 Thread Andrew McClure
open > the Form in editable mode. > > Any help with this will be appreciated > > Thanks, > > Alexandre Neto > > On Thu, Oct 2, 2014 at 6:33 AM, Andrew McClure wrote: > I found this thread very helpful. It seems to be that to the dialog into > edit mode this ha

Re: [Qgis-developer] Simple sample code for function editor

2015-03-09 Thread Andrew McClure
You may want to include reference to the unregister method when cleaning up. // For all your user defined functions if QgsExpression.isFunctionName("$"): QgsExpression.unregisterFunction("$") ___ Qgis-developer mailing list Qgis-developer@lis

Re: [Qgis-developer] wrapping changeAttributeValue between begin and end EditCommand

2015-03-16 Thread Andrew McClure
+1 for this I was unaware of the reason for the crashes on Undo I was seeing until this thread. Our approach in Telemetry Layer was to simply end the edit session and commit the changes programmatically denying the possibility of a user undo. A more elegant approach would be welcomed. On 17/0

Re: [Qgis-developer] Have custom functions available in the console

2015-03-28 Thread Andrew McClure
Caroline Have you tried prepending the dollar symbol $? > $a() On 28/03/2015, at 3:18 am, Caroline Alexiou wrote: > Hello, > I want to have some helper functions available in the Python console within > qgis, for instance this: > def a(): >return iface.activeLayer() > so that I type les

[Qgis-developer] Rendering active map symbol programmatically

2015-05-03 Thread Andrew McClure
Am struggling a bit with this problem. I want to render the active symbol for a layer as a QPixmap in a dialog. I have got this far: s = layer().rendererV2() key = s.rootRule().findRuleByKey(s.rootRule().ruleKey()) This tells me the active rule key to be rendered but how to ge

[Qgis-developer] Rendering active map symbol as QPixmap

2015-05-07 Thread Andrew McClure
Any takers for this one? I'd like to render the active symbol for a layer as a QPixmap in a dialog. I have got this far: s = layer().rendererV2() key = s.rootRule().findRuleByKey(s.rootRule().ruleKey()) This tells me the active rule key to be rendered but how to get the image dat

Re: [Qgis-developer] Rendering active map symbol as QPixmap

2015-05-07 Thread Andrew McClure
you are doing legendSymbologyItems might give you what you > need without extra work. > > - Nathan > > On Fri, 8 May 2015 at 07:00 Andrew McClure wrote: > Any takers for this one? I'd like to render the active symbol for a layer as > a QPixmap in a dialog. > &g

Re: [Qgis-developer] Debugging a QGIS crash

2015-05-09 Thread Andrew McClure
Tom I'd suggest installing VM Ware and running QGIS under Ubuntu. You will have access to a console and better debugging facilities. You could even run the program under strace. Ideally you want to see a stack trace so you can identify the pyqt commands that were executed prior to crashing.

[Qgis-developer] Telemetry Layer (new release made)

2015-06-17 Thread Andrew McClure
Have just uploaded a new version of our experimental Telemetry Layer (MQTT <-> QGIS integration) plugin. Am reasonably happy with this release. There are things missing, and no doubt some defects, but what is there seems quite stable and provides a nice framework for extension. An example sam