1 /**************************************************************************
5 This file is part of Chess Clock software.
7 (This file) Copyright (c) Heli Hyvättinen 2011
9 Chess Clock is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 Chess Clock is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
20 **************************************************************************/
25 import ChessClocks 1.0
32 orientationLock: PageOrientation.LockLandscape
38 // anchors.fill: parent
39 // anchors.left: menuList.right
41 source: ":/rc/pic/logo.png"
51 timeControl: WrappedClocksWidget.NormalClock
53 askTurnsPerAddition: false
54 logoFile: ":/rc/pic/oldclock.png"
61 name: "Addition before"
62 timeControl: WrappedClocksWidget.AdditionBefore
64 askTurnsPerAddition: true
65 logoFile: ":/rc/pic/addbefore.png"
70 name: "Addition after"
71 timeControl: WrappedClocksWidget.AdditionAfter
73 askTurnsPerAddition: true
74 logoFile: ":/rc/pic/addafter.png"
80 timeControl: WrappedClocksWidget.Delay
82 askTurnsPerAddition: false
83 logoFile: ":/rc/pic/pausebefore.png"
89 timeControl: WrappedClocksWidget.DelayAfter
91 askTurnsPerAddition: false
92 logoFile: ":/rc/pic/pauseafter.png"
98 timeControl: WrappedClocksWidget.HourGlass
100 askTurnsPerAddition: false
101 logoFile:":/rc/pic/hourglass.png"
111 anchors.left: bigLogo.right
112 anchors.right: parent.right
113 anchors.top: parent.top
114 anchors.bottom: parent.bottom
130 newGameDialogPage.name = name
131 newGameDialogPage.timeControl = timeControl
132 newGameDialogPage.askAddition = askAddition
133 newGameDialogPage.askTurnsPerAddition = askTurnsPerAddition
134 PageStack.push(newGameDialogPage) }
142 anchors.topMargin: 12
150 newGameDialogPage.name = name
151 newGameDialogPage.timeControl = timeControl
152 newGameDialogPage.askAddition = askAddition
153 newGameDialogPage.askTurnsPerAddition = askTurnsPerAddition
154 pageStack.push(newGameDialogPage)