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

Fixed Krazy issues, except i18n calls

Haven't touch i18n calls to make translation files compatible.
parent 04051bf8
......@@ -146,7 +146,7 @@ class SquareStack
{
public:
SquareStack();
SquareStack(int size);
explicit SquareStack(int size);
void resize(int size);
void init(int size);
......@@ -184,7 +184,7 @@ class Engine
{
public:
Engine(int st, int sd);
Engine(int st);
explicit Engine(int st);
Engine();
~Engine();
......
......@@ -35,7 +35,7 @@ class ColorScheme : public QDeclarativeItem
Q_PROPERTY(QColor border READ border)
public:
ColorScheme(QDeclarativeItem *parent = 0);
explicit ColorScheme(QDeclarativeItem *parent = 0);
QColor background() const;
QColor foreground() const;
......
......@@ -29,8 +29,13 @@
#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 {
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
#define GAMESTARTINFORMATION_H
......
......@@ -34,7 +34,7 @@ public:
~KReversiComputerPlayer();
/**
* Overriden slots from @see KReversiPlayer
* Overridden slots from @see KReversiPlayer
*/
void prepare(KReversiGame *game);
void takeTurn();
......
......@@ -189,7 +189,7 @@ private:
*/
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);
/**
......
......@@ -33,7 +33,7 @@ public:
explicit KReversiHumanPlayer(ChipColor color, QString name);
/**
* Overriden slots from @see KReversiPlayer
* Overridden slots from @see KReversiPlayer
*/
void prepare(KReversiGame *game);
void takeTurn();
......
......@@ -40,8 +40,8 @@ KReversiView::KReversiView(KReversiGame* game, QWidget *parent, KgThemeProvider
m_qml_root = (QObject*) rootObject();
rootContext()->setContextProperty("container", this);
connect(m_qml_root, SIGNAL(cellClicked(int, int)),
this, SLOT(onPlayerMove(int, int)));
connect(m_qml_root, SIGNAL(cellClicked(int,int)),
this, SLOT(onPlayerMove(int,int)));
setGame(game);
}
......
......@@ -4,6 +4,29 @@
#include <QMessageBox>
#include <QCloseEvent>
#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 <QSvgRenderer>
#include <QPainter>
......
......@@ -7,6 +7,28 @@
#include <KDialog>
#include <KUser>
#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
{
......
......@@ -10,6 +10,9 @@
<height>186</height>
</rect>
</property>
<property name="locale">
<locale language="English" country="UnitedStates"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
......@@ -87,7 +90,7 @@
<item>
<widget class="KLineEdit" name="blackName">
<property name="text">
<string>username</string>
<string notr="true">username</string>
</property>
</widget>
</item>
......@@ -213,7 +216,7 @@
<item>
<widget class="KLineEdit" name="whiteName">
<property name="text">
<string>username</string>
<string notr="true">username</string>
</property>
</widget>
</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