![]() |
Miam-Player
0.8.0
A nice music player
|
Settings class contains all relevant pairs of (keys, values) used by Miam-Player. More...
#include <settings.h>
Public Types | |
enum | RequestSqlModel { RSM_Hierarchical = 1, RSM_Flat = 2 } |
enum | ViewProperty { VP_MediaControls = 0, VP_SearchArea = 1, VP_OwnWindow = 2, VP_PlaylistFeature = 3, VP_FileExplorerFeature = 4, VP_VolumeIndicatorToggled = 5, VP_HasAreaForRescan = 6, VP_HasTracksToDisplay = 7, VP_HideMenuBar = 8, VP_LibraryCoverSize = 9, VP_LibraryHasCovers = 10, VP_LibraryHasCoverBelowTracks = 11, VP_LibraryCoverBelowTracksOpacity = 12, VP_LibraryHasStarsNextToTrack = 13, VP_LibraryHasStarsForUnrated = 14, VP_CanSendTracksToEditor = 15 } |
Public Slots | |
void | setButtonsSize (int s) |
void | setThemeName (const QString &theme) |
void | setVolume (qreal v) |
void | setVolumeBarTextAlwaysVisible (bool b) |
Signals | |
void | mediaButtonVisibilityChanged (const QString &buttonName, bool value) |
void | themeHasChanged (const QString &theme) |
void | viewPropertyChanged (ViewProperty vp, const QVariant &value) |
Public Member Functions | |
int | buttonsSize () const |
qreal | coverBelowTracksOpacity () const |
int | coverSizeLibraryTree () const |
int | coverSizeUniqueLibrary () const |
bool | isCoverBelowTracksEnabled () const |
bool | isMediaButtonVisible (const QString &buttonName) const |
bool | isShowNeverScored () const |
bool | isVolumeBarTextAlwaysVisible () const |
bool | libraryHasStars () const |
void | setCoverBelowTracksEnabled (bool b) |
void | setCoverBelowTracksOpacity (int v) |
void | setCovers (bool b) |
void | setCoverSizeLibraryTree (int s) |
void | setCoverSizeUniqueLibrary (int s) |
void | setMediaButtonVisible (const QString &buttonName, const bool &value) |
void | setShowNeverScored (bool b) |
void | setStarsInLibrary (const bool &value) |
QMap< QString, QVariant > | shortcuts () const |
RequestSqlModel | sqlModel () const |
QString | theme () const |
qreal | volume () const |
Static Public Member Functions | |
static Settings * | instance () |
Settings class contains all relevant pairs of (keys, values) used by Miam-Player.
int Settings::buttonsSize | ( | ) | const |
Returns the actual size of media buttons.
Return the actual size of media buttons.
qreal Settings::coverBelowTracksOpacity | ( | ) | const |
int Settings::coverSizeLibraryTree | ( | ) | const |
Returns the size of a cover.
int Settings::coverSizeUniqueLibrary | ( | ) | const |
|
static |
bool Settings::isCoverBelowTracksEnabled | ( | ) | const |
Returns true if big and faded covers are displayed in the library when an album is expanded.
bool Settings::isMediaButtonVisible | ( | const QString & | buttonName | ) | const |
Returns true if the button in parameter is visible or not.
bool Settings::isShowNeverScored | ( | ) | const |
Returns true if star outline must be displayed in the library.
bool Settings::isVolumeBarTextAlwaysVisible | ( | ) | const |
Returns true if the volume value in percent is always visible in the upper left corner of the widget.
bool Settings::libraryHasStars | ( | ) | const |
Returns true if stars are visible and active.
|
signal |
|
slot |
Sets a new button size.
void Settings::setCoverBelowTracksEnabled | ( | bool | b | ) |
void Settings::setCoverBelowTracksOpacity | ( | int | v | ) |
void Settings::setCovers | ( | bool | b | ) |
void Settings::setCoverSizeLibraryTree | ( | int | s | ) |
void Settings::setCoverSizeUniqueLibrary | ( | int | s | ) |
void Settings::setMediaButtonVisible | ( | const QString & | buttonName, |
const bool & | value | ||
) |
Sets if the button in parameter is visible or not.
void Settings::setShowNeverScored | ( | bool | b | ) |
void Settings::setStarsInLibrary | ( | const bool & | value | ) |
Sets if stars are visible and active.
|
slot |
Sets a new theme.
|
slot |
Sets volume from the slider.
|
slot |
QMap< QString, QVariant > Settings::shortcuts | ( | ) | const |
Settings::RequestSqlModel Settings::sqlModel | ( | ) | const |
QString Settings::theme | ( | ) | const |
Returns the actual theme name.
|
signal |
|
signal |
qreal Settings::volume | ( | ) | const |
Returns volume from the slider.