Moved intro label to left side.
[chessclock] / classes / startwidget.h
1  /**************************************************************************
2
3     Chess Clock
4
5     Copyright (c) Arto Hyvättinen 2010
6
7     This file is part of Chess Clock software.
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 #ifndef STARTWIDGET_H
23 #define STARTWIDGET_H
24
25 #include <QWidget>
26 #include <QListWidget>
27
28
29 class QListWidget;
30 class TimeControl;
31
32 /*! Start widget to ask for Time control
33
34   @author Arto Hyvättinen
35   @date 2010-08-16
36
37   Time Controls are stored inside Start Widget */
38 class StartWidget : public QWidget
39 {
40     Q_OBJECT
41 public:
42     StartWidget(QWidget *parent = 0);
43     void addTimeControl( TimeControl* tc);
44
45 signals:
46     void selected(TimeControl* timeControl);
47
48 public slots:
49     void selectControl(QListWidgetItem* item);
50
51 protected:
52     QListWidget* modeSelect_;
53     QList<TimeControl*> timeControls_;
54
55 };
56
57 #endif // STARTWIDGET_H