Reply
Thread Tools
Posts: 336 | Thanked: 129 times | Joined on Jan 2011 @ portugal
#21
nice..i dont know how maemo image viewer does it, to always have thumbs available from the start..just keep in mind battery consumption...
 

The Following User Says Thank You to ed_boner For This Useful Post:
Posts: 40 | Thanked: 112 times | Joined on Apr 2012 @ Poland
#22
Cool idea thanks, I will think about it
 

The Following User Says Thank You to jendkers For This Useful Post:
Posts: 237 | Thanked: 273 times | Joined on Jul 2010
#23
excellent program, thanks alot for your hard work.
just a note: you are missing python-osso in the dependencies.

[EDITED]

further notes after testing for a while:

*the image is not centered correctly if the user zooms in, this is quite apparent at higher zoom levels, part of the image file is not visible (cropped).
*scrolling speed is too fast at higher zoom levels.
*zoom level is lost if the device is rotated.

suggestions:

1)please add the fuctionality to rotate the images (maybe add 'R' for keypad control)
2)add support for other common image types other than jpg (bmp, png, gif etc)
3)since you are launching a separate window for an image, why not allow multiple image windows at the same time similar to the behaviour of the default browser ?
4)implement functionality for taking command line paramenters,
ex. python ./maepygallery.py /home/user/MyDocs/img.jpg should open a new window and show the image.
5)mimic the zoom funtionality of the default image viewer using the volume keys, this allows zooming in further when the keypad is closed.

Thanks again for for your hard work.

Last edited by ivyking; 04-07-2012 at 08:33 PM.
 

The Following 2 Users Say Thank You to ivyking For This Useful Post:
Posts: 1,026 | Thanked: 2,488 times | Joined on Apr 2011 @ Netherlands
#24
Originally Posted by Addison View Post
I tried this on Maemo 4.


Traceback (most recent call last):
File "/usr/bin/MaePyGallery.py", line 7, in <module>
from PySide.QtCore import QThread, QTimer, QObject, QEvent, QPoint, QCoreApplication, Qt, QSize
ImportError: No module named PySide.QtCore


Am I missing a junkload of dependencies because of the older OS?
You could try to include PyQt (which is released for OS2008) instead of PySide. They are very similar and I don't think much Maemo 5 specific code is used. But it would still require some coding skills. Next to that I don't know the current Qt state on Maemo 4.

@jendkers
I read something about portrait mode, but I experience no (auto)rotating. Did I not understand this well, or is it based on forced rotation?

P.s. nice work for just a month of Python experience.
 

The Following 3 Users Say Thank You to ade For This Useful Post:
Posts: 40 | Thanked: 112 times | Joined on Apr 2012 @ Poland
#25
Right, I didn't included autorotating, because I have forced rotation, I will include it in next update.
btw I know c++, so python was easy to learn .

@ivyking
Rotating images is almost done, but i have a little problem and I need fresh mind to solve it :d I made a popup toolbar appearing from bottom edge.

Last edited by jendkers; 04-07-2012 at 04:25 PM.
 

The Following 4 Users Say Thank You to jendkers For This Useful Post:
Posts: 1,026 | Thanked: 2,488 times | Joined on Apr 2011 @ Netherlands
#26
Auto rotation now work fine without forced rotation and the popup bar is nice. Thanks.

Just a small remark: it seems you have put this application in the multimedia subsection in the deb file. I think the graphics section would be more appropriate for this program.
 

The Following 2 Users Say Thank You to ade For This Useful Post:
Posts: 336 | Thanked: 129 times | Joined on Jan 2011 @ portugal
#27
the toolbar looks great..i dont understand what the square icon does..and maybe there are too many icons and little space for each one, for a thumb to tap for example.. if you quit on the "arrow down" icon, the toolbar coud dissapear by timeout or by tapping once outside the toolbar..also the side arrows are redundant and dont offer more function..and i still believe that instead of tapping in the bottom of the screen to the toolbar appearence, it would be better to use the swipe up gesture...anyway..great work!
edit-also the rotate icon in landscape has malfunction, as it hanges to the next pi instead of rotating the present one.

Last edited by ed_boner; 04-08-2012 at 05:28 AM.
 
Posts: 40 | Thanked: 112 times | Joined on Apr 2012 @ Poland
#28
Square back's from zoom. I considered about timeout, but how much time? I think about 3 sec will be ok.
 
Posts: 336 | Thanked: 129 times | Joined on Jan 2011 @ portugal
#29
yeah..just to get some room to space other icons so tapping them is easier..also its a standard that a cross to close a program is always in the right, if you want to consider it..

Last edited by ed_boner; 04-08-2012 at 05:38 AM.
 
Posts: 40 | Thanked: 112 times | Joined on Apr 2012 @ Poland
#30
OK, I will implement it, but i think it looks ok.

@ivyking
Thanks for suggest.
I have in plans to make taking arguments for app.
Multiple windows I will add to options window (I will make it someday)
I looked up for vol keys for zooming, but it's harder to make it than to other keys, for now I am not coding it.
I will try to support other formats of images.

===============================
I have coded support for BMP and PNG files, timeout for toolbar.
I also removed visualization of loading img, it speeds up so much loading.
And I tried to implement vol keys... and here is a problem with QT, with gtk its easy, I found:
Code:
Hi, 

you have to set an XAtom on your window. This is how I do it in Python: 

 self.__window.window.property_change("_HILDON_ZOOM_KEY_ATOM", 
 "XA_INTEGER", 32, 
 gtk.gdk.PROP_MODE_REPLACE, 
 [1])
but on Qt there is no func like property_change. For now there will be no zoom in/out keys on vol keys.

Last edited by jendkers; 04-09-2012 at 09:30 AM.
 

The Following 2 Users Say Thank You to jendkers For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 08:31 AM.