Macro like recording - export QGIS actions as Python code
|Reported by:||nathanw||Owned by:||borysiasty|
|Priority:||minor: annoyance||Milestone:||Version 2.0.0|
|Component:||Python plugins and bindings||Version:|
|Must Fix for Release:||No||Platform:||All|
|Platform Version:||Awaiting user input:||no|
The general idea is that QGIS would send the the Python code for each action (or just the more common ones) that it preforms. Code could be sent to file or console so that people could copy and paste it into a script and run it later. Of course you wouldn't do this all the time only when a certain trigger is set in the Python console or a config screen.
For example, say the user opens a table from a PostGIS database and sets its style to fill solid red. QGIS would output the needed Python code to open the table, add it to the map canvas and change its color.
I'm not sure how hard this would be or even if anyone else thinks it's worth having but could be handy for people to learn the QGIS python API and help with writing scripts.