# -*- coding: utf-8 -*-
from ninja_ide import translations
#{
#"shortcut": "Change-Tab",
#"action": ("text", "Image [string for ninja, Int for qt, None for nothing]"),
#"connect": "function_name"
#}
ACTIONS = (
{
"shortcut": "Find-in-files",
"action": {'text': translations.TR_FIND_IN_FILES,
'image': 'find',
'section': (translations.TR_MENU_EDIT, None),
'weight': 240},
"connect": "show_find_in_files_widget"
},
{
"shortcut": "Run-file",
"action": {'text': translations.TR_RUN_FILE,
'image': 'file-run',
'section': (translations.TR_MENU_PROJECT, None),
'weight': 110},
"connect": "execute_file"
},
{
"shortcut": "Run-project",
"action": {'text': translations.TR_RUN_PROJECT,
'image': 'play',
'section': (translations.TR_MENU_PROJECT, None),
'weight': 100},
"connect": "execute_project"
},
{
"shortcut": "Stop-execution",
"action": {'text': translations.TR_STOP,
'image': 'stop',
'section': (translations.TR_MENU_PROJECT, None),
'weight': 120},
"connect": "kill_application"
},
{
"shortcut": "Hide-misc",
"action": {'text': translations.TR_TOOLS_VISIBILITY,
'section': (translations.TR_MENU_VIEW, None),
'weight': 100},
"connect": "change_visibility"
},
)