Yeah I get this, and you’re right that most people will never need the generic Run...
. My main motivation was just to avoid people being hamstrung by the extent of my implementation, that they don’t have to wait for me to add explicit options for solvation before they can run a calculation with solvation, for example. This way they can always run whatever xtb
can run, even if the output won’t be automatically displayed in Avogadro.
Equally, should the command line usage of xtb
ever change, even if everything else breaks, free specification of the CLI command will always still work.
Oh nice, how? Doesn’t seem to be mentioned in the docs. Just with "toolTip": string
? Does this work for all the widgets?
Hmm, maybe that could work. Though those sorts of fields tend to suffer from it not being at all obvious that the text can be edited even after selecting.
Inspired by this I thought I’d simply put the url in the text field label. It actually looks adequate (for now) but the link is neither clickable (hard to implement) nor selectable with the cursor so copy+paste is not possible.
Having thought about it more I actually think this would be very nice. It would be the easiest to implement on the Avogadro side as all the QButton
needs is text and the name of a Python file to execute in the exact same way as when menu options are selected, no? While on the scripting side, it would really make a lot of interesting functionality possible.
Regardless, there is a menu option for xtb Help
which I think is fairly obvious and opens the docs in the browser. So there is no immediate need for anything else, I’m just spitballing really.