In respect to your time, I will try to bee as brief as possible.
My Goal: A plugin that does something along the lines of this:
Qt Code:
[...] void EchoPlugin::triggerAction() { ProjectExplorer::RunConfiguration* echo = ???; echo->setArguments("HelloWorld"); echo->setExecutable("echo"); ProjectExplorer::ProjectExplorerPlugin::currentProject()->activeTarget()->addRunConfiguration(echo); } [...]To copy to clipboard, switch view to plain text mode
Or if you are visually oriented, I am trying to create this:
Ndi8Ty5.jpg
With the executable being "echo" and the argument being "HelloWorld"
From my research, the Classes in question are:
- http://doc.qt.digia.com/qtcreator-ex...iguration.html
- http://doc.qt.digia.com/qtcreator-ex...onfactory.html
My issues:
- I don't see a way to set the arguments.
- The documentation does not coincide with my version of QtCreator (3.1.1), where both classes are actually found in the QtSupport namespace, not in ProjectExplorer.
So I presume I am looking in the wrong place, and that I am probably not understanding how the run configurations are created.
Now I do not claim any expertise in QtCreator's api, so if you feel the need to shout "RTFM!" to me, I will gladly take this under advisement. Otherwise, I offer my endless thanks to any one who takes the time to help me out with my ignorance.
Thanks!
Bookmarks