Miscellaneous fixes
This commit is contained in:
12
TODO
12
TODO
@@ -23,7 +23,7 @@ TODO
|
|||||||
✓ Table view
|
✓ Table view
|
||||||
✓ Context menu: Cache, Read, Edit database, delete, Mark read/unread
|
✓ Context menu: Cache, Read, Edit database, delete, Mark read/unread
|
||||||
✓ Information dialog widget
|
✓ Information dialog widget
|
||||||
Allow editing of database data through the UI + for Bookmarks
|
✓ Allow editing of database data through the UI + for Bookmarks
|
||||||
Set focus to newly added file
|
Set focus to newly added file
|
||||||
Change focus rectangle dimensions
|
Change focus rectangle dimensions
|
||||||
Reading:
|
Reading:
|
||||||
@@ -69,18 +69,20 @@ TODO
|
|||||||
Secondary:
|
Secondary:
|
||||||
Annotations
|
Annotations
|
||||||
Graphical themes
|
Graphical themes
|
||||||
|
Tab reordering
|
||||||
|
Allow tabs to detach and form their own windows
|
||||||
Goodreads API: Ratings, Read, Recommendations
|
Goodreads API: Ratings, Read, Recommendations
|
||||||
Get ISBN using python-isbnlib
|
Get ISBN using python-isbnlib
|
||||||
Pagination
|
Pagination
|
||||||
Use embedded fonts
|
Use embedded fonts
|
||||||
Scrolling: Smooth / By Line
|
Scrolling: Smooth / By Line
|
||||||
? Add only one file type if multiple are present
|
|
||||||
Shift to logging instead of print statements
|
Shift to logging instead of print statements
|
||||||
? Plugin system for parsers
|
|
||||||
? pdf support
|
|
||||||
? Create emblem per filetype
|
|
||||||
txt, doc, chm, djvu, fb2 support
|
txt, doc, chm, djvu, fb2 support
|
||||||
Include icons for filetype emblems
|
Include icons for filetype emblems
|
||||||
Drag and drop support for the library
|
Drag and drop support for the library
|
||||||
Leave comic images on disk in case tab isn't closed and files are remembered
|
Leave comic images on disk in case tab isn't closed and files are remembered
|
||||||
Ignore a / the / numbers for sorting purposes
|
Ignore a / the / numbers for sorting purposes
|
||||||
|
? Add only one file type if multiple are present
|
||||||
|
? Plugin system for parsers
|
||||||
|
? pdf support
|
||||||
|
? Create emblem per filetype
|
12
__main__.py
12
__main__.py
@@ -227,6 +227,14 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
"QListView {{background-color: {0}}}".format(
|
"QListView {{background-color: {0}}}".format(
|
||||||
self.settings['listview_background'].name()))
|
self.settings['listview_background'].name()))
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
# Maybe use this for readjusting the border of the focus rectangle
|
||||||
|
# in the listView
|
||||||
|
|
||||||
|
# self.listView.setStyleSheet(
|
||||||
|
# "QListView::item:selected { border-color:blue; border-style:outset;"
|
||||||
|
# "border-width:2px; color:black; }")
|
||||||
|
|
||||||
# TableView
|
# TableView
|
||||||
self.tableView.doubleClicked.connect(self.library_doubleclick)
|
self.tableView.doubleClicked.connect(self.library_doubleclick)
|
||||||
self.tableView.horizontalHeader().setSectionResizeMode(
|
self.tableView.horizontalHeader().setSectionResizeMode(
|
||||||
@@ -650,8 +658,8 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
if model_index:
|
if model_index:
|
||||||
self.lib_ref.view_model.setData(
|
self.lib_ref.view_model.setData(
|
||||||
model_index, current_tab.metadata, QtCore.Qt.UserRole + 3)
|
model_index, current_tab.metadata, QtCore.Qt.UserRole + 3)
|
||||||
self.lib_ref.view_model.setData(
|
# self.lib_ref.view_model.setData(
|
||||||
model_index, position_perc, QtCore.Qt.UserRole + 7)
|
# model_index, position_perc, QtCore.Qt.UserRole + 7)
|
||||||
|
|
||||||
# Go on to change the value of the Table of Contents box
|
# Go on to change the value of the Table of Contents box
|
||||||
current_tab.change_chapter_tocBox()
|
current_tab.change_chapter_tocBox()
|
||||||
|
@@ -122,6 +122,8 @@ class TableProxyModel(QtCore.QSortFilterProxyModel):
|
|||||||
current_chapter = position['current_chapter']
|
current_chapter = position['current_chapter']
|
||||||
total_chapters = position['total_chapters']
|
total_chapters = position['total_chapters']
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
# See if there's any rationale for this
|
||||||
if current_chapter == 1:
|
if current_chapter == 1:
|
||||||
raise KeyError
|
raise KeyError
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
19
widgets.py
19
widgets.py
@@ -168,16 +168,19 @@ class Tab(QtWidgets.QWidget):
|
|||||||
scroll_position = scroll_value * self.contentView.verticalScrollBar().maximum()
|
scroll_position = scroll_value * self.contentView.verticalScrollBar().maximum()
|
||||||
self.contentView.verticalScrollBar().setValue(scroll_position * 1.1)
|
self.contentView.verticalScrollBar().setValue(scroll_position * 1.1)
|
||||||
|
|
||||||
search_text = self.metadata['position']['last_visible_text']
|
try:
|
||||||
if search_data:
|
search_text = self.metadata['position']['last_visible_text']
|
||||||
search_text = search_data[1]
|
if search_data:
|
||||||
|
search_text = search_data[1]
|
||||||
|
|
||||||
if search_text:
|
if search_text:
|
||||||
self.contentView.find(search_text)
|
self.contentView.find(search_text)
|
||||||
|
|
||||||
text_cursor = self.contentView.textCursor()
|
text_cursor = self.contentView.textCursor()
|
||||||
text_cursor.clearSelection()
|
text_cursor.clearSelection()
|
||||||
self.contentView.setTextCursor(text_cursor)
|
self.contentView.setTextCursor(text_cursor)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
if switch_widgets:
|
if switch_widgets:
|
||||||
self.window().tabWidget.setCurrentWidget(previous_widget)
|
self.window().tabWidget.setCurrentWidget(previous_widget)
|
||||||
|
Reference in New Issue
Block a user