aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/term/libkviterm.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-09-28 00:45:44 +0200
committerGravatar Szymon Tomasz Stefanek2015-09-28 00:45:44 +0200
commita8b12f44d0e747d143b61c50ed4f8c580045a259 (patch)
tree6a174ffea31eb70380e88794fc67c35d8dca0d60 /src/modules/term/libkviterm.cpp
parentMove the 'undock' menu entry in the middle to minimize the chance of accident... (diff)
downloadKVIrc-a8b12f44d0e747d143b61c50ed4f8c580045a259.tar.gz
KVIrc-a8b12f44d0e747d143b61c50ed4f8c580045a259.tar.bz2
KVIrc-a8b12f44d0e747d143b61c50ed4f8c580045a259.zip
Bye bye MDI. I have probably introduced few minor bugs that I haven't been able to spot yet. Please report. Closes #1630.
Diffstat (limited to 'src/modules/term/libkviterm.cpp')
-rw-r--r--src/modules/term/libkviterm.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/modules/term/libkviterm.cpp b/src/modules/term/libkviterm.cpp
index d4ea13546..9bb1b6c35 100644
--- a/src/modules/term/libkviterm.cpp
+++ b/src/modules/term/libkviterm.cpp
@@ -49,13 +49,13 @@ KviModule * g_pTermModule = 0;
@short:
Shows a terminal emulator
@syntax:
- term.open [-m]
+ term.open [-d]
@switches:
- !sw: -m | --mdi
- creates terminal as a MDI window
+ !sw: -d | --dockable
+ creates terminal as a docked window
@description:
Opens a new terminal window (If the service is available).
- if the -m switch is present, the created terminal as a MDI window,
+ if the -m switch is present, the created terminal as a dockable kvirc window,
otherwise it is a static window.[br]
This command is exported by the "term" module.[br]
Note: At the time that this module was written, the
@@ -67,7 +67,10 @@ static bool term_kvs_cmd_open(KviKvsModuleCommandCall * c)
{
#ifdef COMPILE_KDE4_SUPPORT
c->module()->lock(); // multiple locks are allowed
- if(c->hasSwitch('m',"mdi"))
+ if(
+ c->hasSwitch('m',"mdi") || // compat only
+ c->hasSwitch('d',"dockable")
+ )
{
TermWindow *w = new TermWindow("Terminal emulator");
g_pMainWindow->addWindow(w);