summaryrefslogtreecommitdiffstats
path: root/kxkb/kxkbtraywindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Kxkb: layout switching and UI bugfixes and minor refactoringMavridis Philippe2025-04-031-70/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Layout switching - Improved layout change logic (indicator is now always updated when the actual switch occurs). This fixes layout switching triggered by the X11 shortcut not being synchronized with layout switching from the tray icon click and the TDE shortcut. - Kxkb will ignore XkbStateNotify events not related to XkbGroupState which caused strange behaviour with the system tray context menu. - Reapply Xkb settings when a keyboard device changes state - Do not run setxkbmap without arguments - Catch and process changes to Xkb layouts and options - Always check for Xkb opcode in X11 events, this fixes invalid group issue (Michele Calgaro) * Tray indicator - Do not reload all Kxkb settings every time we are requested to get a pixmap! - Tray indicator pixmap manager improvements - Fix Quit tray icon menu item * Configuration - Optimize settings reloading - Do not reload settings every time getKxkbOptions() is called; if settings actually need to be re-read, it must be done maunally before calling this function - Use pointer to global KxkbConfig instance instead of keeping own copy - Fixed optimized loading of initial settings using KxkbConfig::LOAD_INIT_OPTIONS (I had sort of broken it in the past) - Removed unused KxkbConfig::LOAD_ACTIVE_OPTIONS - `newInstance()` now delegates calling setLayout() to readSettings() - Merged `initTray()` into `readSettings()` - no reason to exist as separate function * Refactoring - Merged KxkbLabelController into KxkbSystemTray - Rename LayoutIcon to LayoutIconManager for clarity - Minor code cleanup in LayoutIconManager - Remove use of singleton pattern for LayoutIconManager - Make XKBExtension a singleton. - Add counter to XKBExtension to prevent it from processing configuration changes likely caused by KXkb - `XKBExtension::getServerOptions()` now also returns layout and variant information in a XkbOptions struct - New `KxkbConfig::setFromXkbOptions()` member can update current configuration from a XkbOptions struct - No need to use `tdeApp` pointer in KXKBApp (KUniqueApplication) class - Consistent code style and more appropriate function names and return types - Commented option sections for clarity - Removed superfluous debug messages - Add proper copyright header to extension.* * Settings GUI - Make "Transparent background" checkbox available for theme colors in the GUI - Add customization options "Stretch flag", "Dim flag", "Show indicator bevel" - Disable KMilo checkbox when layout notifications disabled - Fix reading settings for TDE layout hotkeys This resolves #547. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit aed24cdf3fd4615b0ac42fad074f20c0427cc3ac)
* Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT definesMichele Calgaro2024-01-161-1/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a4241b7911d2e0b36edfb02f616b8b282050c0ec)
* Kxkb: move LayoutUnit struct into its own file and add getLayoutName functionMavridis Philippe2023-12-251-6/+8
| | | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 9647d4c7ff182c1fadffb9c6218bc00132fe682e)
* Added customization options for KxkbMavridis Philippe2021-05-161-13/+13
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Rename additional header files to avoid conflicts with KDE4Timothy Pearson2013-02-151-1/+1
|
* Rename KIcon to enhance compatibility with KDE4Timothy Pearson2013-02-041-4/+4
|
* Rename many classes and header files to avoid conflicts with KDE4Timothy Pearson2013-02-011-2/+2
|
* Rename a number of classes to enhance compatibility with KDE4Timothy Pearson2013-02-011-2/+2
|
* Revert automated changestpearson2011-01-071-11/+11
| | | | | | | | Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1212480 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
* Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1tpearson2011-01-031-11/+11
| | | | git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
* Trinity Qt initial conversiontpearson2010-07-311-19/+19
| | | | git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
* Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.toma2009-11-251-0/+130
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da