Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Src/Common/SBTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
*/

#include <stdlib.h>

class SBTree {
public:
SBTree(int iValue);
Expand Down
1 change: 0 additions & 1 deletion Src/Common/Trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// removed by the compiler

#include <stdarg.h>
#include <stdio.h>

void DasherTraceOutput(const char *pszFormat, ...);
void DasherTraceOutputImpl(const char *pszFormat, va_list vargs);
Expand Down
2 changes: 0 additions & 2 deletions Src/DasherCore/AbstractXMLParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <fstream>

#include "FileUtils.h"

bool AbstractParser::ParseFile(const std::string& strPath, bool bUser)
{
std::ifstream in(strPath.c_str(), std::ios::binary);
Expand Down
2 changes: 0 additions & 2 deletions Src/DasherCore/Alphabet/AlphIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#include <algorithm>
#include <sstream>

#include "../ColorIO.h"

using namespace Dasher;

CAlphIO::CAlphIO(CMessageDisplay *pMsgs) : AbstractXMLParser(pMsgs) {
Expand Down
1 change: 0 additions & 1 deletion Src/DasherCore/Alphabet/AlphIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <map>
#include <pugixml.hpp>
#include <vector>
#include <utility>

namespace Dasher {
class CAlphIO;
Expand Down
4 changes: 0 additions & 4 deletions Src/DasherCore/Alphabet/AlphInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@
#ifndef __ALPHINFO_H__
#define __ALPHINFO_H__

#include <locale>

#include "../DasherTypes.h"
#include "AlphabetMap.h"
#include "GroupInfo.h"

#include <string>
#include <unordered_map>
#include <vector>
#include <utility> // for std::pair

#include "Actions.h"

Expand Down
2 changes: 2 additions & 0 deletions Src/DasherCore/AlphabetManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef __alphabetmanager_h__
#define __alphabetmanager_h__

#include <map>

#include "LanguageModelling/LanguageModel.h"
#include "DasherNode.h"
#include "NodeManager.h"
Expand Down
1 change: 0 additions & 1 deletion Src/DasherCore/AlternatingDirectMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <I18n.h>

#include "DasherInterfaceBase.h"
#include <valarray>


using namespace Dasher;
Expand Down
1 change: 0 additions & 1 deletion Src/DasherCore/AlternatingDirectMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __ALTERNATING_DIRECT_MODE_H__
#define __ALTERNATING_DIRECT_MODE_H__

#include "Event.h"
#include "DasherButtons.h"

namespace Dasher {
Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/AutoSpeedControl.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

#include "AutoSpeedControl.h"

#include <algorithm>
#include <cmath>

using namespace Dasher;
Expand Down
4 changes: 2 additions & 2 deletions Src/DasherCore/ButtonMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#include "ButtonMode.h"

#include <I18n.h>
#include <cmath>

#include "DasherScreen.h"
#include "DasherInterfaceBase.h"
#include <valarray>


using namespace Dasher;
Expand Down Expand Up @@ -113,7 +113,7 @@ void CButtonMode::SetupBoxes()
double dMaxSize;

if(dRatio == 1.0) {
dMaxSize = iDasherY / iForwardBoxes;
dMaxSize = static_cast<double>(iDasherY) / static_cast<double>(iForwardBoxes);
}
else {
if(bEven)
Expand Down
1 change: 0 additions & 1 deletion Src/DasherCore/ButtonMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __BUTTON_MODE_H__
#define __BUTTON_MODE_H__

#include "Event.h"
#include "DasherButtons.h"

namespace Dasher {
Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/CannaConversionHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <canna/jrkanji.h>
#include <canna/RK.h>
#include <iconv.h>
#include "SCENode.h"

#define BUFSIZE 10240

Expand Down
3 changes: 1 addition & 2 deletions Src/DasherCore/CannaConversionHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
#include "ConversionManager.h"
#include <iconv.h>

#include <iostream>
/// \ingroup Model
/// @{
class CCannaConversionHelper : public Dasher::CConversionManager {
public:
CCannaConversionHelper(CNodeCreationManager *pNCManager, Dasher::const CAlphInfo *pAlphabet, int Type, int Order);
CCannaConversionHelper(CNodeCreationManager *pNCManager, const Dasher::CAlphInfo *pAlphabet, int Type, int Order);
~CCannaConversionHelper();

virtual bool Convert(const std::string &strSource, SCENode ** pRoot);
Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/ClickFilter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "ClickFilter.h"
#include "DasherInterfaceBase.h"
#include <algorithm>

using namespace Dasher;

Expand Down
4 changes: 1 addition & 3 deletions Src/DasherCore/ColorPalette.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

#pragma once

#include "AbstractXMLParser.h"

#include <map>
#include <unordered_map>
#include <vector>
#include <string>

namespace Dasher {
namespace NamedColor
Expand Down
2 changes: 0 additions & 2 deletions Src/DasherCore/CompassMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

#include "DasherScreen.h"
#include "DasherInterfaceBase.h"
#include <valarray>


using namespace Dasher;

Expand Down
1 change: 0 additions & 1 deletion Src/DasherCore/CompassMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __COMPASS_MODE_H__
#define __COMPASS_MODE_H__

#include "Event.h"
#include "DasherButtons.h"

namespace Dasher {
Expand Down
2 changes: 1 addition & 1 deletion Src/DasherCore/ConversionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <cstring>
#include <string>
#include <vector>
#include <stdlib.h>
#include <ostream>

//Note the new implementation in Mandarin Dasher may not be compatible with the previous implementation of Japanese Dasher
//Need to reconcile (a small project)
Expand Down
2 changes: 2 additions & 0 deletions Src/DasherCore/ConversionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef __conversion_manager_h__
#define __conversion_manager_h__

#include <map>

#include "DasherTypes.h"
#include "LanguageModelling/LanguageModel.h" // Urgh - we really shouldn't need to know about language models here
#include "DasherNode.h"
Expand Down
30 changes: 0 additions & 30 deletions Src/DasherCore/CustomColours.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions Src/DasherCore/CustomColours.h

This file was deleted.

1 change: 0 additions & 1 deletion Src/DasherCore/DasherButtons.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __DASHER_BUTTONS_H__
#define __DASHER_BUTTONS_H__

#include "Event.h"
#include "InputFilter.h"

namespace Dasher {
Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/DasherInterfaceBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

// STL headers
#include <sstream>
#include <algorithm>

// Declare our global file logging object

Expand Down
3 changes: 0 additions & 3 deletions Src/DasherCore/DasherInterfaceBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@

#include "Messages.h"
#include "../Common/NoClones.h"
#include "../Common/ModuleSettings.h"
#include "Alphabet/AlphIO.h"
#include "AutoSpeedControl.h"
#include "ColorIO.h"
#include "InputFilter.h"
#include "ModuleManager.h"
#include "FrameRate.h"
#include <set>

namespace Dasher {
class CDasherScreen;
Expand Down
3 changes: 2 additions & 1 deletion Src/DasherCore/DasherModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "NodeCreationManager.h"
#include <cmath>
#include <cstdint>
#include <algorithm>

using namespace Dasher;

Expand Down Expand Up @@ -371,7 +372,7 @@ void CDasherModel::ScheduleOneStep(dasherint y1, dasherint y2, int nSteps, int l
// = (MAX_Y-(2*limX)) / (2*limX) * targetRange / (MAX_Y-targetRange)
{
const dasherint n=targetRange*(MAX_Y-2*limX), d=(MAX_Y-targetRange)*2*limX;
bool bOver=std::max(abs(m1),abs(m2))>std::numeric_limits<dasherint>::max()/n;
bool bOver=std::max(llabs(m1),llabs(m2))>std::numeric_limits<dasherint>::max()/n;
if (bOver) {
//std::cout << "Overflow in max-speed-limit " << m1 << "," << m2 << " =wd> " << ((m1*n)/d) << "," << ((m2*n)/d);
//so do it a harder way, but which uses smaller intermediates:
Expand Down
2 changes: 0 additions & 2 deletions Src/DasherCore/DasherNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define __DasherNode_h__

#include "../Common/NoClones.h"
#include "LanguageModelling/LanguageModel.h"
//Includes needed for used classes
#include "NodeManager.h"
#include "Alphabet/AlphabetMap.h"
Expand All @@ -35,7 +34,6 @@ namespace Dasher {
class CDasherInterfaceBase;
}
#include <deque>
#include <iostream>
#include <vector>

/// \ingroup Model
Expand Down
2 changes: 1 addition & 1 deletion Src/DasherCore/DasherScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define __DasherScreen_h_

#include "DasherTypes.h"
#include "../DasherCore/ColorIO.h"
#include "ColorPalette.h"
#include "myassert.h"
#include <set>

Expand Down
3 changes: 1 addition & 2 deletions Src/DasherCore/DasherView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
// along with Dasher; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

#include "DasherInput.h"
#include "DasherView.h"

#include <algorithm>

using namespace Dasher;

Expand Down
2 changes: 2 additions & 0 deletions Src/DasherCore/DefaultFilter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "DefaultFilter.h"

#include <I18n.h>
#include <algorithm>
#include <cmath>

#include "DasherInterfaceBase.h"

Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/DemoFilter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "DemoFilter.h"

#include <I18n.h>
#include <cmath>

#include "DasherInterfaceBase.h"

Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/DynamicFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "DasherInterfaceBase.h"
#include "DynamicFilter.h"
#include <algorithm>

using namespace Dasher;

Expand Down
2 changes: 0 additions & 2 deletions Src/DasherCore/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#include <string>
#include <functional>
#include "DasherTypes.h"


namespace Dasher {
class CEditEvent;
Expand Down
1 change: 1 addition & 0 deletions Src/DasherCore/FileWordGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <fstream>

#include "WordGeneratorBase.h"
#include "AbstractXMLParser.h"

namespace Dasher {

Expand Down
Loading