For uses where Biscuit will be open for extended periods of time while data is being acquired, it would be convenient to allow for refreshing of the file treeview from the GUI.
To achieve this we need to move the functionality for constructing all the data into the EnhancedTreeview.
Because this will make the EnhancedTreeview less generic I think we should create a new subclass FileTreeview which inherits from EnhancedTreeview, but has some extra methods. Also a few recently added methods should probably be added to the FileTreeview instead of the EnhancedTreeview (anything non-generic).
TODO:
[x] Create FileTreeview class
[x] Move main._fill_file_tree() in Biscuit.py into FileTreeview as a method.
[x] Add new update method which can detect changes between the source directory and the current structure and just add new files/folders as required (without modifying any existing items in the treeview).
[x] Allow refresh to detect files that have been removed.
These changes will also need to be merged into the MQ_master branch to ensure uniformity of base code across branches
For uses where Biscuit will be open for extended periods of time while data is being acquired, it would be convenient to allow for refreshing of the file treeview from the GUI.
To achieve this we need to move the functionality for constructing all the data into the
EnhancedTreeview
. Because this will make theEnhancedTreeview
less generic I think we should create a new subclassFileTreeview
which inherits fromEnhancedTreeview
, but has some extra methods. Also a few recently added methods should probably be added to theFileTreeview
instead of theEnhancedTreeview
(anything non-generic).TODO:
FileTreeview
classmain._fill_file_tree()
inBiscuit.py
intoFileTreeview
as a method.update
method which can detect changes between the source directory and the current structure and just add new files/folders as required (without modifying any existing items in the treeview).These changes will also need to be merged into the
MQ_master
branch to ensure uniformity of base code across branches