1187 Commits

Author SHA1 Message Date
Craig Drummond
680a4a8398 Stop user MPD instance from GUI thread when terminating, to ensure state can be saved.
Closes #1761
2022-01-11 12:08:14 +00:00
Craig Drummond
b6bd94c236 Update (c) year 2022-01-08 21:24:07 +00:00
Craig Drummond
f9e7637468 Don't save queue if string entered in dave dialog but cancel button
pressed.

Closes #1739
2021-09-03 19:55:19 +01:00
Craig Drummond
31b8a6d9b9 Revert "Revert "Merge pull request #1727 from jprjr/fix-deprecated-warnings""
This reverts commit be9c1e74e0.
2021-07-29 12:00:04 +01:00
Craig Drummond
be9c1e74e0 Revert "Merge pull request #1727 from jprjr/fix-deprecated-warnings"
This reverts commit cb18837d11, reversing
changes made to b296cf7113.
2021-07-28 19:44:57 +01:00
John Regan
b28aab0de1 fix deprecation: use QLocale to format date 2021-07-20 15:24:47 -04:00
John Regan
93c4ea12c3 fix deprecation: QSet::toList 2021-07-20 08:44:23 -04:00
John Regan
0037676553 fix deprecation: QSet::fromList, use a listToSet template 2021-07-20 08:40:24 -04:00
Craig Drummond
b5775c7757 Move escapeActionText to Utils namespace 2021-06-14 08:35:14 +01:00
David Hoyes
e67a1aa61c Fix formatting of collection/output/partition names containing '&'
Qt interprets '&' inside action text as a key shortcut, so we should
escape it.
2021-06-13 12:36:19 +01:00
Craig Drummond
d50bd303b9 If Partitions supported, then show output menu if more than 0 2021-05-11 12:08:03 +01:00
Craig Drummond
07f6361974 Format changes 2021-05-11 12:07:45 +01:00
Craig Drummond
3f96bf6cd0 Only show outputs menu if more than 1 2021-05-11 12:07:07 +01:00
Craig Drummond
4539377701 Partitions requires MPD>=0.22 2021-05-11 12:06:35 +01:00
Craig Drummond
ef6f723ee0 Give dialog a parent 2021-05-11 12:06:07 +01:00
Craig Drummond
501a75c16e camelCase 2021-05-11 12:05:45 +01:00
David Hoyes
64614e8a03 Include current partition name in window title 2021-05-10 20:45:16 +01:00
David Hoyes
111d790968 Add controls for moving outputs between partitions 2021-05-10 20:45:06 +01:00
David Hoyes
aebc4af1e3 Add support for MPD partitions
MPD allows clients to create named "partitions", each with its own
queue, player and outputs. This commit adds controls to allow the user
to create, delete, and switch between partitions.
2021-05-10 20:45:06 +01:00
David Hoyes
9b4f273841 Trim trailing whitespace 2021-05-10 20:36:43 +01:00
Craig Drummond
37381ea2a8 Always check if queue song is different
Issue #1707
2021-05-06 07:09:32 +01:00
Craig Drummond
23f2c510e6 Fix updating now-plying metadata for radio streams that transmit track
numbers.
Issue #1707
2021-05-04 18:18:45 +01:00
David Hoyes
730bf0672a Integrate with the Mac Now Playing Info Center
This adds MacOS support for controlling cantata via hardware media keys,
or via the OS's Now Playing widget. Implements #614 and #1347.
2021-04-01 12:58:34 +01:00
Craig Drummond
11bb7571c9 Update (c) year 2021-01-01 10:06:43 +00:00
Craig Drummond
07838308fd Remember, and restore, main window position.
Closes #1653
2020-11-22 14:57:35 +00:00
Thomas Uhle
b797e225d4 Fix MainWindow::moveSelectionAfterCurrentSong()
Ignore current song in selection when moving selected songs within the play
queue to play them next.
2020-06-10 12:44:33 +02:00
Thomas Uhle
0df2710b9e Fix enabling of play queue navigation actions 'next' and 'previous'
To enable or disable 'next' action, just rely on MPD's status value
'nextSongId'. Enable 'previous' action when there is more than one item in
the play queue or one item for which its duration is known and this is more
than 5 seconds. That is to also support the feature to go to the start of a
track if already played 5 seconds of it at least (which was introduced in
version 2.4.0). Corresponding implementation of Mpris and ThumbnailToolBar
updated accordingly.
2020-05-30 17:00:12 +02:00
Thomas Uhle
020ef1f956 Trigger MPRIS status update when connection to MPD lost
- Also propagate status update to MPRIS interface similar to what has been
  done in commit 5dd0942066.
  The probably simplest solution is to call Mpris::updateStatus() always
  when MainWindow::updateStatus() is called.
- Check for valid song ID in Mpris::CanPause() to return false if
  connection to MPD has been lost.
2020-05-15 15:45:23 +02:00
Thomas Uhle
4263744926 Avoid unknown song durations and duplicate updates of MPRIS' song details
- Move call to Mpris::updateCurrentSong() downwards to pick up the potential
  update of current song's duration from MPD's total time value (introduced
  by commit 1a38e468b7) and to avoid duplicate
  notifications (cf. commit bba9cfd880).
- Update MPRIS status value CanSeek when MPD's total time changes.
- Set MPDStatusValues::timeElapsed and MPDStatusValues::timeTotal to 0
  instead of -1 by default because the latter yields 65535 as these
  variables are 16 bit unsigned integer.
2020-05-15 12:44:55 +02:00
Craig Drummond
b8645d1358 Fix most, but not all, deprecation warnings. 2020-02-16 09:51:37 +00:00
Craig Drummond
d7b3965b9b Update (c) year 2020-01-01 11:51:13 +00:00
Craig Drummond
cb9efe205f Update (c) year 2019-09-15 15:56:58 +01:00
Pavel Shlyak
560164f863 Fix html markup 2019-08-18 19:01:32 +03:00
Craig Drummond
fd095a63ae Show smart-playlists errors in messagewidget 2019-08-17 17:18:45 +01:00
Craig Drummond
d7b379b75b Fix crash when double-clicking outside of table-view (when this is set to not stretch columns).
Closes #1445
2019-01-31 21:38:00 +00:00
Craig Drummond
1c378a93cf Add more actions to search page results.
Closes #1398
2018-10-28 16:24:09 +00:00
Craig Drummond
7b28248aba Add another qt5ct palette work-around.
Issue #1381
2018-10-02 16:47:21 +01:00
Craig Drummond
b8604ab044 Change toolbar colours if palette changes.
Issue #1381
2018-10-01 19:45:18 +01:00
Craig Drummond
999819892d When expand intrface, don't shrink width. Conversely, when collapsing don't expand width. 2018-09-19 17:26:27 +01:00
Craig Drummond
1a8e0da885 Fix 'Show Current Song Information' (i) toolbar button showing when interface is collpased and resized. 2018-09-19 17:22:04 +01:00
Craig Drummond
0e0c14b2b2 Fix 'Locate In Library / Album' for albums with musicbrainz ID.
Issue #1324
2018-07-09 16:37:38 +01:00
Craig Drummond
0bf0cb841a Use 32-bit unsigned int to store output IDs.
Closes #1316
2018-06-23 09:24:32 +01:00
Craig Drummond
2b4721a4d5 Emit errors when trying to add local files to playqueue, and these cannot be added. 2018-06-16 11:59:00 +01:00
Craig Drummond
efec0ba64c Remove qt5ct work-around.
Issue #1291
2018-05-27 17:51:48 +01:00
Craig Drummond
bd418040ef Fix case 2018-05-26 18:53:58 +01:00
Craig Drummond
f8121aaa73 Use function to set size? 2018-05-26 10:10:21 +01:00
Craig Drummond
bddf1b86a2 No need to differentiate between GNOME and Ubuntu GNOME 2018-05-21 17:28:10 +01:00
Craig Drummond
63dcddf3b0 Fix showing of statusbar items
Closes #1279
2018-05-17 17:24:26 +01:00
Craig Drummond
b3129e056d Control view/buttons when window is shown
Issue #1279
2018-05-16 22:56:10 +01:00
Craig Drummond
640339b050 Dont set theme name/path 2018-05-16 06:14:05 +01:00