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, 06:15
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
A custom File & Folder selector.
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 7 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 12 Aug 2013, 09:32    Post_subject:  

I think yad became temporary popular in the later Lupu aera .
Back to top
View user's profile Send_private_message Visit_website 
mikeb


Joined: 23 Nov 2006
Posts: 8367

PostPosted: Mon 12 Aug 2013, 10:08    Post_subject:  

Quote:
I think yad became temporary popular in the later Lupu aera .


Perhaps like many things it became bloated, silly and incompatible with anything more than a week old... hence my suggestion to fork an older release... cut the crap as we say in guatamala....

mike
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Mon 12 Aug 2013, 11:31    Post_subject:  

Highjacking`s perfectly fine, I like a good discussion... Smile

A forum thread with Yad examples would be good, but perhaps belated.
I Googled it and couldn`t make heads or tails of it, seems poorly organized.

I`m thinking that a higher level wrapper around Gtk-Server would be great.
It`d take someone with GTK+ experience to write the new syntax wrapper.
.
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8367

PostPosted: Mon 12 Aug 2013, 11:40    Post_subject:  

Ok hijack it is....

the form dialog sample....

yad --form --field=Entry --field=Password:H --field=Mode:CB --field=Color:CLR --field=Amount:NU --field=Invert:CHK --field=Source:FL --field=Folder:DIR --field=Font:FN --item-separator='|' '' '' 'up|down'

Note the data added at the end for any defaults in order of widgets.

Ok produces
mike|cheese|down|#efac1cb61cb6|12.000000|TRUE|/root/hd.img|/mnt/hda3|Sans 12|

I found gtkserver promising but clumsy in the end.
The yad wiki seems ok but I mainly worked from the command line help.

mike
form.png
 Description   
 Filesize   17.98 KB
 Viewed   329 Time(s)

form.png

Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Mon 12 Aug 2013, 12:09    Post_subject:  

Thanks mikeb; This looks exactly like a general purpose GUI maker I wrote in BaCon.
Vertical layout of widgets only in the first version, but simpler syntax.
And the combined return line, I`ve used something like it before.

Yep, clumsy is a good description, and so the idea for a wrapper to enhance it.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 12 Aug 2013, 14:34    Post_subject:  

Quote:
A forum thread with Yad examples would be good, but perhaps belated.
I Googled it and couldn`t make heads or tails of it, seems poorly organized.

technosaurus started to fiddle with yet-another-dialog here :
Zenity/Yad and scripts http://murga-linux.com/puppy/viewtopic.php?t=58306 in August 2010 ( Lupu-5.1.1 / Lupu-5.2 )

yad as keyword in the forum search with focus to the programming section in posts gave me 80 hits .

stu90 | stu91, L18L , RSH | R-S-H are some freaks that used yad in their apps .
Back to top
View user's profile Send_private_message Visit_website 
mikeb


Joined: 23 Nov 2006
Posts: 8367

PostPosted: Mon 12 Aug 2013, 15:04    Post_subject:  

Perhaps its a case of puppy does things a certain way and that's that.
But I will play and reap the fruits of such labours lol...... along with saves in ram, 252 sfs, correct sfs layer order, multiuser, etc etc. and lob potentially useful stuff around...at least grub4dos got adopted in the end in spite of protests.

mike back on his bike
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11121
Location: Arizona USA

PostPosted: Mon 12 Aug 2013, 22:56    Post_subject:  

Sunburnt, as for functionality of your file management program, may I suggest that it somehow incorporate the functionality of the "tree" program? Perhaps a button that says "Expand all folders" or something like that. Every file manager will expand a particular folder to show the next level of subfolders it contains - if you click on the parent folder. But no file manager I'm aware of will open a folder so that all of its subfolders, and all of their subfolders, are shown expanded down to the bottom level of folders. Tree is the only way I've found to do what I want, and I'm surprised that no file manager can do what Tree can do. It seems like a feature that would be included in all file managers.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Tue 13 Aug 2013, 11:43    Post_subject:  

Flash; I know of no file browser or tree widget that expands all in a branch either.
Could be useful for rapid tree movement, and also for a graphical tree display.
# My selector app. uses list boxes only, BaCon has no tree like GtkDialog has.

mikeb; Any Linux will do what any other will, with all the dependencies installed...

Karl; At least they look normal compared to Xdialog, it`s ugly as hell.
Yad is a Zenity fork and replacement, Zenity is not developed I think.

# My Puppy version has both Yad and Zenity.
Trying both of them, the option: -filename=/mnt/sda1 only gives a dir dialog.!
And it isn`t even in the dir., it just highlights the dir. to enter it. Really odd...
Code:
yad --file-selection --filename=/mnt/sda3
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Tue 13 Aug 2013, 12:57    Post_subject:  

THANKS vovchik; For the BaCon compile code line.
It reduced my WallPuppy file from 192 KB to 142 KB.

THANKS Karl; For the upx help.
It reduced vovchik`s code file from 142 KB to 26 KB... WOW.!

# Overall that`s slightly more than a 7 times compression.
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8367

PostPosted: Tue 13 Aug 2013, 15:36    Post_subject:  

try
yad --file-selection --filename=/mnt/sda3/
I assume without the trailing / it assumes a file locating call instead.... A later version probably checks for file/folder status. I have been twiddling with the code and its as straightforward as you can get for c/gtk so modding is easy even for me.

Quote:
mikeb; Any Linux will do what any other will, with all the dependencies installed...

Not really talking about code compatability but rather politics. Very Happy

One side effect of upx is that a dependency check no longer works.

mike
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Tue 13 Aug 2013, 15:43    Post_subject:  

You`re correct about the trailing slash of course.

So... How about the start-up size, it`s tiny on my version of Puppy.???
I see nothing in the Help about setting the start-up size of the dialogs.

# Thanks for the upx tip about dependencies.
For most of the utility type apps. I make it`s not a problem.
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8367

PostPosted: Tue 13 Aug 2013, 16:03    Post_subject:  

Yes defaults seems to be using minimum space possible......fine for most dialogs but perhaps needs a fallback for this one.

size option is the generic X one of --geometry=400x300+20+20
.... actually at least you don't have to have the default huge gtk version Smile
That's width/height/offsetX/offsetY
or use --height=nn --width=nn instead... there's --center too.

note the
--multiple Allow multiple files to be selected
option... a bonus bunny .

mike
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Tue 13 Aug 2013, 16:29    Post_subject:  

Flash wrote:
Tree is the only way I've found to do what I want, and I'm surprised that no file manager can do what Tree can do. It seems like a feature that would be included in all file managers.
Hi Flash, I just saw a comment from SFR regarding tree displays - is this of any interest:
http://www.murga-linux.com/puppy/viewtopic.php?p=718936&sid=b9f62b61e19919f16f1352f43a4d6e29#718936
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Tue 13 Aug 2013, 16:43    Post_subject:  

greengeek and Flash; All of the WinExplorer type filers have a tree for the left panel.
But this may not have been what Flash was talking about.

mikeb; I don`t know why I didn`t think of that, after all my work with GtkDialog.

Fiddling around I figured out the file filtering, but only for the first filter.
Code:
yad --file-selection --filename=/mnt/sda3/ --geometry=600x400+20+20 --file-filter=*.png|*.jpg
yad --file-selection --filename=/mnt/sda3/ --geometry=600x400+20+20 --file-filter=*.png *.jpg

### I don`t understand: --file-filter=NAME | *.png *.jpg
.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 7 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
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.0844s ][ Queries: 12 (0.0086s) ][ GZIP on ]