~ubuntu-branches/ubuntu/precise/kdegames/precise

« back to all changes in this revision

Viewing changes to kiriki/src/row.h

  • Committer: Bazaar Package Importer
  • Author(s): Sune Vuorela
  • Date: 2009-04-06 01:33:00 UTC
  • mfrom: (1.1.3 upstream)
  • mto: (2.2.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: james.westby@ubuntu.com-20090406013300-5d62yspscjsv5zd6
Tags: 4:4.2.2-1
* New upstream release:
  - Bugfixes in kpat. (Closes: #376420, #444050, #291007, #422437, #448641)
  - kmines, it is not longer possible cheat the timer. (Closes: #409310)
  - knetwalk, game type is shown after restart. (Closes: #417837)
* Bump build-deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2008 by Albert Astals Cid <aacid@kde.org>               *
 
3
 *                                                                         *
 
4
 *   This program is free software; you can redistribute it and/or modify  *
 
5
 *   it under the terms of the GNU General Public License as published by  *
 
6
 *   the Free Software Foundation; either version 2 of the License, or     *
 
7
 *   (at your option) any later version.                                   *
 
8
 ***************************************************************************/
 
9
 
 
10
#include <QFlags>
 
11
#include <QString>
 
12
 
 
13
class Row
 
14
{
 
15
        public:
 
16
                enum Type
 
17
                {
 
18
                        NamesRow,
 
19
                        EmptyRow,
 
20
                        ScoreRow,
 
21
                        BonusRow,
 
22
                        UpperTotalRow,
 
23
                        LowerTotalRow,
 
24
                        GrandTotalRow
 
25
                };
 
26
                
 
27
                enum Flag
 
28
                {
 
29
                        NoFlags = 0,
 
30
                        BoldFontFlag = 1,
 
31
                        BiggerFontFlag = 2
 
32
                };
 
33
                Q_DECLARE_FLAGS(Flags, Flag)
 
34
                
 
35
                Row(Type type, const QString &text = QString(), int scoreRow = -1, Flags flags = NoFlags);
 
36
                
 
37
                Type type() const;
 
38
                QString text() const;
 
39
                int scoreRow() const;
 
40
                Flags flags() const;
 
41
        
 
42
        private:
 
43
                Type m_type;
 
44
                QString m_text;
 
45
                int m_scoreRow;
 
46
                Flags m_flags;
 
47
};
 
48
 
 
49
 
 
50
Q_DECLARE_OPERATORS_FOR_FLAGS(Row::Flags)