mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Qt: Implement logging settings and signals
This commit is contained in:
parent
5b733b8710
commit
962d684ca2
@ -143,3 +143,31 @@ QVector<QString> Settings::GetProfiles(const InputConfig* config) const
|
||||
|
||||
return vec;
|
||||
}
|
||||
|
||||
bool Settings::IsLogVisible() const
|
||||
{
|
||||
return SConfig::GetInstance().m_InterfaceLogWindow;
|
||||
}
|
||||
|
||||
void Settings::SetLogVisible(bool visible)
|
||||
{
|
||||
if (IsLogVisible() != visible)
|
||||
{
|
||||
SConfig::GetInstance().m_InterfaceLogWindow = visible;
|
||||
emit LogVisibilityChanged(visible);
|
||||
}
|
||||
}
|
||||
|
||||
bool Settings::IsLogConfigVisible() const
|
||||
{
|
||||
return SConfig::GetInstance().m_InterfaceLogConfigWindow;
|
||||
}
|
||||
|
||||
void Settings::SetLogConfigVisible(bool visible)
|
||||
{
|
||||
if (IsLogConfigVisible() != visible)
|
||||
{
|
||||
SConfig::GetInstance().m_InterfaceLogConfigWindow = visible;
|
||||
emit LogConfigVisibilityChanged(visible);
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +30,12 @@ public:
|
||||
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);
|
||||
@ -58,6 +64,8 @@ signals:
|
||||
void HideCursorChanged();
|
||||
void VolumeChanged(int volume);
|
||||
void NANDRefresh();
|
||||
void LogVisibilityChanged(bool visible);
|
||||
void LogConfigVisibilityChanged(bool visible);
|
||||
|
||||
private:
|
||||
Settings();
|
||||
|
Loading…
Reference in New Issue
Block a user