Commit graph

604 commits

Author SHA1 Message Date
Lars Brubaker
a95fbdf109 Made the cost and mass fields update as settings are changed
Made only settings that require gcode to be rebuilt cause the hash code to change
2016-07-18 10:52:36 -07:00
Greg
b1b88c01de Added ability to recover a usable public profile in the event that we attempt to load a corrupt one. 2016-07-15 17:25:27 -07:00
Greg
73f396544c Merge branch 'master' of https://github.com/MatterHackers/MatterControl 2016-07-15 17:23:21 -07:00
John Lewin
a6a8f65ebc Ensure the in memory instance ID changes when the profile ID changes 2016-07-15 13:32:49 -07:00
Lars Brubaker
760110f8b2 Correct padding. 2016-07-15 12:16:51 -07:00
Lars Brubaker
b90b62528d Made it so we add the delete and update info for a printer as a new component
left aligned printer list (took out icon space)
2016-07-15 11:52:06 -07:00
Lars Brubaker
cec9a85435 Try to connect to printers that have auto connect enabled when they are selected
removed dead code
2016-07-14 17:07:04 -07:00
Greg
1115f05da0 Added Make and Model properties to PrinterInfo class and made sure that when we add a new printer, the Make and Model are written to {user}.json 2016-07-14 16:48:18 -07:00
Matt Moening
f8e00ca879 Made sure profiles use proper profile extension and are looked for accordingly
Fixed bug where we would show upload profile dialog without any profiles to upload
2016-07-14 13:46:33 -07:00
johnlewin
f5ce76e868 Merge pull request #1089 from larsbrubaker/master
Revised text for upload profiles window
2016-07-14 12:20:30 -07:00
John Lewin
dba57b3e0a Change printer profile extensions to '.printer'
- Convert string literals to shared const
2016-07-14 11:37:04 -07:00
Lars Brubaker
d681a01cf6 Merge 2016-07-14 11:19:13 -07:00
Lars Brubaker
49bc3d8724 Merge branch 'master' of https://github.com/MatterHackers/MatterControl 2016-07-13 17:25:17 -07:00
John Lewin
65d5b5505c Add option to ProfileManager to load Guest profile db
- Move SQLite import code into externally callable function
 - Add persistable property for PrintersImported to ProfileManager data
2016-07-13 17:22:02 -07:00
John Lewin
c2d87979c1 Call unregister event before changing instances 2016-07-13 17:22:02 -07:00
John Lewin
0d890a824e Better encapsulate profile path and filename logic from application
- Switch to unique file extension for user profile list (.profiles)
 - Use readonly property for Profile extensions
 - Add const for guest file name
2016-07-13 17:22:02 -07:00
John Lewin
b517e3e93f Prevent firing ActiveProfileModified on non-active profiles 2016-07-13 17:22:02 -07:00
Greg
9b9d9b44a0 Added retrieve printer profile history and revert to previous profile functionality 2016-07-13 13:39:11 -07:00
Lars Brubaker
0df8886bef More tests
Validate that known settings are requested with the correct type passed to GetValue
Put in tests for extruder_count
2016-07-13 09:36:33 -07:00
Lars Brubaker
d8853e53f3 Merge pull request #1077 from larsbrubaker/master
Wrote a new test for first_layer_extrusion_width being parsed correctly
2016-07-12 18:14:38 -07:00
Lars Brubaker
3a9e4eb054 Wrote a new test for first_layer_extrusion_width being parsed correctly
Refactored first_layer_extrusion_width into a fixed string
2016-07-12 18:06:06 -07:00
John Lewin
da695dc581 Convert more string literals into SettingsKey constants 2016-07-12 17:51:26 -07:00
Lars Brubaker
fb5d2d9c6e Fixed a problem with first layer extrusion width not parsing correctly in new settings model 2016-07-12 16:43:39 -07:00
Matt Moening
469345e73f Async download of profiles not in cache
When creating a printer checks if profile is already on disk before downloading
2016-07-11 17:05:16 -07:00
John Lewin
4fd087134a Update ProfileManager.Instance on change
- Issue #1058
 - Add ProfileManager->Reload functionality to update static instance
 - On Reload, reassign ActiveSliceSettings to last profile or empty
 - Reorder members in ProfileManager
 - Remove PermanentDelete profile function
 - Set identifier of empty profiles to "EmptyProfile"
2016-07-11 15:30:30 -07:00
John Lewin
7520cb6df4 Collapse single use LoadStartupProfile functionality into constructor 2016-07-11 15:30:30 -07:00
John Lewin
be3eed0f5d Move last selected profile management into ProfileManager
- Multi-user support: store the value in a user specific key
2016-07-11 15:30:30 -07:00
John Lewin
6e57bb820c Ensure SwitchToPrinterTheme runs on the UIThread
- Conditionally invoke ReloadAdvancedControlsPanel
2016-07-08 15:10:53 -07:00
John Lewin
640b51818a Fire ActiveProfileModified after profile writes 2016-07-08 15:10:53 -07:00
John Lewin
0d0625a6e7 Add support for LoadProfile call that can be forced to reload from disk
- Issue MatterHackers/MCCentral#178
 - Without this mechanism, requests for the active profile return the
   active instance rather than loading the latest on disk values
2016-07-08 07:31:43 -07:00
John Lewin
e0f66cd901 Support for in-memory profile refresh without ActivePrinterChanged event
- Issue MatterHackers/MCCentral#178
2016-07-08 07:28:00 -07:00
Lars Brubaker
80c3a4708c Make sure profilePath exists before loading it.
Cleaning up Action names
Change to development build for user profiles
2016-07-07 17:05:50 -07:00
John Lewin
a128d8fe06 Remove excess Save call 2016-07-07 15:36:04 -07:00
John Lewin
35a0c26916 Fix empty SHA1 field, add to ProfileManager before save 2016-07-07 12:37:39 -07:00
John Lewin
ba41f4ebee Migrate make/model settings keys to SettingsKey, revise service urls 2016-07-07 12:37:39 -07:00
John Lewin
58a27356c2 Profile Sync 2016-07-07 12:37:39 -07:00
Lars Brubaker
90aa9f44cf Working on local user profile cache
Saving a new user.json for signed in users
2016-07-06 17:45:53 -07:00
Lars Brubaker
133987c194 Made the SetupAccountView refresh on login and log out
Refactoring Event Handlers
2016-07-06 14:04:23 -07:00
Lars Brubaker
c9b6e4762e Merge remote-tracking branch 'unlimitedbacon/density' 2016-07-05 12:13:54 -07:00
Greg
c41b6efd9c Display "Last Time Updated" to Settings Panel. We can add it to the Printer Setup Wizard later if needed. 2016-06-29 14:47:57 -07:00
John Lewin
99ee64c5ea Remove ProfileData property, show wizard if visible printers < 1 2016-06-29 13:02:04 -07:00
John Lewin
7db1276d26 Prevent invalid profile creation for default state
- Guard for nulls in OemLayer
 - Issue #1029
2016-06-28 16:55:50 -07:00
johnlewin
8e94c64bb5 Merge pull request #1027 from jlewin/master
Remove OemProfile property, promote OemLayer property to parent
2016-06-27 15:54:42 -07:00
John Lewin
0c752a4d27 Remove OemProfile property, promote OemLayer property to parent
- Extract PrinterSettingLayer to separate file
 - Create profile migration for OemProfile -> OemLayer
 - Rename confusing LayerCascade property in tests to PrinterSettings
 - Issue #1023
2016-06-27 15:42:56 -07:00
Matt Moening
4bf95f8605 Loading printer profile now follows local cache fallback when offline 2016-06-27 12:41:08 -07:00
Tyler Anderson
f9c446d52b added filament density and cost settings to UI 2016-06-27 12:32:50 -07:00
John Lewin
91b80b716d Revise MCWS parameter names 2016-06-24 18:23:17 -07:00
John Lewin
079afa7cd7 Initial delete profile implementation 2016-06-24 12:05:27 -07:00
johnlewin
a4ec15ad89 Merge pull request #1015 from gregory-diaz/master
Added function for permanent printer profile deletes.
2016-06-23 18:58:35 -07:00
John Lewin
ca55930bf4 Revise PublicProfileRequests, make functional offline
- Add prototype for loading cacheable content
 - Make RetrievePrinterProfile test use public server
 - Expose JsonResponseDictionary on PublicProfilesRequest
2016-06-23 18:35:43 -07:00