Idea: adopt ROX-Filer

A home for all kinds of Puppy related projects
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#31 Post by Lobster »

Tree function in Rox:

I suppose we could nab and add source code . . .
. . . meanwhile in Lucid I installed xfe from ppm (puppy package manager)
dragged xfe icon from
/usr/bin
to
/root/.config/rox.sourceforge.net/SendTo/xfe

Now in a rox window I can
right click and 'open with' xfe

8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#32 Post by disciple »

Flash wrote:For what it's worth, there's a feature I'd like to see included in all file managers. It seems to me that a file manager ought to be able to show a tree view of the subdirectories in a directory, without showing any files.
Puppyt wrote:I very much agree with you, Flash -
ROX needs at least a Directory Tree option - not primarily for, but at the very least incredibly helpful for users from different OS backgrounds. (Multi-panels would be nice too but perhaps overdoing it.) Indeed, within Puppy my main turn-off always has been ROX's "babied-up" icon-default display as it strikes me as patronizing to users new to Puppy and Linux as a whole. I do appreciate what ROX has hidden under its hood. However, for my part, without tree view ROX frequently has me barking up the wrong sub-directories and I am much happier using Thunar or Konqueror.
amigo wrote:The tree-view idea is, of course, not new. Thomas always resisted that as it is not RISC-like. I would also have like to see it as an option, but my gtk skills are still not up to doing that myself.
Lobster wrote:Tree function in Rox:

I suppose we could nab and add source code . . .
. . . meanwhile in Lucid I installed xfe from ppm (puppy package manager)
dragged xfe icon from
/usr/bin
to
/root/.config/rox.sourceforge.net/SendTo/xfe

Now in a rox window I can
right click and 'open with' xfe

8)
I haven't actually managed to build it, but there seems to be a program based on rox which has a tree view (using gqview code) - perhaps a look at its code could be helpful: http://samplecat.orford.org/
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#33 Post by amigo »

Actually, I don't see anything to indicate any relation or similarity to rox there.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#34 Post by disciple »

If you look at https://github.com/ayyi/samplecat/blob/ ... _manager.c you'll see that it came from rox. I think it is the file manager pane in the screenshot that looks kind of like rox in details view.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#35 Post by technosaurus »

* Copyright (C) 2006, Thomas Leonard and others (see changelog for details).
Appears to be from rox

both rox and gtk2 (or was it glib2) use libraries from the xdg project and statically build them in (well technically gtk2 builds in the PIC objects) ... and other projects do the same thing. Its only ~100kb but still, I'm suprised Debian doesn't have a patch since they have a policy against such things (but apparently Arch has no such policy)
I once attempted to patch glib and rox so they could share the common objects by exporting those symbols in glib and removing them from the rox build, but after looking at xdg-open, its hard to tell what practical purpose it would serve when we could instead patch rox to use xdg-open directly and not have *.desktop and mime stuff in non-standard locations that make it inoperable with gtk,kde,xfce,lxde, enlightenment and others that do follow the standards ... for no real reason except for NIH (and the zeroinstall thing is pretty damned annoying too - can I just build the sources please)


One of my other pet peeves about rox is not having "yes to all" or "no to all" or "older" (I mention older only because it is useful for copying ./dirbackup to ./dir when you have borked something up and have to return to a known good state ... but that is what tarballs are for I guess) and for that matter "copy" and "paste" for files. I could do without treeview if you could do a split view (basically 2 filer windows smashed together) by middle clicking on the up arrow or home button
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#36 Post by amigo »

Okay, I see that now. They've adapted code from rox-filer for that list view, but just below it you can see a tree view. That appears to be adapted from gqview.

technosaurus, you could probably add an optional tree-view to the old rox-filer in a couple of days, with your expertise... all it needs is a horizontal-paned window with some tree code which is available from gqview or the old gtk1 gdmap. I'm still hoping you'll break down and do this someday -even it's just to shut me up!

I'm compiling samplecat just now to have a look at it. Unfortunately, the two file system views don't seem to be integrated.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#37 Post by Flash »

I don't think you guys understand what I mean by tree view. I don't mean just the possibility of a tree view, which is what all dual-pane file managers give you, I mean that when you open a directory which contains other directories which contain other directories, etc., all of the sub-directories in the top directory (the one you're in) are shown open in a tree view. Like what you'd get if you went into Windows Explorer and clicked every directory to show its contents. This is what Tree does and nothing else I know of will do what it does.

I find Tree to be very useful. I cannot for the life of me understand why something like Tree's functionality is not included in every file manager. :?

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#38 Post by Puppyt »

@Flash, I very much agree. I'm thinking now a quick "fix" might be to use a browser add-on like "Firefly" - kinda like Konqueror...but now I have FF16, I have to bark up yet more trees instead...

https://addons.mozilla.org/en-us/firefox/addon/firefly/
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#39 Post by disciple »

amigo wrote:Okay, I see that now. They've adapted code from rox-filer for that list view, but just below it you can see a tree view.
?
I'm not sure what you're looking at, but the screenshot I'm looking at on the main website has the rox-like pane at the bottom right and the tree view at the middle left. I guess the pane at the top left could be based on rox too, but I have a feeling it is also from gqview.
I'm compiling samplecat just now to have a look at it. Unfortunately, the two file system views don't seem to be integrated.
Let us know :)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#40 Post by disciple »

Flash - I don't understand what you think is different about our understanding of a tree view. Have you looked at the one in the samplecat screenshot? Assuming it is hooked up to the other pane so that when you open a folder there it is opened in the treeview as well, how would it be different to what you want?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#41 Post by Flash »

I did look at the Samplecat screenshot but couldn't make anything of it. :(

EDIT: If I get up close to the screen and squint, Samplecat appears to be like every other "tree" type file manager in that it only shows a tree view of the contents of a directory if you click on that directory. I wan't it to automatically show a flat tree view of all subdirectories at once.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#42 Post by disciple »

technosaurus wrote:
* Copyright (C) 2006, Thomas Leonard and others (see changelog for details).
Appears to be from rox

both rox and gtk2 (or was it glib2) use libraries from the xdg project and statically build them in (well technically gtk2 builds in the PIC objects) ... and other projects do the same thing. Its only ~100kb but still, I'm suprised Debian doesn't have a patch since they have a policy against such things (but apparently Arch has no such policy)
Yes, Arch has a policy of only patching in extreme circumstances ;)
I once attempted to patch glib and rox so they could share the common objects by exporting those symbols in glib and removing them from the rox build, but after looking at xdg-open, its hard to tell what practical purpose it would serve when we could instead patch rox to use xdg-open directly and not have *.desktop and mime stuff in non-standard
I always thought the problem was that it doesn't use *.desktop files for this at all.
BTW, this issue is why I currently use Pcmanfm as my main filer instead of Rox. It uses the standards very nicely. It adds all the programs that can handle a filetype to the right-click menu, and if you want to select another program which hasn't registered the file type itself, the "open with" dialogue arranges all the programs the same way as the main ("start" button) menu, and it creates appropriate .desktop files. I find myself wondering if the libfm/pcmanfm code could be patched into rox... but I'm sure it is way beyond me.
FWIW the other thing I'd appreciate in Rox is if it used the standard GTK bookmarks (that you see in file open/save dialogs) instead of its own.
locations that make it inoperable with gtk,kde,xfce,lxde, enlightenment and others that do follow the standards ... for no real reason except for NIH
And since Thomas Leonard is so involved with Freedesktop, I've always figured the problem isn't anything like NIH, just that the rox system is older than that, and no one has gone to the effort of replacing it.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#43 Post by disciple »

Flash wrote:I did look at the Samplecat screenshot but couldn't make anything of it. :(

EDIT: If I get up close to the screen and squint, Samplecat appears to be like every other "tree" type file manager in that it only shows a tree view of the contents of a directory if you click on that directory. I wan't it to automatically show a flat tree view of all subdirectories at once.
You're still confusing me, maybe partly because I don't understand what you mean by "flat". I think of a "flat" view as being the opposite of a tree.

Are you saying you want it to recursively expand all directories in your entire filesystem? That would make it unusable on a large filesystem, wouldn't it? And how should it handle circular situations with symlinks?

Or are there some file managers which automatically collapse any directories which you are not in, and you're complaining about that?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#44 Post by goingnuts »

Maybe consider uxplor. It has the tree-view as well as the file-icon window. Needs port to newer gtk and a lot of updates though... :)

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#45 Post by Flash »

disciple wrote:
Flash wrote:I did look at the Samplecat screenshot but couldn't make anything of it. :(

EDIT: If I get up close to the screen and squint, Samplecat appears to be like every other "tree" type file manager in that it only shows a tree view of the contents of a directory if you click on that directory. I wan't it to automatically show a flat tree view of all subdirectories at once.
You're still confusing me, maybe partly because I don't understand what you mean by "flat". I think of a "flat" view as being the opposite of a tree.
I don't really know what flat means. I assume it means everything is shown in one window, not hidden as it is in a collapsed tree hierarchy.
Are you saying you want it to recursively expand all directories in your entire filesystem? That would make it unusable on a large filesystem, wouldn't it? And how should it handle circular situations with symlinks?
Yes, that's exactly what I'm saying, only with the option to limit the view to just the directory I happen to be in. For instance, my mp3_books directory, which contains many directories of authors. Each author directory contains at least one directory with a book in it, and each book directory contains many mp3 files. The view I want should not include the mp3 files, only all the directories inside the mp3_books directory. Exactly as Tree does it. So why can't the functionality of Tree be included in ROX and every other file manager? As for directories which contain a large number of sub-directories or symlinks, if Tree doesn't help then don't use it. I'm only talking about a right-click option or something like that, not a default view.
Or are there some file managers which automatically collapse any directories which you are not in, and you're complaining about that?
That's exactly what I'm complaining about, or it is if I understand you correctly :) . Every file manager which can show a tree view defaults to the collapsed view and does not offer the option to show everything at once. Tree does what I want; why can't it be added to ROX?

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#46 Post by amigo »

Yes, I think 'flat' would be an accurate way to describe what flash is referring to. That is, directory entries are shown expanded. All the existing filers and file/dir choosers which use a tree start with directory entries collapsed. A directory chooser will not even show files. And most such 'widgets' only show directories in the left-pane 'tree' view. Clicking on the little '+' expands the view in the left pane if there are subdirs inside. Otherwise, the clicked item in the left pane gets its' contents shown in the right pane -all files.

Anyway, I got samplecat compiled so I can show a screenshot without all the Schnick-Schnack:

The window actually shows two left-right paned views. The top is of files which have been selected for sampling. The main file navigator section is the larger pane below, with the dirtree view on the left and the right side showing the listview from rox-filer. The dirtree view is from gqview. I'm not really competent enough with C/GTK+ to carry out such a job on ROX. For someone who is capable, it would about as easy to do for the old gtk1 or new rox gtk2 version as there is the gqview code for both gtk1 and gtk2. I am gonna look at all though -maybe I can start and then 'steal' some tips from others more expert than me...
Attachments
samplecat.jpg
Simple screenshot of 'filer' functions of samplecat
(122.1 KiB) Downloaded 268 times

Post Reply