maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   mbarcode (https://talk.maemo.org/showthread.php?t=34996)

dragly 2010-10-24 15:47

Re: mbarcode
 
On another topic. I figured out how to avoid using Scratchbox for development. I just reinstalled Ubuntu, and figured it would take a couple of hours to get Scratchbox up and running again. That made me think of whether or not I could use Nokia Qt SDK without Scratchbox.

The solution was actually quite simple. Download and extract the armel versions of libdmtx-dev and libzbar-dev and their dependencies (libdmtx and libzbar). Copy the usr folders to the following path, where <NokiaQtSDK> is where you have installed the SDK:
Code:

<NokiaQtSDK>/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim
And that's it! Finally I can compile mbarcode without opening Scratchbox, and run it directly on the device :)

I will have to install Scratchbox again if I need to test packaging some time in the future, thought, but for now this was a very easy option :) I thought I should share it here in case anyone else wants to hack on mbarcode, but feels that installing and setting up Scratchbox is a bit cumbersome.

dragly 2010-10-24 15:48

Re: mbarcode
 
Quote:

Originally Posted by lardman (Post 849541)
it works well, the only thing we probably need to do is remove the selection after some time (so it acts more like a button effect). Otherwise for e.g. the web search plugin, you return from the web search url list to find the row still selected.

I agree. I suppose we could set the selection to None after a specified amount of time or something. After all, the user needs some input on the click, not the selection :)

mrsellout 2010-10-24 15:52

Re: mbarcode
 
Apologies for butting in to your conversation here, but I had an idea that might work.

You implemented the 'push to scan feature' to save power & cpu usage right? In my use of this app, I wait until I have the barcode in the window before pushing spacebar (thanks again!). In a similar vein of user-interaction, how about having the user select which plugin s/he wants to use by having a different letter on the bottom row of the keyboard call a different plugin. They already know what type of barcode they are scanning so just need to hit the right key. So to scan a standard barcode you press spacebar, to scan a QR url press m, etc..

This could be optional like the push to scan, and I propose the bottom row because you can just edge the keyboard open.

Just a thought, and I'll crawl back under my rock now, the app is perfect for my needs as it stands!

dragly 2010-10-24 15:56

Re: mbarcode
 
Not a bad idea at all. I guess adding an option for which button to press in the Plugins Settings window could let the users customize this as well :)

lardman 2010-10-24 17:33

Re: mbarcode
 
Quote:

Originally Posted by dragly (Post 849574)
I agree. I suppose we could set the selection to None after a specified amount of time or something. After all, the user needs some input on the click, not the selection :)

I think it should be possible to clear the selection (by using iirc the clear() method of the QSelectionModel associated with the table), I'll have a look at how to do this.

lardman 2010-10-24 17:36

Re: mbarcode
 
Quote:

Originally Posted by mrsellout (Post 849578)
Apologies for butting in to your conversation here, but I had an idea that might work.

You implemented the 'push to scan feature' to save power & cpu usage right? In my use of this app, I wait until I have the barcode in the window before pushing spacebar (thanks again!). In a similar vein of user-interaction, how about having the user select which plugin s/he wants to use by having a different letter on the bottom row of the keyboard call a different plugin. They already know what type of barcode they are scanning so just need to hit the right key. So to scan a standard barcode you press spacebar, to scan a QR url press m, etc..

This could be optional like the push to scan, and I propose the bottom row because you can just edge the keyboard open.

Just a thought, and I'll crawl back under my rock now, the app is perfect for my needs as it stands!

Certainly keyboard shortcuts would be fine by me, but perhaps more importantly, I think we ought to be able to select plugins to automatically be run for a given barcode content type (e.g. if scanning a load of books, it would be good to not have to press the extra button on the results window). Perhaps when we get round to sorting out the Plugin Settings window ;)

lardman 2010-10-24 18:17

Re: mbarcode
 
Ok, I've just committed a change which removes the selection after 1000ms, so it now looks somewhat like a button-press to the user (which should hopefully let them know the UI has seen what they've done - i.e. pressed one of the plugin rows/buttons.)

Edit: I've just pushed an updated package to extras-devel too.

lardman 2010-10-24 21:32

Re: mbarcode
 
Talking about the current SVN code.

Strange, reading in an MECARD generated here (http://www.quickmark.com.tw/en/diy/?qrMeCard) I can correctly pull out the elements, though they way they encode the address fields doesn't match the iMode spec (http://www.nttdocomo.co.jp/english/s...ook/index.html), but for some reason I get error 3 returned by the QtMobility ContactManager, which means InvalidDetailError (see http://qt.gitorious.org/qt-mobility/...ntactmanager.h)

Each contact detail is reported as being added successfully to the contact object (e.g. name, phone number, address, etc., etc.) Any ideas chaps? I guess I'll have to do some digging through the QtMobility source code to see what causes this particular error code.

donj541 2010-10-26 05:08

Re: mbarcode
 
Hi, I have tested Mbarcode for a couple of times now. Today I updated my n900 firmware to PR 1.3 and updated mbarcode to 0.2.3.3. Since then mbarcode stopped working. After I scanned the barcode of my Ananomy book, Logitech gaming headset, and few other stuff, it takes me to the "Results from scan" page. All i see is Results for "0097855062178" and nothing after that. There is no link or anything. It used to show me a list of link such as google, amazon or something similar. But now nothing. Is it because I updated my firmware? please help. I really in need of this.

sconf 2010-10-26 06:55

Re: mbarcode
 
Quote:

Originally Posted by donj541 (Post 851334)
All i see is Results for "0097855062178" and nothing after that. There is no link or anything.

Same here, except I tried mbarcode first time after upgrading. At startup mbarcode says "Could not load: .....so" for every plugin.


All times are GMT. The time now is 17:51.

vBulletin® Version 3.8.8