-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4223 from uklotzde/library_prefs
Access ConfigObjects by predefined constants instead of plain strings
- Loading branch information
Showing
13 changed files
with
127 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
class Library; | ||
|
||
enum class LibraryRemovalType { | ||
KeepTracks, | ||
HideTracks, | ||
PurgeTracks | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "library/library_prefs.h" | ||
|
||
// Don't use nested namespaces here to ensure that both the | ||
// definition and declaration of the constants match! Typos | ||
// or missing definitions/declarations will then be detected | ||
// reliably at compile time. | ||
|
||
const ConfigKey mixxx::library::prefs::kLegacyDirectoryConfigKey = | ||
ConfigKey( | ||
QStringLiteral("[Playlist]"), | ||
QStringLiteral("Directory")); | ||
|
||
const QString mixxx::library::prefs::kConfigGroup = | ||
QStringLiteral("[Library]"); | ||
|
||
const ConfigKey mixxx::library::prefs::kEditMetadataSelectedClickConfigKey = | ||
ConfigKey( | ||
mixxx::library::prefs::kConfigGroup, | ||
"EditMetadataSelectedClick"); | ||
|
||
const ConfigKey mixxx::library::prefs::kSearchDebouncingTimeoutMillisConfigKey = | ||
ConfigKey( | ||
mixxx::library::prefs::kConfigGroup, | ||
QStringLiteral("SearchDebouncingTimeoutMillis")); | ||
|
||
const ConfigKey mixxx::library::prefs::kSyncTrackMetadataExportConfigKey = | ||
ConfigKey( | ||
mixxx::library::prefs::kConfigGroup, | ||
QStringLiteral("SyncTrackMetadataExport")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "preferences/configobject.h" | ||
|
||
namespace mixxx { | ||
|
||
namespace library { | ||
|
||
namespace prefs { | ||
|
||
extern const ConfigKey kLegacyDirectoryConfigKey; | ||
|
||
extern const QString kConfigGroup; | ||
|
||
extern const ConfigKey kSearchDebouncingTimeoutMillisConfigKey; | ||
|
||
extern const ConfigKey kEditMetadataSelectedClickConfigKey; | ||
|
||
const bool kEditMetadataSelectedClickDefault = false; | ||
|
||
extern const ConfigKey kSyncTrackMetadataExportConfigKey; | ||
|
||
} // namespace prefs | ||
|
||
} // namespace library | ||
|
||
} // namespace mixxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.