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 Mon 21 Apr 2014, 00:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
wallpaper2
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [30 Posts]   Goto page: Previous 1, 2
Author Message
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Thu 08 Aug 2013, 16:44    Post subject:  

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:27; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Thu 08 Aug 2013, 17:28    Post subject:  

I can institute writing the last wallpaper commandline used somewhere, and then create an option to set the last from the commandline.

Sunburnt expressed some interest in creating an alternate gui if the frontend/backend is reasonably separated (which it is) and even did a mockup Hug gui which looks pretty cool. That got me thinking I'd like to create a commandline-only tool to access the program internals, because it would be rather handy to have the various backends abstracted to use a single syntax. Anyway, it's probably in the pipeline sometime.

As for the current.png file itself, that is intentional behavior, as it's how the gui gives you a preview when you click on another item.

I'll look into your suggestion about the resize behavior as it makes a lot of sense.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Thu 08 Aug 2013, 18:09    Post subject:  

@Simargl - I did a small proof of concept commit for you to try out. There's now two programs:
gwp (Graphical WallPaper setter) - the gui interface
cwp (Commandline WallPaper setter) - a new cli interface

The cwp program is just a stub for now, with the only function being to set the previous wallpaper. The gui now saves the current backend, mode, and wallpaper in (userconfigdir)/last when you click Apply. To try it out you will need to re-run the gui and set your wallpaper to create the file. Then add this to .xinitrc (or whatever you run during an X-session startup):
Code:
cwp --last

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Fri 09 Aug 2013, 04:06    Post subject:  

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:27; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Fri 09 Aug 2013, 04:47    Post subject:  

I just committed a fairly major overhaul. There is now a menubar with options for launching external programs, an "About" dialog, a stub for a future slideshow feature, and a barebones "preferences" dialog. The preferences dialog only currently supports setting the height of the image previews, going from 150px to 500px in several steps.

That's just about as busy as I'd like the main window to ever get, and it was almost painful to do it at that.

The program launchers should pick up a number of common image viewing or editing programs and let you open the currently selected image in the external programs from the "Tools" menu. There are probably a number of programs I've missed adding, so let me know if anything else should be there.

One or two other small tweaks. The window is not resizable now, although it will automatically resize to accomodate different aspect ratios for the preview. Also the image can now be set by doubleclicking an item in the list as well as clicking on "Apply".

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sat 10 Aug 2013, 12:15    Post subject:  

There's enough changed to warrant a new alpha release. While I was at it I created a pet package, see top post. Hope I did it right...
_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Jasper


Joined: 25 Apr 2010
Posts: 1034
Location: England

PostPosted: Sun 11 Aug 2013, 15:46    Post subject:  

Hi Nathan F,

I converted your pet to an sfs file and it works well with Precise 5.6.

My regards and thanks
Back to top
View user's profile Send private message 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Wed 14 Aug 2013, 06:47    Post subject:  

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:33; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Thu 15 Aug 2013, 07:56    Post subject:  

I'll fix it. Think I know what's going on already. Sounds like a gtkdialog bug (quirk?) I just read about.

And now for a quick preview of what -may- be down the pipe. The attached image shows the experimental slideshow editor, which is hidden by default but opens via an entry in the "Tools" menu. This may or may not make it in, haven't decided yet. It's not even committed to mercurial yet. Note that with the slideshow editor closed the program looks substantially like it did before though, with the exception of a couple other little tweaks I've given it like the checkered background in the preview area and the absence of the notebook.
slideshow-edit.png
 Description   
 Filesize   168.51 KB
 Viewed   316 Time(s)

slideshow-edit.png


_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Fri 16 Aug 2013, 00:15    Post subject:  

OK I committed the changes. The slideshow editor is basically functional now but there is of yet no slideshow player, so it's just a proof of concept. But you can create and edit as many playlists as you want.

The tab view is gone for good. In it's place there is an options menu and a small dialog for less common options.

The window no longer resizes itself when you preview an image with a different aspect ratio. Instead, the preview area is fixed in size and you have your choice of four modes for a background behind the preview:
1) none (use system theme)
2) white
3) black
4) a checkerboard patterned background identical to the one in Gimp

You also can incrementally change the size of the preview area from 150px to 500px. The preview size and preview background prefs both require a restart, due to limitations of gtkdialog. Also, the preview background choices are currently gtk2 only, with gtk3 support coming later.

TODO:
* Add the ability to add items by right clicking instead of having to press the "+" button each time
* Drag and drop reordering in the slideshow editor
* Clicking on an item in the slideshow editor opens it in the preview window
* Some way to delete entire playlists
* Move all the gtkdialog code to separate files for speedier execution
* Write a manual
* Write the slideshow player

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Fri 16 Aug 2013, 00:32    Post subject:  

Forgot to mention, I fixed the bug Simargl mentioned. It was caused because gtkdialog only returns the value of the EXIT variable if you close it via the WindowManager.

Also I may need to add some code to handle the new way of handling options setting on firstrun. I'll have to delete my profile directory and retest.

And one last thing. The Makefile now includes a "petpkg" target, so you can run "make petpkg" and it will automatically create a package for you.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Fri 16 Aug 2013, 17:35    Post subject:  

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:33; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Fri 16 Aug 2013, 18:07    Post subject:  

I have mixed feelings about it myself. I was thinking, if that stuff does stay in, then I might disable it all by default and have the user explicitly enable it in the prefs dialog if they want the extra functionality.
_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
koulaxizis


Joined: 17 Jul 2011
Posts: 423
Location: Greece

PostPosted: Sat 17 Aug 2013, 02:44    Post subject:  

This app is just getting better and better! Smile
_________________
Christos Koulaxizis
Woof woof from Greece...

[ Puppy packages | Puppy search ]
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sat 17 Aug 2013, 03:18    Post subject:  

I spent a fair amount of time optimizing the bash portions today. Mostly reading and running tests of certain bits while timing the execution. There weren't extensive changes, but a few little things happened that would never have occurred to my brain a few years ago. I managed to get the list creation done with a single call to "find", eliminated 3 calls to "cut" in a loop (which equates to 3 calls for each iteration of the loop, for a total of 48 "cuts" removed) and learned a few nice tricks for bourne shell syntax that I never knew before. It's been a great learning experience in general, mainly because I forced myself to do so.

I think I will split out the slideshow editor and put those portions into a separate file, which will only be loaded if the user explicitly enables it via the prefs. It seems to have slowed up the program loading a tiny bit, and since I've got the bash portions trimmed down as far as I think I can the only explanation is that gtkdialog is causing the slowdown with the extra widgets loading. Not that it's a turtle, but I'd like it usable on the lowest common denominator. Plus, it's good exercise as stated above.

I think I'll call the next "release" a beta, as it's nearly feature complete and mostly just needs polished.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 2 of 2 [30 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0768s ][ Queries: 12 (0.0140s) ][ GZIP on ]