public SKSizePropertyInputViewModel(LayerProperty <SKSize> layerProperty, IProfileEditorService profileEditorService,
                                     IModelValidator <SKSizePropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator)
 {
     _widthRegistration  = layerProperty.GetDataBindingRegistration(size => size.Width);
     _heightRegistration = layerProperty.GetDataBindingRegistration(size => size.Height);
 }
Ejemplo n.º 2
0
 public ColorGradientPropertyInputViewModel(LayerProperty <ColorGradient> layerProperty, IProfileEditorService profileEditorService)
     : base(layerProperty, profileEditorService)
 {
 }
Ejemplo n.º 3
0
        public TimelineViewModel(LayerPropertiesViewModel layerPropertiesViewModel, IObservableCollection <LayerPropertyGroupViewModel> layerPropertyGroups, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

            LayerPropertiesViewModel = layerPropertiesViewModel;
            LayerPropertyGroups      = layerPropertyGroups;
            SelectionRectangle       = new RectangleGeometry();
        }
        public ParticlesConfigurationViewModel(ParticleLayerBrush particlesBrush, IDialogService dialogService, IProfileEditorService profileEditorService) : base(particlesBrush)
        {
            _dialogService        = dialogService;
            _profileEditorService = profileEditorService;
            ParticlesBrush        = particlesBrush;
            Properties            = ParticlesBrush.Properties;

            ParticleViewModels = new BindableCollection <ParticleViewModel>();
            LoadConfiguration();
        }
Ejemplo n.º 5
0
 public LayerEditorService(ISettingsService settingsService, IProfileEditorService profileEditorService)
 {
     _settingsService = settingsService;
 }
Ejemplo n.º 6
0
 public SKSizePropertyInputViewModel(IProfileEditorService profileEditorService) : base(profileEditorService)
 {
 }
 public StringPropertyInputViewModel(LayerProperty <string> layerProperty, IProfileEditorService profileEditorService) : base(layerProperty, profileEditorService)
 {
     // This is a fairly dumb input that can only take text and nothing else so it needs no special logic in its VM
 }
Ejemplo n.º 8
0
        public PropertyTreeViewModel(LayerPropertiesViewModel layerPropertiesViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

            LayerPropertiesViewModel   = layerPropertiesViewModel;
            PropertyTreeItemViewModels = new BindableCollection <PropertyTreeItemViewModel>();

            _profileEditorService.CurrentTimeChanged            += (sender, args) => Update(false);
            _profileEditorService.SelectedProfileElementUpdated += (sender, args) => Update(true);
        }
Ejemplo n.º 9
0
        public TreeGroupViewModel(LayerPropertyGroupViewModel layerPropertyGroupViewModel, IProfileEditorService profileEditorService, IDialogService dialogService, IWindowManager windowManager)
        {
            _profileEditorService = profileEditorService;
            _dialogService        = dialogService;
            _windowManager        = windowManager;

            LayerPropertyGroupViewModel = layerPropertyGroupViewModel;
            LayerPropertyGroup          = LayerPropertyGroupViewModel.LayerPropertyGroup;

            DetermineGroupType();
        }
Ejemplo n.º 10
0
 public TimelineKeyframeViewModel(LayerPropertyKeyframe <T> layerPropertyKeyframe, IProfileEditorService profileEditorService)
 {
     _profileEditorService = profileEditorService;
     LayerPropertyKeyframe = layerPropertyKeyframe;
     EasingViewModels      = new BindableCollection <TimelineEasingViewModel>();
 }
Ejemplo n.º 11
0
        public TimelineGroupViewModel(LayerPropertyGroupViewModel layerPropertyGroupViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

            LayerPropertyGroupViewModel = layerPropertyGroupViewModel;
            LayerPropertyGroup          = LayerPropertyGroupViewModel.LayerPropertyGroup;
            KeyframePositions           = new BindableCollection <double>();

            UpdateKeyframePositions();
        }
Ejemplo n.º 12
0
        public PropertyTrackKeyframeViewModel(PropertyTrackViewModel propertyTrackViewModel, BaseKeyframe keyframe, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

            PropertyTrackViewModel = propertyTrackViewModel;
            Keyframe         = keyframe;
            EasingViewModels = new BindableCollection <PropertyTrackEasingViewModel>();
            CreateEasingViewModels();
        }
Ejemplo n.º 13
0
 public GifLayerBrushProvider(IProfileEditorService profileEditorService)
 {
     _profileEditorService = profileEditorService;
 }
Ejemplo n.º 14
0
 public IntPropertyInputViewModel(LayerProperty <int> layerProperty, IProfileEditorService profileEditorService, IModelValidator <IntPropertyInputViewModel> validator)
     : base(layerProperty, profileEditorService, validator)
 {
     _registration = layerProperty.GetDataBindingRegistration(value => value);
 }
 public SKPointPropertyInputViewModel(LayerProperty <SKPoint> layerProperty, IProfileEditorService profileEditorService,
                                      IModelValidator <SKPointPropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator)
 {
     _xRegistration = layerProperty.GetDataBindingRegistration <float>("X");
     _yRegistration = layerProperty.GetDataBindingRegistration <float>("Y");
 }
Ejemplo n.º 16
0
 public ViewpointMoveToolViewModel(ProfileViewModel profileViewModel, IProfileEditorService profileEditorService) : base(profileViewModel, profileEditorService)
 {
     Cursor = Cursors.Hand;
     ProfileViewModel.PanZoomViewModel.LastPanPosition = null;
 }
Ejemplo n.º 17
0
        public TreePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService  = profileEditorService;
            LayerProperty          = layerProperty;
            LayerPropertyViewModel = layerPropertyViewModel;

            PropertyInputViewModel = _profileEditorService.CreatePropertyInputViewModel(LayerProperty);
            _profileEditorService.SelectedDataBindingChanged += ProfileEditorServiceOnSelectedDataBindingChanged;
            LayerProperty.VisibilityChanged   += LayerPropertyOnVisibilityChanged;
            LayerProperty.DataBindingEnabled  += LayerPropertyOnDataBindingChange;
            LayerProperty.DataBindingDisabled += LayerPropertyOnDataBindingChange;
            LayerPropertyViewModel.IsVisible   = !LayerProperty.IsHidden;
        }
 public RgbNetColorBrushProvider(IProfileEditorService profileEditorService)
 {
     _profileEditorService = profileEditorService;
 }