2022-02-15 20:03:45 +01:00
|
|
|
import util
|
|
|
|
|
|
|
|
|
|
|
|
def not_implemented():
|
|
|
|
util.warn("Not implemented!")
|
|
|
|
|
|
|
|
# format:
|
|
|
|
# "":{} -> menu or submenu
|
|
|
|
# "":function -> menu entry
|
|
|
|
# "":None -> disabled menu entry
|
2022-03-20 10:01:00 +01:00
|
|
|
# int:None -> separator
|
2022-02-15 20:03:45 +01:00
|
|
|
#
|
|
|
|
# Entries with ... at the end are supposed to open dialogs whereas entries without dots are supposed to take effect immediately
|
|
|
|
menu_structure = {
|
|
|
|
"IDE": {
|
|
|
|
"Preferences...": not_implemented,
|
2022-03-20 10:01:00 +01:00
|
|
|
0: None,
|
2022-02-15 20:03:45 +01:00
|
|
|
"Quit": not_implemented
|
|
|
|
},
|
|
|
|
"Project": {
|
|
|
|
"New": {
|
|
|
|
"No known project types": None
|
|
|
|
},
|
|
|
|
"Open...": not_implemented,
|
|
|
|
"Close": {
|
|
|
|
"No open projects": None
|
|
|
|
},
|
2022-03-20 10:01:00 +01:00
|
|
|
0: None,
|
2022-02-15 20:03:45 +01:00
|
|
|
"Preferences...": not_implemented,
|
|
|
|
"Search...": not_implemented,
|
|
|
|
"Build": not_implemented
|
|
|
|
},
|
|
|
|
"File": {
|
|
|
|
"New...": not_implemented,
|
|
|
|
"Open...": not_implemented,
|
|
|
|
"Save": not_implemented,
|
|
|
|
"Close": not_implemented,
|
2022-03-20 10:01:00 +01:00
|
|
|
0: None,
|
2022-02-15 20:03:45 +01:00
|
|
|
"Rename...": not_implemented,
|
|
|
|
"Move...": not_implemented,
|
|
|
|
"View in File Explorer...": not_implemented
|
|
|
|
},
|
|
|
|
"Edit": {
|
|
|
|
"Cut": not_implemented,
|
|
|
|
"Copy": not_implemented,
|
|
|
|
"Paste": not_implemented,
|
|
|
|
"Move code...": not_implemented,
|
2022-03-20 10:01:00 +01:00
|
|
|
0: None,
|
2022-02-15 20:03:45 +01:00
|
|
|
"Search and Replace...": not_implemented,
|
2022-03-20 10:01:00 +01:00
|
|
|
1: None,
|
2022-02-15 20:03:45 +01:00
|
|
|
"Format": not_implemented,
|
|
|
|
"Indent": not_implemented,
|
|
|
|
"Unindent": not_implemented,
|
|
|
|
"Toggle Comment": not_implemented
|
|
|
|
},
|
|
|
|
"View": {
|
|
|
|
"Zoom in": not_implemented,
|
|
|
|
"Zoom out": not_implemented,
|
|
|
|
"Normal Size": not_implemented
|
|
|
|
},
|
|
|
|
"Help": {
|
|
|
|
"Manual...": not_implemented,
|
|
|
|
"About IDE...": not_implemented,
|
|
|
|
}
|
|
|
|
}
|