Commit graph

85 commits

Author SHA1 Message Date
John Lewin
0e2dd646d7 Load OemProfiles from cache or fall back to StaticData if missing 2016-10-28 13:13:21 -07:00
John Lewin
38042d1d86 Load session values during construction, remove LoadFirstInstance 2016-10-06 18:07:39 -07:00
Matt Moening
1ece91dff3 Added Static Data fallback path to public profile list 2016-10-06 16:33:00 -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
John Lewin
b5e38d136c Remove ForceTestEnvironment features 2016-09-23 16:36:16 -07:00
John Lewin
fc4b5c681c Make CacheablePath public, throttle PublicProfile acquisition to every 20 sec. 2016-09-19 13:22:28 -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
1c7c1f20ad Revise ChangeCloudSyncStatus
- Add UserSettingKeys for CredentialsInvalid, CredentialsInvalidReason
- Move CredentialsInvalid, CredentialsInvalidReason setters into ChangeCloudSyncStatus
- Update method to take string parameter for invalid reason
- Toggle state when Connected value changes
- Clear invalid flag if connected, set invalid flag and reason if not
- Issue MatterHackers/MCCentral#354
2016-09-06 18:15:06 -07:00
johnlewin
10b0a657b4 Merge pull request #1356 from mmoening/master
Fixed Bug in syncing public profiles when loading from cache
2016-09-06 15:59:36 -07:00
Matt Moening
0737a7f9e4 Fixed Bug in syncing public profiles when loading from cache 2016-09-06 15:27:14 -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
4cc6f807d0 Only call SetManufacturers when OemProfiles change 2016-09-03 17:12:13 -07:00
John Lewin
453eb086ba Remove early exit bypassing name mapping 2016-09-03 17:12:12 -07:00
John Lewin
312f652bbb Use short identifiers for public profiles
- Add support for new GetProfileList schema
- Add CacheablePath function to abstract and reuse path generation logic
- Serialize LoadCacheable content in human readable form
- Move public-profile cache into like named folder
- Move public-profile items into oem specific folders
- Reuse LoadOemProfileAsync for persistence instead of custom implementation
- Issues MatterHackers/MCWS#72, MatterHackers/MCWS#84
2016-09-03 17:12:11 -07:00
Lars Brubaker
938a8a0a96 Merge pull request #1344 from larsbrubaker/master
default to render thumbnails in perspective 3D  …
2016-09-01 16:36:27 -07:00
Lars Brubaker
d0ea36c269 default to render thumbnails in perspective 3D
Made only a default constructor for ray tracer
Put back in the code the guarantees we always have an item in the queue, even before we select a printer.
Added thumbnail render mode to the user settings key
2016-09-01 13:50:11 -07:00
Matt Moening
fd76f828ed Loadcacheable properly loads profiles from static data
- Fixed a bug in downloading profiles from web would write "null" to file if it failed to get a proper file
2016-09-01 12:12:11 -07:00
Lars Brubaker
22bca53d69 Changed the theme colors to save by name
fixed linux run bug MatterHackers/MCCentral#344

ActiveTheme does not recreate its data all the time
2016-08-31 11:42:02 -07:00
Lars Brubaker
698426858e Made the default theme blue - light.
Moved setting to UserrSettingsKey
2016-08-30 17:30:31 -07:00
Lars Brubaker
cd7406d82b Created a UserSettingsKey and SystemSettingsKey
Moved some settings into this, lots more to do
2016-08-30 10:30:55 -07:00
Lars Brubaker
4207f1c4b9 Each unique version of MC requires a separate login
Made the ability to get the application instance count
2016-08-29 15:29:43 -07:00
Lars Brubaker
c6d0408ab9 changed get("ClientToken") GetClientToken() 2016-08-26 18:30:21 -07:00
Matt Moening
2f68e99449 Sync printer page updates progress of syncing operations
- Both private and public profiles report
 - public profiles are not called to report but can be later
2016-08-22 16:42:55 -07:00
Lars Brubaker
5325d7d190 Moved other to the bottom of the list. 2016-08-08 15:46:20 -07:00
John Lewin
01f2d4485f Sort make/models droplists 2016-07-29 13:47:58 -07:00
John Lewin
761cc63a07 Make DownloadMissingProfiles awaitable and await 2016-07-29 11:09:12 -07:00
Matt Moening
2c927b48ad removed random extra semicolin 2016-07-26 14:34:37 -07:00
John Lewin
4ece8d18a7 Make LoadCacheable collector return instance of T rather than string
- Issue #1195, #1188
2016-07-26 13:22:24 -07:00
Matt Moening
cc93bed424 Fixed oemProfiles to oemprofiles for last outlying spot 2016-07-26 12:43:59 -07:00
Matt Moening
ffc280da73 Fixed bug where would try to write to a OemProfile Twice throwing an exception
- Removed ReloadOemProfiles form on load (ReloadOemProfiles is called in sync and sync is called on start up so two calls were going out at once)
 - DownloadMissingProfiles is no longer a separate task so that we don't resync and try to run a second download of missing profiles
2016-07-26 10:42:55 -07:00
Matt Moening
7a2f59bb8e Converted ReloadOemProfiles into a Task 2016-07-25 17:41:35 -07:00
John Lewin
5d8070cdfd Add Load event to ApplicationController
- Extract code from Deserialize into ReloadOemProfiles
 - Wire up ReloadOemProfiles to Load event
 - Revert to lowercase oemprofiles.json filename
 - Issue #1179
2016-07-25 16:50:24 -07:00
Matt Moening
4d84b11706 Fixed Capitalization errors in oemProfiles.json 2016-07-25 15:56:03 -07:00
John Lewin
3e79fb6590 Make DownloadPrinterProfile async, move to MHWebServices
- Issue  MatterHackers/MCCentral#218
 - Rename function to DownloadPublicProfileAsync
2016-07-25 14:39:23 -07:00
John Lewin
2950df095d Disable breaking test, guard for null on public builds 2016-07-22 15:21:24 -07:00
John Lewin
4871997976 Revise OemSettings.OemProfiles initialization for clarity, async
- Define OemProfileDictionary alias to clean up declarations
 - Unify StaticData and WebServices persistence format for OemProfiles
   - Delete allModels.json
   - Add oemprofiles.json
 - Simplify creation of list for SetManufacturers
 - Revise OemProfile loading for async, remove AutoResetEvent
 - Remove PublicProfilesRequest object
 - Use new async MHWebServices.GetPublicProfileList replacement
 - Execute OemProfiles assignment on the UiThread
2016-07-22 14:52:52 -07:00
Lars Brubaker
2a238fdcc4 Moving this code to ApplicationController
MatterControlApplication should be as thin as possible it is not shared accross platforms.
Put shared code into ApplicationController
2016-07-21 15:13:10 -07:00
Matt Moening
97d3615755 Load public profiles from Static Data before launching request to web server in new task
This reduced loading time for public profiles from 5200-5300ms to 2ms
Loadcacheable can now fall back to Static data if passed a path for it
2016-07-21 14:23:35 -07:00
Matt Moening
d96531152b converted oemprofiles to be .printer files and to be retrieved as such from various locations.
Updated to test to reflect the actions actually done by the request (not sure why they were not failing before)
2016-07-20 17:39:19 -07:00
Lars Brubaker
f16aed3669 Sort the make and model in the printer selection menus. 2016-07-12 09:40:57 -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
99ee64c5ea Remove ProfileData property, show wizard if visible printers < 1 2016-06-29 13:02:04 -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
Matt Moening
bc5ef8a5b3 Implemented MC side receive of Public Profile list and public profiles 2016-06-22 18:05:52 -07:00
Lars Brubaker
6cc61c53d0 Don't set new printer name to current printer
If no white list is set than do not filter
Make default MC white list be none
2016-06-07 17:39:17 -07:00
John Lewin
e5a63b052e Migrate Theme support to Agg.UI 2016-06-03 17:22:19 -07:00
John Lewin
eb7455f47c Ensure cache directory exists before use 2016-06-02 16:07:12 -07:00
John Lewin
e82dfc8ebb Pull make/model data from http endpoint
- Fixes #842
2016-06-02 14:46:51 -07:00
John Lewin
a04f0ac88b Decouple make/model droplists
- Fixes #833
2016-06-01 14:00:47 -07:00
John Lewin
5db7c79d00 Get updated profiles compiling on Android
- Remove unused properties from ApplicationView
 - Rename CompactApplicationView to TouchscreenView
 - Rename ResponsiveApplicationView to DesktopView
 - Move abstract ToggleTopContainer() specific to TouchscreenView
 - Remove unused HideTopContainer implementations
 - Conditionally compile invocation/assignment of ApplicationMenuRow
 - Migrate single setting from PrinterSettings "PublishBedImage" to SliceSettings
 - Remove PrinterSettings class
 - Import "PublishBedImage" during ImportPrinters
 - Remove code that doubles the size of the splitter bar when collapsed
 - Fix incorrect path to "config.ini"
2016-05-05 12:33:39 -07:00