Page 1 of 1

Pictureviewer 0.3 with PDF support

Posted: Wed 06 May 2009, 22:00
by MU
This is related to the picturebrowser, but a standalone, independent program.
http://www.murga-linux.com/puppy/viewtopic.php?t=41919

It has no tree.
The viewer shows a picture, and you can zoom/rotate it.

A special feature:
you can drag a picture from your webbrowser (or filemanager) on it (or pass a URL as commandline-option).

The viewer will download then the picture to /tmp/, and display it.

Thiis is handy for example, if you visit sites for singles, where the customers often upload very small portraits.
With the viewer, you quickly can zoom into it.

I attach the pet for Puppy 4.12.

-------------------
A Windows binary is included in the sourcepackage:
http://www.murga-linux.com/puppy/viewto ... 771#302771
-------------------

Note:
the Wallpaper button will only work, if you create a script /usr/bin/set_wallpaper

It could look like this:

Code: Select all

#!/bin/bash 

/usr/local/apps/Wallpaper/set_bg "$@" &
I did nnot try that yet, as I just finished the rest, and must sleep now.

Mark

Posted: Thu 07 May 2009, 19:12
by MU
Updated to version 02, it can display PDF documents.

Note: the pages are shown as pictures, so you cannot select text.
I must add a textview class to enable a textmode view.

Mark

Posted: Fri 08 May 2009, 15:36
by MU
version 03.

Changes:
- using the zoom spinbox, the picture is centered

- also in PDF mode, you have the buttons to run external graficsprograms. They will open the current page, rotation is taken in account.

- you can show the text of the current or all pages in Leafpad (Windows: Notepad)

- Windows has a button for "paint" instead of mtpaint

- you can select the next PDF page from a combobox.

Mark

Posted: Thu 21 May 2009, 16:51
by Lobster
Hi Mark

Was just about to mention the wallpaper not working - and see you are already planning to activate it . . . :)

Gpicview is used in Puppy 4.2.1 (your program works in RC3 by the way)
but of course you are working on classes (bit of that Java tuition coming in?) that could be called from a variety of Puppy programs . . .

Reading what you are up to it almost seems like we can have a PuppyClasses.sfs (or something similar) that will enable Puppy programmers to use shared code . . . not sure how ready this might be for Puppy 5 but by Puppy 6 it really takes Puppy to the fore of innovation . . .

ah . . . back to subject . . . you are supporting 'gqview' - which I assume is the Muppy standard? Gpicview can be called with the command 'gpicview' if you want to add a button for it :)

Many thanks

Posted: Thu 21 May 2009, 17:04
by MU
- you could use a symlink:

ln -s /usr/bin/gpicview /usr/bin/gqview

Then the gqview button should run gpicview.

I can add a filecheck in the next release, so only those buttons are shown, where the corresponding programs are installed.

- Using the wallpapersetter requires to add the small script as described in the first message.
I'll add it to the next version.

- The classes can not be used from any program, just from genie programs.
I will work on some small example applications in the next 2-3 weeks.

Mark