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 Sat 25 Oct 2014, 02:05
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Pcursorsel-0.1 Xcursor selector - now with preview feature!
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
spottedzebra

Joined: 08 Jan 2009
Posts: 8

PostPosted: Sun 15 Mar 2009, 17:41    Post_subject:  Pcursorsel-0.1 Xcursor selector - now with preview feature!  



i was going to name it pcursor but it was already taken Smile

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 Smile
pcursorsel-0.1.pet
Description 
pet

 Download 
Filename  pcursorsel-0.1.pet 
Filesize  15.27 KB 
Downloaded  526 Time(s) 
Back to top
View user's profile Send_private_message 
MU


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

PostPosted: Sun 15 Mar 2009, 18:20    Post_subject:  

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 Very Happy
Mark

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

Joined: 08 Jan 2009
Posts: 8

PostPosted: Mon 16 Mar 2009, 09:27    Post_subject:  

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
Back to top
View user's profile Send_private_message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Mon 16 Mar 2009, 17:01    Post_subject:  

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.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send_private_message 
MU


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

PostPosted: Tue 17 Mar 2009, 14:25    Post_subject:  

yes, one preview is ok for me, too Smile
Mark

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

Joined: 08 Jan 2009
Posts: 8

PostPosted: Tue 17 Mar 2009, 18:15    Post_subject:  

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
Very Happy Very Happy Very Happy Very Happy Very Happy

EDIT: feel free to edit it as you please (it'll probably help) its GPLed
pcursorsel.cpp.gz
Description 
gz

 Download 
Filename  pcursorsel.cpp.gz 
Filesize  1.79 KB 
Downloaded  425 Time(s) 
Back to top
View user's profile Send_private_message 
MU


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

PostPosted: Tue 17 Mar 2009, 19:13    Post_subject:  

many thanks for releasing the source Smile
It is pretty clean, and might be a good example for people, who want to write small applications in C/C++ Smile
Mark

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

Joined: 13 Apr 2006
Posts: 492
Location: Virginia

PostPosted: Tue 17 Mar 2009, 19:20    Post_subject: Where are the Cursors
Sub_title: None shown
 

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?
Back to top
View user's profile Send_private_message 
MU


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

PostPosted: Tue 17 Mar 2009, 19:42    Post_subject:  

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

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


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 18 Mar 2009, 15:23    Post_subject:  

Dear Puppians,

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

Code:
g++ `pkg-config --cflags gtk+-2.0` pcursorsel.cpp `pkg-config --libs gtk+-2.0` -o pcursorsel


With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1805
Location: अनुमोदना

PostPosted: Thu 13 Aug 2009, 09:33    Post_subject:  

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 !! Laughing Laughing

_________________
PET Maker|WbarCC

Edited_time_total
Back to top
View user's profile Send_private_message 
gulk


Joined: 21 Apr 2008
Posts: 86

PostPosted: Thu 13 Aug 2009, 23:22    Post_subject:  

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:
# /usr/bin/xcur2png /root/.icons/blahiconstheme/cursors/ACursorFile

Output:
Code:
##################################################
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 Sad
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1805
Location: अनुमोदना

PostPosted: Thu 13 Aug 2009, 23:44    Post_subject:  

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:
# /usr/bin/xcur2png /root/.icons/blahiconstheme/cursors/ACursorFile

Output:
Code:
##################################################
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 Sad


Smile Smile 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!
pcursorsel-1.1.pet
Description  fixmenus & restartwm after install
pet

 Download 
Filename  pcursorsel-1.1.pet 
Filesize  21.58 KB 
Downloaded  393 Time(s) 

_________________
PET Maker|WbarCC

Edited_time_total
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 14 Aug 2009, 00:59    Post_subject:  

trio

great job!

sweeeeet!Cool

and easy to use and set up

Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1805
Location: अनुमोदना

PostPosted: Fri 14 Aug 2009, 01:10    Post_subject:  

Big Bass,

Great! thanks

My first C++ hack Laughing

_________________
PET Maker|WbarCC
Back to top
View user's profile Send_private_message 
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.1004s ][ Queries: 13 (0.0145s) ][ GZIP on ]