mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00

lots of changes with this commit - on the plasma applet side: + the applet now handles mouse wheel events * the applet itself sets its global global shortcut key + the applet itself has configuration interface for the text and flag options * ported to the new KKeyboardLayout class - no per-window or per-application keyboard layout on the overall keyboard configuration: * no KDED module required + keyboard layout descriptions (model, layout, variant, etc.) are actually translated - no keyboard configuration will be shown when a keyboard is plugged-in (see bellow) - keyboard layout options are not configurable, not via GUI interface anyway the hotplug plasma data engine, device notifications and solid actions have to be either reimplemented or extended to handle more device types (currently the above mentioned handle only removable devices by default such as cameras, not input devices such as keyboard) overall - from reimplemented one thing to another and the keyboard configuration is not done yet (adding and editing keyboard layout not implemented yet) but in a working state on a side note the changes here affect kvkbd as it uses D-Bus interface for keyboard layout change that is no more and has to be ported or (most likely) replaced with a handler for QEvent::RequestSoftwareInputPanel event that shows a keyboard on demand there is also the double-keyboard layout applet thing - applet for the keyboard layout could be added and the daemon (KDED module) was showing its own keyboard layout indicator automatically (by default) the X11 keyboard bell options are next to useless btw - there is KNotification::beep() for such things so the X11 bell options are simply dropped Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
29 lines
1.3 KiB
CMake
29 lines
1.3 KiB
CMake
include(CMakePushCheckState)
|
|
include(CheckTypeSize)
|
|
include(CheckSymbolExists)
|
|
include(CheckLibraryExists)
|
|
|
|
find_program(some_x_program NAMES iceauth xrdb xterm)
|
|
if (NOT some_x_program)
|
|
set(some_x_program ${CMAKE_INSTALL_PREFIX}/bin/xrdb)
|
|
message("Warning: Could not determine X binary directory. Assuming ${CMAKE_INSTALL_PREFIX}/bin.")
|
|
endif (NOT some_x_program)
|
|
get_filename_component(proto_xbindir "${some_x_program}" PATH)
|
|
get_filename_component(xbindir "${proto_xbindir}" ABSOLUTE)
|
|
get_filename_component(xrootdir "${xbindir}" PATH)
|
|
set(XLIBDIR "${xrootdir}/lib/X11")
|
|
set(XKBDIR "${xrootdir}/share/X11")
|
|
|
|
check_function_exists(nice HAVE_NICE)
|
|
check_include_files(malloc.h HAVE_MALLOC_H)
|
|
kde4_bool_to_01(FONTCONFIG_FOUND HAVE_FONTCONFIG) # kcontrol/fonts
|
|
kde4_bool_to_01(FREETYPE_FOUND HAVE_FREETYPE) # kcontrol/fonts
|
|
kde4_bool_to_01(X11_Xcomposite_FOUND HAVE_XCOMPOSITE) # plasma, kwin
|
|
kde4_bool_to_01(X11_Xcursor_FOUND HAVE_XCURSOR) # many uses
|
|
kde4_bool_to_01(X11_Xdamage_FOUND HAVE_XDAMAGE) # kwin
|
|
kde4_bool_to_01(X11_Xfixes_FOUND HAVE_XFIXES) # klipper, kicker, kwin
|
|
kde4_bool_to_01(X11_Xkb_FOUND HAVE_XKB) # kglobalaccel
|
|
kde4_bool_to_01(X11_Xrandr_FOUND HAVE_XRANDR) # kwin
|
|
kde4_bool_to_01(X11_XSync_FOUND HAVE_XSYNC) # kwin
|
|
kde4_bool_to_01(X11_XRes_FOUND HAVE_XRES) # ksysguard
|
|
kde4_bool_to_01(X11_dpms_FOUND HAVE_DPMS) # kscreensaver
|