The Linux distillery
Bringing the world of Linux to you, David cuts through the tech and shows you how it works and how to use it, in terms that apply to any distro. RSS
IT NEWS            Site directors hint: Stay up to date Discuss now!
Technology news and Jobs arrow The Linux distillery arrow ASUS Eee Linux PC dumps on Windows
ASUS Eee Linux PC dumps on Windows PDF E-mail
User Rating: / 9
PoorBest 
by David M Williams   
Monday, 07 April 2008
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.

I’d advocate taking the first option; if you perform the steps yourself you’ll get familiar with the steps necessary to make an application from scratch, the Eclipse and Qt environments, and the program code itself. This makes for a great introduction with a fully working app as the end result.

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 ;)

Please enable JavaScript in your browser to post your comment!


Get stories like this delivered daily - FREE - subscribe now


 
< Next story in category   Previous story in the category >
Subscribe to iTWire's Free daily e-newsletter Delivered daily - FREE
Subscribe to our Technology newsletter, get the latest and stay ahead ...example
* First name:
* Last name:
* Your email address:
* Country:
* Enter the security code shown:

* mandatory


Search the web
Search iTWire

 
You don't need to login to post a comment





Lost Password?
No account yet? Register
Subscribe to our free daily newsletter.
Six Sigma Green Belt Training and Certification Workshop
July 4 (9:00 am) - July 06 (11:59 pm), 2008
eXample Consulting Group is conducting an immensely practical SIX SIGMA GREEN BELT CERTIFICATION ...

Ovum Breakfast Seminar: Telco 2.0 in the UC battleground
July 7, 2008 (7:30 am - 10:00 am)
Ovum would like to invite you to our forthcoming event on July 7, at which we will be discussing ...

Oceania Com
July 7 (8:45 am) - July 08 (11:59 pm), 2008
Informa Telecoms & Media and BuddeComm are delighted to announce the inaugural OCEANIACOM 7-8 J...

Energy Logic Symposium- Melbourne
July 8, 2008 (All Day)
Emerson Network Power, Dell, IBM and Cisco show you how to slash data centre energy use without c...

Financial Modelling in Excel - Brisbane CBD
July 9, 2008 (All Day)
Improve your decision making and business skills by learning to create your own dynamic and relia...

Budgeting & Forecasting in Excel - Brisbane CBD
July 10 (9:00 am) - July 11 (11:59 pm), 2008
Learn to create your own budgets, rolling forecasts, reports and scenarios. Explore budgeting te...

SIX SIGMA WORKSHOP - Bangalore
July 11 (9:00 am) - July 13 (11:59 pm), 2008
eXample Consulting Group is conducting an immensely practical SIX SIGMA GREEN BELT CERTIFICATION ...

KM Australia 2008
July 21 (8:00 am) - July 22 (11:59 pm), 2008
Web Linkwww.kmaustralia.com Moving forward with an enterprise approach to knowledge, information...

Usability Fundamentals Training Course [Melbourne]
July 21 (9:00 am) - July 22 (11:59 pm), 2008
The success of your website is inextricably linked to how well-versed those involved in the devel...

ISTQB Foundation Certification Course
July 22 (9:00 am) - July 23 (11:59 pm), 2008
This accredited and instructor-led course focuses on developing the student’s knowledge, understa...
New event listings
SolidWorks Innovation Day (Melbourne and Adelaide)
October 17, 2008 (All Day)
Hosted by Intercad, SolidWorks’ Innovation Days will give designers, engineers and manufacturers ...

SolidWorks Innovation Day (Sydney)
October 16, 2008 (All Day)
Hosted by Intercad, SolidWorks’ Innovation Days will give designers, engineers and manufacturers ...

SolidWorks Innovation Day (Brisbane and Perth)
October 15, 2008 (All Day)
Hosted by Intercad, SolidWorks’ Innovation Days will give designers, engineers and manufacturers ...

LIXI Industry Forum 2008
September 10, 2008 (All Day)
Wednesday, 10 September 2008 The Westin Sydney The second annual major industry event for the...

Last Day to apply for Mid Year study at Swinburne University
August 1, 2008 (All Day)
Applications close for Swinburne University’s online postgraduate Technical Communication courses.

The Rapidly Emerging Mobile Media Market
July 24, 2008 (All Day)
Mobile media is the way of the future, and by 2015, it is expected that it will be the major reve...

View Full Calendar
Contact , Register , Advertise with iTWire , Links , About iTWire , Feedback , Post your jobs , Events , iTWire site map , Start Blogging , MyBlogLog page
Industry Releases , Submit your release now