Commit graph

163 commits

Author SHA1 Message Date
John Lewin
171016c16f Use initializer syntax 2017-07-03 09:30:30 -07:00
John Lewin
fad2e0080c Revise slider positions 2017-06-30 23:44:04 -07:00
John Lewin
2f13959f0e Use initializer syntax 2017-06-30 23:44:04 -07:00
John Lewin
290eb8bedb Wire up control reloads to new LoadedGCodeChanged event 2017-06-30 23:44:03 -07:00
John Lewin
e441f25c63 Add LoadedGCodedChanged event, more code to model, less dynamic controls 2017-06-30 23:44:01 -07:00
John Lewin
7fdae3bfe5 Discard GCodeFileIsComplete logic 2017-06-30 23:07:48 -07:00
John Lewin
50957e856b Add async Slice method, move into PrinterActionsBar, switch after 2017-06-30 23:07:48 -07:00
Lars Brubaker
1a9ebebaed Changed ReportPregress delegate to have touple and use CancellationTokenSource 2017-06-30 16:09:31 -07:00
John Lewin
694024443c Theme specific wireframe color 2017-06-29 14:17:08 -07:00
John Lewin
81e3cc1425 Rename NumChangesInZ to LayerCount 2017-06-29 14:17:08 -07:00
John Lewin
a2651a1ec8 Restore key up/down functionality for layer view, use new pattern 2017-06-29 14:17:08 -07:00
John Lewin
3ab89b8d3f Move ownership of GCode ActiveLayer & FeatureToStart/StopOn to model 2017-06-29 14:17:08 -07:00
John Lewin
17b4cb8b77 Downgrade ValueTuple to 4.3.0, fix null reference in ViewGCodeBasic 2017-06-29 14:09:47 -07:00
John Lewin
bcf4c08d1e Use lambda event handlers for clarity 2017-06-28 19:49:31 -07:00
John Lewin
27f4a3ef14 Extract GCode details view to class 2017-06-28 18:43:30 -07:00
John Lewin
c1462d1749 Extract GCode details to model 2017-06-28 18:18:22 -07:00
John Lewin
b7c457309e Improve GCode/Model view toggling
- Switch models to Wireframe while in GCode view
- Conditionally render layers data on visibility of GCode widget
- Short term: Clear Scene selection on entering GCode view
- Use consistent formatting for GCodeRenderInfo constructor
2017-06-26 12:49:39 -07:00
John Lewin
878d004a50 Remove inherited MeshViewer, push rendering to external mesh viewer 2017-06-24 13:17:43 -07:00
John Lewin
848708c36c Revise ViewGCodeWidget naming to clarify behavior 2017-06-24 12:35:02 -07:00
John Lewin
822faa99a1 Fix 2D/3D view button event listeners 2017-06-24 12:24:40 -07:00
John Lewin
4a105fa02f Fix colors for white menu background 2017-06-24 12:24:01 -07:00
John Lewin
1339f7573f Remove widget proxy to Clear3DGCode, call directly on model 2017-06-24 10:45:02 -07:00
John Lewin
8b3bc325cd Extract GCodeRenderer from widget to model 2017-06-24 10:38:08 -07:00
John Lewin
847c088cce Extract loaded GCodeFile from widget to model 2017-06-24 10:30:11 -07:00
John Lewin
3dd9f8c4d7 Use existing button factory, remove unused button factory instances 2017-06-24 10:28:33 -07:00
John Lewin
7808ffe221 Remove tree processing in OnDraw for keyboard hooks 2017-06-24 09:05:49 -07:00
John Lewin
156f44dce8 Extract SetLayer class to file 2017-06-24 09:00:13 -07:00
John Lewin
0f47dc4ef3 Extract button factory to model, use lambda events & initializer pattern 2017-06-24 08:59:14 -07:00
John Lewin
c88e63361e Extract LayerNavigation class to file 2017-06-24 08:54:47 -07:00
John Lewin
6300e4468f Extract button factory to model, use lambda events & initializer pattern 2017-06-24 08:53:19 -07:00
John Lewin
baa9feba81 Closer to gcode/mesh viewer consolidation
- Collapse right panel content into scene
- Move GCode view options into overflow menu
- Extract View3D options state from widgets to app model
2017-06-24 08:32:09 -07:00
John Lewin
7a27433bf0 Migrate GCodeVisualizer and MeshViewer content into MatterControl 2017-06-24 07:28:55 -07:00
John Lewin
0c37c0b276 Convert BackgroundWorkers to async tasks 2017-06-21 21:43:36 -07:00
John Lewin
0e646a0c94 Move PartPreviewWidget factories into ThemeConfig
- Extract ThemeConfig to file
- Pass ThemeConfig to IObject3D creators
2017-06-19 09:19:00 -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
9aaf0f6311 Rename PrinterConnectionAndCommunication 2017-06-13 17:22:49 -07:00
Lars Brubaker
6c22a896d9 Taking out center on bed for design tools. 2017-06-08 14:43:01 -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
c311f33888 Restore perspective after Generate button creates new children
- Hook meshViewer close and persist world transforms if visible
- Apply meshViewer world transforms on load if initialized
- Release event handlers on load if initialized (must occur after Close)
2017-06-02 06:46:09 -07:00
John Lewin
02482f7121 Add support for conditional close to menus
- Use IIgnoredPopupChild marker interface
- Extract RotateControl to new file
- Use PopupActionPanel base for conditional close behavior
- Extract Grid options to new GridOptionsPanel.cs
- Fix null reference on translate/scale of gcodeViewWiget
2017-05-30 17:38:19 -07:00
John Lewin
3ec34e0adc Remove ViewControls2D, use shared ViewControls across Layer2D/3D views 2017-05-26 21:28:35 -07:00
John Lewin
56e7d3c96d Remove debugging code 2017-05-26 20:25:36 -07:00
John Lewin
e45a0f16f7 Fix empty Layer2D view
- Refactor ViewControlsToggle
  - Remove public accessors to button controls
  - Add event for changing modes
  - Subscribe to new event
- Collapse named functions into single use callers for clarity
2017-05-26 20:13:56 -07:00
John Lewin
8ff6b9ae23 Switch directly to 3D layer view 2017-05-26 15:40:48 -07:00
John Lewin
dc0c285156 Adjust ViewControls colors to account for new potentially dark bgcolor 2017-05-26 00:59:47 -07:00
John Lewin
42898a6f91 Fix Layer3D view in design_tools, sync part/layer views on enter
- Revert to 1.7/ViewGcodeBasic code and make functional
2017-05-25 18:17:09 -07:00
John Lewin
08d2a6ab1a Working toward shared ViewControls3D and functional slicing
- More missing functionality restored in action bars/slicing views
2017-05-25 01:15:00 -07:00
John Lewin
69e83b3dd9 Continue migrating features to new layout
- Create toolbar for printer
- Migrate ActionBarPlus code to new toolbar
- Migrate printer specific actions from Options to new toolbar
- Consolidate and reuse theme factory instances
- Restore F1 reporting of unnamed widgets, useful for finding types
2017-05-23 19:07:57 -07:00
Lars Brubaker
78f554ce20 Fixed a bug with changing to a null print item in gcode view 2017-03-21 10:03:03 -07:00
John Lewin
907609b587 Design tools 2017-03-15 16:29:56 -07:00