1 | /* |
2 | * Copyright 2010 Parker Coates <coates@kde.org> |
3 | * |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License as |
6 | * published by the Free Software Foundation; either version 2 of |
7 | * the License, or (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | * |
17 | */ |
18 | |
19 | #ifndef NUMBEREDDEALDIALOG_H |
20 | #define NUMBEREDDEALDIALOG_H |
21 | |
22 | class KComboBox; |
23 | #include <KDialog> |
24 | |
25 | #include <QtCore/QMap> |
26 | class QSpinBox; |
27 | |
28 | class NumberedDealDialog : public KDialog |
29 | { |
30 | Q_OBJECT |
31 | |
32 | public: |
33 | explicit NumberedDealDialog( QWidget * parent ); |
34 | void setGameType( int gameId ); |
35 | void setDealNumber( int dealNumber ); |
36 | |
37 | public slots: |
38 | virtual void setVisible( bool visible ); |
39 | |
40 | signals: |
41 | void dealChosen( int gameId, int dealNumber ); |
42 | |
43 | private slots: |
44 | void handleOkClicked(); |
45 | |
46 | private: |
47 | KComboBox * m_gameType; |
48 | QSpinBox * m_dealNumber; |
49 | QMap<int,int> m_indexToIdMap; |
50 | }; |
51 | |
52 | #endif |
53 | |
54 | |