ENH: Implement add folder button, options window (select and override colors.list default) #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a new button to add folders to the list of files to convert.
It takes the folder and traverses through, selecting only files which can be converted. When generating the output file, it preserves the directory structure. For example, if the examples folder is added (
examples/*.edl
), the output files will be[output folder]/examples/*.ui
.Added the ability to set a flag to override the default colors.list, and provide the alternate path. #6
The options window provides rudimentary checking (does the file exist), but doesn't evaluate if the provided file is a valid colors.list content. Providing this file to the converter/parser is not yet implemented (will be in the convert method in main window)
Also added the select output folder in the General tab. Same behavior as the modal.
There could be improved styling in the options window....
Generalized the file-selection widget into its own component. It is a line edit and a button that opens a file dialog. Pretty handy interface element used in several locations.
Switched some print statements to use logging. These get formatted by pydm's logging configuration.
Also a tiny bugfix. Shouldn't set the mainwindow as the parent of optionswindow, otherwise the elements render in the same window. oof.
If you try to launch, it suffers from the circular import error (dataclasses.py interferes with dataclasses). Renaming the file resolves that issue. I figure I'd leave it to the others to change the filename.