Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDE 1.5.x] Command-line / GUI refactor. #2328

Merged
merged 73 commits into from
Nov 18, 2014
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Sep 26, 2014

This is a proposal for the rationalization of the Arduino IDE code.
More info coming.

@championswimmer
Copy link
Contributor

what is the current status on this ?
by when do we expect this to be merged ?

@cmaglie
Copy link
Member Author

cmaglie commented Oct 28, 2014

Just pushed a fix and rebased on current master, let's see if the bot is able to create the build.

@ArduinoBot
Copy link
Contributor

Build failed.

@ffissore
Copy link
Contributor

Build failed with batchtest doesn't support the "skipNonTests" attribute. If you wish to temporarily disable a test, append @Ignore annotation right below @Test

@ffissore ffissore closed this Oct 29, 2014
@ffissore ffissore reopened this Oct 29, 2014
@cmaglie cmaglie force-pushed the ide-1.5.x-gui-refactor branch 2 times, most recently from fc88ce5 to b0b40da Compare November 2, 2014 12:12
@agdl
Copy link
Member

agdl commented Nov 3, 2014

Tested:

  • Upload on UNO, Leonardo, MEGA 2560, DUE, Esplora, Micro, Ehernet;
  • Serial monitor opening;
  • Modify preferences;
  • Copy for forum (even with mods to read only files):
  • Copy HTML (even with mods to read only files);
  • Autoformat;
  • All the links in help menu;
  • Import library;
  • Add file;
  • Show sketch folder;
  • Save & open;
  • Find & Replace. Use selection for find;
  • Uploading of a sketch with many files;

Everything works without strange behaviour

matthijskooijman and others added 18 commits November 13, 2014 16:18
Previously, the useRecursion and srcFolders were filled on library
creation, based on the existence of the src folder. Now, a layout
variable is set, and the useRecursion() and getSrcFolder() methods
change their return value based on the layout in use.
This simplifies upcoming changes.
Nobody was using it anymore, except for checking against specific
extensions, which is easily done against the filename itself. This
prepares for some simplification of Sketch.load next.
Removed a lot of duplicate/unused code. Preferences un-marshalling
is now handled in PreferencesMap class.
Moved GUI fields into a SketchCodeDocument container class.
Create a class SketchData to store all relevant data for a sketch
(trying to keep GUI stuff out of the way).

Moved preprocessing code from Sketch to Compiler.
SketchCodeDoc renamed to SketchCodeDocument.
Compiler is now independent from SketchCodeDocument.
Created a class PreferencesData to manage all parameters except the ones for the GUI.
Removed GUI parameters management from ParametersMap.
Created ParametersHelper class to help with GUI parameters management.
Used ParametersHelper in Themes.
Also removed unused ColorSelector and CreateFont to reduce wrappers
size to the minimum.
This commit is preparatory for dropping dependency on processing-core.
bitron and others added 18 commits November 13, 2014 16:23
Now the the GUI and the rest of the code should be completely separated.
--buildpath
--nouploadport
--useprogrammer
BEWARE: HIGHLY EXPERIMENTAL BRANCH
@cmaglie cmaglie self-assigned this Nov 18, 2014
@cmaglie cmaglie added Component: IDE The Arduino IDE Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix) Version: 1.5.x labels Nov 18, 2014
@cmaglie cmaglie added this to the IDE 1.5 stable milestone Nov 18, 2014
@cmaglie cmaglie merged commit 7b2ed12 into ide-1.5.x Nov 18, 2014
@cmaglie cmaglie deleted the ide-1.5.x-gui-refactor branch November 18, 2014 18:08
cmaglie added a commit to cmaglie/Arduino that referenced this pull request Nov 7, 2016
cmaglie added a commit to cmaglie/Arduino that referenced this pull request Nov 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants