mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
fa4723ffb4
Sentret_C posted this comment on Transifex recently: "What Dolphin refers to as "Table View" and "List View" are similar to "List View" and "Grid View" in Steam, and I think the Steam names describe them better." I agree with that, so here's a commit that changes the names.
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QVector>
|
|
|
|
#include "Common/NonCopyable.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
enum class Language;
|
|
}
|
|
|
|
class InputConfig;
|
|
|
|
// UI settings to be stored in the config directory.
|
|
class Settings final : public QObject, NonCopyable
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static Settings& Instance();
|
|
|
|
// UI
|
|
void SetThemeName(const QString& theme_name);
|
|
QString GetProfilesDir() const;
|
|
QVector<QString> GetProfiles(const InputConfig* config) const;
|
|
QString GetProfileINIPath(const InputConfig* config, const QString& name) const;
|
|
|
|
bool IsInDevelopmentWarningEnabled() const;
|
|
bool IsLogVisible() const;
|
|
void SetLogVisible(bool visible);
|
|
bool IsLogConfigVisible() const;
|
|
void SetLogConfigVisible(bool visible);
|
|
|
|
// GameList
|
|
QStringList GetPaths() const;
|
|
void AddPath(const QString& path);
|
|
void RemovePath(const QString& path);
|
|
bool GetPreferredView() const;
|
|
void SetPreferredView(bool list);
|
|
|
|
// Emulation
|
|
int GetStateSlot() const;
|
|
void SetStateSlot(int);
|
|
|
|
// Graphics
|
|
void SetHideCursor(bool hide_cursor);
|
|
bool GetHideCursor() const;
|
|
|
|
// Audio
|
|
int GetVolume() const;
|
|
void SetVolume(int volume);
|
|
void IncreaseVolume(int volume);
|
|
void DecreaseVolume(int volume);
|
|
|
|
signals:
|
|
void ThemeChanged();
|
|
void PathAdded(const QString&);
|
|
void PathRemoved(const QString&);
|
|
void HideCursorChanged();
|
|
void VolumeChanged(int volume);
|
|
void NANDRefresh();
|
|
void LogVisibilityChanged(bool visible);
|
|
void LogConfigVisibilityChanged(bool visible);
|
|
|
|
private:
|
|
Settings();
|
|
};
|