summaryrefslogtreecommitdiffstats
path: root/kxkb/pixmap.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Kxkb: layout switching and UI bugfixes and minor refactoringMavridis Philippe2025-04-031-72/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 mutex 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>
* Use tdestandarddirs.hMichele Calgaro2025-02-251-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Qt with TQtMichele Calgaro2023-11-131-9/+9
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, ↵Michele Calgaro2023-09-251-2/+2
| | | | | | QIODevice with TQ* version Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* kxkb: transparent indicator background featureMavridis Philippe2022-03-191-2/+24
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Added flags/definitions for existing locales.Mavridis Philippe2021-05-161-10/+28
| | | | | | | | | * Braille * Esperanto * Indonesian (Javanese) * Maori (New Zealand) Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Re-set previous layout after changing layout settings.Mavridis Philippe2021-05-161-92/+92
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Added customization options for KxkbMavridis Philippe2021-05-161-63/+105
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Rename additional header files to avoid conflicts with KDE4Timothy Pearson2013-02-151-1/+1
|
* rename the following methods:tpearson2011-08-101-1/+1
| | | | | | | | | tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
* Enable compilation with TQt for Qt4 3.4.0 TP2tpearson2011-01-191-3/+3
| | | | | | | This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
* Revert automated changestpearson2011-01-071-34/+34
| | | | | | | | 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-34/+34
| | | | git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
* Trinity Qt initial conversiontpearson2010-07-311-35/+35
| | | | 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/+357
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da