Commit Graph

29 Commits

Author SHA1 Message Date
Ahmad Samir
97569b764c Run clang-format on the whole repo
Also install the relevant git hook.

GIT_SILENT
2021-09-06 12:51:39 +02:00
Kurt Hindenburg
78a0092522 Convert src to use SPDX license/copyright
https://community.kde.org/Policies/Licensing_Policy#SPDX_Statements
https://community.kde.org/Guidelines_and_HOWTOs/Licensing
2020-11-12 22:17:06 -05:00
Tomaz Canabrava
0478529c6f Move Profile related classes to it's own folder
This also allowed me to remove a few includes of Profile.h
around the codebase, that used Profile::Ptr. now the compilation
is a bit faster and also does not recompile things as often.
2020-07-27 19:14:53 +02:00
Nicolas Fella
e6f3d0a14e Replace Q_DECL_OVERRIDE with override 2019-12-04 02:53:28 +00:00
Ahmad Samir
581df2a23a Improve the Keyboard tab and the KeyBindings editor
Summary:
- Change updateKeyBindingsList() to select the last edited keybindings
  scheme after closing the editor dialog
- Add a tooltip showing the path of each keybinding scheme, this should
  lessen the confusion when the scheme description and the file name of
  the .keytab file are different
- Add a button to the Keyboard tab to reset a scheme to its default
  values, this is only applicable for schemes that exist in both
  system-wide and user specific locations
- Move a lot of the construction of the keybinding editor widgets from
  EditProfileDialog to  KeyBindingEditor
- Change the wording from "key bindings list" to "key bindings scheme"
  to differentiate between a keyboard translator "scheme" and the key
  bindings "list" on the Keyboard tab

KeyBindingEditor:
- Make the KeyBindingEditor a QDialog and set Qt::WA_DeleteOnClose
- Disallow saving a scheme with an empty description
- Add a QLineEdit to show only the rows that have strings matching the
  text entered in the line edit box
- Reimplement sizeHint() to make the dialog slightly smaller than the
  Edit Profile dialog, for better visibility of the entries

KeyboardTranslatorManager:
- Make findTranslatorPath() const and public
- Make allTranslators() return type const

Test Plan:
- Editing a key bindings scheme works and closing the dialog selects the edited scheme
- Creating a new scheme works as before
- "Defaults" button works for system-wide schemes if they were previously edited and saved under the user's home dir
- Remove button is only enabled for schemes saved in a dir writable for the user

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: konsole-devel, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D12981
2018-05-22 19:11:15 -04:00
Kurt Hindenburg
d66e5465a2 Use Q_DISABLE_COPY to disable copy constructors 2018-01-06 10:22:37 -05:00
Kurt Hindenburg
2a2a56d73c modernize use nullptr 2017-07-15 23:28:32 -04:00
Kurt Hindenburg
9bd78534a0 uncrustify using kf5 config 2017-05-29 17:49:41 -04:00
Kurt Hindenburg
acdd32c27d Use Frameworks compiler settings; use NO_SLOT_SIGNALS_KEYWORDS
s/slots:/Q_SLOTS:
s/signals:/Q_SIGNALS:
2017-04-16 17:05:11 -04:00
Kurt Hindenburg
35d419e734 Add Q_DECL_OVERRIDE via clang-tidy 2017-03-26 00:01:57 -04:00
Jekyll Wu
75615cb9bf No need to be declared as slot any more 2012-11-21 14:57:15 +08:00
Jekyll Wu
6ddd34e9cb Fix the problem of cursor keeping moving when editing keytab description.
Thanks to Yichao Yu for the spotting and the patch.

REVIEW: 107287
2012-11-14 12:11:14 +08: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
3d06b44fc7 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:52:28 -04:00
Kurt Hindenburg
d42633e54d add explicit to constructors with 1 parameter 2012-03-18 16:42:31 -04:00
Kurt Hindenburg
ed77ae37d6 Apply astyle-kdelibs
Over the years, the coding style is all over the place.

Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-24 10:37:22 -05:00
Jekyll Wu
330de6c6f4 Fix some spelling problems 2011-11-06 03:41:20 +08:00
Jekyll Wu
8f1bbd4353 Remove trailing white spaces 2011-11-05 19:49:23 +08:00
Jekyll Wu
cf92cece2b Remove leading white spaces in blank lines to make them really empty 2011-11-05 07:29:21 +08:00
Robert Knight
5d9997446e Update copyright year to 2008. Remove '(C)' from copyright lines.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800631
2008-04-24 14:53:43 +00:00
Robert Knight
bb696c3cbf Allow removal of existing entries and adding of new entries in the key binding editor. Fix binding table referring to old entries when making changes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=677166
2007-06-18 15:37:56 +00:00
Robert Knight
5872b79ef1 Replace old key translator with new key translator. Lightly tested. Fix some bugs in the new translator's decoding.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676512
2007-06-17 01:01:53 +00:00
Robert Knight
140b672865 Make key binding test area work. Fix copying of KeyboardTranslator instances.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676300
2007-06-16 15:34:47 +00:00
Robert Knight
649ac01268 Copy the built-in key bindings into a new keytab file, install it and make it the default key bindings. The built-in one is still there at the moment. Reorganise the profile edit dialog, put the Scrolling page before the Keyboard Setup page since I expect it to be used more frequently. Add widgets for a not-yet-implemented test area to the key bindings editor.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676102
2007-06-16 00:54:41 +00:00
Robert Knight
33e1a53cf8 Fix crash when changing color scheme if none in the list were previously checked. Add API documentation.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663366
2007-05-11 00:22:53 +00:00
Dirk Mueller
9ea3227384 include cleanup
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663054
2007-05-09 22:23:52 +00:00
Stephan Binner
f9ef188694 fix pedantic compilation
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=661619
2007-05-06 05:30:26 +00:00
Robert Knight
fe5f371635 Update color scheme and key bindings list correctly after creating a new scheme/list. Save new schemes / bindings lists under a different name from the one used as a template. Get/set the description in the key binding editor.
svn path=/branches/work/konsole-split-view/; revision=661569
2007-05-06 00:03:54 +00:00
Robert Knight
19a29d182a Rename directories for clarity. konsole -> src , other -> data.
svn path=/branches/work/konsole-split-view/; revision=661562
2007-05-05 23:33:05 +00:00