Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-20 Thread C Hamilton
My purpose is with my Shape Tools plugin. Currently I have several
functions that have a GUI and are launched from the Shape Tools menu. With
Victor's help I have one of them as a processing module and I will convert
more. I still want to be able to launch the functions from the Shape Tools
menu, but I see no reason to have two different GUI instances if I can run
the processing GUI. There is one advantage with the processing GUI in that
it automatically handles saving the output to various formats which my GUI
does not.

On Tue, Dec 19, 2017 at 3:19 PM, matteo  wrote:

> > No, I meant: if your algorithms are already working *in processing* - ie
> you
> > have them set up as processing algorithms, and you also have your own
> GUI,
> > why would you need to trigger the processing algorithm GUI?
>
> ah ok.. in that case I cannot see any reason to do that :)
>
> Matteo
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread matteo
> No, I meant: if your algorithms are already working *in processing* - ie you
> have them set up as processing algorithms, and you also have your own GUI,
> why would you need to trigger the processing algorithm GUI?

ah ok.. in that case I cannot see any reason to do that :)

Matteo

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread Tom Chadwin
No, I meant: if your algorithms are already working *in processing* - ie you
have them set up as processing algorithms, and you also have your own GUI,
why would you need to trigger the processing algorithm GUI?

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread matteo
Hi Tom,

> Stepping back for a second, if your algorithms are already working, and your
> plugin has its own GUI, why would you want to script opening the processing
> GUI?

mmm why not? ;)
having your algorithm in Processing makes them accessible also in the
Processing Modeler.

I agree that depends on what your plugin makes

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread Tom Chadwin
Stepping back for a second, if your algorithms are already working, and your
plugin has its own GUI, why would you want to script opening the processing
GUI?

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread matteo
Hi Calvin,

Tom asked the same thing some weeks ago. Maybe you can find this answer
useful:

https://lists.osgeo.org/pipermail/qgis-developer/2017-December/050832.html

Hope this helps

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread C Hamilton
What I am asking is for the API call to display a particular Processing
algorithm dialog box. For example in the processing documentation at:

https://docs.qgis.org/2.18/en/docs/user_manual/processing/console.html

there are the following calls:

processing.alglist()
processing.runalg(name_of_the_algorithm, param1, param2, ..., paramN,
   Output1, Output2, ..., OutputN)
processing.algoptions("saga:slopeaspectcurvature")

The documentation does not mention any call to display the associated
dialog box and that is what I am looking for.

Incidentally, is there processing API documentation? It doesn't appear to
be a part of the QGIS python API.

Thanks!!!


On Mon, Dec 18, 2017 at 5:39 PM, Alexandre Neto 
wrote:

> Hi Calvin,
>
> In the processing options, there is a Menus (requires restart) section. In
> there, all processing algorithms should be listed, including yours. For
> each tool, you can set a menu path (separated by slashes If I recall), and
> if you what a button to show in the toolbars.
>
> Alexandre Neto
>
> C Hamilton  escreveu no dia segunda, 18/12/2017
> às 21:03:
>
>> I am in the process of making some of my plugins accessible to the
>> Processing Toolbox. I have it working from the processing toolbox, but how
>> do I launch the processing algorithm GUI from my plugin menu as if I were
>> double clicking on it in the toolbox?
>>
>> Thanks,
>>
>> Calvin
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> --
> Alexandre Neto
> -
> @AlexNetoGeo
> http://sigsemgrilhetas.wordpress.com
> http://gisunchained.wordpress.com
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-18 Thread Alexandre Neto
Hi Calvin,

In the processing options, there is a Menus (requires restart) section. In
there, all processing algorithms should be listed, including yours. For
each tool, you can set a menu path (separated by slashes If I recall), and
if you what a button to show in the toolbars.

Alexandre Neto

C Hamilton  escreveu no dia segunda, 18/12/2017 às
21:03:

> I am in the process of making some of my plugins accessible to the
> Processing Toolbox. I have it working from the processing toolbox, but how
> do I launch the processing algorithm GUI from my plugin menu as if I were
> double clicking on it in the toolbox?
>
> Thanks,
>
> Calvin
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Alexandre Neto
-
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer