Own FileFormat is registered in the File widget #5537
-
Hello, I wrote an importer widget for an own binary file format. I also introduced a new file format by deriving the FileFormat class. Is it intentional to be able to open all registered file formats with the file widget? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This was done intentionally; FileFormat keeps a registry. See the implementation of As I see there, if you do not implement |
Beta Was this translation helpful? Give feedback.
This was done intentionally; FileFormat keeps a registry. See the implementation of
class _FileFormatMeta
.As I see there, if you do not implement
read()
(just name it differently), it should not appear in the list readers in OWFIle.