Commit Graph

6392 Commits

Author SHA1 Message Date
Cristian Maglie df1841f0cd Initialize Editor only in GUI mode (part 1/3)
Move the initialization of Editor into the GUI section of the big
if-then-elseif chain. This actually breaks cases for Verify and
Upload that uses Editor to access core functions.

This will be fixed in next commits.
2016-11-25 15:04:35 +01:00
Cristian Maglie 21bcb6417c Build menus only in gui mode 2016-11-25 15:04:33 +01:00
Cristian Maglie 8d84432f71 Prompt for sketchbook folder only if in GUI mode 2016-11-25 15:04:33 +01:00
Cristian Maglie fedc2b6cd2 Give sense to `isCommandLine()` method 2016-11-25 15:04:27 +01:00
Cristian Maglie b73bc92a5c Moving some other graphic related parts into GUI initialization 2016-11-25 15:04:24 +01:00
Cristian Maglie cf54cce660 SplashScreenHelper output progress in console for text-only mode
This commit makes this changes:

- SplashScreenHelper is now local in Base constructor
- if SplashScreenHelper is instantiated with a null SplashScreen
  instance then it outputs progress in console and avoid to make
  calls to Swing toolkit
- The parsing of command line arguments is anticipated so we can
  determine if we are in command line or GUI mode early and setup
  objects that produces output to not use graphics toolkits.
- In this case the SplashScreenHelper is initialized with a real
  splashscreen only if we are in GUI mode
2016-11-25 15:04:24 +01:00
Cristian Maglie fbe6bf3792 Moved all initializations into Base constructor 2016-11-25 15:04:24 +01:00
Martino Facchin 2d1f49a077 Fix symlinks being replaced with files on save
Fixes #5478

Backported from Processing 0abee5af6a/app/src/processing/app/Util.java (L174)
2016-11-24 09:58:27 +01:00
Matthijs Kooijman 6e52bcbf83 Remove build/cmd/ directory
This was a leftover from processing that is no longer used.
2016-11-23 16:07:16 +01:00
Martino Facchin 35e45c9fe0 [AVR] Add -g to elf.flags to allow inclusion of debug symbols in elf
Fixes #5539
2016-11-23 14:51:38 +01:00
Martino Facchin 54f7041224 [SAM] Add -MMD flag to generate depencencies files for S targets 2016-11-23 14:46:35 +01:00
Martino Facchin 65d86ace71 [AVR] Add -MMD flag to generate depencencies files for S targets 2016-11-23 14:46:04 +01:00
Martino Facchin c209e33e97 Starting version 1.6.14 2016-11-23 10:48:13 +01:00
Cristian Maglie e7f51f225b Updated Wifi101 firmware updater to ver 0.8.3 2016-11-22 15:49:35 +01:00
Cristian Maglie f9969e5820 Updated Wifi101 firmware updater to ver 0.8.2 2016-11-22 13:17:14 +01:00
Cristian Maglie aff7b4bcba Updated SD lib to ver 1.0.9 2016-11-22 11:42:16 +01:00
Cristian Maglie b22f522316 Updated revision log 2016-11-22 11:37:36 +01:00
Cristian Maglie b1b8e92d5e Updated Temboo lib to 1.1.8 2016-11-22 11:37:14 +01:00
Cristian Maglie f471256ffb Updated Firmata to version 2.5.4 2016-11-22 11:37:14 +01:00
Martino Facchin 58be0341d0 Update bundled avr core to 1.6.15 2016-11-22 11:21:23 +01:00
Cristian Maglie de65c3d89f Updated translations 2016-11-21 18:14:40 +01:00
Cristian Maglie 954941c0aa Updated string 2016-11-21 18:14:38 +01:00
Cristian Maglie 27d1b8d9a1 Merge branch 'windows-dpi-awareness' 2016-11-21 12:43:01 +01:00
Cristian Maglie 5b690b9b9e Win32: use legacy SHGetFolderPath if SHGetKnownFolderPath is not available
This ensure windows XP compatibility
2016-11-21 12:42:58 +01:00
Cristian Maglie 1f1092fb3a Removed debug messages in 39577072 2016-11-21 11:50:24 +01:00
Arturo Guadalupi 7134056f8d Merge pull request #5589 from martinnm/master
Updated Steper Motors Circuits URL
2016-11-11 09:55:48 +01:00
martinnm d31826af1f Updated Steper Motors Circuits URL 2016-11-11 00:03:16 -07:00
Cristian Maglie 3957707218 Use Win10 API SetThreadDpiAwarenessContext to force DPI Awareness
This commit contains debug messages used for testing purposes.
2016-11-10 16:14:25 +02:00
Cristian Maglie 41092be596 Merge branch 'editor-refactor-fixup' 2016-11-09 14:25:45 +01:00
Cristian Maglie 650840381f Small cleanup, no code change 2016-11-07 14:51:25 +01:00
Cristian Maglie 5b4af28f47 Removed dead code 2016-11-07 14:47:33 +01:00
Cristian Maglie 10dcc1d932 When a new tab is created is also selected
Previously it was selected always the last tab because the action
sequence was:

 - create the new tab (in the last position)
 - select the new tab index (last)
 - sort the tabs (the new tab is now in the middle but the selected
   is always the last)

instead the correct action sequence is

 - create the new tab (in the last position)
 - sort the tabs (now the new tab is in the middle)
 - select the new tab index (now the correct index is selected)
2016-11-07 12:25:53 +01:00
Cristian Maglie 5244daa5d1 Use the same Comparator to sort EditorTab and SketchFile 2016-11-07 12:13:30 +01:00
Cristian Maglie c35469ea81 Updated translations strings 2016-11-07 10:48:18 +01:00
Cristian Maglie 8c5b064956 Added error message if a referenced core is not found 2016-11-07 10:48:04 +01:00
Cristian Maglie fceb1d7eda Windows: added application manifest 2016-11-04 16:03:17 +02:00
Cristian Maglie 41291c2907 Update launch4j to version 3.9 2016-11-04 11:43:38 +02:00
Cristian Maglie 03225e787f Windows: Autodetection of display resolution 2016-11-04 10:23:49 +02:00
Cristian Maglie d63162b5a1 Added Platform.getSystemDPI() API 2016-11-04 10:23:48 +02:00
Cristian Maglie af70053218 Improved Plaftorm.openUrl(..) for Windows
If a local file is being opened, now the function tries to convert
the path into a URI. This seems to be a more reliable way to open file
on Windows 10 that has a more strict permission policy on cmd.exe.
2016-11-03 19:37:52 +02:00
Cristian Maglie b00185e63d juint tests now use the correct jna lib again 2016-11-03 15:01:36 +02:00
Cristian Maglie 21ff728c59 Merge remote-tracking branch 'cmaglie/fix-win-paths' 2016-11-03 12:10:24 +01:00
Martino Facchin 1d74bb87ac Trigger Keywords update if a new library is added
Fixes #5415
2016-10-27 12:47:00 +02:00
Martino Facchin c6642c1bd2 Reorder tabs when a new file is inserted/renamed
Fixes #5402
2016-10-27 12:47:00 +02:00
Martino Facchin 4e84238527 Restore "Delete" tab functionality
The file was being deleted but the tab was still there
2016-10-27 12:47:00 +02:00
Martino Facchin 12eb09f0b9 Fix NPE if referred core is nonexistent
Fixes #5502
2016-10-27 12:46:44 +02:00
Martino Facchin de9bd89a01 Update libListSerial to 1.2.0 2016-10-21 16:39:59 +02:00
Cristian Maglie d50d0be345 SD lib is now downloaded from lib manager 2016-10-20 16:34:08 +02:00
Cristian Maglie 3af99c0847 Use Documents/ArduinoData when running as a Windows UWP
LocalAppData is restricted for Windows Apps, so we are forced to use
a document folder.
2016-10-19 16:28:21 +02:00
Cristian Maglie cb50ebc9c1 Slightly simplified argument passing to arduino-builder 2016-10-19 16:28:21 +02:00