Commit graph

51 commits

Author SHA1 Message Date
John Lewin
897804f44b Add stream based implementation for Calibration items 2018-03-20 19:44:00 -07:00
John Lewin
0657611a73 Add sorting fields
- Issue MatterHackers/MCCentral#2865
Add sorting fields to ILibraryItem as promised by sort menu
2018-02-27 17:38:47 -08:00
John Lewin
78341ef3e2 Use specialized type for missing files in Queue
- Prevent DragDrop with filter for MissingFileItem
- Allow MissingFileItem in ListView in addition to IsContentFileType
2018-02-15 14:27:01 -08:00
John Lewin
f8d9070c61 Rename GetContentStream() -> GetStream() 2018-02-12 19:26:38 -08:00
John Lewin
f440981e51 Rename ILibraryContentStream -> ILibraryAssetStream 2018-02-12 19:26:38 -08:00
John Lewin
995d5c18bf Add common base interface and necessary implementations 2018-02-12 19:26:38 -08:00
John Lewin
68f7c2fa12 Collapse ILibraryReadOnlyStream into ILibraryContentStream 2018-02-12 19:26:36 -08:00
John Lewin
1337837c33 Use lower interface definition used by subtree editing context
- Issue MatterHackers/MCCentral#2815
Investigate SaveAsToQueue failure
2018-02-10 00:23:48 -08:00
John Lewin
3091128c1a Add zip support to SqliteContainer
- Issue MatterHackers/MCCentral#2814
Investigate LocalLibraryAddButtonAddZipToLibrary failure
2018-02-10 00:12:48 -08:00
John Lewin
92ebda5e90 Add support for saving created content to library containers
- Issue MatterHackers/MCCentral#2767
LibraryContainer -> Save fails in SqliteContainer
- Issue MatterHackers/MCCentral#2743
Part -> Edit -> Save fails to save back to original
2018-02-07 18:46:31 -08:00
John Lewin
3e30a488d4 Mark container as non-protected content
- Issue MatterHackers/MCCentral#2782
Unable to drag-drop files from file system to "Local Library"
2018-02-06 21:28:47 -08:00
John Lewin
ad0a42a929 Save valid streams to library as content rather than convert to AMF
- Adds support for non-mesh content
- Resolves invalid conversion from MCX to AMF
- Leaves content unmodified
- Issue MatterHackers/MCCentral#2781
Automation tests fail due to thrown exception
2018-02-06 21:27:43 -08:00
Lars Brubaker
31a3156510 Removing the requirement of flattening the scene 2018-02-05 17:37:42 -08:00
John Lewin
2f87329ee5 Restore default constructor for failing automation tests
- Issue MatterHackers/MCCentral#2754
Disabled default constructor on SqliteLibraryContainer breaks tests
2018-02-01 14:14:15 -08:00
John Lewin
41da8c676b Remove unused constructor, consolidate Initialize into constructor 2018-02-01 09:03:56 -08:00
John Lewin
085be24c2d Restore automatic Load in OnContentChanged, rename to ReloadContent
- Add new OnContentChanged so derived types can fire ContentChanged
- Issue MatterHackers/MCCentral#2748
Investigate ~30 failing tests due to OnContentChanged revision
2018-02-01 09:01:57 -08:00
Lars Brubaker
cefd99b361 Making STL and MeshFileIo take a cancelation token 2018-01-31 09:54:22 -08:00
John Lewin
1da9d0dfb5 Consolidate file extension definitions
- Issue MatterHackers/MCCentral#2527
Too many authorities on valid files types
2018-01-23 18:20:49 -08:00
John Lewin
5fb13d07f3 Constrain library Save/Move operations to writable containers 2017-12-21 14:24:09 -08:00
John Lewin
4d6ed9f913 Add support for switching to plating history items 2017-11-29 14:16:21 -08:00
John Lewin
6df0dba376 Perform FileSystemFileItem edits and update thumbnails
- Move common FileSystemFileItem edit into base WritableContainer
- Issue MatterHackers/MCCentral#2251
Thumbnails not updated after edits
2017-11-14 17:02:25 -08:00
John Lewin
79274a1419 Add PlatingHistory container
- Issue MatterHackers/MCCentral#2246
Investigate using a library container for plating history
2017-11-14 14:16:50 -08:00
John Lewin
f38cd7fc41 Add ShowMessageBox overload without callback requirement 2017-10-18 19:54:06 -07:00
John Lewin
c674bc329c Revise LibraryContainer Load events 2017-10-09 13:20:56 -07:00
John Lewin
593863c508 Remove Task.Run calls, move Load processing back onto callers thread 2017-10-09 10:48:32 -07:00
John Lewin
37b539f89d Whitespace 2017-10-08 19:36:23 -07:00
John Lewin
ebdbd5b53d Rename HistoryContainer -> PrintHistoryContainer 2017-10-08 10:04:18 -07:00
John Lewin
153162ac5e Extract embedded type to new file 2017-10-08 10:01:30 -07:00
John Lewin
06aa27d426 Rename HistoryRowItem -> PrintHistoryItem 2017-10-08 10:01:08 -07:00
John Lewin
882a389495 Fix listview selection duplication bug
- Issue MatterHackers/MCCentral#2022
Investigate AddToQueueFromLibraryButtonAddsItemsToQueue regression
2017-10-01 23:17:51 -07:00
John Lewin
040d3dc934 Prevent acquisition of content streams for remote only data 2017-09-28 17:36:42 -07:00
John Lewin
7c56aeb483 Implement 'Create Folder' in all containers, loop over all items
- Rename NewFolderItem -> CreateFolderItem
- Disable FileSystemContainer -> Remove delete behavior
- FileSystemContainer -> Remove now *only* opens shell window
2017-09-28 11:22:45 -07:00
John Lewin
d258b60bb1 Extract embedded types to new file 2017-09-17 13:31:32 -07:00
John Lewin
3a9833697d Platform providers
- New Provider model
- Remove WindowsFileDialogs project
- Remove PlatformAbstract assembly, use AggContext
- Rename OsInformation to OperatingSystem
2017-08-22 13:42:34 -07:00
John Lewin
cc96dc65e5 Specify type rather than instance for default container view widget
- Construct and switch to container requested view if not active
2017-08-08 11:35:25 -07:00
John Lewin
ad9a445587 Add support for ListView filtering & property for container IsReadOnly
- Filter SaveAs dialog to writable containers only
2017-07-31 22:16:15 -07:00
John Lewin
4ff6c5cbb8 Convert from ReportProgressRatio to Action<T> 2017-07-18 20:51:44 -07:00
John Lewin
4eb8ebe254 Revise ReportProgressRatio implementation 2017-07-14 13:55:02 -07:00
John Lewin
3ba370e349 Don't force extension to upper case
- Issue MatterHackers/MCCentral#1722
2017-07-12 14:53:10 -07:00
Lars Brubaker
1a9ebebaed Changed ReportPregress delegate to have touple and use CancellationTokenSource 2017-06-30 16:09:31 -07:00
John Lewin
11e3ca8a6e Revise RemoveButtonRemovesMultipleItems test
- Fix product bug with PrintQueueContainer failing to reload
- Add test helper to select ListView items
- Reuse test helper
- Iterate on .OfType instead of cast and eval
2017-06-06 18:42:44 -07:00
John Lewin
11668e305b Revise DragTo3DViewAddsItem test
- Fix naming bug introduced in earlier updates
  - Friendly name should only be applied to default file names
  - Friendly name should not include extension
2017-06-05 23:34:33 -07:00
John Lewin
9389281ba8 Revise LibraryQueueViewRefreshesOnAddItem test
- Fix naming issue with SaveAs->LocalLibrary
2017-06-05 22:51:28 -07:00
John Lewin
add70a2f90 Revise AddToQueueFromLibraryButtonAddsItemToQueue test
- Restore Add To Queue functionality
- Expose reusable AddAllItems() to PrintQueueCollection
- Revise base implementation of FileSystemItem to support default
  name based on filename unless set
2017-06-03 16:18:09 -07:00
John Lewin
4635831e9c Revise RemoveButtonClickedRemovesMultipleItems test 2017-06-03 15:45:26 -07:00
John Lewin
dd9e2d30b5 Revise RenameButtonRenamesLocalLibraryFolder test
- Restore support for LocalLibrary -> Create Folder
- Share Selection logic between Row/Icon views
- Make folders selectable
- Improve naming of DirectoryContainerLink
2017-06-03 15:11:12 -07:00
John Lewin
ce6a3834fc Fix LibrarySelection -> Rename
- RenameButtonRenameLocalLibraryItem test passing
- Get LibrarySelection->Remove action to compile after refactoring
- Make LibraryRenameSelectedItem an extension method and update callers
2017-06-03 13:31:07 -07:00
John Lewin
fc84f30333 Expand zips on add to Sqlite, fix test
- LocalLibraryAddButtonAddZipToLibrary test passing
2017-06-03 09:46:02 -07:00
John Lewin
d54f651b42 Restore classic SqliteLibrary item naming behavior, get test passing
- LocalLibraryAddButtonAddSingleItemToLibrary passing
2017-06-03 09:03:02 -07:00
John Lewin
bbbcb62123 Fix AddMultipleItemsToQueue test
- Use new library widget name format
- Fix blocking issues in PrintQueueContainer
  - Perform actual container reload via .ReloadContainer
  - Allow ReloadContainer to execute on the current thread
  - Wrap original invocation of ReloadContainer in ctor with Task.Run()
- Issue MatterHackers/MCCentral#1504
2017-05-21 16:55:33 -07:00