maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch (https://talk.maemo.org/showthread.php?t=84011)

qwazix 2012-05-01 15:33

[Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
5 Attachment(s)
Download from post #2

This is a calculator based on speedcrunch, kde's default calculator.

The special thing about it is that it uses the native meego input method, with all it's advantages for input. For now there is only one layout, plus the us english one for inputting functions and variables.

There is a function list on the left screen with a reference to wikipedia for more info, and a simple settings page on the right. It auto-calculates, and has history. Clicking on the history items or double-clicking on the function names inserts them in the calculation box.

There will be a paid version later on Nokia Store, with some additional layouts and maybe some more settings.

Any layouts you could contribute that seem useful to you are welcome for integration.

Screenshots:
Attachment 26112
Attachment 26113
Attachment 26114
Attachment 26115

UPDATE: Now it sports another keyboard layout, and can copy result to clipboard. See post #2 for new version.

qwazix 2012-05-20 13:39

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
2 Attachment(s)
Update:

This is an update which brings another keyboard layout and copy to clipboard button.

Update:

0.0.3 hopefully fixes a usability bug which caused the phone to remain with only one active language layout.

thedead1440 2012-05-20 13:53

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
hi can you add the layout in post 1 as it has a % button on the number pad.

Silwer 2012-05-20 13:58

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
Great calc!

qwazix 2012-05-20 14:10

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
2 Attachment(s)
Quote:

Originally Posted by thedead1440 (Post 1209612)
hi can you add the layout in post 1 as it has a % button on the number pad.

The % sign moved to layout number 2. I thought that ^ is more useful than % as you can just type 0.10 instead of 10% anyway.

You can modify the layouts yourself using any text editor. They are located in /opt/mobilecrunch/ and I can also attach them here.

Here is also a deb with the % sign on the first layout.

thedead1440 2012-05-20 14:20

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
in /home/user/.mobileCrunch i only see oldActiveKb and oldEnabledKb which are empty files. could you advice on which file to edit.

qwazix 2012-05-20 14:32

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
Oops sorry. The layouts are located at /opt/mobilecrunch/ you will need root.

If you make any nice edits please share.

gexc 2012-05-22 12:36

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
great calculator

but it seems that all the keyboards (other than US English) are removed deactivated in the OS as well :confused:

thedead1440 2012-05-22 13:08

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
^ actually after a reboot there is no input keyboard. You've got to go to time & language and install a keyboard then use it as your active. I have a full range of keyboards to choose from so its surprising you've only US English left.

gexc 2012-05-22 14:25

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
Quote:

Originally Posted by thedead1440 (Post 1210749)
^ actually after a reboot there is no input keyboard. You've got to go to time & language and install a keyboard then use it as your active. I have a full range of keyboards to choose from so its surprising you've only US English left.

I meant 'deactivated' :D

qwazix 2012-05-23 22:17

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
Sorry for the late reply, this should not happen, I have English and Greek keyboard enabled and they get enabled again when you put the calculator in the background. Your keyboard configuration should be saved in /home/user/.mobilecrunch in two files and restored upon sending the app to background. Could you please care to post the contents of those two files so that I can troubleshoot the problem? Works fine here that's why I am asking.

gexc 2012-05-24 03:27

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
those files in ~/.mobileCrunch are empty
also upon starting (and backgrounding) mobilecrunch, all keyboards in the system are disabled
my phone language is simplified chinese and I have enabled swype, US English, pinyin and handwriting
but this issue remains even if I left only US English enabled

hope that helps

qwazix 2012-05-24 06:14

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
Let me try with swype and report back. If you have developer mode enabled can you please post the result of
ls .mobileCrunch

I wonder if it has to do with permissions.

gexc 2012-05-24 07:12

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
user@RM696:~$ ls -l .mobileCrunch
total 0
-rw-r--r-- 1 user users 0 May 24 11:20 oldActiveKb
-rw-r--r-- 1 user users 0 May 24 11:20 oldEnabledKb

I don't think the issue is Swype-related though

qwazix 2012-05-27 12:46

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
1 Attachment(s)
It's not a permissions thing, it's not a swype thing either.

Short explanation.

When the application shows, I read all the enabled layouts and write them to a file (oldEnabledKb) so that I can load them later, when the application goes to the background. MeeGo though triggered the background event once on application start, so whatever is stored in the file gets loaded.

(in your case, and anybody's after fresh install, nothing, as the file was empty -or non existent-. In my case my default keyboards because the file had my default keyboards.
They got written there when I changed them while the application was open, while testing, I backgrounded the application instead of closing it and tested different layouts. When you call the app from background the 'extra' restore does not happen so my file was not empty)

So the program loads the keyboards saved in the file just before saving them again to load the math keyboards. Thus it enters in a loop where the file is always the same, except if you change layouts while the app is running.

Anyway, I am attaching a new version that hopefully resolves the situation. I kindly ask you to test it.

P.S. the application does not work in PR1.1 because of a theming option. If anybody is still on PR1.1 please speak up and I can upload a PR1.1 variant.

LouisDK 2012-09-12 05:38

Re: [Announce] Advanced touch-friendly calculator for the N9 based on speedcrunch
 
Nice app. I would like support for landscape mode :)


All times are GMT. The time now is 02:55.

vBulletin® Version 3.8.8