Commit Graph

8 Commits

Author SHA1 Message Date
adroslice
5633cd2afe Added Remove-Operation
- TODO: Find a way to re-use Replace-Operation-UI by omitting the replacement-option
2019-11-17 16:27:40 +01:00
adroslice
c519147302 Added Replace-Operation, structuring and reworked event bindings
- Added Replace-Operation + UI
- Added OperationMode to make it easier to give operations different modes
- Replaced all specific-control-event-handlers with one general PropertyChanged-event-handler for each preview and filter
- TODO: Add Remove-Operation as a subclass of Replace
2019-11-17 16:22:19 +01:00
adroslice
e0fe30b380 Added commit and undo + Bugfix
- Bugfix: The Name-filter was based on Name and FullName, instead of how it is now, OldName and OldFullName. This would previously cause the filter to apply to the already previewed changes.
2019-11-17 02:41:05 +01:00
adroslice
5d8327f071 Fully implemented Operations UI with one example
- You can now add, remove, modify and move operations
- FilterChangedAny was renamed to FilterChanged, the new event for the preview follows the same naming scheme with PreviewChanged
- Operations now actually verify that they're enabled (This was originally supposed to be done in the loop in Preview(), but this way seems nicer since it also removes the error label when the operation is disabled)
- The foundation has been laid to make it very easy to add more operations
2019-11-17 02:22:13 +01:00
adroslice
0eb940012d Implemented preview TODO, modified exception handling
- Better handles unexpected exceptions
- Expected exceptions should be OperationException
- Leaves files unchanged even if the exception occurs at *any* point of the operation
- TODO: Probably have to optimize this.
- Operations now operate on IList<T> instead of List<T> to maintain compatibility with AvaloniaList<T>
- Slightly better comments
2019-11-16 02:47:07 +01:00
adroslice
e671fd4185 Implemented filtering
- Also an additional extension method for later
2019-11-14 20:42:25 +01:00
adroslice
0bc82dc6b5 Structuring, added file lists
- You can now open a directory
- The current filenames and previews are now displayed in the listboxes
- Added method pipeline for updating the lists (OpenDirectory -> Filter -> Preview)
2019-11-14 19:08:21 +01:00
adroslice
d8263ec22c Basic Styling + Add MainWindowUIProperties.cs
- Layout with consistent spacing
- Visual grouping using borders
- New file for properties to be bound from MainWindow.xaml
2019-11-13 23:01:08 +01:00