-
-
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 #12798 from Swiftb0y/refactor/preferences-enums
Refactor/preferences enums
- Loading branch information
Showing
11 changed files
with
128 additions
and
83 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,4 @@ | ||
// just a stub so the MOC file can be included somewhere | ||
#include "constants.h" | ||
|
||
#include "moc_constants.cpp" |
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 |
---|---|---|
@@ -1,20 +1,44 @@ | ||
#pragma once | ||
|
||
// required for Qt-Macros | ||
#include <qobjectdefs.h> | ||
|
||
namespace mixxx { | ||
|
||
namespace preferences { | ||
|
||
inline namespace constants { | ||
Q_NAMESPACE | ||
|
||
// In order for this Q_NAMESPACE to work, all members of the namespace must | ||
// be declared here. see QTBUG-68611 | ||
|
||
// Don't change these constants since they are stored in user configuration | ||
// files. | ||
enum class TooltipsPreference { | ||
TOOLTIPS_OFF = 0, | ||
TOOLTIPS_ON = 1, | ||
TOOLTIPS_ONLY_IN_LIBRARY = 2, | ||
enum class Tooltips { | ||
Off = 0, | ||
On = 1, | ||
OnlyInLibrary = 2, | ||
}; | ||
Q_ENUM_NS(Tooltips); | ||
|
||
// Settings to enable or disable the prevention to run the screensaver. | ||
enum class ScreenSaverPreference { | ||
PREVENT_OFF = 0, | ||
PREVENT_ON = 1, | ||
PREVENT_ON_PLAY = 2 | ||
enum class ScreenSaver { | ||
Off = 0, | ||
On = 1, | ||
OnPlay = 2 | ||
}; | ||
Q_ENUM_NS(ScreenSaver); | ||
|
||
enum class MultiSamplingMode { | ||
Disabled = 0, | ||
Two = 2, | ||
Four = 4, | ||
Eight = 8, | ||
Sixteen = 16 | ||
}; | ||
Q_ENUM_NS(MultiSamplingMode); | ||
|
||
} // namespace mixxx | ||
} // namespace constants | ||
} // namespace preferences | ||
} // 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.