Commit graph

227 commits

Author SHA1 Message Date
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
John Lewin
ace89e1e5a Use .Localize extension function 2017-01-04 10:52:06 -08:00
John Lewin
711ba4f36c Simplify LibraryProvider abstract class 2016-12-30 09:51:24 -08:00
John Lewin
535a161115 Remove event keyword from private fields 2016-12-29 06:57:42 -08:00
Lars Brubaker
648f066582 Get the under menu not to open hover effect. 2016-12-20 09:46:43 -08:00
Lars Brubaker
ecaf2d3cdf Interactive user prompts should confirm the action requested 2016-12-12 17:42:22 -08:00
Lars Brubaker
d8d3e23522 Put in the action menus and controls. 2016-12-08 15:39:23 -08:00
larsbrubaker
9b202feb37 Putting Selection List into QueueData
Compiling but not worknig
2016-12-04 12:06:51 -08:00
John Lewin
89f44a8856 Prevent invoke on null references 2016-11-09 13:24:00 -08:00
Lars Brubaker
1f979dbd89 Fixed library hover effect on android
Make sure we are using the correct events
2016-11-07 09:33:23 -08:00
John Lewin
ccd59227f0 Add LazyTabs for Touchscreen view
- Remove unset ApplicationControler.WidescreenMode variable
- Add local AddTab function to TouchScreenTabView for LazyTab creation
- Use common AddTab function for tab creation in TouchScreenTabView
- Refactor WidescreenPanel for clarity
  - Use OnBoundsChanged instead of event
  - obj.NumberOfVisiblePanels() becomes obj.VisiblePanelCount
- Fix thumbnail exception experienced by ensuring Directory exists
- Run ActiveSliceSettings.Instance assignment on UI thread if loading
  - Prevents extra ReloadAll right at the completion of form Load
2016-10-06 21:47:16 -07:00
Lars Brubaker
68788892e6 Make edit available all the time
Make an "oops can't search" for library selector.
2016-10-06 14:09:35 -07:00