1//-----------------------------------------------------------------------------
2/** @file pentobi/qml/MenuGame.qml
3    @author Markus Enzenberger
4    @copyright GNU General Public License version 3 or later */
5//-----------------------------------------------------------------------------
6
7import QtQuick.Controls 2.3
8import "Main.js" as Logic
9
10PentobiMenu {
11    title: qsTr("Game")
12
13    PentobiMenuItem {
14        action: actionNew
15    }
16    PentobiMenuItem {
17        action: actionNewRated
18    }
19    MenuSeparator { }
20    Action {
21        text: qsTr("Game Variant…")
22        onTriggered: gameVariantDialog.open()
23    }
24    PentobiMenuItem {
25        action: actionGameInfo
26    }
27    MenuSeparator { }
28    PentobiMenuItem {
29        action: actionUndo
30    }
31    PentobiMenuItem {
32        action: actionFindMove
33    }
34    MenuSeparator { }
35    PentobiMenuItem {
36        action: actionOpen
37    }
38    MenuRecentFiles { }
39    Action {
40        text: qsTr("Open Clipboard")
41        onTriggered: Logic.openClipboard()
42    }
43    PentobiMenuItem {
44        action: actionSave
45        enabled: actionSave.enabled && gameModel.file !== ""
46    }
47    PentobiMenuItem {
48        action: actionSaveAs
49    }
50    MenuExport { relativeWidth: 10 }
51    MenuSeparator { }
52    PentobiMenuItem {
53        action: actionQuit
54    }
55}
56