Commit Graph

155 Commits

Author SHA1 Message Date
Kurt Hindenburg
eade05a4bd Do not specify Qt modules in includes 2017-04-26 21:33:34 -04:00
Kurt Hindenburg
a540e6fdd0 Fix readability-implicit-bool-cast issues using nullptr 2017-04-21 10:51:31 -04:00
Kurt Hindenburg
accf076104 Use member initializer lists in constructors 2017-04-11 12:07:34 -04:00
Kurt Hindenburg
dfafff97d4 remove QDebug/qWarning and use QCDebug 2017-03-31 21:06:18 -04:00
Kurt Hindenburg
2b586e6ff8 use auto 2017-03-28 11:25:26 -04:00
Martin T. H. Sandsmark
cbb7448434 Fix opening of new tabs with multiple processes
Make sure we re-use the process if the user wants a new tab.

BUG: 373440
REVIEW: 129886
2017-01-27 18:13:33 +01:00
Maximiliano Curia
a779c8314a Pre process the -e custom command argument
Special case parsing of -e, to avoid parsing parameters intended for the
command to be executed.

REVIEW: 129677
2017-01-27 15:51:14 +01:00
Kurt Hindenburg
cd61ee84d8 Add comment that topLevelWidets() returns no windows
CCBUG:373440
2017-01-22 13:25:41 -05:00
Harald Sitter
0e62a108ba Merge branch 'Applications/16.12'
# Conflicts:
#	CMakeLists.txt
2016-12-19 09:09:30 +01:00
Harald Sitter
c6ffcaff55 Add --nofork as compatibility alias for --separate
In previous incarnations of kuniqueapplication it used to inject a common
command option --nofork which is meant to bypass single-instance behavior.
Given that konsole can and is being invoked from scripts they may well want
to ensure that the fork they created is the actual instance of konsole.
i.e. to monitor return values and life time

Presently, since the options are divergent between konsole4 and konsole5,
scripts are either incompatible with older konsoles or with newer konsoles.
To make life easier for everyone add a compat alias --nofork, which
behaves exactly like separate.

(this unbreaks steam, which is a notable recent offender of falling into
 this particular trap)

REVIEW: 129647
CHANGELOG: Added compatibility command option `--nofork` for single-instance behavior
2016-12-19 09:09:03 +01:00
R.J.V. Bertin
378518ea4b shortcut adaptation to platform standards on Mac
REVIEW: 120323
2016-11-24 17:35:31 +01:00
Martin T. H. Sandsmark
b410e7f08c Silence warning from QCommandLineParser 2016-11-03 10:34:55 +01:00
Martin T. H. Sandsmark
a9b0878b56 Remove debug output I forgot to remove 2016-11-03 10:18:08 +01:00
Martin T. H. Sandsmark
4ec9b56580 Fix reparsing of command line arguments
If a new Konsole instance is launched via DBus (e. g. single process
mode), it re-used the QCommandLineParser each time, so each new instance
would inherit all parsed options.

Most noticeably is if you have konsole running, press Shift+F4 in
Dolphin to launch a Konsole instance in the current folder (which leads
Konsole to use a temporary profile), and then try to open a new konsole
instance outside of that, it would open in the folder from Dolphin.

REVIEW: 129217
2016-10-22 22:20:16 +02:00
Kurt Hindenburg
d73270a470 Fix issues where --tabs-from-file doesn't exist or is invalid
Cleanly exit if there are any issues with the given file for
--tabs-from-file option.

BUG: 367855
2016-08-27 11:41:51 -04:00
Martin T. H. Sandsmark
a28902e912 Fix transparent backgrounds
It's apparently not possible to set WA_TranslucentBackground after
show(). The MainWindow constructor calls applyKonsoleSettings() which
calls KMainWindow::setAutoSaveSettings() which in turn calls
setVisible(true), which makes any calls to setTransparency() from the
Application::newMainWindow() irrelevant, even if updateUseTransparency()
is called from it.

REVIEW: 128669
BUG: 366368
2016-08-13 20:33:48 +02:00
Kurt Hindenburg
31fcbd11c3 Add QStringLiteral per clazy 2016-06-21 22:34:01 -04:00
Kurt Hindenburg
7a53329ca2 workingDir is unused - comment out 2016-06-19 15:53:02 -04:00
Martin T. H. Sandsmark
27dec8d02f Port away from kdelibs4support.
Original work by Dāvis Mosāns.

REVIEW: 127625
REVIEW: 126808
2016-06-11 17:24:12 +02:00
Kurt Hindenburg
d68a03ba7c Set a detached window to same size as original window
Thanks to Roman Gilg subdiff gmail com for patch

REVIEW: 127801
2016-05-23 17:19:03 -04:00
Kurt Hindenburg
55f02e5b8e Allow profile's termainal size to work again
When Konsole Settings -> 'Use current window size on next startup' is
disabled, use the Profile's terminal size for new windows.

Many thanks to Roman Gilg (subdiff gmail com) for research and patch.

If there are no further issues, I'll commit to 15.12 branch (should go
.2 release).

REVIEW: 126924
CCBUG: 345403
2016-01-30 12:09:33 -05:00
Kurt Hindenburg
145310d896 Use QStringLiteral and QLatin1String 2015-10-15 15:32:34 -04:00
Kurt Hindenburg
7ae2140235 s/KShortcut/QKeySequence - commented out code ATM 2015-09-18 09:42:47 -04:00
Kurt Hindenburg
4885ca763e s/KAction/QAction - commented out code ATM 2015-09-18 09:34:45 -04:00
Christoph Cullmann
f02e731a05 enable support for high dpi pixmaps
CHANGELOG: Improve HiDPI support for Konsole
2015-07-29 14:48:29 +02:00
Aleix Pol
0975d32db9 Stop KDELibs4Support from being the all-mighty dependency
Now only Konsole application and some tests link against it
2015-04-17 18:02:14 +02:00
Marko Käning
d89a9633a8 fix build on OSX (Q_WS_MAC -> Q_OS_MAC) 2015-01-22 00:29:37 +01:00
Montel Laurent
83515eafbc Port to new connect api 2014-10-18 14:11:18 +02:00
Montel Laurent
8182ac8edc Port to QDebug 2014-10-17 09:09:20 +02:00
Michal Humpula
15d09f9161 port from KStandardDirs to QStandardPaths
REVIEW: 120498
2014-10-11 14:34:15 +02:00
Kurt Hindenburg
d8be35b5c7 Allow the -e command line to work w/ arguments w and w/o spaces
This allows both these lines to work:
konsole -e man ls
konsole -e "man ls"

Thanks to Mark Raymond markr raymonds org uk for patch/testing.

CCBUG: 295648
REVIEW: 120001
FIXED-IN: 4.14.2
(cherry picked from commit bd56dba1a9)
2014-09-14 08:40:38 -04:00
Alex Richardson
a3ce74d4eb Convert to Qt5 signal slot syntax
REVIEW: 117482
2014-04-30 19:16:54 +02:00
Kurt Hindenburg
89160c5985 When dragging and dropping tabs, move new window to cursor positon
This fixes multiple monitor issues - dnd window will be moved to where
user dropped the window.

BUG: 324760
FIXED-IN: 2.13
(cherry picked from commit e6dcc8d6b8)
2014-02-17 09:23:10 -05:00
Kurt Hindenburg
ffc8294806 Comment out background-mode shortcut ATM doesn't work 2014-02-07 09:31:30 -05:00
Kurt Hindenburg
cdfe235784 Restore --background-mode
For now restore this option that was removed for 2.11.  This option
is somewhat a hack and abnormal feature.  However, it seems a number
of people use it and I can see how it would be useful.  So instead of
spending a lot of time right now trying to correct the issues, just
restore the previous code.
Ideally for KDE 5, this portion of the code can be better handled.

35bb9cf9e7

BUG: 320783
FIXED-IN: 2.13#
(cherry picked from commit cfbfb0fd8c)

Conflicts:
	src/Application.cpp
2014-02-07 09:00:51 -05:00
Kurt Hindenburg
1ea501da62 remove include moc from .cpp files - removes build warnings 2013-10-22 20:07:23 -04:00
Kurt Hindenburg
cb4ca01e8b Add a --fallback-profile which uses the internal basic profile
If an user had only one profile and accidently puts a non-interactive
program (eg pwd) in the Command section it will start, run command and
then close.
The FALLBACK/ profile is the internal basic profile.

REVIEW: 109558
FIXED-IN: 4.11
2013-04-06 13:41:35 -04:00
Kurt Hindenburg
b5dbf6b32f minor space/tab fixes 2013-03-16 12:36:05 -04:00
Kurt Hindenburg
35bb9cf9e7 Remove the the immature --background-mode option
See http://lists.kde.org/?l=konsole-devel&m=135316608321148&w=2 for
details.

FIXED-IN: 4.11
BUG: 310433
2013-02-24 12:27:54 -05:00
Kurt Hindenburg
8241682b8b Add --fullscreen command line option
Add option to go into full screen mode via command line.

FEATURE: 312378
REVIEW: 109042
FIXED-IN: 4.11
2013-02-21 08:31:36 -05:00
Kurt Hindenburg
7a2a5beb00 Correct spelling errors/word usage
All these are in the comments - no code changes
2013-01-09 22:07:11 -05:00
Jekyll Wu
4d194b20c0 Revert the support for konsole -e "command arguemnts"
Although that looks like a nice feature, it makes the code more
complicated and causes problems when that command is an absolute path
containing spaces.

So for now the only supported way is:

   konsole -e command arguments

CCBUG: 295648

This reverts commit aa75fc8fee
2012-11-01 13:35:17 +08:00
Kurt Hindenburg
bee9aa8f78 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:08:05 -04:00
Jekyll Wu
3ddc6496b6 Add cmdline options for the visibility of menubar and tabbar
Since the menubar and tarbar settings are now global instead of per
profile , those cmdline options are useful to allow users to override
the defautl behavior.

The --hide-menubar and --hide-tabbar options can be used together
to simulate the miminal interface of xterm. I'm not sure whether
--show-menubar and --show-tabbar will be widely used , but add them at
the moment for the sake of completeness.
2012-05-13 03:06:14 +08:00
Jekyll Wu
63b489443c No need to check for Qt version higher than 4.6
It is safe to assume Qt-4.6+ everywhere now. And kdelibs now requires Qt-4.7
as minimal version .
2012-05-11 15:50:53 +08:00
Jekyll Wu
5a92546d24 Allow the format used by --tabs-from-file to define working directory 2012-04-09 09:03:36 +08:00
Kurt Hindenburg
5b083640ce whitespace and style fixes
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
2012-04-05 11:08:53 -04:00
Jekyll Wu
d51fe86819 QList<String> ==> QStringList 2012-04-05 04:32:02 +08:00
Jekyll Wu
193777e21a Split class SessionManager into ProfileMananger and SessionManager
REVIEW: 104425
2012-03-30 01:23:28 +08:00
Kurt Hindenburg
ea3458de92 /s/streams/printf/ for --list-profiles and --list-profile-properties
For these 2 usages, use printf instead of streams
2012-03-19 22:23:06 -04:00