feat: Complete the basic GUI layout.

This commit is contained in:
real-zony
2024-06-28 12:33:14 +08:00
parent 14812bceb7
commit 5ccd8a7c53
19 changed files with 689 additions and 19 deletions

View File

@@ -0,0 +1,85 @@
using ZonyLrcTools.Common.Configuration;
namespace ZonyLrcTools.Desktop.ViewModels.Settings;
public class GlobalConfigurationViewModel : ViewModelBase
{
private readonly GlobalLyricsConfigOptions _config;
public GlobalConfigurationViewModel(GlobalLyricsConfigOptions config)
{
_config = config;
}
public bool IsOneLine
{
get => _config.IsOneLine;
set
{
if (_config.IsOneLine != value)
{
_config.IsOneLine = value;
}
}
}
public string LineBreak
{
get => _config.LineBreak;
set
{
if (_config.LineBreak != value)
{
_config.LineBreak = value;
}
}
}
public bool IsEnableTranslation
{
get => _config.IsEnableTranslation;
set
{
if (_config.IsEnableTranslation != value)
{
_config.IsEnableTranslation = value;
}
}
}
public bool IsSkipExistLyricFiles
{
get => _config.IsSkipExistLyricFiles;
set
{
if (_config.IsSkipExistLyricFiles != value)
{
_config.IsSkipExistLyricFiles = value;
}
}
}
public string FileEncoding
{
get => _config.FileEncoding;
set
{
if (_config.FileEncoding != value)
{
_config.FileEncoding = value;
}
}
}
public bool IsOnlyOutputTranslation
{
get => _config.IsOnlyOutputTranslation;
set
{
if (_config.IsOnlyOutputTranslation != value)
{
_config.IsOnlyOutputTranslation = value;
}
}
}
}