Table of Contents
The calculator can be customized so looks and works the way you want it. You can change the keyboard layout and the background graphic. In order to do so you will need a zip tool, a text editor, an image manipulation program and Informer to find out the system properties and key codes of your device.
Before you begin you need to unpack the jar file - it’s just a normal zip file so a standard zip tool will do. Ignore all the *.class files - the important files are the *.png and the *.lst files.
And after you have made your changes you should repack the the .jar file. Make sure to preserve the directory layout.
List file #
There is one *.lst file for each calculator set-up found in the root directory of the jar file
The name of the file depend on the operating system used:
|Symbian / UIQ3
|The file names of the *.lst files are made up of the internal name of the calculator (displayed for example by Informer, use the text up to the first ‘/’), a dash, the active locale and the “.lst” postfix.
|Symbian / S60
|The file names of the *.lst files are made up of the internal name of the calculator (displayed for example by Informer, use the text up to the first ‘-’), a dash, the active screen size and the “.lst” postfix.
|The file names of the *.lst files are made up of the internal name of the JaveME systems - For example Jbed, [-(displayed for example by Informer a dash, the active screen size and the “.lst” postfix.
|Android does not use themes - Instead it scales the buttons dynamically. Note that qvga (i.E. Sony Ericsson Xperia™ X10 mini) is not supported on Android.
|The file names of the *.lst files are made up of the active screen size, a dash, the active locale, and the “.lst” postfix.
The *.lst file has the following very strict format:
|Description oft the display images used. The description consists one text field and 6 numbers. Each number is exactly three digits separated by one space.
|Image file qualifier. It is used to find the images needed to display the calculator and highlight pressed buttons.
|Calculator display x position of first character
|Calculator display y position of first character
|Calculator display width of one normal character
|Calculator display width of one exponent character
|Calculator display y position of indicator row
|Amount of background images available. Should be either 1 or 4.
|2 .. 51
|Description of the 50 calculator buttons. Each description consists of 7 numbers. Each number is exactly three digits separated by one space. The rest of the line after the last number is comment.
|Calculator button x position
|Calculator button y position
|Calculator button width
|Calculator button height
|Calculator button type. Five button types are supported.
|Calculator button scan code used by the calculators micro code. This number is octal.
|Keyboard short cut. This is a JavaME key code - positive numbers are ASCII, negative numbers are special keys. You could use Informer or KeyEventDemo to find out the codes used by your device.
Image files #
Supported Screen sizes. #
If your screen size is not supported then use the next smaller one available. Note that destop systems must support 40 pixel larger desktop so enough space is available.
From the qualifier in line 1 five images are loaded:
|Background image for normal operations.
|Background image for inv operations.
|Background image for alpha operations.
|Background image for inv-alpha operations.
|Highlight image for button type 0 (usually the top 2 rows).
|Highlight image for button type 1 (usually the inv key).
|Highlight image for button type 2 (usually the middle 3 rows).
|Highlight image for button type 3 (usually the lower 4 rows).
|Highlight image for button type 4 (usually the exe key).
|qualifier/0.png .. qualifier/255.png
|Character Image 0 to 255.
German notbook keyboard #
The following example shows the set-up for a German notebook keyboard without separate numeric keypad.
|qvga theme file
|wvga theme file
|description of changes in german