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-07-09 23:04

Re: mbarcode
 
Quote:

Originally Posted by joshn53 (Post 745655)
Wow, those mockups look really good! A couple of comments:
* What happens when you click "Stop Scanning"? It seems like if the camera is the main background, clicking Stop goes ... nowhere?

Basically, yes. I was just thinking that people might want to pause the scanning without closing the lens. Although there might be no need to do that. It could go (as lardman suggested) to the recent list or something, though.

Quote:

* The icons don't seem very intuitive to me, but they're certainly better than nothing.
Well, they're just examples. We'll make something more intuitive or have some text with each icon if necessary.

Quote:

* I'm concerned that displaying the data associated with results (e.g. 7/10, $1.32, etc) will be too slow, since it may need to do network communication, etc. Could that be relegated to the next screen?
Oh, I'm thinking that the data shown is the cached data. We could probably implement some kind of "download info later" functionality, but the main purpose was just easy access to previously gathered info. To compare a couple of products, for instance.

Quote:

* I like the interface for showing the plugin actions. Much better than buttons.
Thanks! I've been wanting to change this for a while now :)

joshn53 2010-07-10 21:48

Re: mbarcode
 
I've committed an initial version of the wifi plugin into svn. The main thing remaining is to disconnect any existing connections.

I made it a separate plugin instead of including it in the QR code plugin for a couple of reasons:
* Since there's not good APIs for creating wifi connections, I had to include some low-level headers/libraries, and didn't want to clutter the QR code plugin with it.
* The QR code is a bit ... cluttered right now. I think it needs to be broken up into multiple PluginActions, and a lot of the commented out code removed.

dragly 2010-07-10 23:51

Re: mbarcode
 
Quote:

Originally Posted by joshn53 (Post 747559)
I've committed an initial version of the wifi plugin into svn. The main thing remaining is to disconnect any existing connections.

I made it a separate plugin instead of including it in the QR code plugin for a couple of reasons:
* Since there's not good APIs for creating wifi connections, I had to include some low-level headers/libraries, and didn't want to clutter the QR code plugin with it.
* The QR code is a bit ... cluttered right now. I think it needs to be broken up into multiple PluginActions, and a lot of the commented out code removed.

Cool!

I agree on that the QR Code plugin is a bit cluttered, but I also believe it should contain most QR Code functionality. It is better with a little mess in one plugin than a mess of many plugins. At least a lot easier to maintain.

Pulling out larger, more significant functionality of the QR Code plugin is a good idea though. Such functionality as wifi, app installing etc., that needs more than just two lines of code to be executed.

Natan_xy 2010-07-13 09:11

Re: mbarcode
 
Can you fix the plungin for .install file?
In my site I don't have problems using a large qrcode. Next, you can improvement with small syntax... ;)

Anyway, many thanks Dragly and Lardman!! I love this apps!
(Sorry for my english.. :/ )

lardman 2010-07-17 01:25

Re: mbarcode
 
Quote:

Originally Posted by Natan_xy (Post 750054)
Can you fix the plungin for .install file?
In my site I don't have problems using a large qrcode. Next, you can improvement with small syntax... ;)

Greetings all from SF CA ;)

Anyway, if you encode the url to the .install file, it should be opened in the browser then downloaded. Hopefully that should serve until we work out what to use re uri for installation instructions.

lardman 2010-07-17 01:30

Re: mbarcode
 
Quote:

Originally Posted by dragly (Post 747613)
Cool!

I agree on that the QR Code plugin is a bit cluttered, but I also believe it should contain most QR Code functionality. It is better with a little mess in one plugin than a mess of many plugins. At least a lot easier to maintain.

Pulling out larger, more significant functionality of the QR Code plugin is a good idea though. Such functionality as wifi, app installing etc., that needs more than just two lines of code to be executed.

I'd be tempted to have the QRplugin morph into a fallback plugin, which can simply open the browser and/or display the text in the barcode.

Then more specific plugins could handle specific types of http:// url, do vCards, sms://, tel://, mailto://, etc. (and other things that might change significantly in their implementation). Then we can just leave QRplugin alone as the fallback and let people concentrate on specific payload handlers.

Certainly it's rather cluttered atm, so feel free to clean and split it up (the old code is still available in the history so it won't get lost).

dragly 2010-07-21 15:18

Re: mbarcode
 
Finally a new release is here! I've been working on full screen scanning with overlay for a couple of days now and with a big thanks to Klen for sharing his experience with the same issue here on Talk and over at Nokia Forum, I've made it work!

So what's new?

* Full screen scanning with overlay buttons
* Option in settings window to enable/disable full screen. Disabling full screen brings back the title bar, but decreases performance. It goes down from ~16 fps to ~13 fps.
* mBarcode kills the camera app on start up, avoiding interference with buttons and lens cover
* Notification when lens cover is closed (thank you joshn53!)
* Start scanning by opening lens cover (thank you fieldofcows!)
* Manual focus using cam button.
* Take picture using cam button. This is useful if scanning fails and you want to report the problem.
* Color scanning.
* New design in results window.
* Using OpenGL to overlay buttons.
* TillRoll moved to new window.

Issues? Of course!

* TillRoll is not updated with image after scan. It is updated after restarting mbarcode, however.
* Still some performance issues. Even when minimizing the app, it still uses a bit too much of something (does not seem to be CPU). Currently fixed by lowering framerate, but this has not been necessary in other, pure OpenGL apps I've tried.
* Power management issues. If the application is left open, it appears to use a bit much power. Does currently not stop scanning if screen dims the backlight.

Future plans

All the plugins are now being rebuilt for the new plugin API which was binary-broken in this release of mbarcode. These should be ready in a few minutes.

The next steps would actually be to prepare it for Extras and name it a 1.0 release unless there are some bugs that must be fixed first. Afterwards I think we could prepare all the plugins to go to Extras as well.

It seems like PythonQt is going to be some more work to implement, and I guess the application is usable to most people already, so I don't see any reason not to push it towards Extras now. Or have I forgotten something?

Any suggestions?

joshn53 2010-07-21 16:49

Re: mbarcode
 
Awesome work, dragly! I'm getting compile errors now, due to images/gui/settings.png not being available. I assume that you simply failed to add it to SVN?

dragly 2010-07-21 20:43

Re: mbarcode
 
Quote:

Originally Posted by joshn53 (Post 759491)
Awesome work, dragly! I'm getting compile errors now, due to images/gui/settings.png not being available. I assume that you simply failed to add it to SVN?

Thanks!

That's probably right. Sorry, I tend to do forget to add new files from time to time. I'll add it and compile the plugins tonight. They needed mbarcode-dev to be imported, and that didn't happen before I headed out ;)

dragly 2010-07-21 23:40

Re: mbarcode
 
@joshn53: I've added the missing image now. Hopefully it will compile successfully for you.

I've also started adding the plugins to extras-devel. If the autobuilder behaves nicely, they'll probably be available in a couple of minutes.


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

vBulletin® Version 3.8.8