I implemented a feature in a test coin to snap a region of your screen which contains a QR code. This new dialog is used in two places:you can send coin to a snapped address or import a snapped private key as a wallet. The snapped region is converted to an image and sent to a library to be decoded into a string.
To show you how it works, I made a short (3 minute) video where I demo the feature on Windows, Mac OS X (10.9.2), and Ubuntu:
http://youtu.be/5NCiHGIMB2cThe source code featured in the video is available here:
https://github.com/ClaireDuSoleil/LegocoinThis new feature uses the ZebraCrossing library. This library was originally written in Java and ported to C++. In order to decrease the size of the download and make some minor changes so it compiles properly on all three platforms, I made my own version:
https://github.com/ClaireDuSoleil/ZebraCrossingZebraCrossing is pretty easy to compile on all three platforms using cmake. I didn't even create a VS project for it. The batch file I wrote simply runs cmake to create the VS2013 project files and then runs msbuild to create the library. This batch file is located in the build-helpers directory in the legocoin repository, along with batch files to build all the other dependencies in VS2013. Please see the README in the MSVC folder for more information.
Other notes: the snap feature uses Qt5. It will need some rework if you want to use Qt4.
If you happen to try this out and find any problems, please let me know.