Commit graph

238 commits

Author SHA1 Message Date
Lars Brubaker
1a9ebebaed Changed ReportPregress delegate to have touple and use CancellationTokenSource 2017-06-30 16:09:31 -07:00
John Lewin
d9b28cdd86 Add 'Print' menu action, implement Print for GCode and SD card GCode
- Fix and rename CloseShouldNotStopSDPrint test
- Fix product bugs regarding selecting and printing GCode
2017-06-21 07:43:40 -07:00
John Lewin
aba13453a7 Add GCode content provider for custom icon, future custom drag behavior 2017-06-21 07:41:12 -07:00
John Lewin
668fbabf8e Restore control names expected by automation tests 2017-06-17 18:51:24 -07:00
John Lewin
07dc5f3333 Evaluate creators in library root 2017-06-17 10:46:01 -07:00
John Lewin
8afc92ae33 Decouple MatterControl components from PrinterConnection
- Move relevant aspects to ApplicationController
2017-06-16 18:04:47 -07:00
John Lewin
d950e76722 Workarounds for DesignTools Android 2017-06-14 19:39:30 -07:00
John Lewin
9aaf0f6311 Rename PrinterConnectionAndCommunication 2017-06-13 17:22:49 -07:00
John Lewin
fd170070cf Reset to original container before search on ClearSearch() 2017-06-11 16:45:34 -07:00
John Lewin
0a3042dd45 Restore Library search functionality
- Reuse new CreateSmallResetButton helper
2017-06-11 16:45:31 -07:00
John Lewin
fda1cbd457 Remove enterEditModeButton 2017-06-11 16:45:28 -07:00
John Lewin
a4d93b1869 Revise layout, sync up more sizes and colors 2017-06-08 10:14:06 -07:00
John Lewin
b0de2d1e57 Convert "Options..." menu into OverflowDropdown 2017-06-07 09:15:02 -07:00
John Lewin
3a33076d13 Revise icon styling 2017-06-07 08:21:01 -07:00
John Lewin
7e4d3913da Remove temp workaround DropDownMenu, add CreateMenuItem to Overflow menu 2017-06-07 08:21:01 -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
2a9e70c28c Ensure bedplate is saved before slicing
- Remove cheat in AddSelectedItemToBedplate helper which saved bed
- Invoke PersistePlateIfNeeded before slicing
- Mark plate as dirty when adding items
- Make SaveChanges awaitable so slicing queues until save is done
- Remove unused Action in functionToCallOnSaveAs delegate
- Change saveas delegate to support new awaitable signature
2017-06-05 14:37:32 -07:00
John Lewin
ddcb32e1f7 Fix naming issues with IObject3D and FindNamedChildrenRecursive 2017-06-04 23:07:05 -07:00
John Lewin
912c9fc68f Honor Thumbnail rendering mode
- Remove local ThumbnailTracer instance, use ThumbnailEngine.Generate()
- Pass correct parameters to ThumbnailEngine
2017-06-04 10:32:02 -07:00
John Lewin
223db022a8 Invalidate when thumbnails change
- Fixes delay as thumbnails are generated
2017-06-03 18:35:01 -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
fa800c4a3b Get first ActivePrintItem test passing again
- CompletingPrintTurnsoffHeat now passing
- Create new 'Add to Plate' action for library selections
- Create zip files after print->slice->ActivePrintItem success
- Copy generated gcode into zip
- Copy SliceSettings into zip
  - Make DocumentPath on PrinterSettings public
- Copy printer plate to zip file
- Add ClearPlate helper function to ApplicationController
- Invoke ClearPlate on startup to initialize ActivePrintItem
- Make SliceSettings user mode resets SliceSettings not AdvControls
- Make Library Overflow menu and items automatable
2017-06-02 17:06:27 -07:00
John Lewin
55e217641a Better expose reusable components
- Move ActiveView3D reference to ApplicationController
- Use ActivewView3D reference rather than ChildrenRecursive search
- Reuse EditPrinter button on action bar to get more tests passing
- Move IsContentFileType helper to LibraryConfig
- Make PlatingHelpers operate on IEnumerable<IObject3D> versus Scene
- Pass Scene.Children rather than Scene
- When plating multiple items, pass the updated IEnumerable context
2017-06-02 13:23:08 -07:00
John Lewin
88d32b0d2d Restore Library menu item selection 2017-05-26 00:18:34 -07:00
John Lewin
4559073237 Move more widgets to printer action bar
- Extract elements in PrinterConnectAndSelectControl to components
- Use new components in printer action bar
- Extract more factories to shared components
- Move shared color to ThemeConfig
- Add support for widget generation during ShowPopup
2017-05-24 14:19:02 -07:00
John Lewin
1e643617c5 Adjust tab styling
- Pass separator bars to tabs, disable drawn borders
- Remove ActionBar from leftnav
- Remove PrintProgressBar from leftnav
- Revise BreadCrumb button attributes
- Revise UpFolder icon
- Revise overflow/pancake menu icon
- Create OverflowButton to encapsulate common menu item
- Use horizontal/VerticalLine for consistent color/weight separators
- Reduce visual clutter
  - Minimize regions created by color and line separators
  - Reduce the contrast of separator lines
  - Reduce the contrast of region backgrounds
  - Use consistent background colors across sibling tab pages
2017-05-23 14:54:36 -07:00
John Lewin
8dad331afd Revise IconView layout 2017-05-21 23:22:28 -07:00
John Lewin
4d84844f96 Throw exceptions for missing functionality rather than Debug.Break
- Fix unexpected abort in NUnit testruns
- Tests should fail rather than crash, highlighting areas needing focus
2017-05-21 22:37:30 -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
John Lewin
2654151649 Call Container.Add(IEnumerable<T>)
- Add ChangeToQueueContainer helper method
- Cast to IWritableContainer and invoke Add(IEnumerable<T>)
- Issue MatterHackers/MCCentral#1503
2017-05-21 16:29:00 -07:00
John Lewin
1787c377eb Only switch to container if not null 2017-05-21 00:02:30 -07:00
John Lewin
c24480e4ed Fix list item names, use DoubleClickByName to automate library items
- Remove unused 'up folder' list view item code
2017-05-20 17:47:36 -07:00
John Lewin
03a593f1b5 Move to new library model and view
- Add new listview control for library content
- Migrate library providers to containers
  - Cloud, Sqlite, Directories, Queue, History
- Migrate SideBar components to containers
  - Primatives, Text, Braille, ImageConverter
- Create new library container types
  - Zip files, Calibration parts, Printer SDCards
- Reduce leftnav to Library, Settings, Controls, Options
- Add DragDrop support for image content
2017-05-20 00:41:02 -07:00
Lars Brubaker
352eb792f1 Merge branch 'smash_1.7.1' into design_tools
# Conflicts:
#	PartPreviewWindow/View3D/View3DWidget.cs
#	SlicerConfiguration/SliceSettingsWidget.cs
#	SlicerConfiguration/SlicingQueue.cs
#	StaticData/SliceSettings/Properties.json
2017-05-19 14:57:04 -07:00
Lars Brubaker
a1e1c48d90 All new 1.7.1 changes 2017-05-19 14:39:57 -07:00
Lars Brubaker
ceaa1a94da Moved drag drop to be in our mouse data rather than mirrored api 2017-04-05 16:25:43 -07:00
John Lewin
907609b587 Design tools 2017-03-15 16:29:56 -07:00
Lars Brubaker
def442958b Wrote a new test that ensures we can export library items. 2017-03-07 14:13:35 -08:00
Lars Brubaker
b88416163c Fixing tests 2017-03-01 17:05:48 -08:00
John Lewin
de643868e8 Change EnsureSamplePartsExist to call synchronous .AddItem() signature
- Use streams instead of file paths
- Copy directly from StaticData stream to Library
2017-02-13 13:56:59 -08:00
Lars Brubaker
8134b3f450 Fixed the Macros window to cancel on user closes with the X windows button.
Put cancel into max length and temp stream
Made close function take a bool if the system did it
Moved To EventHandler<> in GuiWidget
Made a ClosedEventsArgs
2017-02-03 13:06:08 -08:00
John Lewin
16c2230018 Initial screensaver prototype
- Consolidate title casing mechanism into PrintItemWrapper.GetFriendlyName
2017-01-19 12:31:53 -08:00
John Lewin
8510ca5b3d Remove duplicate .Click event from ButtonBase 2017-01-17 15:31:08 -08:00