Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
[merge] branch dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed May 16, 2018
2 parents 65bbd17 + 5547491 commit 49f422b
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 10 deletions.
Binary file added resources/app.icns
Binary file not shown.
Binary file added resources/app.ico
Binary file not shown.
Binary file removed resources/icon.icns
Binary file not shown.
Binary file removed resources/icon.ico
Binary file not shown.
Binary file added resources/icons/1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icons/96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/app/services/dialog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,14 @@ export class DialogService {

this.remote.dialog.showSaveDialog({
title: this.translations["EXPORT_IMAGE"],
defaultPath: this.mmpService.selectNode("map_node_0").name + "." + extension
defaultPath: this.mmpService.selectNode("map_node_0").name
}, (path: string) => {
this.ngZone.run(() => {
if (typeof path === "string") {
if (extension === "jpeg") {
extension = "jpg";
}

path = path + "." + extension;

if (typeof path === "string") {
Expand Down
23 changes: 16 additions & 7 deletions src/app/services/menu.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,22 @@ export class MenuService {
});
}
}, {
label: translations["EXPORT_IMAGE"],
accelerator: "Ctrl+e",
click: () => {
this.ngZone.run(() => {
this.dialogService.exportImage();
});
}
label: translations["EXPORT_AS"],
submenu: [{
label: translations["PNG"],
click: () => {
this.ngZone.run(() => {
this.dialogService.exportImage();
});
}
}, {
label: translations["JPG"],
click: () => {
this.ngZone.run(() => {
this.dialogService.exportImage("jpeg");
});
}
}]
}, {
type: "separator"
}, {
Expand Down
4 changes: 3 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"DISMISS": "Dismiss",
"SAVE": "Save",
"SAVE_WITH_NAME": "Save with name",
"EXPORT_IMAGE": "Export image",
"EXPORT_AS": "Export as",
"PNG": "Image (.png)",
"JPG": "Image (.jpg)",
"QUIT": "Quit",
"IMAGE": "Image",
"EDIT": "Edit",
Expand Down
4 changes: 3 additions & 1 deletion src/assets/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"DISMISS": "Chiudi",
"SAVE": "Salva",
"SAVE_WITH_NAME": "Salva con nome",
"EXPORT_IMAGE": "Esporta immagine",
"EXPORT_AS": "Esporta come",
"PNG": "Immagine (.png)",
"JPG": "Immagine (.jpg)",
"QUIT": "Esci",
"IMAGE": "Immagine",
"EDIT": "Modifica",
Expand Down

0 comments on commit 49f422b

Please sign in to comment.