I tried to add the possibility to run commands from command line in the
I integrated that with the patches of Jiří Paleček from 14.9. (if it doesn't
mind; I used his proposed changes) with some changes, so that in addition to methods normal, konsole and
collect output, there is run in TE.
In addition I added KRadioActions for switching command-line mode (used the
same principle as for setting compare-dir mode. And replaced on/off button
by button with a popup menu.
Since the changes are quite big, I splitted the patch into multiple stages,
where one does some particular thing, which I hope is better for review. If you want one file to apply, use
The patches are attached, here is the description:
moves creating the konsole part to separate method (used in 1* patches,
because it will be created even if not shown, when run in TE mode is chosen)
mostly from Jiří's patch - class KrActionBase, KrAction extends it.
a constant for the new mode added to enum execType.
adds actions, which change the mode. It sets private config value, which
will be used in the following patches
adds the support of the new mode (run in terminal emulator) to the actions.
a new class for the button with popupmenu for selecting the mode (uses
actions from 11)
the change of KCMDLine class. It extends KrActionBase and uses the new
button instead of toggle on/off
adds the mode selection to the menu
Not necessary, adds an alternative shortcut Ctrl+O for show/hide terminal
The numbering - patches with numbers in higher decade depend on patches in lower decades
Relationship with patches from Jiří Paleček:
Patch 02 is mostly taken from his patch, plus added one mode to the enum ExecType
Patch 31 modifies Kcmdline class. Some parts used from Jiří's patch (with small modifications), some (button in constructor) quite independent. Future Jiří's changes (completition) will affect this class as well, but will be probably easy to incorporate.