|
|
@ -5,7 +5,6 @@ import QtQuick.Dialogs 1.1 |
|
|
|
import QtQuick.Layouts 1.1 |
|
|
|
import QtQuick.Window 2.1 |
|
|
|
import CodeEditorExtensionManager 1.0 |
|
|
|
import org.ethereum.qml.ProjectModel 1.0 |
|
|
|
|
|
|
|
ApplicationWindow { |
|
|
|
id: mainApplication |
|
|
@ -101,7 +100,7 @@ ApplicationWindow { |
|
|
|
text: qsTr("&New project") |
|
|
|
shortcut: "Ctrl+N" |
|
|
|
enabled: true; |
|
|
|
onTriggered: ProjectModel.createProject(); |
|
|
|
onTriggered: projectModel.createProject(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
@ -109,54 +108,54 @@ ApplicationWindow { |
|
|
|
text: qsTr("&Open project") |
|
|
|
shortcut: "Ctrl+O" |
|
|
|
enabled: true; |
|
|
|
onTriggered: ProjectModel.browseProject(); |
|
|
|
onTriggered: projectModel.browseProject(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: addNewJsFileAction |
|
|
|
text: qsTr("New JavaScript file") |
|
|
|
shortcut: "Ctrl+Alt+J" |
|
|
|
enabled: !ProjectModel.isEmpty |
|
|
|
onTriggered: ProjectModel.newJsFile(); |
|
|
|
enabled: !projectModel.isEmpty |
|
|
|
onTriggered: projectModel.newJsFile(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: addNewHtmlFileAction |
|
|
|
text: qsTr("New HTML file") |
|
|
|
shortcut: "Ctrl+Alt+H" |
|
|
|
enabled: !ProjectModel.isEmpty |
|
|
|
onTriggered: ProjectModel.newHtmlFile(); |
|
|
|
enabled: !projectModel.isEmpty |
|
|
|
onTriggered: projectModel.newHtmlFile(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: addNewContractAction |
|
|
|
text: qsTr("New contract") |
|
|
|
shortcut: "Ctrl+Alt+C" |
|
|
|
enabled: !ProjectModel.isEmpty |
|
|
|
onTriggered: ProjectModel.newContract(); |
|
|
|
enabled: !projectModel.isEmpty |
|
|
|
onTriggered: projectModel.newContract(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: addExistingFileAction |
|
|
|
text: qsTr("Add existing file") |
|
|
|
shortcut: "Ctrl+Alt+A" |
|
|
|
enabled: !ProjectModel.isEmpty |
|
|
|
onTriggered: ProjectModel.addExistingFile(); |
|
|
|
enabled: !projectModel.isEmpty |
|
|
|
onTriggered: projectModel.addExistingFile(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: saveAllFilesAction |
|
|
|
text: qsTr("Save all") |
|
|
|
shortcut: "Ctrl+S" |
|
|
|
enabled: !ProjectModel.isEmpty |
|
|
|
onTriggered: ProjectModel.saveAll(); |
|
|
|
enabled: !projectModel.isEmpty |
|
|
|
onTriggered: projectModel.saveAll(); |
|
|
|
} |
|
|
|
|
|
|
|
Action { |
|
|
|
id: closeProjectAction |
|
|
|
text: qsTr("Close project") |
|
|
|
shortcut: "Ctrl+W" |
|
|
|
enabled: !ProjectModel.isEmpty |
|
|
|
onTriggered: ProjectModel.closeProject(); |
|
|
|
enabled: !projectModel.isEmpty |
|
|
|
onTriggered: projectModel.closeProject(); |
|
|
|
} |
|
|
|
} |
|
|
|