summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Gather data when FileCopier is doneArno2018-07-301-0/+1
|
* Cancel copying when clicking on status bar itemArno2018-07-302-0/+19
|
* Give some indication that we're copyingArno2018-07-305-0/+35
| | | | | Add a new label to the statusBar: When it's green the FileCopier is idle, when working, show the count.
* Update free space after deleting filesArno2018-07-301-0/+3
|
* Remove useless ProgressBarArno2018-06-134-15/+0
| | | | No need for the ProgressBar in the status line any more...
* Remove ClearAndSelectFirstArno2018-06-132-17/+0
| | | | | Slowed down startup by minutes! Dunno why, don't really care. If you need the search dialog, wait for it then :)
* Speed up file copyArno2018-06-137-173/+22
| | | | | | | | | | | | | | | | Hmm, as it turns out QFile does a much better, e.g. faster, job than my open-coded file copy with a progress dialog. I always wondered why it only did 150-170Mbit. I thought that it was just the calculation, but now I have 400 Mbit, and it still stalls at 150 Mbit. QFile::copy maxes out the line, so get rid of the ProgressDialog and show a status message instead. Copy can be canceled by the context menu, but FileCopier will always finish the current file, because I don't want to lock and unlock the CancelMutex during copy. Besides, QFile::copy doesn't admit that :)
* Refresh descript.ion before guessing subjectArno2018-02-191-0/+1
|
* Try to improve subject matchingArno2018-02-191-2/+3
| | | | Not sure if this is the way to go, but it works for now...
* Don't cache copied statusArno2018-02-031-0/+3
| | | | | Files can be copied without us knowing, so check for it even if we have a cache entry.
* Clear search data on new searchArno2018-02-032-10/+23
| | | | mDataV wasn't cleared. Fix it!
* Fix subject guessingArno2018-02-031-3/+8
| | | | | | | | | | Well, as it says, this is pretty much guesswork. I didn't think that the subject itself could contain a ',', but reality proved me wrong. A common denominator seems to be 'yEnc,' at the end of the subject, so first check for that and split there before going for the default. Most likely it's not the last change to this function :(
* Do not cascade style sheets to QMenuArno2018-02-031-1/+1
| | | | | | | Just a one line change, but a hard one. The SearchDialog context menu looked quite strange after applying the style sheet for alternating row colors. Qt inherits them to all child objects, but that's not what we want. So restrict it to QTreeViews.
* Remove left over callsArno2018-02-031-2/+0
| | | | Missed them when I committed the alternating row color changes.
* Do not block signals in FileWidgetArno2018-02-031-2/+0
| | | | | I guess there was a valid reason to block, but that's gone now. Couldn't bother to stare at the history...
* Implement alternating row colorsArno2018-02-0311-1/+110
| | | | | | | | | | | | | | | Once again, surprisingly difficult, as you can see on the number of changed files. Coding the configuration options wasn't that difficult, but actually using them was. As it turned out, the default style on Windows doesn't use QApplication::palette() at all, though it does honor setAlternatingRowColors(). It just doesn't use the palette colors, but style sheets. Took me a while to figure out. So, there's always another layer of indirection: First, add all QTreeViews to Globals::views, then create a helper to set the style sheet.
* Select first result in SearchDialogArno2018-02-031-2/+12
| | | | | Select the first item if we have a result. Also check if we have already set the override cursor to prevent a constant busy cursor.
* Add keyboard shortcuts in SearchDialogArno2018-02-032-2/+21
| | | | | | | | | | | | | CTRL+F: search filename CTRL+L: select all and focus search CTRL+M: search actor CTRL+T: search title CTRL+X: hide Unfortunately, it's surprisingly hard to capture CTRL+A, so I chose CTRL +M (m for model) for actor search. CTRL+A is consumed by some other Widget and never reaches SearchDialog. Maybe an EventFilter in the parent or the MainWindow would work, but that's not worth it.
* Set appropriate windowTitle for SearchDialogArno2018-02-031-0/+6
|
* Remove Q_FOREARCH from viewer.cppArno2018-02-031-1/+1
|
* Clean up TorrentWidgetArno2018-02-032-25/+22
| | | | | Get rid of Q_FOREARCH, use type safe connect syntax, remove members that don't have to be members, the usual.
* Get rid of Q_FOREACH in TorrentParserArno2018-02-031-2/+2
|
* Convert TorrentDisplayArno2018-02-021-6/+6
| | | | to type safe connect and weed out Q_FOREACH.
* Add filenames when searching for actorsArno2018-02-022-0/+11
|
* Implement context menu for search resultsArno2018-02-025-6/+91
| | | | | | Subclass QTreeView to show a custom context menu. Since the depth of some items is > 1, add an option to expand and collapse a node recursively.
* Icon fixesArno2018-02-023-12/+12
|
* Remove search and actor WidgetsArno2018-02-027-594/+2
| | | | Replacement: SearchDialog
* Add CTRL+S shortcut for SearchDialogArno2018-02-022-0/+20
| | | | | If in FileWidget, show and raise SearchDialog on CTRL+s, hide it on CTRL +x. Show busy cursor while searching.
* Raise and show SearchDialog on CTRL+SArno2018-02-021-2/+2
|
* Implement actor search in SearchDialogArno2018-02-022-3/+105
|
* Read and write settings for SearchDialogArno2018-02-023-1/+28
|
* Get genres for search dataArno2018-02-022-14/+25
|
* Use Helper::icon in SearchDialogArno2018-02-023-9/+14
| | | | | Once again this should have been 2 commits: one for Helper::icon and another one for making font boldness selectable, but well...
* Show actors in SearchDialogArno2018-02-024-17/+67
| | | | | | | This should have been two commits, really. One for the actors, and another one for the icon helper. Helper::icon returns an QIcon with a circle in bg color and the char c.
* Implement Filename search in SearchDialogArno2018-02-024-11/+54
|
* Implement a useful searchArno2018-02-017-3/+192
| | | | | | Display Title and Filename search as non-modal dialog, so one can compare Files and Database. For now only Title search is implemented. Filename search does nothing (yet).
* Sort copy dirs whenever possibleArno2018-02-014-8/+17
|
* Improve FileCopierArno2018-02-016-27/+40
| | | | | | | | | | | | | | | | This endeavor started out quite innocently: fix the connect syntax in ProgressDialog, but it quickly became much more. Vom Höxchen aufs Stöxchen :) First I thought it would be nice to add a total count to the ProgressDialog. Then I realized that I had QElapsedTimer::restart() totally wrong. It returns the ms *since the last restart*! It doesn't reset to zero, so fix that. While testing that I noticed that the download speed was quite below average, so change the buffer size and only check if we were cancelled when the timer elapsed. But that wasn't it. Eventually I dug into my firewall rules and routings to get it right.
* Modernize OriginDialogArno2018-02-012-6/+5
| | | | | | | Use type safe connect syntax and remove one Q_FOREACH makro. Make the reject button a non-member, but keep the OK button. I thought about gettring rid of the latter, too, but deactivating OK when no match is the most sensible way to go...
* Clean up FileDisplayArno2018-01-312-7/+5
| | | | use type safe connect syntax and make the QTabWidget a non-member.
* Clean up ConfigurationWidgetArno2018-01-312-28/+13
| | | | | | * use type safe connect syntax * use lambdas as slot for selecting programs * make accept and cancel non-members. They're not needed anywhere else.
* Switch ActorWidget to type-safe connect syntaxArno2018-01-311-6/+6
|
* Add action for searching the interwebs for filenameArno2018-01-284-1/+17
|
* New feature: Guess subjectArno2018-01-272-1/+53
| | | | | | | | | If a descript.ion file exists in the current directory of fileWidget, read the subjects into a QStringList to determine the usenet subject from within ShemovCleaner. No more tedious task switching to the usenet client, just trigger "Guess subject..." :)
* Use type-safe connect syntaxArno2018-01-191-12/+12
|
* Remember last MIME-FilterArno2018-01-191-0/+13
|
* Refresh favorite dirs after configuringArno2018-01-194-1/+15
| | | | | Update favorite dirs when adding or removing favorite directories. Also try to keep the current selection.
* Show total duration againArno2018-01-191-0/+1
| | | | Forgot to set fd->seconds when gathering data.
* Implement filtering by MIME-TypeArno2018-01-044-13/+42
| | | | | | The MIME-type is a regular expression that can be configured. Show the configured types in a QComboBox with the special value "<all>" at the top, which invalidates the MIME type filter.
* Implement configuration option for MIME filtersArno2018-01-042-0/+9
|