XML layouts for onscreen keyboard
Will Stephenson
wstephenson at kde.org
Mon Mar 22 11:20:07 CET 2010
On Sunday 21 March 2010 17:12:25 Björn Ruberg wrote:
> I'm reworking the onscreen keyboard we already have in 4.4. One of the big
> improvements is that I want to come away from hard coded key layouts and
> use something (user-) configuerable. So it would be very easy to add a
> layout for mobile phones - currently its aimed at bigger tablets.
>
> So I want to use xml files for storing the layouts in it. This is only
> partially about localisation, because that is done mainly by the X-server.
> Main goal is to have different or customized layouts for different usages.
>
> I want to use a XML file similar like matchbox-keyboard uses:
> http://wiki.openmoko.org/wiki/Change_keyboard_layout
>
> My questions are:
> - What c++ library should I use for reading in the xml-file?
Qt: http://doc.trolltech.com/4.6/xml-processing.html
> - How can I get a xml file to be installed by cmake?
install( FILES file1.xml file2.xml DESTINATION
${DATA_INSTALL_DIR}/yourappname )
> - And where should it be installed to?
the above installs in $PREFIX/share/apps/yourappname where KStandardDirs can
find it.
For this kind of question you'll get a lot more help on kde-devel at kde.org.
HTH
Will
More information about the Plasma-devel
mailing list