diff --git a/__main__.py b/__main__.py index 7f03c6a..a02168c 100755 --- a/__main__.py +++ b/__main__.py @@ -20,7 +20,7 @@ ✓ Tie file deletion and tab closing to model updates ✓ Create separate thread for parser - Show progress in main window ? Create emblem per filetype - Look into how you might group icons + Table view Ignore a / the / numbers for sorting purposes Put the path in the scope of the search maybe as a type: switch @@ -41,6 +41,7 @@ ✓ Selectable background color for QGraphicsView ✓ View modes for QGraphicsView ✓ View and hide toolbar actions in a list + Graphical themes Comic view keyboard shortcuts Record progress Pagination diff --git a/settingsdialog.py b/settingsdialog.py index 1e0514e..63611d0 100644 --- a/settingsdialog.py +++ b/settingsdialog.py @@ -45,4 +45,16 @@ class SettingsUI(QtWidgets.QDialog, settingswindow.Ui_Dialog): self, 'Select Directory', self.last_open_directory, QtWidgets.QFileDialog.ShowDirsOnly) - # Directories will NOT be added recursively + # Directories will be added recursively + # Sub directory addition is allowed in that files will not + # be duplicated. However, any additional tags will get + # added to file tags + + # Database tags for files should not be updated each time + # a new folder gets added or deleted from the directory + # This will be done @ runtime + # Individually set file tags will be preserved + # Duplicate file tags will be removed + + # Whatever code you write to recurse through directories will + # have to go into the threaded module diff --git a/threaded.py b/threaded.py index 4309b13..d31e092 100644 --- a/threaded.py +++ b/threaded.py @@ -5,6 +5,7 @@ import database from PyQt5 import QtCore + class BackGroundTabUpdate(QtCore.QThread): def __init__(self, database_path, all_metadata, parent=None): super(BackGroundTabUpdate, self).__init__(parent) @@ -36,4 +37,4 @@ class BackGroundBookAddition(QtCore.QThread): self.database_path) parsed_books = books.initiate_threads() database.DatabaseFunctions(self.database_path).add_to_database(parsed_books) - self.parent_window.lib_ref.generate_model('addition', parsed_books) \ No newline at end of file + self.parent_window.lib_ref.generate_model('addition', parsed_books) diff --git a/widgets.py b/widgets.py index f2aa8b4..3dd9180 100644 --- a/widgets.py +++ b/widgets.py @@ -3,8 +3,6 @@ import os from PyQt5 import QtWidgets, QtGui, QtCore -import sorter -import database from resources import resources, pie_chart @@ -28,7 +26,7 @@ class BookToolBar(QtWidgets.QToolBar): # Buttons self.fontButton = QtWidgets.QAction( - QtGui.QIcon.fromTheme('visibility'), + QtGui.QIcon.fromTheme('gtk-select-font'), 'View settings', self) self.fullscreenButton = QtWidgets.QAction( QtGui.QIcon.fromTheme('view-fullscreen'),