コード例 #1
0
 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);
 }
コード例 #2
0
 public ColorGradientPropertyInputViewModel(LayerProperty <ColorGradient> layerProperty, IProfileEditorService profileEditorService)
     : base(layerProperty, profileEditorService)
 {
 }
コード例 #3
0
        public TimelineViewModel(LayerPropertiesViewModel layerPropertiesViewModel, IObservableCollection <LayerPropertyGroupViewModel> layerPropertyGroups, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

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

            ParticleViewModels = new BindableCollection <ParticleViewModel>();
            LoadConfiguration();
        }
コード例 #5
0
 public LayerEditorService(ISettingsService settingsService, IProfileEditorService profileEditorService)
 {
     _settingsService = settingsService;
 }
コード例 #6
0
 public SKSizePropertyInputViewModel(IProfileEditorService profileEditorService) : base(profileEditorService)
 {
 }
コード例 #7
0
 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
 }
コード例 #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);
        }
コード例 #9
0
        public TreeGroupViewModel(LayerPropertyGroupViewModel layerPropertyGroupViewModel, IProfileEditorService profileEditorService, IDialogService dialogService, IWindowManager windowManager)
        {
            _profileEditorService = profileEditorService;
            _dialogService        = dialogService;
            _windowManager        = windowManager;

            LayerPropertyGroupViewModel = layerPropertyGroupViewModel;
            LayerPropertyGroup          = LayerPropertyGroupViewModel.LayerPropertyGroup;

            DetermineGroupType();
        }
コード例 #10
0
 public TimelineKeyframeViewModel(LayerPropertyKeyframe <T> layerPropertyKeyframe, IProfileEditorService profileEditorService)
 {
     _profileEditorService = profileEditorService;
     LayerPropertyKeyframe = layerPropertyKeyframe;
     EasingViewModels      = new BindableCollection <TimelineEasingViewModel>();
 }
コード例 #11
0
        public TimelineGroupViewModel(LayerPropertyGroupViewModel layerPropertyGroupViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

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

            UpdateKeyframePositions();
        }
コード例 #12
0
        public PropertyTrackKeyframeViewModel(PropertyTrackViewModel propertyTrackViewModel, BaseKeyframe keyframe, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

            PropertyTrackViewModel = propertyTrackViewModel;
            Keyframe         = keyframe;
            EasingViewModels = new BindableCollection <PropertyTrackEasingViewModel>();
            CreateEasingViewModels();
        }
コード例 #13
0
 public GifLayerBrushProvider(IProfileEditorService profileEditorService)
 {
     _profileEditorService = profileEditorService;
 }
コード例 #14
0
 public IntPropertyInputViewModel(LayerProperty <int> layerProperty, IProfileEditorService profileEditorService, IModelValidator <IntPropertyInputViewModel> validator)
     : base(layerProperty, profileEditorService, validator)
 {
     _registration = layerProperty.GetDataBindingRegistration(value => value);
 }
コード例 #15
0
 public SKPointPropertyInputViewModel(LayerProperty <SKPoint> layerProperty, IProfileEditorService profileEditorService,
                                      IModelValidator <SKPointPropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator)
 {
     _xRegistration = layerProperty.GetDataBindingRegistration <float>("X");
     _yRegistration = layerProperty.GetDataBindingRegistration <float>("Y");
 }
コード例 #16
0
 public ViewpointMoveToolViewModel(ProfileViewModel profileViewModel, IProfileEditorService profileEditorService) : base(profileViewModel, profileEditorService)
 {
     Cursor = Cursors.Hand;
     ProfileViewModel.PanZoomViewModel.LastPanPosition = null;
 }
コード例 #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;
        }
コード例 #18
0
 public RgbNetColorBrushProvider(IProfileEditorService profileEditorService)
 {
     _profileEditorService = profileEditorService;
 }