~keith-penguin/kdegames/trunk

« back to all changes in this revision

Viewing changes to ksudoku/src/ksudoku_types.h

  • Committer: Keith Worrell
  • Date: 2009-03-18 05:35:28 UTC
  • Revision ID: keith.worrell@gmail.com-20090318053528-mx6x9c0ngmg0kg6p
imported project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright 2007      Francesco Rossi <redsh@email.it>                  *
 
3
 *   Copyright 2006-2007 Mick Kappenburg <ksudoku@kappendburg.net>         *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef _KSUDOKU_TYPES_H_
 
22
#define _KSUDOKU_TYPES_H_
 
23
 
 
24
 
 
25
namespace ksudoku {
 
26
 
 
27
//UserEvent is defined as User in qevent.h since it is very unlikely
 
28
//to change and for faster compilation (...) it is defined here as USER_EVENT
 
29
#define USER_EVENT 1000
 
30
#define GENERATE_EVENT USER_EVENT+1
 
31
 
 
32
 
 
33
enum ButtonState {
 
34
        GivenValue     = 0,
 
35
        CorrectValue   = 1,
 
36
        WrongValue     = 2,
 
37
        ObviouslyWrong = 3,
 
38
        Marker         = 4
 
39
};
 
40
 
 
41
enum GameType {
 
42
        sudoku,
 
43
        roxdoku,
 
44
        custom
 
45
};
 
46
 
 
47
}
 
48
 
 
49
#endif
 
50