[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-active
Subject:    keyboard layout switcher
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2011-11-19 23:35:35
Message-ID: 5268878.NfB08FkZ8Y () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


hi ...

a step in making the keyboard a little more internationalization friendly is 
being able to switch the layouts. to this end, i added a push button on the 
right underneath the move button when there is more than one layout there. 
(putting it beneath the move button keeps the other two buttons in their 
previous locations while also providing lots of room between close and change 
layout)

i'm unconvinced a button is the best approach here, but it was easy :) and it 
allowed me to at least get the feature written (which was really the big 
part).

to be able to reflect changes in the active layouts when the configuration 
changes, one needs commit 26fc223 to kde-
workspace/kcontrol/keyboard/keyboard_daemon.cpp in the master branch.
(and to restart kded4 after that patch is built and installed ..)

feedback welcome ... you can see the feature in plasma-mobile in the 
keyboardlayouts branch.

next steps include the ability to long-press on a key that has multiple 
possibilities (e.g.: u, ü, ú, ...) and get a popup that shows them.

p.s. i am increasingly unhappy with the amount the keyboard currently relies 
on xkb and the KDE integration with it via kxkb. it may be nicer to have 
everything done via the xml config files as far as layout definition is 
concerned...

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

[Attachment #7 (unknown)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:12pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">hi ...</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">a step in making the keyboard a little more internationalization \
friendly is being able to switch the layouts. to this end, i added a push button on \
the right underneath the move button when there is more than one layout there. \
(putting it beneath the move button keeps the other two buttons in their previous \
locations while also providing lots of room between close and change layout)</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">i'm unconvinced a button is \
the best approach here, but it was easy :) and it allowed me to at least get the \
feature written (which was really the big part).</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">to be able to reflect changes \
in the active layouts when the configuration changes, one needs commit 26fc223 to \
kde-workspace/kcontrol/keyboard/keyboard_daemon.cpp in the master branch.</p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">(and to restart kded4 after \
that patch is built and installed ..)</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">feedback welcome ... you can see the feature in \
plasma-mobile in the keyboardlayouts branch.</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">next steps include the ability to long-press on a \
key that has multiple possibilities (e.g.: u, ü, ú, ...) and get a popup that shows \
them.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">p.s. i am increasingly \
unhappy with the amount the keyboard currently relies on xkb and the KDE integration \
with it via kxkb. it may be nicer to have everything done via the xml config files as \
far as layout definition is concerned...</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">-- </p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Aaron J. Seigo</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">humru othro a kohnu se</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">GPG Fingerprint: 8B8B 2209 \
0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">KDE core developer sponsored by Qt Development \
Frameworks</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
">&nbsp;</p></body></html>


["signature.asc" (application/pgp-signature)]

_______________________________________________
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic