2015-04-22 19:33:53 +02:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
|
|
|
#include <c++utilities/conversion/types.h>
|
|
|
|
|
|
|
|
#include <tagparser/tagvalue.h>
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
2015-11-21 01:13:45 +01:00
|
|
|
QT_FORWARD_DECLARE_CLASS(QByteArray)
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QString)
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
namespace Media {
|
|
|
|
enum class TagUsage;
|
2015-11-25 22:09:57 +01:00
|
|
|
enum class ElementPosition;
|
2015-04-22 19:33:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace Settings {
|
|
|
|
|
|
|
|
// general
|
|
|
|
enum class ActionEnabled
|
|
|
|
{
|
|
|
|
Ask,
|
|
|
|
Yes,
|
|
|
|
No
|
|
|
|
};
|
|
|
|
|
|
|
|
// editor
|
|
|
|
enum class AdoptFields
|
|
|
|
{
|
|
|
|
Never,
|
|
|
|
WithinDirectory,
|
|
|
|
Always
|
|
|
|
};
|
|
|
|
AdoptFields &adoptFields();
|
|
|
|
bool &saveAndShowNextOnEnter();
|
|
|
|
bool &askBeforeDeleting();
|
|
|
|
enum class MultipleTagHandling
|
|
|
|
{
|
|
|
|
SingleEditorPerTarget,
|
|
|
|
SeparateEditors
|
|
|
|
};
|
|
|
|
MultipleTagHandling &multipleTagHandling();
|
|
|
|
bool &hideTagSelectionComboBox();
|
|
|
|
bool &forceFullParse();
|
2016-04-21 23:55:22 +02:00
|
|
|
#ifndef TAGEDITOR_NO_WEBVIEW
|
|
|
|
bool &noWebView();
|
|
|
|
#endif
|
2016-05-16 21:01:01 +02:00
|
|
|
bool &hideCoverButtons();
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
// file browser
|
|
|
|
bool &hideBackupFiles();
|
|
|
|
bool &fileBrowserReadOnly();
|
|
|
|
|
|
|
|
// general tag processing
|
|
|
|
Media::TagTextEncoding &preferredEncoding();
|
|
|
|
enum class UnsupportedFieldHandling
|
|
|
|
{
|
|
|
|
Ignore,
|
|
|
|
Discard
|
|
|
|
};
|
|
|
|
UnsupportedFieldHandling &unsupportedFieldHandling();
|
|
|
|
bool &autoTagManagement();
|
|
|
|
|
|
|
|
// ID3 tag processing
|
|
|
|
Media::TagUsage &id3v1usage();
|
|
|
|
Media::TagUsage &id3v2usage();
|
2016-08-05 01:48:36 +02:00
|
|
|
byte &id3v2versionToBeUsed();
|
2015-04-22 19:33:53 +02:00
|
|
|
bool &keepVersionOfExistingId3v2Tag();
|
|
|
|
bool &mergeMultipleSuccessiveId3v2Tags();
|
|
|
|
|
2015-11-21 01:13:45 +01:00
|
|
|
// file layout
|
2015-11-25 22:09:57 +01:00
|
|
|
bool &forceRewrite();
|
|
|
|
Media::ElementPosition &preferredTagPosition();
|
2015-11-21 01:13:45 +01:00
|
|
|
bool &forceTagPosition();
|
2015-11-25 22:09:57 +01:00
|
|
|
Media::ElementPosition &preferredIndexPosition();
|
|
|
|
bool &forceIndexPosition();
|
2015-11-21 01:13:45 +01:00
|
|
|
size_t &minPadding();
|
|
|
|
size_t &maxPadding();
|
|
|
|
size_t &preferredPadding();
|
|
|
|
|
2016-05-26 02:15:41 +02:00
|
|
|
// targets
|
|
|
|
class TargetLevelModel;
|
|
|
|
TargetLevelModel &defaultTargetsModel();
|
|
|
|
|
2015-04-22 19:33:53 +02:00
|
|
|
// fields
|
|
|
|
class KnownFieldModel;
|
|
|
|
KnownFieldModel &selectedFieldsModel();
|
|
|
|
|
|
|
|
// auto correction/completition
|
|
|
|
bool &insertTitleFromFilename();
|
|
|
|
bool &trimWhitespaces();
|
|
|
|
bool &formatNames();
|
|
|
|
bool &fixUmlauts();
|
|
|
|
KnownFieldModel &autoCorrectionFields();
|
|
|
|
|
|
|
|
// main window
|
|
|
|
QByteArray &mainWindowGeometry();
|
|
|
|
QByteArray &mainWindowState();
|
|
|
|
QString &mainWindowCurrentFileBrowserDirectory();
|
|
|
|
|
2016-03-03 22:21:15 +01:00
|
|
|
// db query
|
|
|
|
bool &dbQueryWidgetShown();
|
|
|
|
bool &dbQueryOverride();
|
|
|
|
KnownFieldModel &dbQueryFields();
|
2016-03-05 16:50:23 +01:00
|
|
|
QString &musicBrainzUrl();
|
2016-03-06 17:52:33 +01:00
|
|
|
QString &coverArtArchiveUrl();
|
2016-03-03 22:21:15 +01:00
|
|
|
|
2016-01-09 03:38:58 +01:00
|
|
|
// rename files dialog
|
|
|
|
int &scriptSource();
|
|
|
|
QString &externalScript();
|
2016-05-06 22:48:11 +02:00
|
|
|
QString &editorScript();
|
2016-01-09 03:38:58 +01:00
|
|
|
|
2015-04-22 19:33:53 +02:00
|
|
|
void restore();
|
|
|
|
void save();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SETTINGS_H
|