Commit Graph

201 Commits

Author SHA1 Message Date
Kurt Hindenburg
fa5b25fced Restore KDE4 behavior - do not ask for confirmation on logout
Thanks Wolfgnag Bauer (wbauer) for patch

REVIEW: 127128
2016-03-05 12:10:21 -05:00
Kurt Hindenburg
70818f8c47 .arg() needs QStringLiteral 2015-10-15 16:40:19 -04:00
Kurt Hindenburg
bdee35bf38 Use QStringLiteral and QLatin1String 2015-10-15 16:25:32 -04:00
Kurt Hindenburg
04a5749717 Switch to use foreach() w/ QActions 2015-10-04 15:34:22 -04:00
Kurt Hindenburg
7ae2140235 s/KShortcut/QKeySequence - commented out code ATM 2015-09-18 09:42:47 -04:00
Kurt Hindenburg
e14c2992c5 Use const reference inside Q_FOREACH 2015-09-12 17:19:31 -04:00
Kurt Hindenburg
5168fa3c24 Move ManageProfiles dialog to Configure Konsole window
Change the stand alone ManageProfiles dialog into a tab inside the
Configure Konsole window.

Side effect is that Konsole KParts can't open manage profiles.
2015-09-12 14:27:23 -04:00
Kurt Hindenburg
a1957e8a8f Allow user to select where the scrollback/history files are written.
Currently, when unlimited scrollback is used, the files are stored in
/tmp.  As noted in the bug report, this can cause issues on some
distros.  The default is still /tmp but the user can selected to use
a location in their $HOME folder (QStandardPaths::CacheLocation).

This is somewhat a WIP.  Allowing for the changes to take effect
immediately appears to be a gigantic mess to get to work.

CCBUG: 173283
2015-08-16 13:32:36 -04: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
Kurt Hindenburg
571ffb4fb3 When visible session icon changes, change program icon
Sync window program icon with the visible session icon.  Noticeable
when using "Send to all" or "Monitor For"

BUG: 325413
REVIEW: 121399
2015-01-24 14:03:41 -10:00
Kurt Hindenburg
0b46073244 Remove unneeded includes 2015-01-07 04:14:10 -10:00
Kurt Hindenburg
95687e84b0 More KAction->QAction porting
REVIEW: 120557
2014-10-28 07:04:53 -04:00
Montel Laurent
79661ac5f6 Fix includes 2014-10-19 09:05:29 +02:00
Montel Laurent
83515eafbc Port to new connect api 2014-10-18 14:11:18 +02:00
Montel Laurent
78c9fd39cf Port to QMenu 2014-10-17 09:01:37 +02:00
Michal Humpula
d3310de9e0 port KIcon to QIcon
REVIEW: 120493
2014-10-11 14:38:18 +02:00
Lukáš Tinkl
cc85a5243c QAction::setShortcut -> KActionCollection::setDefaultShortcut 2014-10-06 22:27:29 +02:00
Kurt Hindenburg
b6304bcc59 Port KUrl to QUrl
Thanks to Michal Humpula michal humpula hudrydum cz

REVIEW: 120430
2014-10-04 11:41:50 -04:00
Kurt Hindenburg
eda0e431b2 Minor whitespace changes 2014-09-15 09:37:42 -04:00
Lukáš Tinkl
694b644bd2 remove accel markers
so that the top menubar doesn't conflict with Alt+<x> shortcuts
2014-07-15 20:19:46 +02:00
Kurt Hindenburg
86ee13f583 Fix crash in Manage Profile Dialog
In KDE5, KMenu* KActionMenu::menu() no longer creates a KMenu if it
doesn't exist.

Thanks to Arjun Ak arjunak234 gmail com

REVIEW: 119004
2014-07-02 10:26:05 -04:00
Eike Hein
c4f7f512f3 Fix translucency support.
CCBUG:332408
2014-05-26 14:00:24 +02:00
Alex Richardson
a3ce74d4eb Convert to Qt5 signal slot syntax
REVIEW: 117482
2014-04-30 19:16:54 +02:00
Kurt Hindenburg
cb84422082 Temporary crash fix - disable KWindowSystem::compositingActive() calls
See bko for more info

CCBUG: 332408
2014-03-22 00:03:40 -04:00
Kurt Hindenburg
6381dfff50 Add F11 as a shortcut for full screen
BUG: 303424
FIXED: 2.14
(cherry picked from commit 47fafb2134)
2014-03-04 23:26:41 -05:00
Kurt Hindenburg
522e4a57ba Allow konsole to store terminal size in the profile.
This removes the profile setting to 'Save window size upon exit'.  Now
it is in the Konsole settings; each profile can now set desired column
and row size.

Konsole Settings->Configure Konsole->General->Use current window size
on next startup:
Enabled - ignores all profile size settings - uses previous window size
Disabled - profile size settings are used - set via Edit Current
 Profile 1st tab

Only new windows will use "new" col/row/size settings.

BUG: 152385
REVIEW: 115628
FIXED-IN: 2.13
(cherry picked from commit 931d64df81)
2014-02-17 09:26:18 -05:00
Kurt Hindenburg
19ceea24f3 Allow users to specify css file for tab bar style
Currently, the default stylesheet for the tab bar just sets the min
and max width.  Now the user can load a .css file.  It is up to the
user to generate the css file to their liking.  Handbook documentation
and examples will follow.

This can be used to set minimum width of the tabs, distinguish active
tab, etc...
BUG: 330252
BUG: 330558
BUG: 330556
FEATURE:
REVIEW: 115554
FIXED-IN: 2.13

(cherry picked from commit da9331e0e9)
2014-02-10 09:25:15 -05:00
Kurt Hindenburg
4d5a30c821 Add option to remove '- Konsole' from window title
This may be overkill but for now add option to remove app name from
title.  The option is in the app-wide General Configure settings and
doesn't add unreasonable space to the dialog.

REVIEW: 115354
FEATURE: 307355
FIXED-IN: 2.13
(cherry picked from commit db6d9de83e)
2014-02-07 08:58:32 -05:00
Martin T. H. Sandsmark
adb57981be Don't add empty process items to list of currently running processes in a window
(cherry picked from commit 00e14ee248)
2014-01-11 18:54:03 -05:00
Kurt Hindenburg
1ea501da62 remove include moc from .cpp files - removes build warnings 2013-10-22 20:07:23 -04:00
Martin T. H. Sandsmark
3eb3605227 Check processes running when closing window
Instead of just counting the number of open sessions check what
processes are actually running in them when displaying the confirmation
dialog when closing a window.
(cherry picked from commit e0e7136b0c)
2013-10-02 10:11:24 -04:00
Alex Richardson
a83db71590 Port to KF5/Qt5
TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-20 23:34:35 +02:00
Alex Richardson
ab5e15b1b7 Revert "Port to KF5/Qt5"
This reverts commit 4adfbe84bd.

This work will go into a new branch instead
2013-08-13 23:26:19 +02:00
Alex Richardson
4adfbe84bd Port to KF5/Qt5
To build for KF5 pass the option -DQT5_BUILD=ON to CMake

TerminalDisplayAccessible is disabled for Qt5 currently since I don't
have any experience with accessible stuff and it is more complicated
than just changing a few includes

REVIEW: 111937
2013-08-13 21:26:59 +02:00
Michael Pyne
e61326fd0b Fix crash by not assuming standard shortcuts are present.
Neither of the two standard shortcuts used here are *guaranteed* to be
present (kdelibs filters both with some KAuthorized magic, and
help_contents also depends on the documentation subsystem), so avoid
crashing just because they're not around.

First noticed on my Gentoo-provided Konsole which is compiled without
the handbook USE flag.
(cherry picked from commit 8950584966)
2013-06-08 13:42:01 -04: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
8e5b0c3c51 Improve the accelerators in the confirmation dilaog
Note, KStandardGuiItem::closeWindow and KStandardGuiItem::close uses the
same accelerator, so here I use a variant of KStandardGuiItem::closeWindow
insteand of itself.
2012-12-20 14:42:45 +08:00
Kurt Hindenburg
21a8b063a7 astyle format fixes - whitespace and { 2012-09-03 14:15:47 -04:00
Kurt Hindenburg
69dcbd3406 astyle fixes - spaces/{ 2012-09-02 17:28:43 -04:00
Kurt Hindenburg
ad50620f09 Add comments about why --notransparency is still needed
Thanks to Matthias Kretz kretz@kde.org for patch/info.
2012-08-26 09:23:21 -04:00
Kurt Hindenburg
a70f507b67 Restore --notransparency option for NVIDIA users
Some NVIDIA users still require this option for Konsole to work as
expected

This reverts 66b4a96e93

Thanks to Matthias Kretz kretz@kde.org for patch/info.
BUG: 305307
FIXED-IN: 4.10
2012-08-26 09:13:16 -04:00
Jekyll Wu
131091c983 Adjust including form for some Qt headers as preparation for Qt5
So if someone notices later some Qt header is included in the form
of "#include <Class>" instead of the more common form of "#include
<Module/Class>", do not rush changing it.

REVIEW: 105819
2012-08-14 17:32:06 +08:00
Kurt Hindenburg
32af61fba8 Leave the bookmark shortcut set to what user changed it to
Only reset the bookmark shortcut to Ctrl+Shift+B if the user didn't
change it to something else.

BUG: 303747
FIXED-IN: 4.10
2012-07-20 09:19:26 -04:00
Jekyll Wu
dd440409cf Fix the wrong KGuiItem in the confirmation dialog for closing window
That dialog is only about closing one Konsole window , so it should use
KStandardGuiItem::closeWindow() instead of KStandardGuiItem::quit(),
which is for quitting the whole application.
2012-06-15 07:27:03 +08:00
Jekyll Wu
1ab2fc1b20 Do not ask for confirmation of closing when logging out.
This effectively reverts the change which was made to ask for
confirmation when powering off. That issue needs to be reworked in
next feature release, but for now just revert it since the current
implementation should cause more annoyance than benefit.

BUG: 301458
FIXED-IN: 4.9.0
CCBUG: 127194
2012-06-10 06:14:19 +08:00
Jekyll Wu
85d787e928 Remove unneeded #include 2012-06-03 07:46:41 +08:00
Kurt Hindenburg
1f4b0d7100 Add note about KWindowSystem calls being mostly implmented only in x11 2012-06-02 16:02:55 -04:00
Kurt Hindenburg
bee9aa8f78 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:08:05 -04:00
Kurt Hindenburg
9f5877bdfc minor whitespace style changes 2012-05-13 08:51:27 -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