1 /* This file is part of KsirK.
2    Copyright (C) 2001-2007 Gael de Chalendar <kleag@free.fr>
3 
4    KsirK is free software; you can redistribute it and/or
5    modify it under the terms of the GNU General Public
6    License as published by the Free Software Foundation, either version 2
7    of 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 GNU
12    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, write to the Free Software
16    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17    02110-1301, USA
18 */
19 
20 #ifndef INVASIONSLIDER_H
21 #define INVASIONSLIDER_H
22 
23 #include <QDialog>
24 
25 class QLabel;
26 class QSlider;
27 
28 namespace Ksirk
29 {
30  class KGameWindow;
31 
32 namespace GameLogic
33 {
34   class Country;
35 }
36 /**
37   *
38   * @author Gael de Chalendar (aka Kleag)
39   * @version $Id: kgamewin.h 243 2007-02-24 00:22:58Z kleag $
40   */
41 class InvasionSlider: public QDialog
42 {
43   Q_OBJECT
44 
45 public:
46   enum InvasionType {Invasion, Moving};
47 
48   InvasionSlider(KGameWindow* game, GameLogic::Country *,GameLogic::Country *, InvasionType invasionType = Invasion);
49 
50 
51   protected:
52 
53 
54 public Q_SLOTS:
55 
56   void slideMove(int v);
57   void slideReleased();
58   void slideClose();
59   void slideCancel();
60 
61 private:
62   KGameWindow* m_game;
63 
64   int m_nbRArmy;
65   int m_nbLArmy;
66   int m_currentSlideValue;
67   int m_previousSlideValue;
68 
69   QLabel * m_nbLArmies;
70   QLabel * m_nbRArmies;
71   QSlider * m_invadeSlide;
72 };
73 
74 } // closing namespace Ksirk
75 
76 #endif // INVASIONSLIDER_H
77 
78