Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 20:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Genie Picturebrowser 0.6 (also shows PDF files)
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
Picturebrowser-0.6.pet
Description 
pet

 Download 
Filename  Picturebrowser-0.6.pet 
Filesize  48.25 KB 
Downloaded  451 Time(s) 
picturebrowser05.jpg
 Description   
 Filesize   58.2 KB
 Viewed   1572 Time(s)

picturebrowser05.jpg


_________________
my recommended links

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: 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

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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) Shocked
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 Smile
Good luck to Micko Cool

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 03 May 2009, 01:52    Post_subject:  

Hey mark excellent start on it Smile looks great
Anyway of turning it into a background selector/setter Smile
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 Smile
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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 Laughing
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
View user's profile Send_private_message Visit_website 
amigo

Joined: 02 Apr 2007
Posts: 2278

PostPosted: Sun 03 May 2009, 09:16    Post_subject:  

Is this Picturebrowser-0.1, Mark?
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 03 May 2009, 09:31    Post_subject:  

yes, the next will have a versionnumber.

Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: 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. Smile

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: 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!
_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
dejan555


Joined: 30 Nov 2008
Posts: 2716
Location: Montenegro

PostPosted: 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...
_________________
Dpup 487 | Puppy Gallery | My photo gallery | mtPaint works
Back to top
View user's profile Send_private_message Visit_website MSNM 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: 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 Wink

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0983s ][ Queries: 13 (0.0198s) ][ GZIP on ]