|
| | __init__ (self) |
| |
| None | build_ui (self) |
| |
| QFrame | build_header (self) |
| |
| None | reload (self) |
| |
| tuple[str, str]|None | take_home_university (self, dict[str, dict[str, list[str]]] tree) |
| |
| None | on_filter_changed (self, str category, str publisher, str source) |
| |
| None | on_search_changed (self, str text) |
| |
| None | on_page_changed (self, int number) |
| |
| None | on_page_size_changed (self, int size) |
| |
| None | open_article (self, str link) |
| |
| None | refresh (self) |
| |
| None | on_fetch_progress (self, int done, int total, str label) |
| |
| None | on_fetch_finished (self, list[FetchResult] results) |
| |
| None | finish_refresh (self, results, int new_count, int removed) |
| |
| None | show_source_status (self) |
| |
| None | open_settings (self) |
| |
| None | apply_theme (self) |
| |
| None | apply_refresh_timer (self) |
| |
| None | closeEvent (self, event) |
| |
| None | quit_now (self) |
| |
◆ __init__()
| uninews.ui.main_window.UniNewsWindow.__init__ |
( |
|
self | ) |
|
◆ apply_refresh_timer()
| None uninews.ui.main_window.UniNewsWindow.apply_refresh_timer |
( |
|
self | ) |
|
◆ apply_theme()
| None uninews.ui.main_window.UniNewsWindow.apply_theme |
( |
|
self | ) |
|
◆ build_header()
| QFrame uninews.ui.main_window.UniNewsWindow.build_header |
( |
|
self | ) |
|
◆ build_ui()
| None uninews.ui.main_window.UniNewsWindow.build_ui |
( |
|
self | ) |
|
◆ closeEvent()
| None uninews.ui.main_window.UniNewsWindow.closeEvent |
( |
|
self, |
|
|
|
event |
|
) |
| |
Wait for the fetch thread before quitting.
Destroying a running QThread aborts the process, and a request that is
already in flight can take up to the HTTP timeout to return. So hide
the window straight away and quit once the thread has finished.
◆ finish_refresh()
| None uninews.ui.main_window.UniNewsWindow.finish_refresh |
( |
|
self, |
|
|
|
results, |
|
|
int |
new_count, |
|
|
int |
removed |
|
) |
| |
◆ on_fetch_finished()
| None uninews.ui.main_window.UniNewsWindow.on_fetch_finished |
( |
|
self, |
|
|
list[FetchResult] |
results |
|
) |
| |
◆ on_fetch_progress()
| None uninews.ui.main_window.UniNewsWindow.on_fetch_progress |
( |
|
self, |
|
|
int |
done, |
|
|
int |
total, |
|
|
str |
label |
|
) |
| |
◆ on_filter_changed()
| None uninews.ui.main_window.UniNewsWindow.on_filter_changed |
( |
|
self, |
|
|
str |
category, |
|
|
str |
publisher, |
|
|
str |
source |
|
) |
| |
◆ on_page_changed()
| None uninews.ui.main_window.UniNewsWindow.on_page_changed |
( |
|
self, |
|
|
int |
number |
|
) |
| |
◆ on_page_size_changed()
| None uninews.ui.main_window.UniNewsWindow.on_page_size_changed |
( |
|
self, |
|
|
int |
size |
|
) |
| |
◆ on_search_changed()
| None uninews.ui.main_window.UniNewsWindow.on_search_changed |
( |
|
self, |
|
|
str |
text |
|
) |
| |
◆ open_article()
| None uninews.ui.main_window.UniNewsWindow.open_article |
( |
|
self, |
|
|
str |
link |
|
) |
| |
◆ open_settings()
| None uninews.ui.main_window.UniNewsWindow.open_settings |
( |
|
self | ) |
|
◆ quit_now()
| None uninews.ui.main_window.UniNewsWindow.quit_now |
( |
|
self | ) |
|
◆ refresh()
| None uninews.ui.main_window.UniNewsWindow.refresh |
( |
|
self | ) |
|
◆ reload()
| None uninews.ui.main_window.UniNewsWindow.reload |
( |
|
self | ) |
|
Redraw the list, sidebar and pagination from the database.
◆ show_source_status()
| None uninews.ui.main_window.UniNewsWindow.show_source_status |
( |
|
self | ) |
|
What each source did on the last refresh.
◆ take_home_university()
| tuple[str, str] | None uninews.ui.main_window.UniNewsWindow.take_home_university |
( |
|
self, |
|
|
dict[str, dict[str, list[str]]]
|
tree |
|
) |
| |
(category, publisher) for the home university, once, as soon as it has articles.
◆ university_names()
| list[str] uninews.ui.main_window.UniNewsWindow.university_names |
( |
| ) |
|
|
static |
Publishers in the "university" category, for the settings dialog.
◆ article_list
| uninews.ui.main_window.UniNewsWindow.article_list |
◆ database
| uninews.ui.main_window.UniNewsWindow.database |
◆ home_university
| uninews.ui.main_window.UniNewsWindow.home_university |
◆ last_results
| uninews.ui.main_window.UniNewsWindow.last_results |
◆ library
| uninews.ui.main_window.UniNewsWindow.library |
◆ on_fetch_finished
| uninews.ui.main_window.UniNewsWindow.on_fetch_finished |
◆ on_fetch_progress
| uninews.ui.main_window.UniNewsWindow.on_fetch_progress |
◆ on_filter_changed
| uninews.ui.main_window.UniNewsWindow.on_filter_changed |
◆ on_page_changed
| uninews.ui.main_window.UniNewsWindow.on_page_changed |
◆ on_page_size_changed
| uninews.ui.main_window.UniNewsWindow.on_page_size_changed |
◆ on_search_changed
| uninews.ui.main_window.UniNewsWindow.on_search_changed |
◆ open_article
| uninews.ui.main_window.UniNewsWindow.open_article |
◆ open_settings
| uninews.ui.main_window.UniNewsWindow.open_settings |
◆ pagination
| uninews.ui.main_window.UniNewsWindow.pagination |
◆ quit_now
| uninews.ui.main_window.UniNewsWindow.quit_now |
◆ refresh
| uninews.ui.main_window.UniNewsWindow.refresh |
◆ refresh_button
| uninews.ui.main_window.UniNewsWindow.refresh_button |
◆ refresh_timer
| uninews.ui.main_window.UniNewsWindow.refresh_timer |
◆ settings
| uninews.ui.main_window.UniNewsWindow.settings |
◆ settings_button
| uninews.ui.main_window.UniNewsWindow.settings_button |
◆ show_source_status
| uninews.ui.main_window.UniNewsWindow.show_source_status |
◆ sidebar
| uninews.ui.main_window.UniNewsWindow.sidebar |
◆ status_button
| uninews.ui.main_window.UniNewsWindow.status_button |
◆ worker
| uninews.ui.main_window.UniNewsWindow.worker |
The documentation for this class was generated from the following file: