Pcursorsel-0.1 Xcursor selector - now with preview feature!

Stuff that has yet to be sorted into a category.
Message
Author
spottedzebra
Posts: 8
Joined: Fri 09 Jan 2009, 01:41

Pcursorsel-0.1 Xcursor selector - now with preview feature!

#1 Post by spottedzebra »

Image

i was going to name it pcursor but it was already taken :)

this is a xcursor selector with a preview feature using xcur2png
(included in package)
xcur2png sometimes gives you glitchy images, but until i find something better, i have to use it

it was programmed in c++ using gtk+
please tell me what you think :)
Attachments
pcursorsel-0.1.pet
(15.27 KiB) Downloaded 791 times

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

very fine, thank you.
I will add it to next newyearspup, replacing my own cursorselector.

May you release the sourcecode please, so that it may be recompiled in different versions of Puppy?

Good work :D
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

spottedzebra
Posts: 8
Joined: Fri 09 Jan 2009, 01:41

#3 Post by spottedzebra »

i will get to that as soon as i get to my computer

quick question
would it be desirable to have more than one cursor previewed, because that is possible, i thought i would just preview one cursor until people wanted more

thanks

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#4 Post by WhoDo »

spottedzebra wrote:would it be desirable to have more than one cursor previewed, because that is possible, i thought i would just preview one cursor until people wanted more
I can't answer for Mark, but one preview is plenty for me. I have added your selector to RC4. Don't tell anyone because there's a feature freeze, but I thought this fitted under the category of usability and a necessity for the Window$ refugees we target. :wink:

Thanks, spottedzebra.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

yes, one preview is ok for me, too :)
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

spottedzebra
Posts: 8
Joined: Fri 09 Jan 2009, 01:41

#6 Post by spottedzebra »

here is the (tremendously ugly) source code in case anyone needs it

i haven't learned how to use autoconf or anything yet, so all i have is the source code file

it only requires gtk+2.0 (i used `pkg-config gtk+2.0 --libs`)

i'm happy that my trivial little program will officialy be part of my favorite linux ever
:D :D :D :D :D

EDIT: feel free to edit it as you please (it'll probably help) its GPLed
Attachments
pcursorsel.cpp.gz
(1.79 KiB) Downloaded 631 times

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

many thanks for releasing the source :)
It is pretty clean, and might be a good example for people, who want to write small applications in C/C++ :)
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

davec51
Posts: 530
Joined: Thu 13 Apr 2006, 22:31
Location: Virginia

Where are the Cursors

#8 Post by davec51 »

Did you include actual cursors with the program? If not, what do I do to get some and put them in a position to be selected?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

cursors, repackaged by Pizzasgood:
http://murga-linux.com/puppy/viewtopic.php?t=37852

older ones:
http://www.murga-linux.com/puppy/viewtopic.php?p=16622

They are located in /root/.icons/

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#10 Post by vovchik »

Dear Puppians,

For those who wish to compile this program themselves, the following command line works:

Code: Select all

g++ `pkg-config --cflags gtk+-2.0` pcursorsel.cpp `pkg-config --libs gtk+-2.0` -o pcursorsel
With kind regards,
vovchik

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#11 Post by trio »

Hi,

I know his is kinda old, but I modified few things from this pcursorsel (I would not dare to call this an upgrade). I call it v 1.0 just to differentiate. What I modded are:

1. It will not list ROX and default as available cursor themes (which they aren't supposed to be listed)
2. If restart X is not clicked, your new mouse cursor will still can be viewed (but not in all window, try to open seamonkey after that, you'll see what I mean), but it should be all good after your next reboot/restart X --> I was planning to use Big Bass' refreh X script but it's not available, and he has not respond to my PM. It should be better, if we can change cursor instantly without loosing any work/opened windows

Don't call pcursorsel form terminal, but pcursorselshell or from menu - desktop - cursor selector

It's far from perfect, I don't know how to code in C

Cheers

PS: Anybody who knows C better, please modify this great app so it can be perfect, we have no cursor selector in 430

New version 1.1 - I think all is good !! :lol: :lol:
Last edited by trio on Fri 14 Aug 2009, 03:46, edited 1 time in total.

User avatar
gulk
Posts: 86
Joined: Mon 21 Apr 2008, 19:04

#12 Post by gulk »

Hi Trio,

why using pcursorsel when you can directly call the xcur2png bin?
Not knowing C in this case is not a problem since you can work around by just scripting.

For example:
Command line input:

Code: Select all

# /usr/bin/xcur2png /root/.icons/blahiconstheme/cursors/ACursorFile
Output:

Code: Select all

##################################################
Conversion successfully done!(14 images were output.)
You know what? I just made up my mind and found motivation. I'll try and work on that. Unfortunately I don't think I'll have time to start on that before Barry gets the 430 out :(

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#13 Post by trio »

gulk wrote:Hi Trio,

why using pcursorsel when you can directly call the xcur2png bin?
Not knowing C in this case is not a problem since you can work around by just scripting.

For example:
Command line input:

Code: Select all

# /usr/bin/xcur2png /root/.icons/blahiconstheme/cursors/ACursorFile
Output:

Code: Select all

##################################################
Conversion successfully done!(14 images were output.)
You know what? I just made up my mind and found motivation. I'll try and work on that. Unfortunately I don't think I'll have time to start on that before Barry gets the 430 out :(
:) :) I got it, and it will not retstart x to see the cursor (thx Big Bass)! and it will not list default and ROX folder. ONLY FOR JWM!
Attachments
pcursorsel-1.1.pet
fixmenus & restartwm after install
(21.58 KiB) Downloaded 594 times
Last edited by trio on Fri 14 Aug 2009, 05:38, edited 1 time in total.

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#14 Post by big_bass »

trio

great job!

sweeeeet!:cool:

and easy to use and set up

Joe

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#15 Post by trio »

Big Bass,

Great! thanks

My first C++ hack :lol:

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#16 Post by trio »

Hi again,

This one for ICEWM users :lol:
Attachments
pcursorselice-1.1.pet
run fixmenus + restart icewm (refresh menus)
(21.86 KiB) Downloaded 633 times

pstef
Posts: 18
Joined: Fri 31 Jul 2009, 19:47

#17 Post by pstef »

My favorite cursor set is the black one with white border. My question is: will I be able to choose it with Pcursorsel?

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#18 Post by trio »

pstef wrote:My favorite cursor set is the black one with white border. My question is: will I be able to choose it with Pcursorsel?
if it is in /root/.icons, you can. It also has to be a valid cursor for puppy

pstef
Posts: 18
Joined: Fri 31 Jul 2009, 19:47

#19 Post by pstef »

trio wrote:if it is in /root/.icons, you can. It also has to be a valid cursor for puppy
I don't think it's there since this set comes from X.org I believe.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#20 Post by trio »

pstef

Just move it to /root/.icons I supposed? :wink:

Post Reply