Skip to content

update Sketch menu, add Save hex option #2567

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

Closed

Conversation

championswimmer
Copy link
Contributor

  • Moving Upload options from "File" menu to "Sketch" menu as those
    are sketch actions more than file actions.

Signed-off-by: Arnav Gupta championswimmer@gmail.com

@championswimmer
Copy link
Contributor Author

Check screenshot for illustration

@championswimmer
Copy link
Contributor Author

Check screenshot for illustration

@championswimmer
Copy link
Contributor Author

@cmaglie This can be considered ?

sketchMenu.add(item);


item = newJMenuItemAlt("Export compiled Binary", 'S');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May you add the _("....") syntax? so the menu string can be translated.

@cmaglie
Copy link
Member

cmaglie commented Feb 4, 2015

Hi Arnav!

I've added just two simple comments inline. Besides that, it looks ready to be merged.

C

@championswimmer
Copy link
Contributor Author

I see that on sam also we are using the terminology "hex", although the built files are not really "hex" per se.

https://github.com/arduino/Arduino/pull/2567/files#diff-3f519593b982008c8fefa0d4a62300c4L72

That's the reason I used hex in the keys.
Could you just confirm just once again that I should move on to using recipe.output... instead of recipe.hex...

@cmaglie
Copy link
Member

cmaglie commented Feb 5, 2015

Yes, please, let's name the recipe output instead of hex.

You're right about the fact that the inconsistency should be fixed in the objcopy recipe too, it makes no sense to hardcode the .hex extension there. We'll fix that with another pull request BTW.

@championswimmer
Copy link
Contributor Author

@cmaglie done :)

@cmaglie cmaglie added this to the Release 1.6.1 milestone Feb 18, 2015
@cmaglie cmaglie self-assigned this Feb 18, 2015
@cmaglie cmaglie added Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix) labels Feb 18, 2015
File hexFile = new File(prefs.get("build.path") + "/" + tmp_file);
File saveFile = new File(sketch.getFolder().getAbsolutePath() + "/" + save_file);

FileReader in = new FileReader(hexFile);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FileUtils.copyFile may be used here.

@ffissore
Copy link
Contributor

ffissore commented Mar 3, 2015

@championswimmer can you update the code so that it merges again?

@championswimmer
Copy link
Contributor Author

Oh shit, had forgotten about this totally. Will do that

Arnav Gupta (championswimmer)
LinkedIn http://in.linkedin.com/in/arnavgupta/ | Web
http://championswimmer.in | Blog http://blog.championswimmer.in |
Twitter http://twitter.com/championswimmer | Facebook
http://facebook.com/championswimmer | Github
http://github.com/championswimmer

On 3 March 2015 at 18:56, Federico Fissore notifications@github.com wrote:

@championswimmer https://github.com/championswimmer can you update the
code so that it merges again?

Reply to this email directly or view it on GitHub
#2567 (comment).

championswimmer and others added 3 commits March 3, 2015 19:06
  * Moving Upload options from "File" menu to "Sketch" menu as those
     are sketch actions more than file actions.

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
@Nandox7
Copy link

Nandox7 commented Apr 28, 2015

Hey, what's the status on this?
Will the new upload feature allow to upload a saved .hex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants