Review Request: Use MetaQueryWidget in the advanced playlist generator.
Maximilian Kossick
maximilian.kossick at googlemail.com
Mon Oct 18 18:45:26 CEST 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100070/#review120
-----------------------------------------------------------
src/core/meta/support/MetaConstants.cpp
<http://git.reviewboard.kde.org/r/100070/#comment84>
These mappings are bound to get out of sync. How about using K_GLOBAL_STATIC to create an instance of a simple class which would contain these mappings. The actual mappings can be set up in the class' constructor. There might be a KDE class ("KBiAssociativeContainer") which allows efficient bi-directional mappings (it seems to be in libkdepim for some reason though)
src/core/meta/support/MetaConstants.cpp
<http://git.reviewboard.kde.org/r/100070/#comment85>
A slightly larger task would be replacing qint64 with a proper enum. In Amarok1, multiple field values where sometimes OR'd. I do not think we still do this in A2. That way the compiler could even tell you if an enum value is missing in a switch statement.
- Maximilian
On 2010-10-18 12:07:31, Ralf Engels wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100070/
> -----------------------------------------------------------
>
> (Updated 2010-10-18 12:07:31)
>
>
> Review request for Amarok.
>
>
> Summary
> -------
>
> Instead of implementing the whole behavior of selecting field and values I am just using the MetaQueryWidget.
>
> Also I am moving all field related texts to src/core/meta/support/MetaConstants.cpp
> This would also be a good place for the playlist to get it's texts from.
>
>
> Diffs
> -----
>
> src/CMakeLists.txt abdcee8
> src/core-impl/collections/support/XmlQueryReader.h 0088608
> src/core-impl/collections/support/XmlQueryReader.cpp b5518f0
> src/core-impl/collections/support/XmlQueryWriter.h 11c818e
> src/core-impl/collections/support/XmlQueryWriter.cpp 657e0c8
> src/core/CMakeLists.txt 5863ca1
> src/core/meta/support/MetaConstants.h 40cad34
> src/core/meta/support/MetaConstants.cpp PRE-CREATION
> src/core/meta/support/MetaUtility.h b161bdc
> src/core/meta/support/MetaUtility.cpp 0bb29db
> src/dynamic/Bias.h 6ec60b6
> src/dynamic/Bias.cpp dec2db2
> src/playlistgenerator/PresetModel.cpp 9b74636
> src/playlistgenerator/constraints/PlaylistDuration.h 992215c
> src/playlistgenerator/constraints/PlaylistDuration.cpp 5d83dfe
> src/playlistgenerator/constraints/TagMatch.h 094a68b
> src/playlistgenerator/constraints/TagMatch.cpp a719825
> src/playlistgenerator/constraints/TagMatchEditWidget.ui b9d97c6
> src/playlistgenerator/constraints/TagMatchSupport.cpp d368931
> src/widgets/MetaQueryWidget.h c720b6d
> src/widgets/MetaQueryWidget.cpp ae07e6b
>
> Diff: http://git.reviewboard.kde.org/r/100070/diff
>
>
> Testing
> -------
>
> Generated several advanced playlists testing a couple of the fields and all the conditions.
>
>
> Thanks,
>
> Ralf
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20101018/42d09a9f/attachment-0001.htm
More information about the Amarok-devel
mailing list