[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Changeset] uigetfile, uigetdir, uiputfile
From: |
Ben Abbott |
Subject: |
Re: [Changeset] uigetfile, uigetdir, uiputfile |
Date: |
Sun, 21 Nov 2010 13:42:23 -0500 |
On Nov 21, 2010, at 12:42 PM, Kai Habel wrote:
> 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
>From Octave's prompt my root directory looks like ...
ls -l /
total 18279
drwxrwxr-x 102 root admin 3468 2010-11-19 22:11 Applications
drwxrwxr-x 18 root admin 612 2010-08-19 11:55 Developer
drwxrwxr-t 63 root admin 2142 2010-09-17 21:07 Library
drwxr-xr-x 2 root wheel 68 2010-02-11 16:13 Network
drwxr-xr-x 18 bpabbott admin 612 2007-12-15 19:51 ProIndependent.QtiPlot
drwxr-xr-x 4 root wheel 136 2010-11-11 01:47 System
lrwxr-xr-x 1 root admin 60 2010-07-23 13:07 User Guides And
Information -> /Library/Documentation/User Guides and Information.localized
drwxr-xr-x 5 root admin 170 2010-07-23 14:15 Users
drwxrwxrwt 5 root admin 170 2010-11-21 13:17 Volumes
drwxr-xr-x 39 root wheel 1326 2010-11-11 01:45 bin
drwxrwxr-t 2 root admin 68 2010-02-11 16:13 cores
dr-xr-xr-x 3 root wheel 4342 2010-11-20 12:16 dev
lrwxr-xr-x 1 root wheel 11 2010-05-05 01:47 etc -> private/etc
dr-xr-xr-x 2 root wheel 1 2010-11-20 12:17 home
dr-xr-xr-x 2 root wheel 68 2010-07-12 16:13 home (from old Mac)
drwxrwxrwt 3 root wheel 102 2010-08-19 09:19 lost+found
-rw-r--r-- 1 root wheel 18693813 2010-11-06 02:22 mach_kernel
dr-xr-xr-x 2 root wheel 1 2010-11-20 12:17 net
drwxr-xr-x 5 root admin 170 2010-05-13 17:43 opt
drwxr-xr-x 6 root wheel 204 2010-05-05 01:50 private
drwxr-xr-x 67 root wheel 2278 2010-11-11 01:45 sbin
drwxr-xr-x 14 root admin 476 2009-09-29 21:53 sw
lrwxr-xr-x 1 root wheel 11 2010-05-05 01:47 tmp -> private/tmp
drwxr-xr-x 15 root wheel 510 2010-09-12 15:57 usr
lrwxr-xr-x 1 root wheel 11 2010-05-05 01:47 var -> private/var
Matlab gives ...
>> ls -l /
total 18279
drwxrwxr-x 102 root admin 3468 2010-11-19 22:11 Applications
drwxrwxr-x 18 root admin 612 2010-08-19 11:55 Developer
drwxrwxr-t 63 root admin 2142 2010-09-17 21:07 Library
drwxr-xr-x 2 root wheel 68 2010-02-11 16:13 Network
drwxr-xr-x 18 bpabbott admin 612 2007-12-15 19:51 ProIndependent.QtiPlot
drwxr-xr-x 4 root wheel 136 2010-11-11 01:47 System
lrwxr-xr-x 1 root admin 60 2010-07-23 13:07 User Guides And
Information -> /Library/Documentation/User Guides and Information.localized
drwxr-xr-x 5 root admin 170 2010-07-23 14:15 Users
drwxrwxrwt 5 root admin 170 2010-11-21 13:17 Volumes
drwxr-xr-x 39 root wheel 1326 2010-11-11 01:45 bin
drwxrwxr-t 2 root admin 68 2010-02-11 16:13 cores
dr-xr-xr-x 3 root wheel 4342 2010-11-20 12:16 dev
lrwxr-xr-x 1 root wheel 11 2010-05-05 01:47 etc -> private/etc
dr-xr-xr-x 2 root wheel 1 2010-11-20 12:17 home
dr-xr-xr-x 2 root wheel 68 2010-07-12 16:13 home (from old Mac)
drwxrwxrwt 3 root wheel 102 2010-08-19 09:19 lost+found
-rw-r--r-- 1 root wheel 18693813 2010-11-06 02:22 mach_kernel
dr-xr-xr-x 2 root wheel 1 2010-11-20 12:17 net
drwxr-xr-x 5 root admin 170 2010-05-13 17:43 opt
drwxr-xr-x 6 root wheel 204 2010-05-05 01:50 private
drwxr-xr-x 67 root wheel 2278 2010-11-11 01:45 sbin
drwxr-xr-x 14 root admin 476 2009-09-29 21:53 sw
lrwxr-xr-x 1 root wheel 11 2010-05-05 01:47 tmp -> private/tmp
drwxr-xr-x 15 root wheel 510 2010-09-12 15:57 usr
lrwxr-xr-x 1 root wheel 11 2010-05-05 01:47 var -> private/var
The uigetfile only shows the four entries seen in the prior email. I don't see
anything unusual about other directories.
Ben
- Re: [Changeset] uigetfile, uigetdir, uiputfile, (continued)
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Kai Habel, 2010/11/18
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Michael Goffioul, 2010/11/18
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Kai Habel, 2010/11/18
- Re: [Changeset] uigetfile, uigetdir, uiputfile, John W. Eaton, 2010/11/18
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Kai Habel, 2010/11/18
- Re: [Changeset] uigetfile, uigetdir, uiputfile, John W. Eaton, 2010/11/18
Re: [Changeset] uigetfile, uigetdir, uiputfile, John W. Eaton, 2010/11/18
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Kai Habel, 2010/11/21
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Ben Abbott, 2010/11/21
- Re: [Changeset] uigetfile, uigetdir, uiputfile, Kai Habel, 2010/11/21
- Re: [Changeset] uigetfile, uigetdir, uiputfile,
Ben Abbott <=
Re: [Changeset] uigetfile, uigetdir, uiputfile, Kai Habel, 2010/11/18