Commit graph

94 commits

Author SHA1 Message Date
John Lewin
be5f881935 Migrate string constants to UserSettingKey 2017-06-08 18:41:59 -07:00
Lars Brubaker
4b88969c4e Put in a first pass at a text size control. 2017-06-06 15:04:07 -07:00
Lars Brubaker
f9784738e9 Adding obj loading support 2017-05-22 17:52:08 -07:00
John Lewin
03a593f1b5 Move to new library model and view
- Add new listview control for library content
- Migrate library providers to containers
  - Cloud, Sqlite, Directories, Queue, History
- Migrate SideBar components to containers
  - Primatives, Text, Braille, ImageConverter
- Create new library container types
  - Zip files, Calibration parts, Printer SDCards
- Reduce leftnav to Library, Settings, Controls, Options
- Add DragDrop support for image content
2017-05-20 00:41:02 -07:00
John Lewin
907609b587 Design tools 2017-03-15 16:29:56 -07:00
John Lewin
78c04a0e37 Consolidate DisplayMode logic into IsTouchscreen setting 2017-02-16 15:02:49 -08:00
John Lewin
e356d99df6 Revise window auto-centering, add maximize persistence 2017-01-25 11:15:40 -08:00
Lars Brubaker
0ffb3a5b41 Make more touch screen settings be about touch not android. 2017-01-23 14:58:29 -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
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