Commit 0bc4a3b6 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Fixed Krazy issues, except i18n calls

Haven't touch i18n calls to make translation files compatible.
parent 04051bf8
...@@ -146,7 +146,7 @@ class SquareStack ...@@ -146,7 +146,7 @@ class SquareStack
{ {
public: public:
SquareStack(); SquareStack();
SquareStack(int size); explicit SquareStack(int size);
void resize(int size); void resize(int size);
void init(int size); void init(int size);
...@@ -184,7 +184,7 @@ class Engine ...@@ -184,7 +184,7 @@ class Engine
{ {
public: public:
Engine(int st, int sd); Engine(int st, int sd);
Engine(int st); explicit Engine(int st);
Engine(); Engine();
~Engine(); ~Engine();
......
...@@ -35,7 +35,7 @@ class ColorScheme : public QDeclarativeItem ...@@ -35,7 +35,7 @@ class ColorScheme : public QDeclarativeItem
Q_PROPERTY(QColor border READ border) Q_PROPERTY(QColor border READ border)
public: public:
ColorScheme(QDeclarativeItem *parent = 0); explicit ColorScheme(QDeclarativeItem *parent = 0);
QColor background() const; QColor background() const;
QColor foreground() const; QColor foreground() const;
......
...@@ -29,8 +29,13 @@ ...@@ -29,8 +29,13 @@
#include <preferences.h> #include <preferences.h>
// noColor = empty
enum ChipColor {White = 0, Black = 1, NoColor = 2}; enum ChipColor {
White = 0,
Black = 1,
NoColor = 2 // noColor = empty
};
struct KReversiPos { struct KReversiPos {
KReversiPos(int r = -1, int c = -1) KReversiPos(int r = -1, int c = -1)
......
/*******************************************************************
*
* Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
*
* This file is part of the KDE project "KReversi"
*
* KReversi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* KReversi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KReversi; see the file COPYING. If not, write to
* the Free Software Foundation, 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
********************************************************************/
#ifndef GAMESTARTINFORMATION_H #ifndef GAMESTARTINFORMATION_H
#define GAMESTARTINFORMATION_H #define GAMESTARTINFORMATION_H
......
...@@ -34,7 +34,7 @@ public: ...@@ -34,7 +34,7 @@ public:
~KReversiComputerPlayer(); ~KReversiComputerPlayer();
/** /**
* Overriden slots from @see KReversiPlayer * Overridden slots from @see KReversiPlayer
*/ */
void prepare(KReversiGame *game); void prepare(KReversiGame *game);
void takeTurn(); void takeTurn();
......
...@@ -189,7 +189,7 @@ private: ...@@ -189,7 +189,7 @@ private:
*/ */
void turnChips(const KReversiMove &move); void turnChips(const KReversiMove &move);
/** /**
* Sets the type of chip acording to KReversiMove * Sets the type of chip according to KReversiMove
*/ */
void setChipColor(const KReversiMove &move); void setChipColor(const KReversiMove &move);
/** /**
......
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
explicit KReversiHumanPlayer(ChipColor color, QString name); explicit KReversiHumanPlayer(ChipColor color, QString name);
/** /**
* Overriden slots from @see KReversiPlayer * Overridden slots from @see KReversiPlayer
*/ */
void prepare(KReversiGame *game); void prepare(KReversiGame *game);
void takeTurn(); void takeTurn();
......
...@@ -40,8 +40,8 @@ KReversiView::KReversiView(KReversiGame* game, QWidget *parent, KgThemeProvider ...@@ -40,8 +40,8 @@ KReversiView::KReversiView(KReversiGame* game, QWidget *parent, KgThemeProvider
m_qml_root = (QObject*) rootObject(); m_qml_root = (QObject*) rootObject();
rootContext()->setContextProperty("container", this); rootContext()->setContextProperty("container", this);
connect(m_qml_root, SIGNAL(cellClicked(int, int)), connect(m_qml_root, SIGNAL(cellClicked(int,int)),
this, SLOT(onPlayerMove(int, int))); this, SLOT(onPlayerMove(int,int)));
setGame(game); setGame(game);
} }
......
...@@ -4,6 +4,29 @@ ...@@ -4,6 +4,29 @@
#include <QMessageBox> #include <QMessageBox>
#include <QCloseEvent> #include <QCloseEvent>
#include <KgDifficulty> #include <KgDifficulty>
/*******************************************************************
*
* Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
*
* This file is part of the KDE project "KReversi"
*
* KReversi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* KReversi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KReversi; see the file COPYING. If not, write to
* the Free Software Foundation, 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
********************************************************************/
#include <KDebug> #include <KDebug>
#include <QSvgRenderer> #include <QSvgRenderer>
#include <QPainter> #include <QPainter>
......
...@@ -7,6 +7,28 @@ ...@@ -7,6 +7,28 @@
#include <KDialog> #include <KDialog>
#include <KUser> #include <KUser>
#include <KgThemeProvider> #include <KgThemeProvider>
/*******************************************************************
*
* Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
*
* This file is part of the KDE project "KReversi"
*
* KReversi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* KReversi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KReversi; see the file COPYING. If not, write to
* the Free Software Foundation, 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
********************************************************************/
namespace Ui namespace Ui
{ {
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<height>186</height> <height>186</height>
</rect> </rect>
</property> </property>
<property name="locale">
<locale language="English" country="UnitedStates"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
...@@ -87,7 +90,7 @@ ...@@ -87,7 +90,7 @@
<item> <item>
<widget class="KLineEdit" name="blackName"> <widget class="KLineEdit" name="blackName">
<property name="text"> <property name="text">
<string>username</string> <string notr="true">username</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -213,7 +216,7 @@ ...@@ -213,7 +216,7 @@
<item> <item>
<widget class="KLineEdit" name="whiteName"> <widget class="KLineEdit" name="whiteName">
<property name="text"> <property name="text">
<string>username</string> <string notr="true">username</string>
</property> </property>
</widget> </widget>
</item> </item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment