diff options
| author | 2015-09-28 00:45:44 +0200 | |
|---|---|---|
| committer | 2015-09-28 00:45:44 +0200 | |
| commit | a8b12f44d0e747d143b61c50ed4f8c580045a259 (patch) | |
| tree | 6a174ffea31eb70380e88794fc67c35d8dca0d60 /src/modules/term/libkviterm.cpp | |
| parent | Move the 'undock' menu entry in the middle to minimize the chance of accident... (diff) | |
| download | KVIrc-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.cpp | 13 |
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); |
