Technology news and Jobs
The Linux distillery
ASUS Eee Linux PC dumps on Windows
The Linux distillery
ASUS Eee Linux PC dumps on Windows | ASUS Eee Linux PC dumps on Windows |
|
|
| by David M Williams | |
| Monday, 07 April 2008 | |
|
Page 3 of 3 You have two choices when it comes to the Qt cheat sheet. You can follow the instructions and manually run through the steps yourself, or you can click on Click to Perform which lets Eclipse do all the work for you.No matter which direction you follow, Eclipse will prompt where it can find Qt. You might reasonably have expected this to already be set up in the SDK but never mind, it’s easy for us to do now. Specify the version name as Qt4.3, the bin path as /usr/bin and the include path as /usr/include/qt4. As you work through the cheat sheet you’ll go through Eclipse’s screens to make windows and add components to them. You’ll build a user interface and you’ll write program code. Depending on the speed of your computer or VMWare system you might find Eclipse to be sluggish when you are typing. You can tweak it by turning off auto-completion. Click Window / Preferences, expand C/C++, expand Editor and then click Content Assist. Disable the three check boxes in the Auto activation area and then click OK to apply and exit. Additionally, you can disable the C/C++ Indexer; go back into Window / Preferences, C/C++, Editor and this time click Indexer. Select the No Indexer option and click OK to apply and exit. Once you’ve built your app, you need to make a 130x130 icon for it. You can find an existing one you like or create one using OpenOffice.org Draw or The GIMP or any other suitable tool. Save the icon in the folder /opt/xandros/share/AsusLauncher as a .png image. Now, the ASUS Launcher provides four different colour themes and as such it requires four different themed icons for each application. Happily, you can generate these without effort. Run the command /opt/xandros/abin/create-launcher-icons /opt/xandros/share/AsusLauncher/mynewicon.png replacing, of course, “mynewicon.png” with the name of the new icon you just created. Your new icons will be dropped into /var/lib/AsusLauncher. The ASUS Launcher presents its list of tab pages and program icons according to settings in an XML configuration file called simpleui.rc. The system default on an ASUS Eee is in /opt/xandros/share/AsusLauncher/simpleui.rc. Check this file out and you’ll quickly see the structure it follows. In essence, each launchable application is embedded within a set of <parcel> ... </parcel> tags. The simplecat attribute identifies the tab on which the application should display, and the extraargs attribute defines the command – along with the full path and any command-line options – that Launcher should use when launching the app. Launcher checks the sanity of these options before displaying anything to the user; if you make a typo and the path you enter does not exist the Launcher will not show your icon at all. Make a new XML snippet with the appropriate parcel tag for your app. You can test you have got the syntax all correct by simply editing simpleui.rc on a live ASUS Eee and checking how it appears within the Launcher. When you’re sure you have it right, save your modifications into a stand-alone .xml file. Edit the file /etc/AsusLauncher/AsusLauncher.conf to list the name of the new XML file you’ve made. The name or location isn’t important, but it must be listed in AsusLauncher.conf. Finally, run the command /opt/xandros/bin/update-launcher which will consolidate all the new entries in AsusLauncher.conf into the simpleui.rc and then cause Launcher to reload itself. You’ll want to ensure these steps are performed when installing your new app on an ASUS Eee PC – and you’ll handle this as part of packaging and deploying the project. You can use the Debian packaging wizard to perform the bulk of this work but for now there’s plenty here for you to get going on with – namely, setting up the development environment and building the address book app. With this SDK ASUS have given tremendous control over the Eee PC allowing developers to truly exploit its versatile capabilities. What’s more, you don’t even need an Eee to build your apps – and nor do you even need an Eee to run them! You can now run an ASUS Eee within a Virtual PC under Windows or any other operating system too. And that's how to have ASUS Eee image dumps on Windows ;)
Get stories like this delivered daily - FREE - subscribe now
|
| < Next story in category | Previous story in the category > |
|---|




Tags





