Commit graph

124 commits

Author SHA1 Message Date
John Lewin
7847c1e574 Use consistent Click/RunOnIdle/async pattern for empty plate buttons 2018-04-30 07:14:20 -07:00
John Lewin
319979b2ed Fix icon margins in droplist control
- Issue MatterHackers/MCCentral#3183
2018-04-19 18:12:14 -07:00
John Lewin
df55dbb574 Extract LoadPrinter from LoadPrinterOpenItem 2018-04-19 17:40:55 -07:00
John Lewin
462c88c2dc Add printer/plate prototype to new tab page 2018-04-18 12:57:58 -07:00
John Lewin
4ffde89cab Use unwaited async load for new LoadPlateFromHistory method
- Issue MatterHackers/MCCentral#2552
Startup hangs at "ProfileManager" when complex items are on bed
2018-02-14 18:10:21 -08:00
John Lewin
4415300a1f Move heavy tasks out of constructor, make awaitable
- Add support for awaitable startup
- Issue MatterHackers/MCCentral#2423
Select printer not changing to new printer
2017-12-20 18:26:48 -08:00
John Lewin
0195afc094 Rename member to reflect actual behavior 2017-12-20 18:26:47 -08:00
Lars Brubaker
71979e35e9 Unify to single GetNonCollidingName
Improve it to check for and replace numbers
add new calling method
Make sure Object3D Close does not end up modifying object in processes
Don't try to render meshes with no faces
2017-12-06 16:31:04 -08:00
John Lewin
4e249ed50b Add IContentStore interface, update EditContext to use and revise naming 2017-11-15 09:26:06 -08:00
John Lewin
bfd6fb54d3 Short term workaround to run sync during load 2017-11-14 16:34:25 -08:00
John Lewin
fb84b6a18a Revise scene content loading
- Remove file system dependencies
- Use library container interfaces
- Issue MatterHackers/MCCentral#2248
Bed no longer persists and rounds trips application restarts
- Issue MatterHackers/MCCentral#1764
Get edit part mode working
2017-11-14 15:45:23 -08:00
John Lewin
80a75a40fe Continue consolidating Printer load operations 2017-09-23 14:45:24 -07:00
John Lewin
5d1e689413 Fix printer instantiation 2017-09-20 18:06:07 -07:00
John Lewin
76e7af0436 Eliminate PrinterConnection.Instance 2017-09-17 21:08:16 -07:00
John Lewin
928fed9efe Per printer instance rather than static ApplicationController.Printer 2017-09-17 14:23:28 -07:00
Lars Brubaker
20a2969889 Make sure we have a printer name 2017-08-11 16:00:24 -07:00
John Lewin
c5000990f6 Guard for null reference 2017-02-24 09:02:50 -08:00
John Lewin
3cfd40b6a0 Guard against null reference 2017-02-14 17:21:57 -08:00
John Lewin
0544ba38b8 Guard against null reference 2017-02-14 16:13:51 -08:00
John Lewin
a566e745f2 Fix build breaks
- Default ActivePrinterSettings.Instance to EmptyProfile
- Clean up assignment code
- Move EmptyProfile to PrinterSettings
2016-12-14 17:19:19 -08:00
John Lewin
836dcee8b8 Improve startup state initialization
- Use single instance for .EmptyProfile
- Remove ActiveSliceSettings static constructor, rely on ProfileManager
- Remove SettingsKey.active_theme_name and db usage
- Revise LoadUITheme to only load oem or default color theme
- Only assign ActiveSliceSettings.Instance during ProfileManager assign
2016-12-14 16:18:54 -08:00
John Lewin
8f7d1332f3 Update LastProfileID on create printer 2016-12-09 17:05:27 -08:00
Lars Brubaker
d8d3e23522 Put in the action menus and controls. 2016-12-08 15:39:23 -08:00
Lars Brubaker
dbd2c20398 Merge branch '1.6'
# Conflicts:
#	SlicerConfiguration/Settings/ProfileManager.cs
#	Tests/MatterControl.AutomationTests/PrintQueueTests.cs
#	Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
2016-12-07 16:14:56 -08:00
Lars Brubaker
83a3c87557 Quality settings override correctly. 2016-12-06 17:54:27 -08:00
John Lewin
c4bdc41b3e Ensure 'Import Printers' window appears after authentication
- Simplify wizard - move external code into button events
- Migrate from user specific constructor to static Load('user')
- Actually deserialize profile during Load
2016-11-30 13:44:31 -08:00
John Lewin
a118df636a Restore environment specific Profile directories 2016-11-02 15:56:49 -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
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
a22093bfcf Write the current color into printers on creation. 2016-10-18 11:45:47 -07:00
John Lewin
35a25c4957 Prevent invoke on SyncPrinterProfiles if null 2016-10-15 12:35:39 -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
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
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
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
John Lewin
4ad70ca38c Revise IsDirty and profile/printersettings nomenclature 2016-09-14 12:36:12 -07:00
Lars Brubaker
87f10fd3a8 Make less possible threading issues on ProfileManager 2016-09-12 16:20:01 -07:00
Matt Moening
7acfd1ca6a Fixed bug in Public Profiles Static data Fallback
- Fixed bug discovered while writing test
 - Added check for null ProfileManager.Instance to allow tests to work when initializing in a differently than MC
2016-09-08 18:10:46 -07:00
John Lewin
b1f41e540d Clear cached credentials after acquiring new ClientToken
- Extract existing file delete to resusable function - ClearCachedCredentials
- Reuse ClearCachedCredentials in SetClientToken
- MatterHackers/MCCentral#321
2016-09-06 14:32:00 -07:00
John Lewin
b97bd8ef28 Add to ProfileManager before invoking methods that call .Save()
- Issue MatterHackers/MatterControl#1346
2016-09-04 11:06:07 -07:00