Skip to content

Commit

Permalink
Cleanup header includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Isarhamster committed Aug 20, 2014
1 parent 4c4f420 commit 3d657d3
Show file tree
Hide file tree
Showing 20 changed files with 18 additions and 33 deletions.
1 change: 0 additions & 1 deletion src/database/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "bitboard.h"

#include <QString>
#include <QStack>

#define COMPILED_GUESS_FILE_ID ((quint32)0xCD5CBD03U)

Expand Down
1 change: 0 additions & 1 deletion src/database/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifndef __COMMON_H__
#define __COMMON_H__

#include <QtDebug>
#include <QMap>
#include <QString>
#include <QStringList>
Expand Down
16 changes: 5 additions & 11 deletions src/database/database.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,20 @@
#ifndef __DATABASE_H__
#define __DATABASE_H__

#include <QString>
#include <QTextStream>

#include "filter.h"
#include "game.h"
#include "search.h"
#include "query.h"
#include "index.h"
#include "QMutex"

#include <QMutex>
#include <QString>
#include <QTextStream>

/** @defgroup Database Database - classes to manipulate chess game files*/

/** @ingroup Database
The Database class is abstract, providing a common interface for all
database types. There are methods for the loading and saving of games,
and for performing searches and queries.
@todo
Add name() to get just the database name
Add isReadOnly()
*/

class Database : public QObject
Expand Down Expand Up @@ -72,7 +66,7 @@ class Database : public QObject
/** Loads only moves into a game from the given position */
virtual void loadGameMoves(GameId index, Game& game) = 0;
/** Saves a game at the given position, returns true if successful */
virtual bool replace(GameId , Game&);
virtual bool replace(GameId, Game&);
/** Adds a game to the database */
virtual bool appendGame(const Game&);
/** Removes a game from the database */
Expand Down
1 change: 0 additions & 1 deletion src/database/enginelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <QtCore>
#include "enginedata.h"


/** The EngineList class contains configuration of all installed engines. */
class EngineList : public QList<EngineData>
{
Expand Down
1 change: 1 addition & 0 deletions src/database/engineoptiondata.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef ENGINEOPTIONDATA_H
#define ENGINEOPTIONDATA_H

#include <QtCore>
#include <QList>
#include <QMap>
Expand Down
2 changes: 0 additions & 2 deletions src/database/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <QThread>

#include "common.h"
#include "search.h"
#include "query.h"
#include "tristatetree.h"

class Database;
Expand Down
1 change: 0 additions & 1 deletion src/database/index.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <QObject>

#include "indexitem.h"
#include "search.h"
#include "game.h"

/** @ingroup Database
Expand Down
1 change: 1 addition & 0 deletions src/database/openingtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "openingtree.h"
#include "settings.h"
#include "movedata.h"
#include "openingtreethread.h"

#include <QIcon>
#include <QImage>
Expand Down
6 changes: 3 additions & 3 deletions src/database/openingtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#ifndef __OPENINGTREE_H__
#define __OPENINGTREE_H__

#include "movedata.h"

#include <QAbstractTableModel>

#include "filter.h"
#include "game.h"
#include "openingtreethread.h"
class Filter;

/** @ingroup Search
The OpeningTree class is a class to calculate opening tree for given position. */
Expand Down
1 change: 0 additions & 1 deletion src/database/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#ifndef __QUERY_H__
#define __QUERY_H__
class Search;

#include "search.h"
#include <QList>
Expand Down
1 change: 0 additions & 1 deletion src/database/tablebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <QNetworkAccessManager>

#include "common.h"
#include "move.h"

class QNetworkReply;
Expand Down
1 change: 0 additions & 1 deletion src/database/tristatetree.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifndef __TRISTATETREE_H__
#define __TRISTATETREE_H__

#include "search.h"
#include "query.h"

/** @ingroup Search
Expand Down
3 changes: 2 additions & 1 deletion src/database/uciengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#define __UCIENGINE_H__

#include <QString>
#include <QTextStream>

class QTextStream;

#include "engine.h"

Expand Down
4 changes: 2 additions & 2 deletions src/database/wbengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#ifndef __WBENGINE_H__
#define __WBENGINE_H__

#include <QEvent>
#include <QString>
#include <QTextStream>

class QTextStream;

#include "engine.h"

Expand Down
1 change: 1 addition & 0 deletions src/gui/analysiswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "analysiswidget.h"
#include "enginelist.h"
#include "messagedialog.h"
#include "tablebase.h"

AnalysisWidget::AnalysisWidget()
: m_engine(0),
Expand Down
2 changes: 1 addition & 1 deletion src/gui/analysiswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include "engine.h"
#include "ui_analysiswidget.h"
#include "tablebase.h"
#include <QtGui>

/** @ingroup GUI
Expand All @@ -21,6 +20,7 @@

class Analysis;
class Board;
class Tablebase;

class AnalysisWidget : public QWidget
{
Expand Down
1 change: 0 additions & 1 deletion src/gui/databaselist.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define DATABASELIST_H

#include "tableview.h"
#include "game.h"

class QSortFilterProxyModel;
class DatabaseListModel;
Expand Down
2 changes: 0 additions & 2 deletions src/gui/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#include "common.h"
#include "historylist.h"
#include "kbaction.h"
#include "move.h"
#include "output.h"

#include <QtGui>
Expand Down
4 changes: 2 additions & 2 deletions src/gui/shellhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Copyright (C) 2014 by Jens Nissen [email protected] *
****************************************************************************/

#include <QtCore>

#ifndef SHELLHELPER_H
#define SHELLHELPER_H

#include <QString>

class ShellHelper
{
public:
Expand Down
1 change: 0 additions & 1 deletion src/gui/tableview.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include <QtCore>
#include <QTableView>
#include <QTreeView>

/**
The TableView class is a specialized version of QTableView with automatic
Expand Down

0 comments on commit 3d657d3

Please sign in to comment.