Commit graph

282 commits

Author SHA1 Message Date
John Lewin
755c7ac2aa Rewrite PrinterConfigTests to use .printer/PrinterSettings files
- Migrate first_layer_speed to SettingsKey
- Use specialized Asserts to assist in troubleshooting
- Improve failure text to assist in troubleshooting
- Process all layers in .printer files
2016-12-05 15:18:43 -08:00
larsbrubaker
78439d34ab Got the new mocros menu working well 2016-12-03 12:08:39 -08:00
Matt Moening
b6d34bcdf7 Converted hard coded strings to SettingsKey 2016-11-29 12:17:36 -08:00
Matt Moening
701dd0bf48 Added Network Printing checks in Edit Printer Settings Page 2016-11-29 10:57:44 -08:00
John Lewin
6de490fd39 Force Make/Model to Other/Other if null or empty
- Workaround for server side requirements
2016-11-11 13:03:57 -08:00
Lars Brubaker
ff0c2738d8 Made importing a quality setting set the name correctly. 2016-11-07 12:41:05 -08:00
John Lewin
bd8c4b64f9 Ensure preset values initially take precedence over user overrides 2016-11-07 11:24:49 -08:00
John Lewin
a118df636a Restore environment specific Profile directories 2016-11-02 15:56:49 -07:00
John Lewin
861e8d4f1a Include more scope in lock 2016-10-31 13:34:36 -07:00
John Lewin
99762f5063 Remove .Profiles setter 2016-10-31 10:51:25 -07:00
John Lewin
cced08d2d4 Track sync calling context 2016-10-31 10:51:24 -07:00
Lars Brubaker
6509b8f287 Change wording to 'Restore Settings' 2016-10-28 16:32:00 -07:00
Lars Brubaker
a22ef1d32b Put in the ability to turn off Merge Overlapping Lines
Fixes a possible regression in slicing
2016-10-27 18:36:02 -07:00
John Lewin
67b151aa2c Revise IsGuestProfile property, revert LastSessionUsername changes 2016-10-21 16:12:47 -07:00
John Lewin
42cc88b9d4 Refactor ProfileManager to prefer isolated instances
- Replace DB nomenclatures with ProfilesDoc/Profiles terms
- Convert SetLastProfile() to LastProfileID property
- Remove LoadLastProfileWithoutRecovery function
  - Use LoadWithoutRecovery(LastProfileID)
  - One caller, far more clear with only one LoadWithout function
- Move safe FileSystem UserName to AuthenticationData, like UserName
- Skip importing guest profiles that are missing PrinterSettings files
2016-10-21 13:00:53 -07:00
Lars Brubaker
47968f566f Going back to the old leveling method. 2016-10-19 16:03:08 -07:00
Lars Brubaker
b659a3ea50 Make sure we clear z_offset_after_home on reset. 2016-10-18 15:58:50 -07:00
Lars Brubaker
a22093bfcf Write the current color into printers on creation. 2016-10-18 11:45:47 -07:00
Matt Moening
a23b66e966 Creating a new printer maintains the current color
- The color is also set as the printer's active theme
2016-10-18 11:19:04 -07:00
Matt Moening
6b586be835 Fixed color behavior for users with unset default
-  When both the user and oem settings are unset we now both set the active theme color to be blue and set this as the user default
 - Removed redundant null check/fallback.
2016-10-17 12:55:18 -07:00
John Lewin
35a25c4957 Prevent invoke on SyncPrinterProfiles if null 2016-10-15 12:35:39 -07:00
Lars Brubaker
3bb439d198 Make it possible to have the print leveling go negative
Took out the 2 point leveling solution
MatterHackers/MatterControl#804
2016-10-11 14:56:36 -07:00
larsbrubaker
426c0ede6a Code to enable going below 0 for printe recovery 2016-10-10 19:30:48 -07:00
Lars Brubaker
7712dab117 Merge branch 'master' into master 2016-10-10 13:06:17 -07:00
Matt Moening
076619d0eb Fix Regression in user color preservation
- Setting color for a printer sets value in user settings
 - use UserSetting color as default for loading theme color
 - if Active slice settings dont have an active theme set it to default
 - If user setting  theme is null attempt to load OemColor preference and set as user setting theme
2016-10-10 12:55:14 -07:00
Lars Brubaker
eccc9a2a81 Fixed a bug in getting extruder temps
Made temperature a settings key
MatterHackers/MCCentral#553
Extruder and bed not being heated before printing
2016-10-10 12:44:22 -07: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
John Lewin
38042d1d86 Load session values during construction, remove LoadFirstInstance 2016-10-06 18:07:39 -07:00
Lars Brubaker
aa2fde82fb Import Settings now working
Moved merge into PrinterSettings
With test
2016-10-05 14:57:37 -07:00
Lars Brubaker
99709f9d21 Warn if printer recovery is enabled and there is a g29 or g30 in start gcode 2016-10-05 11:07:32 -07:00
Lars Brubaker
231aadc554 Always set make and model on imported printers
Made the import printer get non-colliding names
MatterHackers/MCCentral#417
MatterControl is unable to upload imported printers
2016-10-04 17:54:57 -07:00
John Lewin
c0d6780901 Decouple validation logic from save invocation
- Rename AcquireNewProfile to CreateProfileAsync
- Return status result of CreateProfileAsync
- Abort processing on profile creation failures
- Localize error messsages
2016-10-04 15:33:07 -07:00
John Lewin
75be29a030 Proactively invoke Sync process on printer changed events 2016-10-04 13:21:44 -07:00
John Lewin
1f8bb71172 Fire ProfilesListChanged after SetMarkedForDelete
- Ensures the popup SystemWindow in TouchScreen mode gets refreshed
2016-10-04 10:30:24 -07:00
Lars Brubaker
2bc78a947f Ensure guest profile uses the correct path.
Don't change between test and release as they don't have any actual logical difference for guest.
2016-10-03 10:22:08 -07:00
John Lewin
c81119f19c Make user profiles directory specific to WebServices environment 2016-09-29 16:55:16 -07:00
John Lewin
87316dadff Revise ClientToken use for multi-instanced MatterControl
- Add public const EnvironmentName for Services environment
- Remove GetSessionUsername method
- Remove ClearCachedCredentials
- Pull in AuthData type
- Add system to store and use ClientTokens
- Add using statements for common namespaces
2016-09-29 11:47:06 -07:00
Lars Brubaker
caa79ddff0 Don't load deleted printers 2016-09-28 16:29:11 -07:00
Lars Brubaker
de12a5c8ba Finished print leveling test – fixed reset to defaults
Moved more things to settings key
Disabled end-user license agreement on Mac for now
2016-09-27 12:47:15 -07:00
John Lewin
04ae06199c Clear print_leveling_data on 'Reset To Defaults'
- Create and use SettingsKey for print_leveling_data
2016-09-23 18:19:51 -07:00
John Lewin
ee52f24835 Upgrade to NUnit3
- Revise hard-coded paths for compatibility with new VS adapter
- Add utility functions for path generation
- Extract SHA1 computation from Save function
- Add ToJson helper function
- Don't save SHA1 in computed document
- Remove Asserts from CloseMatterControl, extend wait period
- Add TestAutomationConfig type replacing serialized Dictionary
2016-09-21 14:13:39 -07:00
Matt Moening
8255af0aaa John feels this is no more broken then the old thing 2016-09-16 15:15:15 -07:00
Matt Moening
b051b2bf54 Remove Run on Idle due too regression
- Added Additional guard to saving profile
2016-09-16 13:12:00 -07:00
John Lewin
662c4e649b Revise IsDirty property - perform actual thumbprint comparison
- Now compares last known server thumbprint to latest content thumbprint
- Fixes need to continually reset flag based on save conditions
- Will be accurate as long as ServerSHA1 is updated any time we pull updates
2016-09-15 12:05:00 -07:00
John Lewin
4ad70ca38c Revise IsDirty and profile/printersettings nomenclature 2016-09-14 12:36:12 -07:00
John Lewin
da330edabd Remove ProfileManager.Save from PrinterInfo.ID setter 2016-09-13 16:26:32 -07:00
Lars Brubaker
5ffd4c168e Added the ability to emit 'G0' for movement 2016-09-13 14:09:35 -07:00
Lars Brubaker
87f10fd3a8 Make less possible threading issues on ProfileManager 2016-09-12 16:20:01 -07:00
Lars Brubaker
9b2dbdcfe3 Fixed the key to delete profiles on
Added fire and forget for task
Added WaitUntil function on Automation Runner
Added some documentation
2016-09-09 14:48:37 -07:00
Lars Brubaker
b9b2f93dcc Merge branch 'master' of https://github.com/MatterHackers/MatterControl 2016-09-09 10:22:38 -07:00