<table><tr><td style="">davidre created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidre requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28744">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a total rewrite of the global shortcuts kcm from scratch. It uses an<br />
abstract item model backend with a qml frontend. This resolves some issues the<br />
old kcm inherently had because it just stacked KShortcutEditors. First it enables<br />
a global serach/filter which either matches the component name, actions, default<br />
or set key combinations across components. Secondly KGlobalAccel can have multiple<br />
default/active key combinations for each action - the old kcm only exposed two each.<br />
The new kcm displays all default or set key combinations.<br />
The main visual structure is similiar to the old kcm. On the left there is a list<br />
with all components but rather than divided into "Application Launchers" and<br />
"Other Shortcuts" the sections are now called "Applications" and "System Services"<br />
(cf. notifications kcm) and the components are now assigned whether the service<br />
we find for a component is an application or not rather if the component was<br />
added via .desktop file. In the main view the shortcuts are displayed. Each item<br />
corresponds to one action. Initially each item is collapsed and shows the action<br />
name and a list of the currently set key combinations for that action. In the<br />
expanded form all default shortcuts are shown which can be activated or<br />
deactivated and all other active shortcuts ("Custom Shortcuts"). It is possible<br />
to change, remove or add new custom shortcuts.<br />
The kcm and model communicate directly with the daemon over DBus. This removes<br />
the need to awkwardly construct actions to pass to the KGlobalAccel API.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>kcmshel kcm_keys</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>BRANCH</strong><div><div>kcmkeys2 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28744">https://phabricator.kde.org/D28744</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcms/keys/CMakeLists.txt<br />
kcms/keys/ChangeLog<br />
kcms/keys/Messages.sh<br />
kcms/keys/README<br />
kcms/keys/export_scheme_dialog.cpp<br />
kcms/keys/export_scheme_dialog.h<br />
kcms/keys/export_scheme_dialog.ui<br />
kcms/keys/filteredmodel.cpp<br />
kcms/keys/filteredmodel.h<br />
kcms/keys/globalshortcuts.cpp<br />
kcms/keys/globalshortcuts.h<br />
kcms/keys/kcm_keys.cpp<br />
kcms/keys/kcm_keys.desktop<br />
kcms/keys/kcm_keys.h<br />
kcms/keys/keys.desktop<br />
kcms/keys/kglobalshortcutseditor.cpp<br />
kcms/keys/kglobalshortcutseditor.h<br />
kcms/keys/kglobalshortcutseditor.ui<br />
kcms/keys/package/contents/ui/ShortcutActionDelegate.qml<br />
kcms/keys/package/contents/ui/main.qml<br />
kcms/keys/package/metadata.desktop<br />
kcms/keys/select_application.ui<br />
kcms/keys/select_scheme_dialog.cpp<br />
kcms/keys/select_scheme_dialog.h<br />
kcms/keys/select_scheme_dialog.ui<br />
kcms/keys/shortcutsmodel.cpp<br />
kcms/keys/shortcutsmodel.h</div></div></div><br /><div><strong>To: </strong>davidre<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>