Ok,
Here's another todo for Linux I am willing to solve, along with drag and drop and better desktop integration: hidden folders in the file browser.
PD defaults to the home folder of the current user, which is full of hidden folders (.foldername) which are naturally listed fist. This means that every time I go to open or save something I have to scroll the little browser window past these (non-)hidden folders to my visible folders. Yeah, I know, its a small thing, but I always find it annoying. This is something that other applications which use the GTK-gnome file browser handle and hitting Ctrl-H toggles hidden file display.
I don't have a huge signal processing background, so I'll try and help in my own way :P.
This would be a Good Thing ... I wasn't of the impression it would be easy to do though. I've been assuming that would necessitate writing, and then having to maintain, a whole new open dialog widget. If there's a smarter way to do it I'd love to know about it.
cheers Miller
On Sun, Mar 30, 2008 at 03:25:00PM -0500, Daniel Wilcox wrote:
Ok,
Here's another todo for Linux I am willing to solve, along with drag and drop and better desktop integration: hidden folders in the file browser.
PD defaults to the home folder of the current user, which is full of hidden folders (.foldername) which are naturally listed fist. This means that every time I go to open or save something I have to scroll the little browser window past these (non-)hidden folders to my visible folders. Yeah, I know, its a small thing, but I always find it annoying. This is something that other applications which use the GTK-gnome file browser handle and hitting Ctrl-H toggles hidden file display.
I don't have a huge signal processing background, so I'll try and help in my own way :P.
-- Dan Wilcox danomatika www.robotcowboy.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
This would be huge, it would greatly help the newbies. In workshops,
a lot of people had trouble with those open/save panels.
There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am
sure we are not the first to want this feature. I would be very
surprised if another Tcl/Tk app hasn't solved this already.
I have had good luck with the #tcl room.
.hc
On Mar 30, 2008, at 8:11 PM, Miller Puckette wrote:
This would be a Good Thing ... I wasn't of the impression it would
be easy to do though. I've been assuming that would necessitate writing,
and then having to maintain, a whole new open dialog widget. If there's a
smarter way to do it I'd love to know about it.cheers Miller
On Sun, Mar 30, 2008 at 03:25:00PM -0500, Daniel Wilcox wrote:
Ok,
Here's another todo for Linux I am willing to solve, along with
drag and drop and better desktop integration: hidden folders in the file
browser.PD defaults to the home folder of the current user, which is full
of hidden folders (.foldername) which are naturally listed fist. This means
that every time I go to open or save something I have to scroll the little browser window past these (non-)hidden folders to my visible
folders. Yeah, I know, its a small thing, but I always find it annoying. This is something that other applications which use the GTK-gnome
file browser handle and hitting Ctrl-H toggles hidden file display.I don't have a huge signal processing background, so I'll try and
help in my own way :P.-- Dan Wilcox danomatika www.robotcowboy.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
would be very nice if pd used the open dialog of the current system (like gnome open dialog under gnome, windows under windows, etc...)
as i have many links to my favorite places on the left side of the gnome open dialog, it would speed things up a lot! and of course, i bet everyone wants to hide those hidden files :)
i have no idea if this is technically possible, i would assume in the worst case (besides not possible at all) we would use some bindings... but for every system ?
is there an universal open dialog api ? ;)
.andre
ps. under linux we could also use "zenity --file-selection" (or similar) http://directory.fsf.org/project/zenity/
and heres something found in the tcl/tk wiki http://wiki.tcl.tk/15897
On Mon, 2008-03-31 at 11:45 -0400, Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In workshops,
a lot of people had trouble with those open/save panels.There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am
sure we are not the first to want this feature. I would be very
surprised if another Tcl/Tk app hasn't solved this already.I have had good luck with the #tcl room.
.hc
On Mar 30, 2008, at 8:11 PM, Miller Puckette wrote:
This would be a Good Thing ... I wasn't of the impression it would
be easy to do though. I've been assuming that would necessitate writing,
and then having to maintain, a whole new open dialog widget. If there's a
smarter way to do it I'd love to know about it.cheers Miller
On Sun, Mar 30, 2008 at 03:25:00PM -0500, Daniel Wilcox wrote:
Ok,
Here's another todo for Linux I am willing to solve, along with
drag and drop and better desktop integration: hidden folders in the file
browser.PD defaults to the home folder of the current user, which is full
of hidden folders (.foldername) which are naturally listed fist. This means
that every time I go to open or save something I have to scroll the little browser window past these (non-)hidden folders to my visible
folders. Yeah, I know, its a small thing, but I always find it annoying. This is something that other applications which use the GTK-gnome
file browser handle and hitting Ctrl-H toggles hidden file display.I don't have a huge signal processing background, so I'll try and
help in my own way :P.-- Dan Wilcox danomatika www.robotcowboy.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Tue, Apr 01, 2008 at 07:56:29PM +0200, Andre Schmidt wrote:
would be very nice if pd used the open dialog of the current system (like gnome open dialog under gnome, windows under windows, etc...)
People used to advocate for Pd to use wxWindows or something similar so that every part of it looked native on the correct platform, not just the open dialog. However I think people gave up advocating that as it became apparent how much Pd is tied into tcl/tk.
Best,
Chris.
Andre Schmidt wrote:
would be very nice if pd used the open dialog of the current system (like gnome open dialog under gnome, windows under windows, etc...)
i think since tcl/tk-8.5 it should be possible to "theme" your tk-apps, thus using widgets provided by the system. e.g qt on kde,...
is there an universal open dialog api ? ;)
yes there are several :-) :: tcl/tk implements one. it is the dialog that is used by Pd.
mfg.asdr IOhannes
On Wed, 2008-04-02 at 09:07 +0200, IOhannes m zmoelnig wrote:
Andre Schmidt wrote:
would be very nice if pd used the open dialog of the current system (like gnome open dialog under gnome, windows under windows, etc...)
i think since tcl/tk-8.5 it should be possible to "theme" your tk-apps, thus using widgets provided by the system. e.g qt on kde,...
is there an universal open dialog api ? ;)
yes there are several :-) :: tcl/tk implements one. it is the dialog that is used by Pd.
well, i ment something more universal, like you would say open an "file open dialog" in tcl/tk, and depending on the system tcl/tk is running, it would open the native "open file dialog" of that system. all with same code, hense the "universal open dialog api"...
but this would make an "open file dialog" ranked as an app, like zenity or file/web-broswer or hmm, what are even "standard" apps that belong to an operating system ? (ok, forget that)
well, im too long with open source, so my view of operating system is maybe too wide and, eeh, open! :)
.andre
mfg.asdr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In workshops,
a lot of people had trouble with those open/save panels.There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am
sure we are not the first to want this feature. I would be very
surprised if another Tcl/Tk app hasn't solved this already.
according to http://www.groupsrv.com/computers/about266840.html it is acutally already built into tk-8.4 but not exposed!
quoting this article:
If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:
set ::tk::dialog::file::showHiddenBtn 0 set ::tk::dialog::file::showHiddenVar 1
Replace them by:
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
And you're done...
mfgasd.r IOhannes
IOhannes, you found the magic bullet (or forum post, that is)!
Awesome, I can confirm this works in a little test script and screenshot. It's a button to toggle hidden file display as expected.
On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In workshops,
a lot of people had trouble with those open/save panels.There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am
sure we are not the first to want this feature. I would be very
surprised if another Tcl/Tk app hasn't solved this already.according to http://www.groupsrv.com/computers/about266840.html it is acutally already built into tk-8.4 but not exposed!
quoting this article:
If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:
set ::tk::dialog::file::showHiddenBtn 0 set ::tk::dialog::file::showHiddenVar 1
Replace them by:
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
And you're done...
mfgasd.r IOhannes
yeah!
real men don't just talk (like me) but also try to solve the problem!
you guys rock! as always!
+1
On Wed, 2008-04-02 at 13:17 -0500, danomatika wrote:
IOhannes, you found the magic bullet (or forum post, that is)!
Awesome, I can confirm this works in a little test script and screenshot. It's a button to toggle hidden file display as expected.
On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In workshops,
a lot of people had trouble with those open/save panels.There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am
sure we are not the first to want this feature. I would be very
surprised if another Tcl/Tk app hasn't solved this already.according to http://www.groupsrv.com/computers/about266840.html it is acutally already built into tk-8.4 but not exposed!
quoting this article:
If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:
set ::tk::dialog::file::showHiddenBtn 0 set ::tk::dialog::file::showHiddenVar 1
Replace them by:
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
And you're done...
mfgasd.r IOhannes
-- Dan Wilcox robotcowboy.com _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You should be able to set that variable in pd.tk and have it work
without modifying the other file. Try just adding
set ::tk::dialog::file::showHiddenBtn 1
set ::tk::dialog::file::showHiddenVar 0
Somewhere near the top of the pd.tk.
.hc
On Apr 2, 2008, at 2:17 PM, danomatika wrote:
IOhannes, you found the magic bullet (or forum post, that is)!
Awesome, I can confirm this works in a little test script and
screenshot. It's a button to toggle hidden file display as expected.On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In
workshops,
a lot of people had trouble with those open/save panels.
There are quite a few apps written with Tcl/Tk for GNU/Linux, so
I am
sure we are not the first to want this feature. I would be very surprised if another Tcl/Tk app hasn't solved this already.
according to http://www.groupsrv.com/computers/about266840.html it is acutally already built into tk-8.4 but not exposed!
quoting this article:
If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:
set ::tk::dialog::file::showHiddenBtn 0 set ::tk::dialog::file::showHiddenVar 1
Replace them by:
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
And you're done...
mfgasd.r IOhannes
-- Dan Wilcox robotcowboy.com <tk_file_dialog.png><tk_file_dialog_test.tcl> _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we
don't have to examine our own lives.", from "The Idols of
Environmentalism", by Curtis White
Sorry.
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
This doesn't work, but the code from my test script does. I inserted it after the Pd-Extended font hacks, around line 42.
<code>
if {$pd_nt == 0} { # load the dialog once, otherwise setting the vars will not work catch {tk_getOpenFile -with-invalid-argument}
# change the environment variables
namespace eval ::tk::dialog::file {
variable showHiddenBtn 1
variable showHiddenVar 0
}
} # end hidden files/folder hack ------------------
</code>
Now open/save/saveas dialogs hide hidden files and show the toggle button. Awesome! Ok, I assume I might as well open a dev account somewhere are add this as a patch?
Someone else try this in Linux.
On Thu, 2008-04-03 at 17:11 -0400, Hans-Christoph Steiner wrote:
You should be able to set that variable in pd.tk and have it work without modifying the other file. Try just adding set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0 Somewhere near the top of the pd.tk. .hc
On Apr 2, 2008, at 2:17 PM, danomatika wrote:
IOhannes, you found the magic bullet (or forum post, that is)!
Awesome, I can confirm this works in a little test script and screenshot. It's a button to toggle hidden file display as expected.
On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In workshops,
a lot of people had trouble with those open/save panels.There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am
sure we are not the first to want this feature. I would be very
surprised if another Tcl/Tk app hasn't solved this already.according to http://www.groupsrv.com/computers/about266840.html it is acutally already built into tk-8.4 but not exposed!
quoting this article:
If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:
set ::tk::dialog::file::showHiddenBtn 0 set ::tk::dialog::file::showHiddenVar 1
Replace them by:
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
And you're done...
mfgasd.r IOhannes
-- Dan Wilcox robotcowboy.com <tk_file_dialog.png><tk_file_dialog_test.tcl>
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White
Awesome! Please submit a patch to the tracker.
http://puredata.info/dev/patchtracker
If you want to become a committer, then introduce yourself to pd-
dev. You can search the archives for examples of previous
introductions.
.hc
On Apr 3, 2008, at 5:30 PM, danomatika wrote:
Sorry.
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
This doesn't work, but the code from my test script does. I
inserted it after the Pd-Extended font hacks, around line 42.<code>
# begin hack to hide hidden files/folder in tk browser on unix
if {$pd_nt == 0} { # load the dialog once, otherwise setting the vars will not work catch {tk_getOpenFile -with-invalid-argument}
# change the environment variables namespace eval ::tk::dialog::file { variable showHiddenBtn 1 variable showHiddenVar 0 }
} # end hidden files/folder hack ------------------
</code>
Now open/save/saveas dialogs hide hidden files and show the toggle
button. Awesome! Ok, I assume I might as well open a dev account
somewhere are add this as a patch?Someone else try this in Linux.
On Thu, 2008-04-03 at 17:11 -0400, Hans-Christoph Steiner wrote:
You should be able to set that variable in pd.tk and have it work
without modifying the other file. Try just adding set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0 Somewhere near the top of the pd.tk. .hcOn Apr 2, 2008, at 2:17 PM, danomatika wrote:
IOhannes, you found the magic bullet (or forum post, that is)!
Awesome, I can confirm this works in a little test script and
screenshot. It's a button to toggle hidden file display as expected.On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
This would be huge, it would greatly help the newbies. In
workshops,
a lot of people had trouble with those open/save panels.
There are quite a few apps written with Tcl/Tk for GNU/Linux,
so I am
sure we are not the first to want this feature. I would be very surprised if another Tcl/Tk app hasn't solved this already.
according to http://www.groupsrv.com/computers/about266840.html
it is acutally already built into tk-8.4 but not exposed!quoting this article:
If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:
set ::tk::dialog::file::showHiddenBtn 0 set ::tk::dialog::file::showHiddenVar 1
Replace them by:
set ::tk::dialog::file::showHiddenBtn 1 set ::tk::dialog::file::showHiddenVar 0
And you're done...
mfgasd.r IOhannes
-- Dan Wilcox robotcowboy.com <tk_file_dialog.png><tk_file_dialog_test.tcl> _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"It is convenient to imagine a power beyond us because that means
we don't have to examine our own lives.", from "The Idols of
Environmentalism", by Curtis White-- Dan Wilcox robotcowboy.com
http://at.or.at/hans/