Pause button in toolbar
[chessclock] / qml / ClocksPage.qml
1 /**************************************************************************
2
3    Chess Clock
4
5    This file is part of Chess Clock software.
6
7    (This file) Copyright (c) Heli Hyvättinen 2011
8
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.
13
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.
18
19
20 **************************************************************************/
21
22 import QtQuick 1.0
23 import com.meego 1.0
24 import QtQuick 1.1 
25 import ChessClocks 1.0
26
27
28
29 Page
30 {
31     id: clocksPage
32
33
34     tools: ToolBarLayout
35     {
36         ToolButton { iconSource: "toolbar-back"; onClicked: pageStack.pop() }
37         ToolButton
38         {
39             iconSource: ":/rc/pic/pausebutton.png"
40             onClicked: wrappedClocksWidget.pause()
41         }
42     }
43
44     property int whiteInitialTime
45     property int blackInitialTime
46     property int whiteAdditionalTime
47     property int blackAdditionalTime
48     property int whiteTurnsPerAddition
49     property int blackTurnsPerAddition
50
51
52
53     WrappedClocksWidget
54     {
55         id: wrappedClocksWidget
56         Component.onCompleted: startGame("",300,30,1,400,40,2)
57
58     }
59
60
61
62 }