first QT4 version which can be compiled and linked without errors on Windows
This commit is contained in:
parent
8b0389c192
commit
fa759cefdf
16 changed files with 2773 additions and 1931 deletions
|
@ -1,281 +1,207 @@
|
||||||
<!DOCTYPE UI><UI>
|
<ui version="4.0" >
|
||||||
<class>CAboutDlgBase</class>
|
<class>CAboutDlgBase</class>
|
||||||
<widget>
|
<widget class="QDialog" name="CAboutDlgBase" >
|
||||||
<class>QDialog</class>
|
<property name="geometry" >
|
||||||
<property stdset="1">
|
<rect>
|
||||||
<name>name</name>
|
<x>0</x>
|
||||||
<cstring>CAboutDlgBase</cstring>
|
<y>0</y>
|
||||||
</property>
|
<width>541</width>
|
||||||
<property stdset="1">
|
<height>357</height>
|
||||||
<name>geometry</name>
|
</rect>
|
||||||
<rect>
|
</property>
|
||||||
<x>0</x>
|
<property name="sizePolicy" >
|
||||||
<y>0</y>
|
<sizepolicy>
|
||||||
<width>546</width>
|
<hsizetype>1</hsizetype>
|
||||||
<height>423</height>
|
<vsizetype>1</vsizetype>
|
||||||
</rect>
|
<horstretch>0</horstretch>
|
||||||
</property>
|
<verstretch>0</verstretch>
|
||||||
<property stdset="1">
|
</sizepolicy>
|
||||||
<name>sizePolicy</name>
|
</property>
|
||||||
|
<property name="windowTitle" >
|
||||||
|
<string>About llcon</string>
|
||||||
|
</property>
|
||||||
|
<property name="windowIcon" >
|
||||||
|
<iconset/>
|
||||||
|
</property>
|
||||||
|
<property name="sizeGripEnabled" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="PixmapLabelDreamLogo" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
<sizepolicy>
|
<sizepolicy>
|
||||||
<hsizetype>1</hsizetype>
|
<hsizetype>0</hsizetype>
|
||||||
<vsizetype>1</vsizetype>
|
<vsizetype>0</vsizetype>
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property name="pixmap" >
|
||||||
<name>caption</name>
|
<pixmap/>
|
||||||
<string>About llcon</string>
|
</property>
|
||||||
</property>
|
<property name="scaledContents" >
|
||||||
<property stdset="1">
|
|
||||||
<name>icon</name>
|
|
||||||
<pixmap>image0</pixmap>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>sizeGripEnabled</name>
|
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property name="wordWrap" >
|
||||||
<name>layoutMargin</name>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
</widget>
|
||||||
<name>layoutSpacing</name>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
<vbox>
|
<widget class="QLabel" name="TextLabelVersion" >
|
||||||
<property stdset="1">
|
<property name="sizePolicy" >
|
||||||
<name>margin</name>
|
<sizepolicy>
|
||||||
<number>11</number>
|
<hsizetype>7</hsizetype>
|
||||||
</property>
|
<vsizetype>5</vsizetype>
|
||||||
<property stdset="1">
|
<horstretch>0</horstretch>
|
||||||
<name>spacing</name>
|
<verstretch>0</verstretch>
|
||||||
<number>6</number>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<widget>
|
<property name="text" >
|
||||||
<class>QLayoutWidget</class>
|
<string>TextLabelVersion</string>
|
||||||
<property stdset="1">
|
</property>
|
||||||
<name>name</name>
|
<property name="alignment" >
|
||||||
<cstring>Layout21</cstring>
|
<set>Qt::AlignCenter</set>
|
||||||
</property>
|
</property>
|
||||||
<hbox>
|
<property name="wordWrap" >
|
||||||
<property stdset="1">
|
<bool>false</bool>
|
||||||
<name>margin</name>
|
</property>
|
||||||
<number>0</number>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property stdset="1">
|
</layout>
|
||||||
<name>spacing</name>
|
</item>
|
||||||
<number>6</number>
|
<item>
|
||||||
</property>
|
<layout class="QHBoxLayout" >
|
||||||
<widget>
|
<property name="margin" >
|
||||||
<class>QLabel</class>
|
<number>0</number>
|
||||||
<property stdset="1">
|
</property>
|
||||||
<name>name</name>
|
<property name="spacing" >
|
||||||
<cstring>PixmapLabelDreamLogo</cstring>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<item>
|
||||||
<name>sizePolicy</name>
|
<layout class="QVBoxLayout" >
|
||||||
<sizepolicy>
|
<property name="margin" >
|
||||||
<hsizetype>0</hsizetype>
|
<number>0</number>
|
||||||
<vsizetype>0</vsizetype>
|
</property>
|
||||||
</sizepolicy>
|
<property name="spacing" >
|
||||||
</property>
|
<number>6</number>
|
||||||
<property stdset="1">
|
</property>
|
||||||
<name>pixmap</name>
|
<item>
|
||||||
<pixmap>image1</pixmap>
|
<widget class="QLabel" name="TextLabelAuthorNames" >
|
||||||
</property>
|
<property name="text" >
|
||||||
<property stdset="1">
|
<string>Author: Volker Fischer</string>
|
||||||
<name>scaledContents</name>
|
</property>
|
||||||
<bool>true</bool>
|
<property name="wordWrap" >
|
||||||
</property>
|
<bool>false</bool>
|
||||||
</widget>
|
</property>
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>TextLabelVersion</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>sizePolicy</name>
|
|
||||||
<sizepolicy>
|
|
||||||
<hsizetype>7</hsizetype>
|
|
||||||
<vsizetype>5</vsizetype>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>TextLabelVersion</string>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>alignment</name>
|
|
||||||
<set>AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hAlign</name>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</hbox>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget>
|
</item>
|
||||||
<class>QLayoutWidget</class>
|
<item>
|
||||||
<property stdset="1">
|
<widget class="QLabel" name="TextLabelCopyright" >
|
||||||
<name>name</name>
|
<property name="text" >
|
||||||
<cstring>Layout8</cstring>
|
<string>Copyright (C) 2005 - 2006</string>
|
||||||
</property>
|
</property>
|
||||||
<hbox>
|
<property name="wordWrap" >
|
||||||
<property stdset="1">
|
<bool>false</bool>
|
||||||
<name>margin</name>
|
</property>
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>spacing</name>
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<widget>
|
|
||||||
<class>QLayoutWidget</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>Layout16</cstring>
|
|
||||||
</property>
|
|
||||||
<vbox>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>margin</name>
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>spacing</name>
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>TextLabelAuthorNames</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>Author: Volker Fischer</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>TextLabelCopyright</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>Copyright (C) 2005 - 2006</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</vbox>
|
|
||||||
</widget>
|
|
||||||
<spacer>
|
|
||||||
<property>
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>Spacer10</cstring>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>orientation</name>
|
|
||||||
<enum>Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>sizeType</name>
|
|
||||||
<enum>Expanding</enum>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>sizeHint</name>
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</hbox>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget>
|
</item>
|
||||||
<class>QTextView</class>
|
</layout>
|
||||||
<property stdset="1">
|
</item>
|
||||||
<name>name</name>
|
<item>
|
||||||
<cstring>TextViewCredits</cstring>
|
<spacer>
|
||||||
</property>
|
<property name="orientation" >
|
||||||
<property stdset="1">
|
<enum>Qt::Horizontal</enum>
|
||||||
<name>text</name>
|
</property>
|
||||||
<string>TextViewCredits</string>
|
<property name="sizeType" >
|
||||||
</property>
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
</widget>
|
</property>
|
||||||
<widget>
|
<property name="sizeHint" >
|
||||||
<class>QLayoutWidget</class>
|
<size>
|
||||||
<property stdset="1">
|
<width>20</width>
|
||||||
<name>name</name>
|
<height>20</height>
|
||||||
<cstring>Layout6</cstring>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<hbox>
|
</spacer>
|
||||||
<property stdset="1">
|
</item>
|
||||||
<name>margin</name>
|
</layout>
|
||||||
<number>0</number>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
<property stdset="1">
|
<widget class="QTextBrowser" name="TextViewCredits" />
|
||||||
<name>spacing</name>
|
</item>
|
||||||
<number>6</number>
|
<item>
|
||||||
</property>
|
<layout class="QHBoxLayout" >
|
||||||
<spacer>
|
<property name="margin" >
|
||||||
<property>
|
<number>0</number>
|
||||||
<name>name</name>
|
</property>
|
||||||
<cstring>Spacer12</cstring>
|
<property name="spacing" >
|
||||||
</property>
|
<number>6</number>
|
||||||
<property>
|
</property>
|
||||||
<name>orientation</name>
|
<item>
|
||||||
<enum>Horizontal</enum>
|
<spacer>
|
||||||
</property>
|
<property name="orientation" >
|
||||||
<property>
|
<enum>Qt::Horizontal</enum>
|
||||||
<name>sizeType</name>
|
</property>
|
||||||
<enum>Expanding</enum>
|
<property name="sizeType" >
|
||||||
</property>
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
<property>
|
</property>
|
||||||
<name>sizeHint</name>
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
<widget>
|
</item>
|
||||||
<class>QPushButton</class>
|
<item>
|
||||||
<property stdset="1">
|
<widget class="QPushButton" name="buttonOk" >
|
||||||
<name>name</name>
|
<property name="text" >
|
||||||
<cstring>buttonOk</cstring>
|
<string>&OK</string>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property name="autoDefault" >
|
||||||
<name>text</name>
|
<bool>true</bool>
|
||||||
<string>&OK</string>
|
</property>
|
||||||
</property>
|
<property name="default" >
|
||||||
<property stdset="1">
|
<bool>true</bool>
|
||||||
<name>autoDefault</name>
|
</property>
|
||||||
<bool>true</bool>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property stdset="1">
|
</layout>
|
||||||
<name>default</name>
|
</item>
|
||||||
<bool>true</bool>
|
</layout>
|
||||||
</property>
|
</widget>
|
||||||
</widget>
|
<resources/>
|
||||||
</hbox>
|
<connections>
|
||||||
</widget>
|
<connection>
|
||||||
</vbox>
|
<sender>buttonOk</sender>
|
||||||
</widget>
|
<signal>clicked()</signal>
|
||||||
<images>
|
<receiver>CAboutDlgBase</receiver>
|
||||||
<image>
|
<slot>accept()</slot>
|
||||||
<name>image0</name>
|
<hints>
|
||||||
<data format="XPM.GZ" length="427">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2ea5248564056503300071f5205c0b2004719541dcb434986c22840b0260c56800454c9918b1c444e54454b1c4c4a424e5a4c4442431a0085008081231c4949511621021656565b042843a908032bade24a832547b21c6a1ba0f08d0fda18ccd6fd8c2009f58ad351700407358e1</data>
|
<hint type="sourcelabel" >
|
||||||
</image>
|
<x>20</x>
|
||||||
<image>
|
<y>20</y>
|
||||||
<name>image1</name>
|
</hint>
|
||||||
<data format="XPM.GZ" length="427">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2ea5248564056503300071f5205c0b2004719541dcb434986c22840b0260c56800454c9918b1c444e54454b1c4c4a424e5a4c4442431a0085008081231c4949511621021656565b042843a908032bade24a832547b21c6a1ba0f08d0fda18ccd6fd8c2009f58ad351700407358e1</data>
|
<hint type="destinationlabel" >
|
||||||
</image>
|
<x>20</x>
|
||||||
</images>
|
<y>20</y>
|
||||||
<connections>
|
</hint>
|
||||||
<connection>
|
</hints>
|
||||||
<sender>buttonOk</sender>
|
</connection>
|
||||||
<signal>clicked()</signal>
|
</connections>
|
||||||
<receiver>CAboutDlgBase</receiver>
|
</ui>
|
||||||
<slot>accept()</slot>
|
|
||||||
</connection>
|
|
||||||
</connections>
|
|
||||||
</UI>
|
|
||||||
|
|
|
@ -91,23 +91,18 @@ bool CClient::SetServerAddr ( QString strNAddr )
|
||||||
// first try if this is an IP number an can directly applied to QHostAddress
|
// first try if this is an IP number an can directly applied to QHostAddress
|
||||||
if ( !InetAddr.setAddress ( strNAddr ) )
|
if ( !InetAddr.setAddress ( strNAddr ) )
|
||||||
{
|
{
|
||||||
|
|
||||||
// TODO implement the IP number query with QT objects (this is not possible with
|
|
||||||
// QT 2 so we have to implement a workaround solution here
|
|
||||||
|
|
||||||
// it was no vaild IP address, try to get host by name, assuming
|
// it was no vaild IP address, try to get host by name, assuming
|
||||||
// that the string contains a valid host name string
|
// that the string contains a valid host name string
|
||||||
const hostent* HostInf = gethostbyname ( strNAddr.toLatin1() );
|
QHostInfo HostInfo = QHostInfo::fromName ( strNAddr );
|
||||||
|
|
||||||
if ( HostInf )
|
if ( HostInfo.error() == QHostInfo::NoError )
|
||||||
{
|
{
|
||||||
uint32_t dwIPNumber;
|
// apply IP address to QT object
|
||||||
|
if ( !HostInfo.addresses().isEmpty() )
|
||||||
// copy IP address of first found host in host list
|
{
|
||||||
memcpy ( (char*) &dwIPNumber, HostInf->h_addr_list[0], sizeof ( dwIPNumber ) );
|
// use the first IP address
|
||||||
|
InetAddr = HostInfo.addresses().first();
|
||||||
// apply IP address to QT object (change byte order, too)
|
}
|
||||||
InetAddr.setAddress ( htonl ( dwIPNumber ) );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include <qthread.h>
|
#include <qthread.h>
|
||||||
#include <qhostaddress.h>
|
#include <qhostaddress.h>
|
||||||
|
#include <qhostinfo.h>
|
||||||
#include <qstring.h>
|
#include <qstring.h>
|
||||||
#include <qdatetime.h>
|
#include <qdatetime.h>
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
Qt::WindowFlags f ) : pClient ( pNCliP ), QDialog ( parent, f )
|
Qt::WindowFlags f ) : pClient ( pNCliP ), QDialog ( parent, f )
|
||||||
{
|
{
|
||||||
|
setupUi ( this );
|
||||||
|
|
||||||
/* Init timing jitter text label */
|
/* Init timing jitter text label */
|
||||||
TextLabelStdDevTimer->setText ( "" );
|
TextLabelStdDevTimer->setText ( "" );
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -141,7 +141,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, QWidget* parent )
|
||||||
|
|
||||||
|
|
||||||
// TODO check if code works and then clean up!!!!!!!
|
// TODO check if code works and then clean up!!!!!!!
|
||||||
|
// TODO QT4
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Settings menu ------------------------------------------------------- */
|
/* Settings menu ------------------------------------------------------- */
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -43,6 +43,9 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, QWidget* parent )
|
||||||
|
|
||||||
// set up list view for connected clients
|
// set up list view for connected clients
|
||||||
ListViewClients->setColumnWidth ( 0, 170 );
|
ListViewClients->setColumnWidth ( 0, 170 );
|
||||||
|
|
||||||
|
// TODO QT4
|
||||||
|
|
||||||
// ListViewClients->setColumnAlignment ( 1, Qt::AlignLeft );
|
// ListViewClients->setColumnAlignment ( 1, Qt::AlignLeft );
|
||||||
ListViewClients->setColumnWidth ( 1, 150 );
|
ListViewClients->setColumnWidth ( 1, 150 );
|
||||||
// ListViewClients->setColumnAlignment ( 2, Qt::AlignCenter );
|
// ListViewClients->setColumnAlignment ( 2, Qt::AlignCenter );
|
||||||
|
@ -68,6 +71,9 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, QWidget* parent )
|
||||||
|
|
||||||
|
|
||||||
/* Main menu bar -------------------------------------------------------- */
|
/* Main menu bar -------------------------------------------------------- */
|
||||||
|
|
||||||
|
// TODO QT4
|
||||||
|
|
||||||
pMenu = new QMenuBar ( this );
|
pMenu = new QMenuBar ( this );
|
||||||
// pMenu->insertItem ( tr ( "&?" ), new CLlconHelpMenu ( this ) );
|
// pMenu->insertItem ( tr ( "&?" ), new CLlconHelpMenu ( this ) );
|
||||||
pMenu->addMenu ( new CLlconHelpMenu ( this ) );
|
pMenu->addMenu ( new CLlconHelpMenu ( this ) );
|
||||||
|
|
|
@ -1,197 +1,176 @@
|
||||||
<!DOCTYPE UI><UI>
|
<ui version="4.0" >
|
||||||
<class>CLlconServerDlgBase</class>
|
<class>CLlconServerDlgBase</class>
|
||||||
<widget>
|
<widget class="QDialog" name="CLlconServerDlgBase" >
|
||||||
<class>QDialog</class>
|
<property name="geometry" >
|
||||||
<property stdset="1">
|
<rect>
|
||||||
<name>name</name>
|
<x>0</x>
|
||||||
<cstring>CLlconServerDlgBase</cstring>
|
<y>0</y>
|
||||||
</property>
|
<width>699</width>
|
||||||
<property stdset="1">
|
<height>291</height>
|
||||||
<name>geometry</name>
|
</rect>
|
||||||
<rect>
|
</property>
|
||||||
<x>0</x>
|
<property name="windowTitle" >
|
||||||
<y>0</y>
|
<string>llcon</string>
|
||||||
<width>752</width>
|
</property>
|
||||||
<height>239</height>
|
<property name="windowIcon" >
|
||||||
</rect>
|
<iconset/>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property name="sizeGripEnabled" >
|
||||||
<name>caption</name>
|
<bool>true</bool>
|
||||||
<string>llcon</string>
|
</property>
|
||||||
</property>
|
<layout class="QVBoxLayout" >
|
||||||
<property stdset="1">
|
<property name="margin" >
|
||||||
<name>icon</name>
|
<number>9</number>
|
||||||
<pixmap>image0</pixmap>
|
</property>
|
||||||
</property>
|
<property name="spacing" >
|
||||||
<property stdset="1">
|
<number>6</number>
|
||||||
<name>sizeGripEnabled</name>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QTreeWidget" name="ListViewClients" >
|
||||||
|
<property name="rootIsDecorated" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Client IP : Port</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Name</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Put</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Get</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Jitter buffer size</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Block Size In</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Block Size Out</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="TextLabelNameVersion" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>TextLabelNameVersion</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType" >
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>72</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="TextLabel1" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Timing Standard Deviation:</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="TextLabelResponseTime" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>TextLabelResponseTime</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType" >
|
||||||
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="buttonOk" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&OK</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault" >
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<vbox>
|
<property name="default" >
|
||||||
<property stdset="1">
|
<bool>true</bool>
|
||||||
<name>margin</name>
|
</property>
|
||||||
<number>11</number>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property stdset="1">
|
</layout>
|
||||||
<name>spacing</name>
|
</item>
|
||||||
<number>6</number>
|
</layout>
|
||||||
</property>
|
</widget>
|
||||||
<widget>
|
<resources/>
|
||||||
<class>QListView</class>
|
<connections>
|
||||||
<column>
|
<connection>
|
||||||
<property>
|
<sender>buttonOk</sender>
|
||||||
<name>text</name>
|
<signal>clicked()</signal>
|
||||||
<string>Column 1</string>
|
<receiver>CLlconServerDlgBase</receiver>
|
||||||
</property>
|
<slot>accept()</slot>
|
||||||
<property>
|
<hints>
|
||||||
<name>clickable</name>
|
<hint type="sourcelabel" >
|
||||||
<bool>true</bool>
|
<x>20</x>
|
||||||
</property>
|
<y>20</y>
|
||||||
<property>
|
</hint>
|
||||||
<name>resizeable</name>
|
<hint type="destinationlabel" >
|
||||||
<bool>true</bool>
|
<x>20</x>
|
||||||
</property>
|
<y>20</y>
|
||||||
</column>
|
</hint>
|
||||||
<item>
|
</hints>
|
||||||
<property>
|
</connection>
|
||||||
<name>text</name>
|
</connections>
|
||||||
<string>New Item</string>
|
</ui>
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>pixmap</name>
|
|
||||||
<pixmap></pixmap>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>ListViewClients</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget>
|
|
||||||
<class>QLayoutWidget</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>Layout3</cstring>
|
|
||||||
</property>
|
|
||||||
<hbox>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>margin</name>
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>spacing</name>
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>TextLabelNameVersion</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>TextLabelNameVersion</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<spacer>
|
|
||||||
<property>
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>Horizontal Spacing2_2</cstring>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>orientation</name>
|
|
||||||
<enum>Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>sizeType</name>
|
|
||||||
<enum>Fixed</enum>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>sizeHint</name>
|
|
||||||
<size>
|
|
||||||
<width>72</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>TextLabel1</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>Timing Standard Deviation:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>TextLabelResponseTime</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>TextLabelResponseTime</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<spacer>
|
|
||||||
<property>
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>Horizontal Spacing2</cstring>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>orientation</name>
|
|
||||||
<enum>Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>sizeType</name>
|
|
||||||
<enum>Expanding</enum>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>sizeHint</name>
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
<widget>
|
|
||||||
<class>QPushButton</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>buttonOk</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>&OK</string>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>autoDefault</name>
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>default</name>
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</hbox>
|
|
||||||
</widget>
|
|
||||||
</vbox>
|
|
||||||
</widget>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>image0</name>
|
|
||||||
<data format="XPM.GZ" length="427">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2ea5248564056503300071f5205c0b2004719541dcb434986c22840b0260c56800454c9918b1c444e54454b1c4c4a424e5a4c4442431a0085008081231c4949511621021656565b042843a908032bade24a832547b21c6a1ba0f08d0fda18ccd6fd8c2009f58ad351700407358e1</data>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
<connections>
|
|
||||||
<connection>
|
|
||||||
<sender>buttonOk</sender>
|
|
||||||
<signal>clicked()</signal>
|
|
||||||
<receiver>CLlconServerDlgBase</receiver>
|
|
||||||
<slot>accept()</slot>
|
|
||||||
</connection>
|
|
||||||
</connections>
|
|
||||||
</UI>
|
|
||||||
|
|
|
@ -260,7 +260,12 @@ void PostWinMessage ( const _MESSAGE_IDENT MessID, const int iMessageParam,
|
||||||
CLlconEvent* LlconEv =
|
CLlconEvent* LlconEv =
|
||||||
new CLlconEvent ( MessID, iMessageParam, iChanNum );
|
new CLlconEvent ( MessID, iMessageParam, iChanNum );
|
||||||
|
|
||||||
|
|
||||||
|
// TODO QT4
|
||||||
// Qt will delete the event object when done
|
// Qt will delete the event object when done
|
||||||
// QThread::postEvent ( pApp->mainWidget(), LlconEv );
|
// QThread::postEvent ( pApp->mainWidget(), LlconEv );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,8 @@
|
||||||
|
|
||||||
|
|
||||||
/* Implementation *************************************************************/
|
/* Implementation *************************************************************/
|
||||||
CMultiColorLEDbase::CMultiColorLEDbase() :
|
CMultiColorLEDbase::CMultiColorLEDbase ( QWidget* parent, Qt::WindowFlags f )
|
||||||
|
: QLabel ( parent, f ),
|
||||||
BitmCubeGreen ( LED_WIDTH_HEIGHT_SIZE_PIXEL, LED_WIDTH_HEIGHT_SIZE_PIXEL ),
|
BitmCubeGreen ( LED_WIDTH_HEIGHT_SIZE_PIXEL, LED_WIDTH_HEIGHT_SIZE_PIXEL ),
|
||||||
BitmCubeRed ( LED_WIDTH_HEIGHT_SIZE_PIXEL, LED_WIDTH_HEIGHT_SIZE_PIXEL ),
|
BitmCubeRed ( LED_WIDTH_HEIGHT_SIZE_PIXEL, LED_WIDTH_HEIGHT_SIZE_PIXEL ),
|
||||||
BitmCubeGrey ( LED_WIDTH_HEIGHT_SIZE_PIXEL, LED_WIDTH_HEIGHT_SIZE_PIXEL ),
|
BitmCubeGrey ( LED_WIDTH_HEIGHT_SIZE_PIXEL, LED_WIDTH_HEIGHT_SIZE_PIXEL ),
|
||||||
|
@ -172,7 +173,8 @@ void CMultiColorLEDbase::SetUpdateTime ( int iNUTi )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CMultiColorLED::CMultiColorLED ( QWidget* parent, Qt::WindowFlags f ) : QLabel ( parent, f )
|
CMultiColorLED::CMultiColorLED ( QWidget* parent, Qt::WindowFlags f )
|
||||||
|
: CMultiColorLEDbase ( parent, f )
|
||||||
{
|
{
|
||||||
// set modified style
|
// set modified style
|
||||||
setFrameShape ( QFrame::Panel );
|
setFrameShape ( QFrame::Panel );
|
||||||
|
|
|
@ -54,7 +54,7 @@ class CMultiColorLEDbase : public QLabel
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CMultiColorLEDbase();
|
CMultiColorLEDbase ( QWidget* parent = 0, Qt::WindowFlags f = 0 );
|
||||||
|
|
||||||
void Reset();
|
void Reset();
|
||||||
void SetUpdateTime ( int iNUTi );
|
void SetUpdateTime ( int iNUTi );
|
||||||
|
|
|
@ -59,11 +59,8 @@ void CSocket::Init()
|
||||||
exit ( 1 );
|
exit ( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
QSocketNotifier* pSocketNotivRead =
|
|
||||||
new QSocketNotifier ( SocketDevice.socket (), QSocketNotifier::Read );
|
|
||||||
|
|
||||||
// connect the "activated" signal
|
// connect the "activated" signal
|
||||||
QObject::connect ( pSocketNotivRead, SIGNAL ( activated ( int ) ),
|
QObject::connect ( &SocketDevice, SIGNAL ( readyRead() ),
|
||||||
this, SLOT ( OnDataReceived() ) );
|
this, SLOT ( OnDataReceived() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +75,7 @@ void CSocket::SendPacket ( const CVector<unsigned char>& vecbySendBuf,
|
||||||
// char vector in "const char*", for this we first convert the const
|
// char vector in "const char*", for this we first convert the const
|
||||||
// unsigned char vector in a read/write unsigned char vector and then
|
// unsigned char vector in a read/write unsigned char vector and then
|
||||||
// do the cast to const char*)
|
// do the cast to const char*)
|
||||||
SocketDevice.writeBlock (
|
SocketDevice.writeDatagram (
|
||||||
(const char*) &( (CVector<unsigned char>) vecbySendBuf )[0],
|
(const char*) &( (CVector<unsigned char>) vecbySendBuf )[0],
|
||||||
iVecSizeOut, HostAddr.InetAddr, HostAddr.iPort );
|
iVecSizeOut, HostAddr.InetAddr, HostAddr.iPort );
|
||||||
}
|
}
|
||||||
|
@ -87,7 +84,7 @@ void CSocket::SendPacket ( const CVector<unsigned char>& vecbySendBuf,
|
||||||
void CSocket::OnDataReceived()
|
void CSocket::OnDataReceived()
|
||||||
{
|
{
|
||||||
// read block from network interface
|
// read block from network interface
|
||||||
const int iNumBytesRead = SocketDevice.readBlock ( (char*) &vecbyRecBuf[0],
|
const int iNumBytesRead = SocketDevice.readDatagram ( (char*) &vecbyRecBuf[0],
|
||||||
MAX_SIZE_BYTES_NETW_BUF );
|
MAX_SIZE_BYTES_NETW_BUF );
|
||||||
|
|
||||||
// check if an error occurred
|
// check if an error occurred
|
||||||
|
@ -133,8 +130,14 @@ void CSocket::OnDataReceived()
|
||||||
// this was an audio packet, start server
|
// this was an audio packet, start server
|
||||||
// tell the server object to wake up if it
|
// tell the server object to wake up if it
|
||||||
// is in sleep mode (Qt will delete the event object when done)
|
// is in sleep mode (Qt will delete the event object when done)
|
||||||
QThread::postEvent ( pServer,
|
|
||||||
new CLlconEvent ( MS_PACKET_RECEIVED, 0, 0 ) );
|
|
||||||
|
// TODO QT4
|
||||||
|
// QThread::postEvent ( pServer,
|
||||||
|
// new CLlconEvent ( MS_PACKET_RECEIVED, 0, 0 ) );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,10 @@ rem .h --------------
|
||||||
|
|
||||||
|
|
||||||
rem .ui -------------
|
rem .ui -------------
|
||||||
%qtdir%\bin\uic.exe ..\src\aboutdlgbase_qt4.ui -o moc\aboutdlgbase.h
|
%qtdir%\bin\uic.exe ..\src\aboutdlgbase.ui -o moc\aboutdlgbase.h
|
||||||
%qtdir%\bin\uic.exe ..\src\llconclientdlgbase_qt4.ui -o moc\llconclientdlgbase.h
|
%qtdir%\bin\uic.exe ..\src\llconclientdlgbase.ui -o moc\llconclientdlgbase.h
|
||||||
%qtdir%\bin\uic.exe ..\src\clientsettingsdlgbase_qt4.ui -o moc\clientsettingsdlgbase.h
|
%qtdir%\bin\uic.exe ..\src\clientsettingsdlgbase.ui -o moc\clientsettingsdlgbase.h
|
||||||
%qtdir%\bin\uic.exe ..\src\llconserverdlgbase_qt4.ui -o moc\llconserverdlgbase.h
|
%qtdir%\bin\uic.exe ..\src\llconserverdlgbase.ui -o moc\llconserverdlgbase.h
|
||||||
|
|
||||||
|
rem .qrc ------------
|
||||||
|
%qtdir%\bin\rcc.exe ..\src\resources.qrc -o moc\resources.rcc
|
||||||
|
|
20
windows/llcon.sln
Executable file
20
windows/llcon.sln
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
|
# Visual Studio 2005
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "llcon", "llcon.vcproj", "{DBBC16FC-BBCA-4E3B-A9F4-0EC5202A8B2E}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{DBBC16FC-BBCA-4E3B-A9F4-0EC5202A8B2E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{DBBC16FC-BBCA-4E3B-A9F4-0EC5202A8B2E}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{DBBC16FC-BBCA-4E3B-A9F4-0EC5202A8B2E}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{DBBC16FC-BBCA-4E3B-A9F4-0EC5202A8B2E}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
1050
windows/llcon.vcproj
Executable file
1050
windows/llcon.vcproj
Executable file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue