Keith Edmunds
734d5cb545
Make MusicMusterSignals a singleton class
...
Moved into datastructures.py
2023-10-31 08:14:34 +00:00
Keith Edmunds
3557d22c54
WIP V3: insert track works
2023-10-30 21:55:02 +00:00
Keith Edmunds
e4b986fd2e
Implement active_tab and active_model
2023-10-30 16:39:02 +00:00
Keith Edmunds
3832d9300c
move_rows implemented; all tests pass
2023-10-28 11:30:37 +01:00
Keith Edmunds
617c39c0de
Reworked inserting rows into model
...
_insert_row() handles database
insert_header() handles playlist_rows and display updates
2023-10-27 12:01:09 +01:00
Keith Edmunds
f57bcc37f6
WIP V3 model development
2023-10-27 06:58:22 +01:00
Keith Edmunds
37cdaf3e3f
Call scalars() from session rather than row results
2023-10-27 06:41:40 +01:00
Keith Edmunds
858c86d907
test_insert_header_row passes
2023-10-25 22:17:52 +01:00
Keith Edmunds
87172c8757
WIP V3: drag 'n' drop rows working with tests
2023-10-24 21:46:21 +01:00
Keith Edmunds
86a1678f41
WIP V3: move row initial tests working
...
More tests to write
2023-10-24 20:48:28 +01:00
Keith Edmunds
da658f0ae3
V3 WIP testing working for test_models
2023-10-23 17:39:56 +01:00
Keith Edmunds
9d3e4b8d0c
V3 WIP Drag and drop partly implemented
...
UI works but outputs model changes needed to stdout
2023-10-22 22:53:59 +01:00
Keith Edmunds
4903330e44
V3 WIP Add ROWS_FROM_ZERO option
2023-10-22 22:51:37 +01:00
Keith Edmunds
d6572c13b5
V3 WIP Black formatting
2023-10-21 14:07:42 +01:00
Keith Edmunds
95c7ccbf34
WIP V3: editing saves
2023-10-21 13:49:13 +01:00
Keith Edmunds
5d19d1ed9f
Move playlists_v3 to playlists
2023-10-21 11:07:25 +01:00
Keith Edmunds
93d780f75a
V3 WIP: ESC works in editing
2023-10-21 11:03:03 +01:00
Keith Edmunds
b75dc4256a
WIP V3 don't send session to playlist tab
2023-10-21 09:02:36 +01:00
Keith Edmunds
0690a66806
Edit partially working
...
setData called but not implemented
ESC not detected in edit
2023-10-20 23:17:19 +01:00
Keith Edmunds
d579eb81b4
WIP V3
2023-10-20 20:47:08 +01:00
Keith Edmunds
cbdcd5f4fc
Fix column spanning to not be recursive
2023-10-20 16:25:48 +01:00
Keith Edmunds
bb14b34c2e
WIP V3: column widths set/save works
2023-10-20 11:30:54 +01:00
Keith Edmunds
dbbced7401
Fix repr() for Settings
2023-10-20 11:06:50 +01:00
Keith Edmunds
5fb5e12bb8
WIP: V3: All headers displaying
2023-10-20 08:54:48 +01:00
Keith Edmunds
978b83ba67
WIP: V3 header rows span columns
2023-10-19 18:29:09 +01:00
Keith Edmunds
9a01bf2c2c
Don't error on header rows
2023-10-19 15:09:49 +01:00
Keith Edmunds
1c8fb05ffa
WIP V3: gap and bitrate column background working
2023-10-19 15:05:30 +01:00
Keith Edmunds
bec336d2a3
WIP V3: playlist populates from database
2023-10-19 13:49:07 +01:00
Keith Edmunds
51a827093a
Add return type in music.py
2023-10-19 13:49:07 +01:00
Keith Edmunds
8acd279cfe
Clean up music.py interface
2023-10-17 22:52:51 +01:00
Keith Edmunds
d2444159ac
Improved fading
...
fade() takes an optional parameter, fade_seconds
fading is now logarithmic
2023-10-17 22:38:57 +01:00
Keith Edmunds
2ca2471f5e
Fix bug where unable to preview first row of playlist.
2023-10-16 23:25:09 +01:00
Keith Edmunds
d57ffbdb09
Implement select duplicate rows
...
Fixes #157
2023-10-16 23:16:56 +01:00
Keith Edmunds
f35b8b93b1
Fix up cron database check
2023-10-16 20:39:53 +01:00
Keith Edmunds
64c3e3066b
Filter virtualenv lines from stackprinter dump
2023-10-16 20:31:32 +01:00
Keith Edmunds
3e2293195a
Improve track creation in database
...
Pass all arguments to Tracks.__init__ on track creation
Smarten up metadata collecting
Reformat code
Reinstate stackprinter, but with more sensible settings (mostly
defaults, oddly enough)
2023-10-16 19:44:51 +01:00
Keith Edmunds
8cd8f80883
Shift-sort reverses sort
2023-10-15 22:46:32 +01:00
Keith Edmunds
d7c64141f2
Remove unused app/ui/playlist_ui.py
2023-10-15 22:25:48 +01:00
Keith Edmunds
3a612558e4
Set playlist column widths before populating playlist
...
Big speed improvment. Loading a 540 line playlist went from 0.445s to
0.264s.
2023-10-15 22:17:46 +01:00
Keith Edmunds
9ac2911a55
Typing and mypy fixes
2023-10-15 21:04:54 +01:00
Keith Edmunds
3513c32a62
Speed increases, more typing, cleanup
...
Pull all playlist row info in one database query when loading a
playlist.
Fixup some type hints in models.
Comment out stackprinter calls - they mostly get in the way
interactively.
2023-10-15 19:04:58 +01:00
Keith Edmunds
ae87ac82ba
Migrate model to SQLAlchemy 2.0 DeclarativeBase
2023-10-15 09:51:02 +01:00
Keith Edmunds
a8c5a56c1a
Implent subtotal times and unplayed time
2023-10-13 19:01:22 +01:00
Keith Edmunds
8cebf7829b
Save playlist after undoing sort
2023-10-12 18:44:01 +01:00
Keith Edmunds
c8a7ae7f73
Black formatting
2023-10-12 08:55:26 +01:00
Keith Edmunds
87ab973439
Implement playlist range sort and unsort
2023-10-12 02:43:17 +01:00
Keith Edmunds
06e457a3da
Save sorted selection
2023-10-10 01:28:31 +01:00
Keith Edmunds
8e2edb6af3
Add sort selection
2023-10-10 01:27:36 +01:00
Keith Edmunds
ee391e42e7
Minor tidying
2023-10-10 01:27:13 +01:00
Keith Edmunds
c078fa69e7
Only create one infotab at initialisation.
2023-10-06 19:10:19 +01:00