[wx-dev] Re: Fityk GSoC project (wxFileCtrl/custom wxFileDialog)

Marcin Wojdyr wojdyr at gmail.com
Tue May 8 07:42:14 PDT 2007


On 5/8/07, Diaa Sami <diaasami at gmail.com> wrote:
> Diaa Sami wrote:
> > Marcin Wojdyr wrote:
> >> There should be a flag similar to wxDIRCTRL_SHOW_FILTERS (AFAIR it was
> >> mentioned in this thread that the wildcards list should be optional).
> >
> > I'm checking whether this is supported by GtkFileChooserWidget, I'll
> > comment as soon as I have results
>
> in GtkFileChooserWidget, the list of filters appear as soon as filters are added to the widget, and

Do you mean that the list of filters won't appear if no filters are
added explicitely?
In wxFileDialog and wxDirCtrl there are default */*.* filters, IMO
wxFileCtrl should work in the same way, if SHOW_FILTERS flag is
specified.

> I found no obvious way to hide it.

so just don't add any filters to GtkFileChooserWidget if the flag is
not specified


> >> It's obvious what wxFC_MULTIPLE will do, but could you write how other
> >> flags will work?
>
> copied from wxWidgets documentation:
> wxFD_OPEN: This is an open dialog; usually this means that the default button's label of the dialog
> is "Open". Cannot be combined with wxFD_SAVE.

I know how it works in case of file dialog. But wxFileCtrl will not
have Open/Save buttons. How the "open" ctrl will be different from the
"save" one?

> wxFD_OVERWRITE_PROMPT: For save dialog only: prompt for a confirmation if a file will be overwritten.

But how it works for ctrl? (OK button is outside of ctrl). How it
works in GtkFileChooserWidget?

> wxFD_FILE_MUST_EXIST: For open dialog only: the user may only select files that actually exist.

you wrote that it makes no sense for ctrl

-- 
Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr/




More information about the wx-dev mailing list