4 import com.nokia.extras 1.0
18 // anchors.centerIn: parent
19 // text: qsTr("Hello world!")
27 // anchors.fill: parent
28 // anchors.left: menuList.right
30 source: ":/rc/pic/logo.png"
41 logoFile: ":/rc/pic/oldclock.png"
48 name: "Addition before"
50 logoFile: ":/rc/pic/addbefore.png"
55 name: "Addition after"
57 logoFile: ":/rc/pic/addafter.png"
64 logoFile: ":/rc/pic/pausebefore.png"
71 logoFile: ":/rc/pic/pauseafter.png"
78 logoFile:":/rc/pic/hourglass.png"
88 anchors.left: bigLogo.right
89 anchors.right: parent.right
90 anchors.top: parent.top
91 anchors.bottom: parent.bottom
105 onClicked: {newGameDialog.name = name; newGameDialog.askAddition = askAddition; newGameDialog.open()}
113 anchors.topMargin: 12
119 onClicked: {newGameDialog.name = name; newGameDialog.askAddition = askAddition; newGameDialog.open()}
135 property bool askAddition
143 text: newGameDialog.name
156 // anchors.top: parent.top
157 // anchors.horizontalCenter: parent.horizontalCenter
161 // width: rowRow.width - rowRow.spacing - switchComponent.width - whiteSmall.width - blackSmall.width
162 // height: switchComponent.height
163 verticalAlignment: Text.AlignVCenter
177 source: ":/rc/pic/white_small.png"
183 source: ":/rc/pic/black_small.png"
192 // anchors.top: rowRow.bottom
193 // anchors.horizontalCenter: parent.horizontalCenter
207 onClicked: initialTimePicker.open()
219 onClicked: initialTimePicker.open()
226 id: additionalTimeText
227 text: "Additional time"
230 visible: newGameDialog.askAddition
231 // anchors.top: initialTimeText.bottom
232 // anchors.horizontalCenter: parent.horizontalCenter
238 id: whiteAdditionalTime
245 ListElement { value: 0}
246 ListElement {value: 1}
247 ListElement { value: 2}
254 id: blackAdditionalTime
259 valueIndicatorVisible: true
266 text: "Turns per addition"
269 visible: newGameDialog.askAddition
270 // anchors.top: additionalTimeText.bottom
271 // anchors.horizontalCenter: parent.horizontalCenter
275 id: whiteTurnsPerAddition
281 id: blackTurnsPerAddition
286 valueIndicatorVisible: true
301 onClicked: newGameDialog.accept()
307 id: initialTimePicker
308 titleText: "Choose initial time"
309 rejectButtonText: "Cancel"
310 acceptButtonText: "Ok"
311 hourMode: DateTime.TwentyFourHours
312 onAccepted: blackInitialTime.text = hour + "h" + minute + "min" + second + "s"