Ticket #406 (closed: fixed)

Opened 12 years ago

Last modified 5 years ago

Allow wildcards in FileValidators

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Iteration 16
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

In Qt, it is possible to use wildcards in filters when opening file dialogs. The filters are not regular expressions but from what I can see it closely resembles pattern matching in a Unix shell.

For example

  • * matches anything
  • ? matches exactly one character
  • [a-z] matches any lower-case letter and similarly [0-9] matches any digit between zero and nine inclusive

Unfortunately the documentation is a little vague so I test tthe above things to make sure they worked

Change History

comment:1 Changed 12 years ago by Nick Draper

  • Milestone changed from Iteration 15 to Iteration 16

Batch move uncompleted tickes to next iteration

comment:2 Changed 12 years ago by Nick Draper

  • Owner set to Martyn Gigg

Once this is implemented you should re-enable the filters for load Raw to be .raw|.RAW|.sav|.SAV|.s[0-9][0-9]|.S[0-9][0-9]

if the [0-9] does not work then .s?? or even .s* should be fine.

It may be worth making the filters case insentitive.

comment:3 Changed 12 years ago by Martyn Gigg

(In [2202]) Wildcards are now allowed in file extensions. Use a ? to match a single character, [0-9] to match a number, [a-z] to match any letter and * to match anything. Re #406

comment:4 Changed 12 years ago by Martyn Gigg

  • Status changed from new to closed
  • Resolution set to fixed

(In [2203]) Reactivated the file extensions for raw files. They now use the new wildcard facility. Closes #406

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1254

Note: See TracTickets for help on using tickets.