Merge branch 'master' of dev.vatsim-germany.org:vatpilotclient/client

This commit is contained in:
Mathew Sutcliffe
2013-03-12 21:47:06 +00:00
124 changed files with 71 additions and 39 deletions

View File

@@ -41,12 +41,13 @@ OPTION(WITH_BLACK_XPLANE "Build BlackBox as a X-Plane Plugin"
OPTION(WITH_SIMULATOR_DRIVER "Build Simulator Drivers." ON)
IF(WITH_SIMULATOR_DRIVER)
OPTION(WITH_STATIC_DRIVERS "Build static simulator drivers" OFF )
############### Drivers ###############
IF(WIN32)
OPTION(WITH_DRIVER_FSX "Build FSX Simulator Driver" ON )
OPTION(WITH_DRIVER_FSX "Build FSX Simulator Driver" OFF )
OPTION(WITH_DRIVER_FS9 "Build FS2004 Simulator Driver" OFF )
ENDIF(WIN32)
OPTION(WITH_DRIVER_XPLANE "Build X-Plane Simulator Driver" ON )
OPTION(WITH_DRIVER_XPLANE "Build X-Plane Simulator Driver" OFF )
ENDIF(WITH_SIMULATOR_DRIVER)
# By default, force release configuration
@@ -119,12 +120,12 @@ endIF()
#### SimConnect ####
IF(WITH_DRIVER_FSX)
find_package(SimConnect REQUIRED)
ENDIF()
ENDIF(WITH_DRIVER_FSX)
#### DirectPlay ####
IF(WITH_DRIVER_FS9)
find_package(DirectPlay REQUIRED)
ENDIF()
ENDIF(WITH_DRIVER_FS9)
############### Compilers flags ###############
@@ -183,7 +184,7 @@ ENDIF()
############### Includes ###############
INCLUDE_DIRECTORIES(${QT_INCLUDES})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/blacklib/include)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src)
############### Doxygen ###############
@@ -201,7 +202,7 @@ ENDIF(DOXYGEN_FOUND)
############### build targets ###############
ADD_SUBDIRECTORY(blackd)
ADD_SUBDIRECTORY(blackbox)
ADD_SUBDIRECTORY(blacklib)
ADD_SUBDIRECTORY(blackx)
ADD_SUBDIRECTORY(src)
IF(WITH_BLACK_SAMPLES)
ADD_SUBDIRECTORY(samples)
ENDIF(WITH_BLACK_SAMPLES)

View File

@@ -1,5 +0,0 @@
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
IF(WITH_BLACK_SAMPLES)
ADD_SUBDIRECTORY(samples)
ENDIF(WITH_BLACK_SAMPLES)

View File

@@ -1,2 +0,0 @@
ADD_SUBDIRECTORY(blackcore)
ADD_SUBDIRECTORY(blackmisc)

View File

@@ -1 +0,0 @@
FILE(GLOB HEADERS *.h)

View File

@@ -1,2 +0,0 @@
ADD_SUBDIRECTORY(blackmisc)
ADD_SUBDIRECTORY(blackcore)

View File

View File

@@ -18,7 +18,7 @@ FIND_PATH(SIMCONNECT_INCLUDE_DIR
"$ENV{ProgramFiles(x86)}/Microsoft Games/Microsoft Flight Simulator X SDK/SDK/Core Utilities Kit/SimConnect SDK"
PATH_SUFFIXES inc)
FIND_PATH(SIMCONNECT_LIBRARY
FIND_PATH(SIMCONNECT_LIBRARY_DIR
NAMES SimConnect.lib
PATHS
"$ENV{ProgramFiles(x86)}/Microsoft Games/Microsoft Flight Simulator X SDK/SDK/Core Utilities Kit/SimConnect SDK"
@@ -27,4 +27,4 @@ FIND_PATH(SIMCONNECT_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set SIMCONNECT_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(SimConnect DEFAULT_MSG
SIMCONNECT_LIBRARY SIMCONNECT_INCLUDE_DIR)
SIMCONNECT_LIBRARY_DIR SIMCONNECT_INCLUDE_DIR)

6
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,6 @@
ADD_SUBDIRECTORY(blackbox)
ADD_SUBDIRECTORY(blackcore)
ADD_SUBDIRECTORY(blackd)
ADD_SUBDIRECTORY(blackmisc)
ADD_SUBDIRECTORY(blackx)
ADD_SUBDIRECTORY(driver)

View File

@@ -1,4 +1,5 @@
FILE(GLOB blackbox_SOURCES *.cpp)
FILE(GLOB blackbox_HEADERS *.h)
SET(blackbox_HEADERS_QOBJECT
blackbox.h
dialog_connect.h

View File

@@ -1,7 +1,7 @@
FILE(GLOB blackcore_SOURCES *.cpp)
FILE(GLOB blackcore_HEADERS ../../include/blackcore/*.h)
FILE(GLOB blackcore_HEADERS *.h)
SET(blackcore_HEADERS_QOBJECT
../../include/blackcore/fsd_client.h)
fsd_client.h)
QT4_WRAP_CPP(blackcore_HEADERS_MOC ${blackcore_HEADERS_QOBJECT})

View File

@@ -83,7 +83,6 @@ namespace FSD
QTextStream& FSD_MSG_Plane_Position::operator<< ( QTextStream& in)
{
QString message = in.readAll();
m_message_tokens.resize(10);
qint32 size = unpack(message, m_message_tokens);
bAssert ( size == 10 );

View File

@@ -117,6 +117,7 @@ namespace FSD
FSD_MSG_Plane_Position() : FSD_MSG(QString("@"))
{
m_message_tokens.resize(10);
}
inline QString SquawkMode() const { return m_message_tokens.at(0); }
@@ -125,7 +126,7 @@ namespace FSD
inline quint16 Rating() const { return m_message_tokens.at(3).toUInt(); }
inline double Latitude() const { return m_message_tokens.at(4).toDouble(); }
inline double Longitude() const { return m_message_tokens.at(5).toDouble(); }
inline qint32 Altitude() const { return m_message_tokens.at(6).toInt(); }
inline double Altitude() const { return m_message_tokens.at(6).toDouble(); }
inline qint32 Speed() const { return m_message_tokens.at(7).toInt(); }
inline quint32 PBH() const { return m_message_tokens.at(8).toUInt(); }
inline qint32 AltDiff() const { return m_message_tokens.at(9).toInt(); }
@@ -136,7 +137,7 @@ namespace FSD
inline void setRating ( const quint16 rating) { m_message_tokens.replace(3, QString("%1").arg(rating)); }
inline void setLatitude ( const double latitude) { m_message_tokens.replace(4, QString("%1").arg(latitude)); }
inline void setLongitude ( const double longitude) { m_message_tokens.replace(5, QString("%1").arg(longitude)); }
inline void setAltitude ( const qint32 altitude) { m_message_tokens.replace(6, QString("%1").arg(altitude)); }
inline void setAltitude ( const double altitude) { m_message_tokens.replace(6, QString("%1").arg(altitude)); }
inline void setSpeed ( const qint32 speed) { m_message_tokens.replace(7, QString("%1").arg(speed)); }
inline void setPBH ( const quint32 pbh) { m_message_tokens.replace(8, QString("%1").arg(pbh)); }
inline void setAltDiff ( const qint32 altdiff) { m_message_tokens.replace(9, QString("%1").arg(altdiff)); }

View File

@@ -14,6 +14,12 @@ CInterpolator::CInterpolator()
m_time.start();
}
CInterpolator::~CInterpolator()
{
delete m_state_begin;
delete m_state_end;
}
void CInterpolator::initialize()
{

View File

@@ -45,6 +45,7 @@ class CInterpolator
{
public:
CInterpolator();
virtual ~CInterpolator();
void initialize();

View File

@@ -1,4 +1,5 @@
FILE(GLOB blackmisc_SOURCES *.cpp)
FILE(GLOB blackd_SOURCES *.cpp)
FILE(GLOB blackd_HEADERS *.h)
SET(blackd_HEADERS_QOBJECT
blackd.h)
@@ -15,7 +16,7 @@ SOURCE_GROUP(QtGeneratedMocSrc FILES ${blackd_HEADERS_MOC})
SOURCE_GROUP (QtResources FILES ${blackd_RESOURCES_RCC})
SOURCE_GROUP (QtForms FILES ${blackd_FORMS_HEADERS})
ADD_EXECUTABLE(blackd WIN32 MACOSX_BUNDLE ${blackmisc_SOURCES}
ADD_EXECUTABLE(blackd WIN32 MACOSX_BUNDLE ${blackd_SOURCES}
${blackd_HEADERS_MOC}
${blackd_FORMS_HEADERS}
${blackd_RESOURCES_RCC})

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -30,6 +30,9 @@ void CQtDisplayer::setParam (QPlainTextEdit *debugWindow)
void CQtDisplayer::doPrint ( const BlackMisc::CLog::SLogInformation &logInformation, const QString &message)
{
if (!m_DebugWindow)
return;
bool needSpace = false;
QString line;

View File

@@ -1,10 +1,10 @@
FILE(GLOB blackmisc_SOURCES *.cpp)
FILE(GLOB blackmisc_HEADERS ../../include/blackmisc/*.h)
FILE(GLOB blackmisc_HEADERS *.h)
SET(blackmisc_HEADERS_QOBJECT
../../include/blackmisc/com_client.h
../../include/blackmisc/com_client_buffer.h
../../include/blackmisc/com_handler.h
../../include/blackmisc/com_server.h)
com_client.h
com_client_buffer.h
com_handler.h
com_server.h)
QT4_WRAP_CPP(blackmisc_HEADERS_MOC ${blackmisc_HEADERS_QOBJECT})

View File

@@ -80,10 +80,10 @@ namespace BlackMisc
QMessageBox::critical(0, "ASSERT FAILED",
QString("%1 %2 %3 () - failed assert: %4").
arg(QString(file)).arg(line).arg(QString(function)).arg(QString(exp)));
#endif
qApp->quit();
exit(1);
#endif
}

Some files were not shown because too many files have changed in this diff Show More