312 lines
6.1 KiB
C#
312 lines
6.1 KiB
C#
|
|
namespace ImageCatalog_2.ViewModels;
|
||
|
|
|
||
|
|
public class VisualSettingsViewModel : ViewModelBase
|
||
|
|
{
|
||
|
|
private string _horizontalText = string.Empty;
|
||
|
|
public string HorizontalText
|
||
|
|
{
|
||
|
|
get => _horizontalText;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_horizontalText = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _verticalText = string.Empty;
|
||
|
|
public string VerticalText
|
||
|
|
{
|
||
|
|
get => _verticalText;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_verticalText = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private bool _overwriteImages;
|
||
|
|
public bool OverwriteImages
|
||
|
|
{
|
||
|
|
get => _overwriteImages;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_overwriteImages = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _thumbnailPrefix = "tn_";
|
||
|
|
public string ThumbnailPrefix
|
||
|
|
{
|
||
|
|
get => _thumbnailPrefix;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_thumbnailPrefix = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _thumbnailHeight = 350;
|
||
|
|
public int ThumbnailHeight
|
||
|
|
{
|
||
|
|
get => _thumbnailHeight;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_thumbnailHeight = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _thumbnailWidth = 350;
|
||
|
|
public int ThumbnailWidth
|
||
|
|
{
|
||
|
|
get => _thumbnailWidth;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_thumbnailWidth = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _photoBigHeight = 2240;
|
||
|
|
public int PhotoBigHeight
|
||
|
|
{
|
||
|
|
get => _photoBigHeight;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_photoBigHeight = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _photoBigWidth = 2240;
|
||
|
|
public int PhotoBigWidth
|
||
|
|
{
|
||
|
|
get => _photoBigWidth;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_photoBigWidth = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _fontSize = 20;
|
||
|
|
public int FontSize
|
||
|
|
{
|
||
|
|
get => _fontSize;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_fontSize = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _fontSizeThumbnail = 50;
|
||
|
|
public int FontSizeThumbnail
|
||
|
|
{
|
||
|
|
get => _fontSizeThumbnail;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_fontSizeThumbnail = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _fontName = "Arial";
|
||
|
|
public string FontName
|
||
|
|
{
|
||
|
|
get => _fontName;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_fontName = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private bool _fontBold;
|
||
|
|
public bool FontBold
|
||
|
|
{
|
||
|
|
get => _fontBold;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_fontBold = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _textTransparency;
|
||
|
|
public int TextTransparency
|
||
|
|
{
|
||
|
|
get => _textTransparency;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_textTransparency = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _textMargin = 8;
|
||
|
|
public int TextMargin
|
||
|
|
{
|
||
|
|
get => _textMargin;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_textMargin = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _textColorRgb = "Yellow";
|
||
|
|
public string TextColorRGB
|
||
|
|
{
|
||
|
|
get => _textColorRgb;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_textColorRgb = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _transparentColor = "#FFFFFF";
|
||
|
|
public string TransparentColor
|
||
|
|
{
|
||
|
|
get => _transparentColor;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_transparentColor = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private bool _useTransparentColor;
|
||
|
|
public bool UseTransparentColor
|
||
|
|
{
|
||
|
|
get => _useTransparentColor;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_useTransparentColor = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _logoFile = string.Empty;
|
||
|
|
public string LogoFile
|
||
|
|
{
|
||
|
|
get => _logoFile;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_logoFile = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _logoHeight = 430;
|
||
|
|
public int LogoHeight
|
||
|
|
{
|
||
|
|
get => _logoHeight;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_logoHeight = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _logoWidth = 430;
|
||
|
|
public int LogoWidth
|
||
|
|
{
|
||
|
|
get => _logoWidth;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_logoWidth = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _logoMargin = 290;
|
||
|
|
public int LogoMargin
|
||
|
|
{
|
||
|
|
get => _logoMargin;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_logoMargin = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _logoTransparency = 100;
|
||
|
|
public int LogoTransparency
|
||
|
|
{
|
||
|
|
get => _logoTransparency;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_logoTransparency = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _verticalTextSize = 20;
|
||
|
|
public int VerticalTextSize
|
||
|
|
{
|
||
|
|
get => _verticalTextSize;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_verticalTextSize = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _verticalTextMargin = 6;
|
||
|
|
public int VerticalTextMargin
|
||
|
|
{
|
||
|
|
get => _verticalTextMargin;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_verticalTextMargin = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _jpegQuality = 85;
|
||
|
|
public int JpegQuality
|
||
|
|
{
|
||
|
|
get => _jpegQuality;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_jpegQuality = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _jpegQualityThumbnail = 30;
|
||
|
|
public int JpegQualityThumbnail
|
||
|
|
{
|
||
|
|
get => _jpegQualityThumbnail;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_jpegQualityThumbnail = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private bool _addLogo;
|
||
|
|
public bool AddLogo
|
||
|
|
{
|
||
|
|
get => _addLogo;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_addLogo = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private bool _keepOriginalDimensions;
|
||
|
|
public bool KeepOriginalDimensions
|
||
|
|
{
|
||
|
|
get => _keepOriginalDimensions;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_keepOriginalDimensions = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|