mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
UI VM factories - Shortened names for readibility
Layer properties - Ensure only LayerBrushes can add properties and make sure that method instantiates a keyframe engine Layer properties UI - Respond to properties being added/removed
This commit is contained in:
1 parent
b3e1ba6d1c
commit
f4c1c9de3d
29 files changed
+417
-303
No files matched your search
+12
-12
@@ -13,62 +13,62 @@ using Artemis.UI.Screens.Settings.Tabs.Devices;
|
||||
|
||||
namespace Artemis.UI.Ninject.Factories
|
||||
{
|
||||
public interface IViewModelFactory
|
||||
public interface IVmFactory
|
||||
{
|
||||
}
|
||||
|
||||
public interface IModuleViewModelFactory : IViewModelFactory
|
||||
public interface IModuleVmFactory : IVmFactory
|
||||
{
|
||||
ModuleRootViewModel Create(Module module);
|
||||
}
|
||||
|
||||
public interface IDeviceSettingsViewModelFactory : IViewModelFactory
|
||||
public interface IDeviceSettingsVmFactory : IVmFactory
|
||||
{
|
||||
DeviceSettingsViewModel Create(ArtemisDevice device);
|
||||
}
|
||||
|
||||
public interface IProfileEditorViewModelFactory : IViewModelFactory
|
||||
public interface IProfileEditorVmFactory : IVmFactory
|
||||
{
|
||||
ProfileEditorViewModel Create(ProfileModule module);
|
||||
}
|
||||
|
||||
public interface IFolderViewModelFactory : IViewModelFactory
|
||||
public interface IFolderVmFactory : IVmFactory
|
||||
{
|
||||
FolderViewModel Create(ProfileElement folder);
|
||||
FolderViewModel Create(TreeItemViewModel parent, ProfileElement folder);
|
||||
}
|
||||
|
||||
public interface ILayerViewModelFactory : IViewModelFactory
|
||||
public interface ILayerVmFactory : IVmFactory
|
||||
{
|
||||
LayerViewModel Create(TreeItemViewModel parent, ProfileElement folder);
|
||||
}
|
||||
|
||||
public interface IProfileLayerViewModelFactory : IViewModelFactory
|
||||
public interface IProfileLayerVmFactory : IVmFactory
|
||||
{
|
||||
ProfileLayerViewModel Create(Layer layer);
|
||||
}
|
||||
|
||||
public interface ILayerPropertyViewModelFactory : IViewModelFactory
|
||||
public interface ILayerPropertyVmFactory : IVmFactory
|
||||
{
|
||||
LayerPropertyViewModel Create(BaseLayerProperty layerProperty, LayerPropertyViewModel parent);
|
||||
}
|
||||
|
||||
public interface IPropertyTreeViewModelFactory : IViewModelFactory
|
||||
public interface IPropertyTreeVmFactory : IVmFactory
|
||||
{
|
||||
PropertyTreeViewModel Create(LayerPropertiesViewModel layerPropertiesViewModel);
|
||||
}
|
||||
|
||||
public interface IPropertyTimelineViewModelFactory : IViewModelFactory
|
||||
public interface IPropertyTimelineVmFactory : IVmFactory
|
||||
{
|
||||
PropertyTimelineViewModel Create(LayerPropertiesViewModel layerPropertiesViewModel);
|
||||
}
|
||||
|
||||
public interface IPropertyTrackViewModelFactory : IViewModelFactory
|
||||
public interface IPropertyTrackVmFactory : IVmFactory
|
||||
{
|
||||
PropertyTrackViewModel Create(PropertyTimelineViewModel propertyTimelineViewModel, LayerPropertyViewModel layerPropertyViewModel);
|
||||
}
|
||||
|
||||
public interface IPropertyTrackKeyframeViewModelFactory : IViewModelFactory
|
||||
public interface IPropertyTrackKeyframeVmFactory : IVmFactory
|
||||
{
|
||||
PropertyTrackKeyframeViewModel Create(PropertyTrackViewModel propertyTrackViewModel, BaseKeyframe keyframe);
|
||||
}
|
||||
@@ -45,7 +45,7 @@ namespace Artemis.UI.Ninject
|
||||
{
|
||||
x.FromThisAssembly()
|
||||
.SelectAllInterfaces()
|
||||
.InheritedFrom<IViewModelFactory>()
|
||||
.InheritedFrom<IVmFactory>()
|
||||
.BindToFactory();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user