octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Changeset] uigetfile, uigetdir, uiputfile


From: Kai Habel
Subject: Re: [Changeset] uigetfile, uigetdir, uiputfile
Date: Sun, 21 Nov 2010 18:42:36 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100914 SUSE/3.1.4 Lightning/1.0b2 Thunderbird/3.1.4

 On 21.11.2010 16:25, Ben Abbott wrote:
On Nov 21, 2010, at 8:40 AM, Kai Habel wrote:

On 18.11.2010 20:57, John W. Eaton wrote:
On 18-Nov-2010, Kai Habel wrote:

| I have not received much feedback so far. Here is a new Changeset, if
| nobody objects I will push this in a few days.

Sorry, I haven't had a chance to try it yet, but I have no objection
to you pushing it now if it is mostly working.

| +## @deftypefnx {Function File} address@hidden =} uigetdir ()
| +## Open a GUI dialog to select a directory. If @var{init_path} is not given

| +## @deftypefnx {Function File} address@hidden =} uigetfile 
(@dots{},"Multiselect",@var{mode})
| +##
| +## Opens a GUI dialog to select a file. It returns the filename @var{fname},

| +## @deftypefnx {Function File} address@hidden, @var{fpath}, @var{fltidx}] =} 
uiputfile ())
| +## Opens a GUI dialog to select a file. @var{flt} contains a (list of) file
| +## filter string(s) in one of the following formats:

Please consistently use "Open" instead of "Opens" here.  The first
sentence of a doc string should be written as a command, not a
description.

Thanks,

jwe
O.k. I have pushed it with the minor fixes. Since I could try this on linux 
32bit and 64bit I am especially interested in reports if these function work as 
expected on MacOS and Windows. For a simple test you can just use:

demo uigetdir
demo uigetfile
demo uiputfile

Kai
When I demo uigetfile or uiputfile, I'm presented with a dialog what is not of 
the pwd. I've attached a picture. uigetdir works the same as Matlab and 
presents the pwd.

It looks to me as if the dialog is a partial representation of my root 
directory.

octave:8>  ls -1 /
Applications
Developer
Library
Network
ProIndependent.QtiPlot
System
User Guides And Information
Users
Volumes
bin
cores
dev
etc
home
home (from old Mac)
lost+found
mach_kernel
net
opt
private
sbin
sw
tmp
usr
var

Ben
Ben,

thanks for the report, I pushed a quick fix for the pwd issue. Regarding the directories not shown in the dialog - Is there any specific about them? Do you see the same problem in other directories as well?

Kai


reply via email to

[Prev in Thread] Current Thread [Next in Thread]