Pierre Lamot
384398f40a
qt: introduce BaseModel to handle model changes independently from the data
Pimpl idiom is used to avoid integrating template implementation in every
classes that uses models
3 years ago
Pierre Lamot
d50bd34cbc
qt: update listcache documentation
3 years ago
Pierre Lamot
59d2fac560
qt: make ListCacheLoader independent from the medialibrary
3 years ago
Pierre Lamot
16d6631c20
qt: use runOnMLThread to count and load data
this allows not depending on vlc_medialibrary_t being present in MLBase
4 years ago
Romain Vimont
a408b11197
qt: medialib: do not depend on ListCache header
MLSlidingWindowModel has many subclasses. Since it depended on the
ListCache<T> header, every change in this header caused huge incremental
compilation times.
Before this commit and the two previous ones, here is the time it took
on my machine to recompile after touching listcache.hpp:
$ time make -j8
...
real 0m45.001s
user 4m55.672s
sys 0m9.414s
After these changes:
$ time make -j8
real 0m10.676s
user 0m11.840s
sys 0m0.946s
Signed-off-by: Pierre Lamot <pierre@videolabs.io>
5 years ago
Prince Gupta
14dc45d73a
qml: change album list from list based to table based
6 years ago
Pierre Lamot
fb27a10cda
qml: restore the focus on the last album when navigating back to the album view
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
d381b92ef8
qml: distinct the "album" view from the album component used in other view
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
dc9422b8f0
qml: simplify GridItem
- perform the zoom on focus within its boundaries, it is simpler to know
the total size of the elements and layout them properly
- use a vertical layout to simplify anchors
- remove unecessary nodes
- use FocusBackground and ScrollingText
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
e2c5bd7335
qml: only update the layout when necessary in ExpandGridView
this only sets property (position, focus, ...) of grid items when necessary
As a side effect, the focus is no longer reset to the the top element when
setting the focus on the header and moving the view to the header.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
c36fa3c555
qml: rework key navigation in MusicAlbumsGridExpandDelegate
- use a NavigableCol for action buttons
- limit the number of displayed tracks
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
3d226a8654
qml: update labels displayed when the medialibary is empty
and make it wrap properly
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
9d9698f772
qml: cancel action goes to the first element before doing the default action
this allows to easily access the top menu
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
1549eca9fe
qml: move play/enqueue buttons to the header of the Artist view
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
88ee5c1116
qml: change sort models from ListModel to Array
i18n.qtr can't be used in ListModel
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
8e88b390a6
qml: use i18n.qtr for translation instead of qsTr
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
d1c493da2f
qml: split the utils namespace in util and widgets
this follows the current file organisation
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 years ago
Pierre Lamot
84ef2085f9
qt: move medialibrary component to its own folder
no functional changes
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years ago
Pierre Lamot
0f4fea792a
qml: remove unexisting property binding in MusicAlbumsDisplay
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years ago
Pierre Lamot
98d2d7acf6
qml: revert list items to have solid background instead of a glowing frame
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years ago
Pierre Lamot
00ea363cf1
qml: refactor navigation by setting default navigation parent
7 years ago
Pierre Lamot
48be30ac06
qml: allow to define a header component in MusicAlbumsDisplay
7 years ago
Pierre Lamot
b768186acb
qml: remove unnecessary nodes in MusicAlbumsDisplay
7 years ago
Pierre Lamot
23ded2cc1f
qml: use AudioGridItem
7 years ago
Pierre Lamot
68d1b23be8
qml: ExpandGridView should have a vertical scrollbar
Horizontal sliders have no use in vertical only widget
7 years ago
Pierre Lamot
57668aa72f
qml: rename gridDelegate to delegate in ExpandGridView
this is more consistent with other Qml widgets
7 years ago
Pierre Lamot
002697b547
qml: remove shiftX mechanism
elements individual positionning will be handled within the
ExpandGridView directly
7 years ago
Pierre Lamot
53550a5632
qml: don't retract the expand section when reaching the bottom
7 years ago
Pierre Lamot
a356c94ff5
qml: remove unused modelTop property from ExpandGridView
7 years ago
Abel Tesfaye
77b5255cc5
qml: increase height for glow on all ListItems
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years ago
Abel Tesfaye
134660f5df
qml: flick Album to Vertical only
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years ago
Adrien Maglo
ee5d8c9f85
qml: style changes of GridItems
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Adrien Maglo
052502de81
qml: reimplement ExpandGridView starting from a Flickable
This fixes the resizing issues of the previous implementation based on
two GridViews.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Adrien Maglo
ee884d8cc6
qml: use a specific icon for no art in the album view
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Maël Kervella
c043f65ffd
qml: add views to browse videos indexed by the medialibrary
Co-authored-by: Pierre Lamot <pierre@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Maël Kervella
8ae7ec2496
qml: add views to browse music indexed by the medialibrary
Co-authored-by: Pierre Lamot <pierre@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago