| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 02 May 2009, 20:09 Post subject:
Genie Picturebrowser 0.6 (also shows PDF files) |
|
This is a small demo of a Filebrowser written in Genie.
You have 3 "areas", on the left a tree with your folders, in the middle a filelist, and on the right a picture view.
You can change the width of each area with the horizontal dragbars, like this you can hide for example the folders.
It supports the most important graficsformat, and PDF documents.
PDFs can be shown in grafics mode, or as simple text (using leafpad).
The pictures are scaled to the size of the view when you open them, so if you maximize the window, you will see them very large.
Using the buttons, you can open the shown picture in external programs, e.g. to edit or to print them.
It was compiled in Puppy 4.12.
Info concerning the programming of this example:
http://www.murga-linux.com/puppy/viewtopic.php?t=39560&start=135
A special version with support to drop pictures from websites is available, too:
http://www.murga-linux.com/puppy/viewtopic.php?p=302769#302769
*update* these features now are also part of Picturebrowser (0.6).
Mark
 |
| Description |
|

Download |
| Filename |
Picturebrowser-0.6.pet |
| Filesize |
48.25 KB |
| Downloaded |
387 Time(s) |
| Description |
|
| Filesize |
58.2 KB |
| Viewed |
1391 Time(s) |

|
_________________ my recommended links
Last edited by MU on Mon 18 May 2009, 11:19; edited 13 times in total
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7019 Location: qld
|
Posted: Sat 02 May 2009, 20:34 Post subject:
|
|
Mark
This is very nice! A testament to the power of Genie. I must learn to use it, since it is the future of Puppy
Thanks
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sun 03 May 2009, 00:46 Post subject:
|
|
Micko
The best intro to Genie available is from Barry
http://www.puppylinux.com/genie/
Looking at Marks first code for this yesterday (which I could understand sufficiently to think about hacking)
http://www.murga-linux.com/puppy/viewtopic.php?p=301198#301198
I thought this cries out for different auto file viewings
- calling other programs as necessary
A few hours later and Mark is already going that way . . .
Barry too has passed the programming barrier and is now thinking in Genie code.
Meanwhile I am able to report that adding the devxx
for Jaunty Pup (an Alpha build of Puppy 5) allows for a very workable Valide to appear in the Puppy menu
Many thanks to Mark
Good luck to Micko
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Sun 03 May 2009, 01:52 Post subject:
|
|
Hey mark excellent start on it looks great
Anyway of turning it into a background selector/setter
I really do miss seeing the a thumbnail of the background before setting it.
Anyways excellent stuff
ttuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 03 May 2009, 04:09 Post subject:
|
|
The best way to get started learning the tree, is this example:
http://www.murga-linux.com/puppy/viewtopic.php?p=301046#301046
It is pretty short and simple to use.
It has no filebrowsing included.
You can create the tree using some methods from my "treeclass".
So a program can be written with a few lines.
You could for example create a small configuration tool, like this:
+ network
--- firewall
--- connection
+ Desktop
--- wallpaper
--- widgets
--- themes
Each entry would get an own icon.
Once a selection was clicked, you could display in a second pane on the right a short infotext, and a button, to launch the related utility, like the networkwizard.
Such a thing would be possible without very much effort using that example.
The code for the picturebrowser looks more complex, because reading folders and sorting them uses a lot of code.
So I must "hide" (move) this new code into the tree.gs file.
Then your own program, main.gs, can be short again.
I already have some ideas for enhancing the pictureviewer, but before I start it, I need to clean up the classes.
I just found a way to make the treebrowser quicker, it needs only 2 lines in addition
The released version is a bit slow, if you open /usr/.
I'll release a new version next week.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 1759
|
Posted: Sun 03 May 2009, 09:16 Post subject:
|
|
Is this Picturebrowser-0.1, Mark?
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 03 May 2009, 09:31 Post subject:
|
|
yes, the next will have a versionnumber.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7019 Location: qld
|
Posted: Sun 03 May 2009, 10:08 Post subject:
|
|
Thanks Mark and Lobster for the links.
I'm still a learner with bash, but I think learning more and digressing is the key for me.
Cheers
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 03 May 2009, 19:16 Post subject:
|
|
I uploaded version 0.2.
Changes:
- faster navigation in the tree.
- fast navigation in picturelists: click with the mouse on the picture, to see the next one. Use the right mousebutton, to see the previous.
- autoscaling. If you check the "scale" checkbox, pictures are scaled. Autoscaling scales also, if you resize the window. I hope this also works on slower computers. If not, I must add a checkbox to deactivate autoscaling.
- support for bookmarks of the standard Gtk Filechoosers (you cannot edit them, so use the "file open" dialog of leafpad or so to add/remove bookmarks).
- by default, /usr/share/backgrounds/ is opened. This required a lot of complicated code, to expand the tree automatically.
- you also can pass a folder as argument, like:
/usr/local/Picturebrowser/Picturebrowser /mnt/home/photos
- the titlebars of the trees no longer scroll up.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 04 May 2009, 14:47 Post subject:
|
|
Uploaded version 0.3.
It has no visible changes, just the internal code was cleaned up and refined.
This version is also available for Windows:
http://www.murga-linux.com/puppy/viewtopic.php?p=302041#302041
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Tue 05 May 2009, 16:15 Post subject:
|
|
uploaded version 0.5.
changes:
- The program no longer uses "Threads" to scale a picture, but a method based on Gdk.Pixbuf.
This works faster, needs less resources (14% cpu-usage instead of 42%), and works in Linux and Windows.
- bookmarks now also work with special characters in the filenames.
- rotate left/right
- zoom 100 to 1000% (you must uncheck the "scale" checkbox to activate it)
- fullscreen mode
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7019 Location: qld
|
Posted: Tue 05 May 2009, 16:24 Post subject:
|
|
Hehe, now we only need a "Set as Wallpaper" button.... but I've a feeling you are leading up to that!
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Tue 05 May 2009, 17:26 Post subject:
|
|
micko,
quick workaround:
if you do not have gqview installed, create a script "/usr/bin/gqview".
| Code: | #!/bin/bash
/usr/local/apps/Wallpaper/set_bg "$@" & |
Then Puppys wallpapersetter is executed with the current picture, if you click on the gqview button.
I also plan to add a button, but want to check, how it behaves in different puplets.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2407 Location: Montenegro
|
Posted: Wed 06 May 2009, 16:10 Post subject:
|
|
can you bind some keyboard keys to change next/previous picture, so you don't have to click on every image, this would be handy for fullscreen too...
_________________

|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7019 Location: qld
|
Posted: Thu 07 May 2009, 06:07 Post subject:
|
|
| MU wrote: | ....
I also plan to add a button, but want to check, how it behaves in different puplets.
Mark |
Barry's "spup" (built from woof alpha 3.1) it works fine
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
|