llm-chat 0.0.0
LLM-Chat
Loading...
Searching...
No Matches
llm_chat::Settings Class Reference

The Settings class is a wrapper around QSettings that provides a more convenient interface for accessing and modifying application settings. More...

#include <settings.h>

Inheritance diagram for llm_chat::Settings:
[legend]
Collaboration diagram for llm_chat::Settings:
[legend]

Signals

void languageChanged ()
 Emitted when the language is changed.
 
void windowOpacityChanged ()
 Emitted when the window opacity is changed.
 
void fpsVisibleChanged ()
 Emitted when the FPS visibility is changed.
 
void quitShortcutChanged ()
 Emitted when the quit shortcut is changed.
 
void optionsShortcutChanged ()
 Emitted when the options shortcut is changed.
 
void fullScreenShortcutChanged ()
 Emitted when the full screen shortcut is changed.
 

Public Member Functions

 Settings (QObject *parent=nullptr)
 
QString defaultLanguage () const
 Returns the default language for the application.
 
QString language () const
 Returns the current language for the application.
 
void setLanguage (const QString &language)
 Sets the current language for the application.
 
qreal defaultWindowOpacity () const
 Returns the default window opacity for the application.
 
qreal windowOpacity () const
 Returns the current window opacity for the application.
 
void setWindowOpacity (const qreal opacity)
 Sets the current window opacity for the application.
 
bool defaultFpsVisible () const
 Returns the default FPS visibility for the application.
 
bool isFpsVisible () const
 Returns the current FPS visibility for the application.
 
void setFpsVisible (const bool fps_visible)
 Sets the current FPS visibility for the application.
 
Q_INVOKABLE void resetShortcutsToDefaults ()
 Resets all shortcuts to their default values.
 
QString defaultQuitShortcut () const
 Returns the default quit shortcut for the application.
 
QString quitShortcut () const
 Returns the current quit shortcut for the application.
 
void setQuitShortcut (const QString &shortcut)
 Sets the current quit shortcut for the application.
 
QString defaultOptionsShortcut () const
 Returns the default options shortcut for the application.
 
QString optionsShortcut () const
 Returns the current options shortcut for the application.
 
void setOptionsShortcut (const QString &shortcut)
 Sets the current options shortcut for the application.
 
QString defaultFullScreenShortcut () const
 Returns the default full screen shortcut for the application.
 
QString fullScreenShortcut () const
 Returns the current full screen shortcut for the application.
 
void setFullScreenShortcut (const QString &shortcut)
 Sets the current full screen shortcut for the application.
 

Properties

QString language
 
qreal windowOpacity
 
bool fpsVisible
 
QString quitShortcut
 
QString optionsShortcut
 
QString fullScreenShortcut
 

Detailed Description

The Settings class is a wrapper around QSettings that provides a more convenient interface for accessing and modifying application settings.

Constructor & Destructor Documentation

◆ Settings()

llm_chat::Settings::Settings ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ defaultFpsVisible()

bool llm_chat::Settings::defaultFpsVisible ( ) const
nodiscard

Returns the default FPS visibility for the application.

Returns
The default FPS visibility.
Here is the caller graph for this function:

◆ defaultFullScreenShortcut()

QString llm_chat::Settings::defaultFullScreenShortcut ( ) const
nodiscard

Returns the default full screen shortcut for the application.

Returns
The default full screen shortcut.
Here is the caller graph for this function:

◆ defaultLanguage()

QString llm_chat::Settings::defaultLanguage ( ) const
nodiscard

Returns the default language for the application.

Returns
The default language.
Here is the caller graph for this function:

◆ defaultOptionsShortcut()

QString llm_chat::Settings::defaultOptionsShortcut ( ) const
nodiscard

Returns the default options shortcut for the application.

Returns
The default options shortcut.
Here is the caller graph for this function:

◆ defaultQuitShortcut()

QString llm_chat::Settings::defaultQuitShortcut ( ) const
nodiscard

Returns the default quit shortcut for the application.

Returns
The default quit shortcut.
Here is the caller graph for this function:

◆ defaultWindowOpacity()

qreal llm_chat::Settings::defaultWindowOpacity ( ) const
nodiscard

Returns the default window opacity for the application.

Returns
The default window opacity.
Here is the caller graph for this function:

◆ fpsVisibleChanged

void llm_chat::Settings::fpsVisibleChanged ( )
signal

Emitted when the FPS visibility is changed.

Here is the caller graph for this function:

◆ fullScreenShortcut()

QString llm_chat::Settings::fullScreenShortcut ( ) const
nodiscard

Returns the current full screen shortcut for the application.

Returns
The current full screen shortcut.
Here is the call graph for this function:

◆ fullScreenShortcutChanged

void llm_chat::Settings::fullScreenShortcutChanged ( )
signal

Emitted when the full screen shortcut is changed.

Here is the caller graph for this function:

◆ isFpsVisible()

bool llm_chat::Settings::isFpsVisible ( ) const
nodiscard

Returns the current FPS visibility for the application.

Returns
The current FPS visibility.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ language()

QString llm_chat::Settings::language ( ) const
nodiscard

Returns the current language for the application.

Returns
The current language.
Here is the call graph for this function:

◆ languageChanged

void llm_chat::Settings::languageChanged ( )
signal

Emitted when the language is changed.

Here is the caller graph for this function:

◆ optionsShortcut()

QString llm_chat::Settings::optionsShortcut ( ) const
nodiscard

Returns the current options shortcut for the application.

Returns
The current options shortcut.
Here is the call graph for this function:

◆ optionsShortcutChanged

void llm_chat::Settings::optionsShortcutChanged ( )
signal

Emitted when the options shortcut is changed.

Here is the caller graph for this function:

◆ quitShortcut()

QString llm_chat::Settings::quitShortcut ( ) const
nodiscard

Returns the current quit shortcut for the application.

Returns
The current quit shortcut.
Here is the call graph for this function:

◆ quitShortcutChanged

void llm_chat::Settings::quitShortcutChanged ( )
signal

Emitted when the quit shortcut is changed.

Here is the caller graph for this function:

◆ resetShortcutsToDefaults()

void llm_chat::Settings::resetShortcutsToDefaults ( )

Resets all shortcuts to their default values.

Here is the caller graph for this function:

◆ setFpsVisible()

void llm_chat::Settings::setFpsVisible ( const bool fps_visible)

Sets the current FPS visibility for the application.

Parameters
fps_visibleThe new FPS visibility.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFullScreenShortcut()

void llm_chat::Settings::setFullScreenShortcut ( const QString & shortcut)

Sets the current full screen shortcut for the application.

Parameters
shortcutThe new full screen shortcut.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLanguage()

void llm_chat::Settings::setLanguage ( const QString & language)

Sets the current language for the application.

Parameters
languageThe new language.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOptionsShortcut()

void llm_chat::Settings::setOptionsShortcut ( const QString & shortcut)

Sets the current options shortcut for the application.

Parameters
shortcutThe new options shortcut.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setQuitShortcut()

void llm_chat::Settings::setQuitShortcut ( const QString & shortcut)

Sets the current quit shortcut for the application.

Parameters
shortcutThe new quit shortcut.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWindowOpacity()

void llm_chat::Settings::setWindowOpacity ( const qreal opacity)

Sets the current window opacity for the application.

Parameters
opacityThe new window opacity.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ windowOpacity()

qreal llm_chat::Settings::windowOpacity ( ) const
nodiscard

Returns the current window opacity for the application.

Returns
The current window opacity.
Here is the call graph for this function:

◆ windowOpacityChanged

void llm_chat::Settings::windowOpacityChanged ( )
signal

Emitted when the window opacity is changed.

Here is the caller graph for this function:

Property Documentation

◆ fpsVisible

bool llm_chat::Settings::fpsVisible
readwrite

◆ fullScreenShortcut

QString llm_chat::Settings::fullScreenShortcut
read

◆ language

QString llm_chat::Settings::language
readwrite

◆ optionsShortcut

QString llm_chat::Settings::optionsShortcut
read

◆ quitShortcut

QString llm_chat::Settings::quitShortcut
readwrite

◆ windowOpacity

qreal llm_chat::Settings::windowOpacity
readwrite

The documentation for this class was generated from the following files: