Commit graph

212 commits

Author SHA1 Message Date
d20f3e02b1 Rename function to handlePostDownload to prevent ambiguity
It was too similar to downloadPosts.
2015-02-22 11:39:25 +01:00
532d93ae2f Call busy indicator from C++
Given the number of identical calls, most pool retrieval functions have
been also aggregated in a single function, postDownload.
2015-02-22 11:36:03 +01:00
59ccfb3aac Add a busy indicator which will be overlaid during download
This gives some visual feedback to the post / pool download.
2015-02-22 11:35:05 +01:00
b6d71f3cbf --pedantic; 2015-02-22 10:49:29 +01:00
7dbffa0271 Add a default destructor 2015-02-21 16:26:43 +01:00
114df7aa31 Move tag downloading to a separate slot instead of a lambda
If tag downloading is still in progress when the application is closed,
it will try to access the instance's pointer, leading to a crash.
2015-02-21 16:13:42 +01:00
92613218e1 Bump libdanbooru version 2015-02-21 15:48:26 +01:00
b5d30ce512 Use ecm_setup_version instead of configure_file 2015-02-21 14:58:24 +01:00
5d9988feed So long, custom C++ delegate: you won't be missed 2015-02-21 14:57:50 +01:00
8b56570223 Normalize license headers in all source files 2015-02-21 14:57:16 +01:00
46194d4e4d Preparation for alpha 2015-02-21 11:36:48 +01:00
69ef39748a Use a proper icon 2015-02-21 11:36:43 +01:00
b3268539fc This one is not used 2015-02-21 11:36:26 +01:00
44d632258d Allow to configure infinite scrolling 2015-02-21 11:33:08 +01:00
939e114080 Not needed anymore 2015-02-21 11:11:29 +01:00
0c3b61b73c commentedCode--; 2015-02-21 11:09:28 +01:00
7b8214401b Allow downloading posts from the toolbar
This allows downloading if the QML area is not filled.

TODO: Configure infinite scrolling
2015-02-21 11:07:57 +01:00
db03bdbce2 Add tag sorting (based on counts) to the tag view 2015-02-21 10:40:36 +01:00
ebd9e559ef QJson is no longer used 2015-02-21 10:38:51 +01:00
3479c42968 Add a custom role used to sort the tags with an upcoming proxy model 2015-02-20 23:44:24 +01:00
fc20d57708 Get tags related to the posts we are actuallly seeing.
TODO: Sort by size
2015-02-20 23:36:08 +01:00
942d1ffd1e Keep a set of all the tags from the posts stored
This allows later on to get post-specific tags.
2015-02-20 23:35:13 +01:00
f6aa593ee5 Don't add tags with no posts 2015-02-20 23:34:33 +01:00
7ccd845eba Clean up debug statements 2015-02-20 23:34:12 +01:00
cc7c6d1f1a Make downloading via tags work 2015-02-20 17:35:38 +01:00
428c1bae91 Basic support for tooltips in the tag widget 2015-02-20 17:35:08 +01:00
2623fee54d Add tag searching when clicking (broken)
This doesn't work at the moment and I've yet to figure out why...
2015-02-20 07:32:12 +01:00
51792459fb Simplify the handling of visibility in the QML view 2015-02-20 07:31:42 +01:00
25ff37df18 Support for the tag action 2015-02-20 07:31:08 +01:00
fee21d110c Let's not use too advanced C++11 features 2015-02-20 07:30:47 +01:00
cc100ad09a Specialized tag widget to display tags
Actually just a QListView but with support of the user's supplied
blacklist
2015-02-20 07:29:52 +01:00
14e1aa63ab Enable the tag model in the build system 2015-02-17 00:29:10 +01:00
bcc8a4eb5f Add a TODO 2015-02-17 00:28:58 +01:00
7c61efc3c2 Model for storing Danbooru tags 2015-02-17 00:28:31 +01:00
64464c15fe Implement proper saving files (still buggy somehow) 2015-02-16 00:12:14 +01:00
da1dd64317 Really fix CMakeLists.txt 2015-02-15 23:52:31 +01:00
1a8401d584 Fix installation 2015-02-15 23:37:54 +01:00
9aa5a7c839 Rename the xmlgui file 2015-02-15 23:36:36 +01:00
77ad8472c5 Use a lambda for a single Q_EMIT rather than a slot 2015-02-15 22:14:40 +01:00
70ccd49d04 Fix a few errors in board URL retrieval
Some functions accessed an empty QString (m_boardUrl) because it was not
yet filled at the time, breaking logic elsewhere. This is now fixed.
2015-02-15 22:10:58 +01:00
b951cddee4 Put a TODO for "password salts"
The way Danbooru handles passwords is simplistic to stay the least. It's
also impossible to know the "password salt" without visiting the API
page. As such, "salts" need to be put along with the board they
originate from.

The code doesn't handle missing keys, hence this TODO.
2015-02-15 22:05:17 +01:00
dfb9a42a1b Put blacklist configuration in the build system 2015-02-15 22:04:58 +01:00
169c10288e Handle blacklists and user-supplied URLs in main window
Previously, hardcoded URLs would be supplied to the connect widget: now
the preferences are correctly handled.
2015-02-15 22:03:57 +01:00
64021c47e9 Configuration for blacklists 2015-02-15 22:03:25 +01:00
98577bbcb8 Allow setting URLs in the widget (for config) and fix "salt" generation 2015-02-15 21:40:27 +01:00
8493f036ba Reorganize code a bit 2015-02-15 19:03:57 +01:00
32dd9bfc1a Hide the connect widget whether we're auto-downloading or not 2015-02-15 18:52:34 +01:00
d5d0d8ac03 Expose the auto-download functionality in the UI 2015-02-15 18:33:45 +01:00
b72c14dc89 UI file for the search widget - WIP 2015-02-15 18:33:25 +01:00
bc63d4e575 Plug the search widget in the main window (top dock)
Move all dock-related initialization to a dedicated function
2015-02-15 18:32:38 +01:00