Commit 73a0461c authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis

Hung a help button on the menu

parent d30cadd0
...@@ -139,6 +139,19 @@ var settings_menu = new gui.MenuItem({ ...@@ -139,6 +139,19 @@ var settings_menu = new gui.MenuItem({
}, },
}); });
menu.append(settings_menu); menu.append(settings_menu);
var help_menu = new gui.MenuItem({
label: COMMON.MENU.HELP,
icon: 'static/images/help.png',
iconIsTemplate: false,
click: function () {
if (windows['help']) windows['help'].close();
windows['help'] = gui.Window.open(
'https://www.synnefo.org/docs/agkyra/latest/', {
toolbar: false, resizable: true, focus: true, width: 700, height: 500
});
}
});
menu.append(help_menu);
var about_menu = new gui.MenuItem({ var about_menu = new gui.MenuItem({
label: COMMON.MENU.ABOUT, label: COMMON.MENU.ABOUT,
...@@ -148,8 +161,7 @@ var about_menu = new gui.MenuItem({ ...@@ -148,8 +161,7 @@ var about_menu = new gui.MenuItem({
if (windows['about']) windows['about'].close(); if (windows['about']) windows['about'].close();
windows['about'] = gui.Window.open( windows['about'] = gui.Window.open(
"about_" + globals.settings.language + ".html", { "about_" + globals.settings.language + ".html", {
toolbar: false, resizable: false, focus: true, toolbar: false, resizable: false, focus: true, width: 640, height: 420
width: 640, height: 420
}); });
} }
}); });
...@@ -210,6 +222,7 @@ function check_menu_lang() { ...@@ -210,6 +222,7 @@ function check_menu_lang() {
local_folder_menu.label = COMMON.MENU.FOLDER; local_folder_menu.label = COMMON.MENU.FOLDER;
pithos_page_menu.label = COMMON.MENU.PITHOS; pithos_page_menu.label = COMMON.MENU.PITHOS;
settings_menu.label = COMMON.MENU.SETTINGS; settings_menu.label = COMMON.MENU.SETTINGS;
help_menu.label = COMMON.MENU.HELP;
about_menu.label = COMMON.MENU.ABOUT; about_menu.label = COMMON.MENU.ABOUT;
quit_menu.label = COMMON.MENU.QUIT; quit_menu.label = COMMON.MENU.QUIT;
tray.menu = menu; tray.menu = menu;
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"PITHOS": "Άνοιγμα σελίδας Pithos+", "PITHOS": "Άνοιγμα σελίδας Pithos+",
"SETTINGS": "Ρυθμίσεις", "SETTINGS": "Ρυθμίσεις",
"SETTINGSOPEN": "Ανοιχτό παράθυρο ρυθμίσεων", "SETTINGSOPEN": "Ανοιχτό παράθυρο ρυθμίσεων",
"HELP": "Βοήθεια, οδηγίες",
"ABOUT": "Σχετικά", "ABOUT": "Σχετικά",
"QUIT": "Τερματισμός Agkyra" "QUIT": "Τερματισμός Agkyra"
}, },
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"PITHOS": "Go to Pithos+ page", "PITHOS": "Go to Pithos+ page",
"SETTINGS": "Settings", "SETTINGS": "Settings",
"SETTINGSOPEN": "Settings window is open", "SETTINGSOPEN": "Settings window is open",
"HELP": "Help, docs",
"ABOUT": "About", "ABOUT": "About",
"QUIT": "Quit Agkyra" "QUIT": "Quit Agkyra"
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment