Commit Graph

8620 Commits

Author SHA1 Message Date
David Edmundson
6c5950e8be unit test 2022-09-16 17:11:55 +01:00
David Edmundson
1661f48228 Remove duplicated code 2022-09-16 17:02:51 +01:00
Marco Martin
361d40bb70 a lot of debug to figure out some reflow issues 2022-09-16 17:06:27 +02:00
Matan Ziv-Av
2b3d46fa4f Set _enableReflowLines flag from profile when switching profiles
BUG: 459040
2022-09-16 07:56:35 +00:00
Nicolas Fella
2f75ddcb58 Fix window activation when clicking on urls
In order to properly raise the resulting browser window on Wayland or on X11 with focus stealing protection we need to follow the relevant protocols (xdg-activation on Wayland, startup notifications on X11)

QDesktopServices::openUrl doesn't do that. Instead use KIO::OpenUrlJob which implements those protocols
2022-09-16 07:49:32 +00:00
l10n daemon script
ee7be1504b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-09-16 01:47:29 +00:00
l10n daemon script
26c678e290 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-09-11 01:45:48 +00:00
l10n daemon script
49f1357ac4 GIT_SILENT made messages (after extraction) 2022-09-11 00:48:37 +00:00
Liu Bodong
bf23c0c680 1. Use enum instead of bool to control flip direction
2. In ColorSchemeEditor, Use combobox instead of checkbox to hold wallpaper flip type change.
2022-09-08 11:20:34 +00:00
Liu Bodong
7bbfe6615e Fix ColorScheme read entry spell error 2022-09-08 11:20:34 +00:00
Liu Bodong
795f8e750b Fix spell error 2022-09-08 11:20:34 +00:00
Liu Bodong
6efe087d63 Undo accidentally wrong changes 2022-09-08 11:20:34 +00:00
Liu Bodong
2a360ba3e6 Feature: Allow wallpaper flip(both horizontal and vertical) 2022-09-08 11:20:34 +00:00
Volker Krause
5547abc7fb Don't trigger the min <= max assert in qBound in Qt 6 2022-09-08 08:02:38 +00:00
Tomaz Canabrava
6adbc55310 Don't crash on Screen.cpp 2022-09-07 11:20:13 +02:00
Tomaz Canabrava
25e2a9f6f9 Remove level of indentation
We can always return on the if, and remove the else.
2022-09-07 10:08:21 +02:00
Matan Ziv-Av
b35919187f Return unicode headers to terminalDisplay.cpp
As they are needed only in this file. According to suggestion here:
https://invent.kde.org/utilities/konsole/-/merge_requests/733#note_517499
2022-09-05 10:46:53 +00:00
Matan Ziv-Av
9496b4e33e Reuse ubidi object for all bidi calls
Rather than allocating (and leaking) a new ubidi structure on every call
to bidiMap().
2022-09-05 10:46:53 +00:00
Matan Ziv-Av
24cc94d5fb Allow for showing line numbers
As with semantic hints, the line numbers may be displayed always, never
or when URL hints are shown.
2022-09-05 07:06:49 +00:00
Matan Ziv-Av
274ebb9887 Add keyboard shortcut for toggling display of semantic hints 2022-09-05 07:06:49 +00:00
Matan Ziv-Av
660b78f70c Add showNotification() method
This allows notifications other than terminal size.
2022-09-05 07:06:49 +00:00
l10n daemon script
a20b066b74 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-09-05 01:45:39 +00:00
Heiko Becker
c4a8c3d56e GIT_SILENT Update Appstream for new release
(cherry picked from commit 0d3873948f)
2022-09-02 23:59:15 +02:00
Christoph Cullmann
03d89137f5 disable dbus test atm for qt6
there is a messagebox that doesn't close on konsole exit
2022-08-29 18:17:27 +02:00
Christoph Cullmann
fb90852a32 add linux qt6, too 2022-08-27 23:39:25 +02:00
Christoph Cullmann
bec7a69c11 fix Qt 6 compile 2022-08-27 23:36:39 +02:00
Laurent Montel
8b140e23bd Add FreeBSD Qt6 CI support 2022-08-27 21:28:18 +00:00
Matan Ziv-Av
3961d02ad1 Describe semantic shell integration in the manual 2022-08-27 08:11:39 +00:00
Matan Ziv-Av
afa85931ac Use the results of u_shapeArabic() in TerminalPainter.cpp
Without this shaping results are ignored, so Arabic letters are not
shaped properly.
2022-08-26 19:24:56 +00:00
Matan Ziv-Av
a4681775ae Modify setDefaultRendition() to reset the underline color. 2022-08-26 19:24:56 +00:00
Matan Ziv-Av
77d6b1f91f Some fixes
- Do not ignore imageSize, even though it seems to be unnecessary.
- Check for end of text before trying to read it.
- Fix text decoder underline test
2022-08-26 19:24:56 +00:00
Matan Ziv-Av
76f879cd70 Draw characters in exact positions
QT can't be made to draw monospaced text (if the font does not cooperate),
so avoid combining characters, using a QPainter::drawText() call for each
character.

For bidi text support this change requires konsole to reorder and reshape
the characters. This is done using the ICU library (which QT also uses).

This change allows for some improvements related to text rendering:

- More precise bidi reordering, which is no longer changed by characters'
  attributes and selection.
- underlines drawn separately from the text, allowing for differing
  underline modes (double, curly, dashed, dotted, colored).
- Overriding font for emoji characters.

This commit fixes a few bugs and addresses a lot more:

Feature requests: More standard conforming RTL and various underlines:
BUG: 403729
BUG: 387811

Using non-monospace font:
BUG: 416508
BUG: 452087
BUG: 425973
BUG: 430822
BUG: 442742
BUG: 441037
BUG: 430822



Emoji:
BUG: 440070
CCBUG: 450017
CCBUG: 445846
CCBUG: 453086

Regression: devanagari rendering
CCBUG: 381593
CCBUG: 451716
2022-08-26 19:24:56 +00:00
Matan Ziv-Av
4e875cdfdd Prevent _replModeStart line number from becoming negative
Hopefully, this solves:
BUG: 457920
BUG: 458015
2022-08-25 19:47:45 +00:00
ivan tkachenko
a69656aaf6 Remove argument's const qualifier from method declaration
Constness of a parameter is not part of a method's signature/ABI, even
though C++ for some reason allows it there.
2022-08-25 08:35:30 +00:00
William Brawner
de694e19c6 Add action to automatically split terminal view 2022-08-24 19:56:00 -06:00
Laurent Montel
073d3f0e05 GIT_SILENT: Terminal=false is default value. Not necessary to keep it in desktop file 2022-08-23 20:47:35 +02:00
Matan Ziv-Av
b17c13074c Initialize sixel mode even when missing Raster attributes Ph and Pv
Use default Ph=8, Pv=6.
Without this, some sixel commands (ususally the color table
initialization) are not processed.
2022-08-23 12:40:37 +00:00
Laurent Montel
fc45802b72 Port away from deprecated KIO code 2022-08-21 21:02:16 +02:00
l10n daemon script
aa320d81ee SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-08-19 01:46:29 +00:00
l10n daemon script
29e7a0a1e6 GIT_SILENT made messages (after extraction) 2022-08-19 00:49:07 +00:00
Ahmad Samir
295d42a4ca Reuse the same _tempProfile in Edit dialog and clear its properties
Also in save() just clear _previewedProperties; logically it wouldn't be
holding any properties that weren't set on _tempProfile, since all those
properties have been saved by the changeProfile() call, clear() makes
sense.
2022-08-15 23:11:12 +02:00
Ahmad Samir
2bff371763 Add a method to clear all Profile's set properties 2022-08-15 23:11:12 +02:00
Ahmad Samir
f37fbc1aea Remove a redundant method from EditProfileDialog 2022-08-15 23:11:12 +02:00
Ahmad Samir
364ece1de0 Use Profile::PropertyMap in EditProfileDialog
This simplifies the code a bit.
2022-08-15 23:11:12 +02:00
Ahmad Samir
6a341a520c Preview ColorScheme changes like other Profile Properties
The difference is the preview isn't triggered on hover, you now have to
select a color scheme in the model to trigger a preview.

The font selection dialog works the same way (i.e. select to preview, not
just hover), and that seems to work quite well.
2022-08-15 23:11:12 +02:00
Ahmad Samir
d6706efc43 Change Profile::PropertyMap to a std::map
This fixes an issue with QHash in Qt6, see:
https://invent.kde.org/utilities/konsole/-/issues/30
2022-08-15 23:11:09 +02:00
Ahmad Samir
d1948549e7 Change ProfileManager::changeProfile to take PropertyMap by const & 2022-08-15 23:08:01 +02:00
Ahmad Samir
be1174c971 Add Profile::assignProperties() method that takes a PropertyMap 2022-08-15 23:07:51 +02:00
Ahmad Samir
9bc2211ffb Rename Profile::setProperties() to properties()
That sounds more like a getter, which is what that method is.

(I plan to add a setProperties() method that takes a PropertyMap arg).
2022-08-12 22:10:11 +02:00
Ahmad Samir
50f87107bd Use a type alias for the Profile Property map 2022-08-12 22:10:11 +02:00