I tried to add the possibility to run commands from command line in the
terminal emulator.
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:
kcmd_01createTE.diff:
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)
kcmd_02uabase.diff:
mostly from Jiří's patch - class KrActionBase, KrAction extends it.
a constant for the new mode added to enum execType.
kcmd_11kactions.diif:
adds actions, which change the mode. It sets private config value, which
will be used in the following patches
kcmd_12uactionTE.diff
adds the support of the new mode (run in terminal emulator) to the actions.
kcmd_21button.diff:
a new class for the button with popupmenu for selecting the mode (uses
actions from 11)
kcmd_31kcmd.diff:
the change of KCMDLine class. It extends KrActionBase and uses the new
button instead of toggle on/off
kcmd_32menu.diff:
adds the mode selection to the menu
kcmd_33CtrlO.diff:
Not necessary, adds an alternative shortcut Ctrl+O for show/hide terminal
emulator.
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.
Logged In: YES
user_id=1317323
Originator: YES
The part kcmd_02uabase.diff is also contained (modified) in Jiri's expander patch (http://sourceforge.net/tracker/index.php?func=detail&aid=1622577&group_id=6488&atid=306488). If the expander.patch is applied, then only the other parts of this patch should be applied.
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_31kcmd.diff
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)
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_01createTE.diff
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_02uabase.diff
mostly from Jiří's patch - class KrActionBase, KrAction extends it. a constant for the new mode added to enum execType; do not use, if expander patch is applied (expander patch contain it)
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_02uabase.diff
adds actions, which change the mode. It sets private config value, which will be used in the following patches
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_11kactions.diff
adds the support of the new mode (run in terminal emulator) to the actions.
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_12uactionTE.diff
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_21button.diff
a new class for the button with popupmenu for selecting the mode (uses actions from 11)
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_31kcmd.diff
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
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_32menu.diff
Not necessary, adds an alternative shortcut Ctrl+O for show/hide terminal emulator.
Logged In: YES
user_id=1317323
Originator: YES
File Added: kcmd_33CtrlO.diff
Logged In: YES
user_id=1317323
Originator: YES
Updated patches (some were broken after adding brief view). Uploaded even single files for easier view.
File Added: kcmd-all.tar.gz
All these patches packed in one tarball