rename GUI controls according to new prefix definition
This commit is contained in:
parent
6596a464a4
commit
856bd35039
18 changed files with 565 additions and 555 deletions
|
@ -66,7 +66,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelVersion" >
|
||||
<widget class="QLabel" name="lblVersion" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -121,7 +121,7 @@
|
|||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelAuthorNames" >
|
||||
<widget class="QLabel" name="lblAuthorNames" >
|
||||
<property name="text" >
|
||||
<string>Author: Volker Fischer</string>
|
||||
</property>
|
||||
|
@ -131,7 +131,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelCopyright" >
|
||||
<widget class="QLabel" name="lblCopyright" >
|
||||
<property name="text" >
|
||||
<string>Copyright (C) 2005 - 2011</string>
|
||||
</property>
|
||||
|
@ -165,7 +165,7 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="label" >
|
||||
<widget class="QLabel" name="pxlGigPicture" >
|
||||
<property name="text" >
|
||||
<string/>
|
||||
</property>
|
||||
|
@ -195,7 +195,7 @@
|
|||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextBrowser" name="TextViewCredits" />
|
||||
<widget class="QTextBrowser" name="txvCredits" />
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
|
@ -249,7 +249,7 @@
|
|||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>buttonOk</tabstop>
|
||||
<tabstop>TextViewCredits</tabstop>
|
||||
<tabstop>txvCredits</tabstop>
|
||||
</tabstops>
|
||||
<resources>
|
||||
<include location="resources.qrc" />
|
||||
|
|
|
@ -33,56 +33,56 @@ CChatDlg::CChatDlg ( QWidget* parent, Qt::WindowFlags f ) :
|
|||
|
||||
|
||||
// Add help text to controls -----------------------------------------------
|
||||
lineEditLocalInputText->setAccessibleName ( "New chat text edit box" );
|
||||
TextViewChatWindow->setAccessibleName ( "Chat history" );
|
||||
edtLocalInputText->setAccessibleName ( "New chat text edit box" );
|
||||
txvChatWindow->setAccessibleName ( "Chat history" );
|
||||
|
||||
|
||||
// clear chat window and edit line
|
||||
TextViewChatWindow->clear();
|
||||
lineEditLocalInputText->clear();
|
||||
txvChatWindow->clear();
|
||||
edtLocalInputText->clear();
|
||||
|
||||
|
||||
// Connections -------------------------------------------------------------
|
||||
QObject::connect ( lineEditLocalInputText,
|
||||
QObject::connect ( edtLocalInputText,
|
||||
SIGNAL ( textChanged ( const QString& ) ),
|
||||
this, SLOT ( OnChatTextChanged ( const QString& ) ) );
|
||||
this, SLOT ( OnLocalInputTextTextChanged ( const QString& ) ) );
|
||||
|
||||
QObject::connect ( lineEditLocalInputText, SIGNAL ( returnPressed() ),
|
||||
this, SLOT ( OnNewLocalInputText() ) );
|
||||
QObject::connect ( edtLocalInputText, SIGNAL ( returnPressed() ),
|
||||
this, SLOT ( OnLocalInputTextReturnPressed() ) );
|
||||
|
||||
QObject::connect ( pbClear, SIGNAL ( pressed() ),
|
||||
this, SLOT ( OnClearButtonPressed() ) );
|
||||
QObject::connect ( butClear, SIGNAL ( pressed() ),
|
||||
this, SLOT ( OnClearPressed() ) );
|
||||
}
|
||||
|
||||
void CChatDlg::OnChatTextChanged ( const QString& strNewText )
|
||||
void CChatDlg::OnLocalInputTextTextChanged ( const QString& strNewText )
|
||||
{
|
||||
// check and correct length
|
||||
if ( strNewText.length() > MAX_LEN_CHAT_TEXT )
|
||||
{
|
||||
// text is too long, update control with shortend text
|
||||
lineEditLocalInputText->setText ( strNewText.left ( MAX_LEN_CHAT_TEXT ) );
|
||||
edtLocalInputText->setText ( strNewText.left ( MAX_LEN_CHAT_TEXT ) );
|
||||
}
|
||||
}
|
||||
|
||||
void CChatDlg::OnNewLocalInputText()
|
||||
void CChatDlg::OnLocalInputTextReturnPressed()
|
||||
{
|
||||
// send new text and clear line afterwards
|
||||
emit NewLocalInputText ( lineEditLocalInputText->text() );
|
||||
lineEditLocalInputText->clear();
|
||||
emit NewLocalInputText ( edtLocalInputText->text() );
|
||||
edtLocalInputText->clear();
|
||||
}
|
||||
|
||||
void CChatDlg::OnClearButtonPressed()
|
||||
void CChatDlg::OnClearPressed()
|
||||
{
|
||||
// clear chat window
|
||||
TextViewChatWindow->clear();
|
||||
txvChatWindow->clear();
|
||||
}
|
||||
|
||||
void CChatDlg::AddChatText ( QString strChatText )
|
||||
{
|
||||
// add new text in chat window
|
||||
TextViewChatWindow->append ( strChatText );
|
||||
txvChatWindow->append ( strChatText );
|
||||
|
||||
// notify accessibility plugin that text has changed
|
||||
QAccessible::updateAccessibility ( TextViewChatWindow, 0,
|
||||
QAccessible::updateAccessibility ( txvChatWindow, 0,
|
||||
QAccessible::ValueChanged );
|
||||
}
|
||||
|
|
|
@ -52,9 +52,9 @@ public:
|
|||
void AddChatText ( QString strChatText );
|
||||
|
||||
public slots:
|
||||
void OnNewLocalInputText();
|
||||
void OnChatTextChanged ( const QString& strNewText );
|
||||
void OnClearButtonPressed();
|
||||
void OnLocalInputTextReturnPressed();
|
||||
void OnLocalInputTextTextChanged ( const QString& strNewText );
|
||||
void OnClearPressed();
|
||||
|
||||
signals:
|
||||
void NewLocalInputText ( QString strNewText );
|
||||
|
|
|
@ -26,14 +26,14 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QTextBrowser" name="TextViewChatWindow" >
|
||||
<widget class="QTextBrowser" name="txvChatWindow" >
|
||||
<property name="textInteractionFlags" >
|
||||
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::NoTextInteraction|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEditLocalInputText" />
|
||||
<widget class="QLineEdit" name="edtLocalInputText" />
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
|
@ -54,7 +54,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pbClear" >
|
||||
<widget class="QPushButton" name="butClear" >
|
||||
<property name="text" >
|
||||
<string>Cl&ear</string>
|
||||
</property>
|
||||
|
@ -81,9 +81,9 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>lineEditLocalInputText</tabstop>
|
||||
<tabstop>TextViewChatWindow</tabstop>
|
||||
<tabstop>pbClear</tabstop>
|
||||
<tabstop>edtLocalInputText</tabstop>
|
||||
<tabstop>txvChatWindow</tabstop>
|
||||
<tabstop>butClear</tabstop>
|
||||
<tabstop>buttonClose</tabstop>
|
||||
</tabstops>
|
||||
<resources>
|
||||
|
|
|
@ -59,20 +59,20 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"of dropouts is reached. The LED indicator will visualize the audio "
|
||||
"dropouts by a red light" ) + TOOLTIP_COM_END_TEXT;
|
||||
|
||||
TextNetBuf->setWhatsThis ( strJitterBufferSize );
|
||||
TextNetBuf->setToolTip ( strJitterBufferSizeTT );
|
||||
GroupBoxJitterBuffer->setWhatsThis ( strJitterBufferSize );
|
||||
GroupBoxJitterBuffer->setToolTip ( strJitterBufferSizeTT );
|
||||
SliderNetBuf->setWhatsThis ( strJitterBufferSize );
|
||||
SliderNetBuf->setAccessibleName ( tr ( "Jitter buffer slider control" ) );
|
||||
SliderNetBuf->setToolTip ( strJitterBufferSizeTT );
|
||||
cbAutoJitBuf->setAccessibleName ( tr ( "Auto jitter buffer switch" ) );
|
||||
cbAutoJitBuf->setToolTip ( strJitterBufferSizeTT );
|
||||
CLEDNetw->setAccessibleName ( tr ( "Jitter buffer status LED indicator" ) );
|
||||
CLEDNetw->setToolTip ( strJitterBufferSizeTT );
|
||||
TextNetBuf->setWhatsThis ( strJitterBufferSize );
|
||||
TextNetBuf->setToolTip ( strJitterBufferSizeTT );
|
||||
grbJitterBuffer->setWhatsThis ( strJitterBufferSize );
|
||||
grbJitterBuffer->setToolTip ( strJitterBufferSizeTT );
|
||||
sldNetBuf->setWhatsThis ( strJitterBufferSize );
|
||||
sldNetBuf->setAccessibleName ( tr ( "Jitter buffer slider control" ) );
|
||||
sldNetBuf->setToolTip ( strJitterBufferSizeTT );
|
||||
chbAutoJitBuf->setAccessibleName ( tr ( "Auto jitter buffer switch" ) );
|
||||
chbAutoJitBuf->setToolTip ( strJitterBufferSizeTT );
|
||||
ledNetw->setAccessibleName ( tr ( "Jitter buffer status LED indicator" ) );
|
||||
ledNetw->setToolTip ( strJitterBufferSizeTT );
|
||||
|
||||
// sound card device
|
||||
cbSoundcard->setWhatsThis ( tr ( "<b>Sound Card Device:</b> The ASIO "
|
||||
cbxSoundcard->setWhatsThis ( tr ( "<b>Sound Card Device:</b> The ASIO "
|
||||
"driver (sound card) can be selected using llcon under the Windows "
|
||||
"operating system. Under Linux, no sound card selection is possible "
|
||||
"(always wave mapper is shown and cannot be changed). If the selected "
|
||||
|
@ -82,9 +82,9 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"is stopped, the driver is changed and the connection is started again "
|
||||
"automatically." ) );
|
||||
|
||||
cbSoundcard->setAccessibleName ( tr ( "Sound card device selector combo box" ) );
|
||||
cbxSoundcard->setAccessibleName ( tr ( "Sound card device selector combo box" ) );
|
||||
|
||||
cbSoundcard->setToolTip ( tr ( "In case the <b>ASIO4ALL</b> driver is used, "
|
||||
cbxSoundcard->setToolTip ( tr ( "In case the <b>ASIO4ALL</b> driver is used, "
|
||||
"please note that this driver usually introduces approx. 10-30 ms of "
|
||||
"additional audio delay. Using a sound card with a native ASIO driver "
|
||||
"is therefore recommended.<br>If you are using the <b>kX ASIO</b> "
|
||||
|
@ -100,16 +100,16 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"Right channel) a different actual sound card channel can be "
|
||||
"selected." );
|
||||
|
||||
lbInChannelMapping->setWhatsThis ( strSndCrdChanMapp );
|
||||
lbOutChannelMapping->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbLInChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbLInChan->setAccessibleName ( tr ( "Left input channel selection combo box" ) );
|
||||
cbRInChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbRInChan->setAccessibleName ( tr ( "Right input channel selection combo box" ) );
|
||||
cbLOutChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbLOutChan->setAccessibleName ( tr ( "Left output channel selection combo box" ) );
|
||||
cbROutChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbROutChan->setAccessibleName ( tr ( "Right output channel selection combo box" ) );
|
||||
lblInChannelMapping->setWhatsThis ( strSndCrdChanMapp );
|
||||
lblOutChannelMapping->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbxLInChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbxLInChan->setAccessibleName ( tr ( "Left input channel selection combo box" ) );
|
||||
cbxRInChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbxRInChan->setAccessibleName ( tr ( "Right input channel selection combo box" ) );
|
||||
cbxLOutChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbxLOutChan->setAccessibleName ( tr ( "Left output channel selection combo box" ) );
|
||||
cbxROutChan->setWhatsThis ( strSndCrdChanMapp );
|
||||
cbxROutChan->setAccessibleName ( tr ( "Right output channel selection combo box" ) );
|
||||
|
||||
// sound card buffer delay
|
||||
QString strSndCrdBufDelay = tr ( "<b>Sound Card Buffer Delay:</b> The "
|
||||
|
@ -148,43 +148,43 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"use the Jack configuration tool to change the buffer size." ) +
|
||||
TOOLTIP_COM_END_TEXT;
|
||||
|
||||
rButBufferDelayPreferred->setWhatsThis ( strSndCrdBufDelay );
|
||||
rButBufferDelayPreferred->setAccessibleName ( tr ( "128 samples setting radio button" ) );
|
||||
rButBufferDelayPreferred->setToolTip ( strSndCrdBufDelayTT );
|
||||
rButBufferDelayDefault->setWhatsThis ( strSndCrdBufDelay );
|
||||
rButBufferDelayDefault->setAccessibleName ( tr ( "256 samples setting radio button" ) );
|
||||
rButBufferDelayDefault->setToolTip ( strSndCrdBufDelayTT );
|
||||
rButBufferDelaySafe->setWhatsThis ( strSndCrdBufDelay );
|
||||
rButBufferDelaySafe->setAccessibleName ( tr ( "512 samples setting radio button" ) );
|
||||
rButBufferDelaySafe->setToolTip ( strSndCrdBufDelayTT );
|
||||
ButtonDriverSetup->setWhatsThis ( strSndCrdBufDelay );
|
||||
ButtonDriverSetup->setAccessibleName ( tr ( "ASIO setup push button" ) );
|
||||
ButtonDriverSetup->setToolTip ( strSndCrdBufDelayTT );
|
||||
rbtBufferDelayPreferred->setWhatsThis ( strSndCrdBufDelay );
|
||||
rbtBufferDelayPreferred->setAccessibleName ( tr ( "128 samples setting radio button" ) );
|
||||
rbtBufferDelayPreferred->setToolTip ( strSndCrdBufDelayTT );
|
||||
rbtBufferDelayDefault->setWhatsThis ( strSndCrdBufDelay );
|
||||
rbtBufferDelayDefault->setAccessibleName ( tr ( "256 samples setting radio button" ) );
|
||||
rbtBufferDelayDefault->setToolTip ( strSndCrdBufDelayTT );
|
||||
rbtBufferDelaySafe->setWhatsThis ( strSndCrdBufDelay );
|
||||
rbtBufferDelaySafe->setAccessibleName ( tr ( "512 samples setting radio button" ) );
|
||||
rbtBufferDelaySafe->setToolTip ( strSndCrdBufDelayTT );
|
||||
butDriverSetup->setWhatsThis ( strSndCrdBufDelay );
|
||||
butDriverSetup->setAccessibleName ( tr ( "ASIO setup push button" ) );
|
||||
butDriverSetup->setToolTip ( strSndCrdBufDelayTT );
|
||||
|
||||
// open chat on new message
|
||||
cbOpenChatOnNewMessage->setWhatsThis ( tr ( "<b>Open Chat on New "
|
||||
chbOpenChatOnNewMessage->setWhatsThis ( tr ( "<b>Open Chat on New "
|
||||
"Message:</b> If this checkbox is enabled, the chat window will "
|
||||
"open on any incoming chat text if it not already opened." ) );
|
||||
|
||||
cbOpenChatOnNewMessage->setAccessibleName ( tr ( "Open chat on new "
|
||||
chbOpenChatOnNewMessage->setAccessibleName ( tr ( "Open chat on new "
|
||||
"message check box" ) );
|
||||
|
||||
cbOpenChatOnNewMessage->setToolTip ( tr ( "If Open Chat on New Message "
|
||||
chbOpenChatOnNewMessage->setToolTip ( tr ( "If Open Chat on New Message "
|
||||
"is disabled, a LED in the main window turns green when a "
|
||||
"new message has arrived." ) + TOOLTIP_COM_END_TEXT );
|
||||
|
||||
// use high quality audio
|
||||
cbUseHighQualityAudio->setWhatsThis ( tr ( "<b>Use High Quality Audio</b> "
|
||||
chbUseHighQualityAudio->setWhatsThis ( tr ( "<b>Use High Quality Audio</b> "
|
||||
"Enabling ""Use High Quality Audio"" will improve the audio quality "
|
||||
"by increasing the stream data rate. Make sure that the current "
|
||||
"upload rate does not exceed the available bandwidth of your "
|
||||
"internet connection." ) );
|
||||
|
||||
cbUseHighQualityAudio->setAccessibleName ( tr ( "Use high quality audio "
|
||||
chbUseHighQualityAudio->setAccessibleName ( tr ( "Use high quality audio "
|
||||
"check box" ) );
|
||||
|
||||
// use stereo
|
||||
cbUseStereo->setWhatsThis ( tr ( "<b>Stereo Streaming</b> "
|
||||
chbUseStereo->setWhatsThis ( tr ( "<b>Stereo Streaming</b> "
|
||||
"Enables the stereo streaming mode. If not checked, a mono streaming "
|
||||
"mode is used. Enabling the stereo streaming mode will increase the "
|
||||
"stream data rate. Make sure that the current upload rate does not "
|
||||
|
@ -193,7 +193,7 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"for the reverberation effect will be available on the main window "
|
||||
"since the effect is applied on both channels in this case." ) );
|
||||
|
||||
cbUseStereo->setAccessibleName ( tr ( "Stereo check box" ) );
|
||||
chbUseStereo->setAccessibleName ( tr ( "Stereo check box" ) );
|
||||
|
||||
// central server address
|
||||
QString strCentrServAddr = tr ( "<b>Central Server Address:</b> The "
|
||||
|
@ -202,14 +202,14 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"Default check box is checked, the default central server address is "
|
||||
"shown read-only." );
|
||||
|
||||
LabelCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
cbDefaultCentralServer->setWhatsThis ( strCentrServAddr );
|
||||
LineEditCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
lblCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
chbDefaultCentralServer->setWhatsThis ( strCentrServAddr );
|
||||
edtCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
|
||||
cbDefaultCentralServer->setAccessibleName (
|
||||
chbDefaultCentralServer->setAccessibleName (
|
||||
tr ( "Default central server check box" ) );
|
||||
|
||||
LineEditCentralServerAddress->setAccessibleName (
|
||||
edtCentralServerAddress->setAccessibleName (
|
||||
tr ( "Central server address line edit" ) );
|
||||
|
||||
// current connection status parameter
|
||||
|
@ -227,52 +227,52 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
"higher than the available rate (check the upstream capabilities of "
|
||||
"your internet connection by, e.g., using speedtest.net)." );
|
||||
|
||||
TextPingTime->setWhatsThis ( strConnStats );
|
||||
TextLabelPingTime->setWhatsThis ( strConnStats );
|
||||
TextOverallDelay->setWhatsThis ( strConnStats );
|
||||
TextLabelOverallDelay->setWhatsThis ( strConnStats );
|
||||
TextUpstream->setWhatsThis ( strConnStats );
|
||||
TextUpstreamValue->setWhatsThis ( strConnStats );
|
||||
CLEDOverallDelay->setWhatsThis ( strConnStats );
|
||||
CLEDOverallDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
||||
lblPingTime->setWhatsThis ( strConnStats );
|
||||
lblPingTimeValue->setWhatsThis ( strConnStats );
|
||||
lblOverallDelay->setWhatsThis ( strConnStats );
|
||||
lblOverallDelayValue->setWhatsThis ( strConnStats );
|
||||
lblUpstream->setWhatsThis ( strConnStats );
|
||||
lblUpstreamValue->setWhatsThis ( strConnStats );
|
||||
ledOverallDelay->setWhatsThis ( strConnStats );
|
||||
ledOverallDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
||||
"you will not have much fun using the llcon software." ) +
|
||||
TOOLTIP_COM_END_TEXT );
|
||||
|
||||
|
||||
// init driver button
|
||||
#ifdef _WIN32
|
||||
ButtonDriverSetup->setText ( "ASIO Setup" );
|
||||
butDriverSetup->setText ( "ASIO Setup" );
|
||||
#else
|
||||
// no use for this button for Linux right now, maybe later used
|
||||
// for Jack
|
||||
ButtonDriverSetup->hide();
|
||||
butDriverSetup->hide();
|
||||
|
||||
// for Jack interface, we cannot choose the audio hardware from
|
||||
// within the llcon software, hide the combo box
|
||||
TextSoundcardDevice->hide();
|
||||
cbSoundcard->hide();
|
||||
lblSoundcardDevice->hide();
|
||||
cbxSoundcard->hide();
|
||||
#endif
|
||||
|
||||
// init delay and other information controls
|
||||
CLEDOverallDelay->SetUpdateTime ( 2 * PING_UPDATE_TIME_MS );
|
||||
CLEDOverallDelay->Reset();
|
||||
TextLabelPingTime->setText ( "" );
|
||||
TextLabelOverallDelay->setText ( "" );
|
||||
TextUpstreamValue->setText ( "" );
|
||||
ledOverallDelay->SetUpdateTime ( 2 * PING_UPDATE_TIME_MS );
|
||||
ledOverallDelay->Reset();
|
||||
lblPingTimeValue->setText ( "" );
|
||||
lblOverallDelayValue->setText ( "" );
|
||||
lblUpstreamValue->setText ( "" );
|
||||
|
||||
|
||||
// init slider controls ---
|
||||
// network buffer
|
||||
SliderNetBuf->setRange ( MIN_NET_BUF_SIZE_NUM_BL, MAX_NET_BUF_SIZE_NUM_BL );
|
||||
sldNetBuf->setRange ( MIN_NET_BUF_SIZE_NUM_BL, MAX_NET_BUF_SIZE_NUM_BL );
|
||||
UpdateJitterBufferFrame();
|
||||
|
||||
// init combo box containing all available sound cards in the system
|
||||
cbSoundcard->clear();
|
||||
cbxSoundcard->clear();
|
||||
for ( int iSndDevIdx = 0; iSndDevIdx < pClient->GetSndCrdNumDev(); iSndDevIdx++ )
|
||||
{
|
||||
cbSoundcard->addItem ( pClient->GetSndCrdDeviceName ( iSndDevIdx ) );
|
||||
cbxSoundcard->addItem ( pClient->GetSndCrdDeviceName ( iSndDevIdx ) );
|
||||
}
|
||||
cbSoundcard->setCurrentIndex ( pClient->GetSndCrdDev() );
|
||||
cbxSoundcard->setCurrentIndex ( pClient->GetSndCrdDev() );
|
||||
|
||||
// init sound card channel selection frame
|
||||
UpdateSoundChannelSelectionFrame();
|
||||
|
@ -280,70 +280,70 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
// "OpenChatOnNewMessage" check box
|
||||
if ( pClient->GetOpenChatOnNewMessage() )
|
||||
{
|
||||
cbOpenChatOnNewMessage->setCheckState ( Qt::Checked );
|
||||
chbOpenChatOnNewMessage->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbOpenChatOnNewMessage->setCheckState ( Qt::Unchecked );
|
||||
chbOpenChatOnNewMessage->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
|
||||
// fancy GUI design check box
|
||||
if ( pClient->GetGUIDesign() == GD_STANDARD )
|
||||
{
|
||||
cbGUIDesignFancy->setCheckState ( Qt::Unchecked );
|
||||
chbGUIDesignFancy->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbGUIDesignFancy->setCheckState ( Qt::Checked );
|
||||
chbGUIDesignFancy->setCheckState ( Qt::Checked );
|
||||
}
|
||||
|
||||
// "High Quality Audio" check box
|
||||
if ( pClient->GetCELTHighQuality() )
|
||||
{
|
||||
cbUseHighQualityAudio->setCheckState ( Qt::Checked );
|
||||
chbUseHighQualityAudio->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbUseHighQualityAudio->setCheckState ( Qt::Unchecked );
|
||||
chbUseHighQualityAudio->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
|
||||
// "Stereo" check box
|
||||
if ( pClient->GetUseStereo() )
|
||||
{
|
||||
cbUseStereo->setCheckState ( Qt::Checked );
|
||||
chbUseStereo->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbUseStereo->setCheckState ( Qt::Unchecked );
|
||||
chbUseStereo->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
|
||||
// update default central server address check box
|
||||
if ( pClient->GetUseDefaultCentralServerAddress() )
|
||||
{
|
||||
cbDefaultCentralServer->setCheckState ( Qt::Checked );
|
||||
chbDefaultCentralServer->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbDefaultCentralServer->setCheckState ( Qt::Unchecked );
|
||||
chbDefaultCentralServer->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
UpdateCentralServerDependency();
|
||||
|
||||
// set text for sound card buffer delay radio buttons
|
||||
rButBufferDelayPreferred->setText ( GenSndCrdBufferDelayString (
|
||||
rbtBufferDelayPreferred->setText ( GenSndCrdBufferDelayString (
|
||||
FRAME_SIZE_FACTOR_PREFERRED * SYSTEM_FRAME_SIZE_SAMPLES,
|
||||
", preferred" ) );
|
||||
|
||||
rButBufferDelayDefault->setText ( GenSndCrdBufferDelayString (
|
||||
rbtBufferDelayDefault->setText ( GenSndCrdBufferDelayString (
|
||||
FRAME_SIZE_FACTOR_DEFAULT * SYSTEM_FRAME_SIZE_SAMPLES,
|
||||
", default" ) );
|
||||
|
||||
rButBufferDelaySafe->setText ( GenSndCrdBufferDelayString (
|
||||
rbtBufferDelaySafe->setText ( GenSndCrdBufferDelayString (
|
||||
FRAME_SIZE_FACTOR_SAFE * SYSTEM_FRAME_SIZE_SAMPLES ) );
|
||||
|
||||
// sound card buffer delay inits
|
||||
SndCrdBufferDelayButtonGroup.addButton ( rButBufferDelayPreferred );
|
||||
SndCrdBufferDelayButtonGroup.addButton ( rButBufferDelayDefault );
|
||||
SndCrdBufferDelayButtonGroup.addButton ( rButBufferDelaySafe );
|
||||
SndCrdBufferDelayButtonGroup.addButton ( rbtBufferDelayPreferred );
|
||||
SndCrdBufferDelayButtonGroup.addButton ( rbtBufferDelayDefault );
|
||||
SndCrdBufferDelayButtonGroup.addButton ( rbtBufferDelaySafe );
|
||||
|
||||
UpdateSoundCardFrame();
|
||||
|
||||
|
@ -354,52 +354,51 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
this, SLOT ( OnTimerStatus() ) );
|
||||
|
||||
// slider controls
|
||||
QObject::connect ( SliderNetBuf, SIGNAL ( valueChanged ( int ) ),
|
||||
this, SLOT ( OnSliderNetBuf ( int ) ) );
|
||||
QObject::connect ( sldNetBuf, SIGNAL ( valueChanged ( int ) ),
|
||||
this, SLOT ( OnNetBufValueChanged ( int ) ) );
|
||||
|
||||
// check boxes
|
||||
QObject::connect ( cbOpenChatOnNewMessage, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbOpenChatOnNewMessage, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnOpenChatOnNewMessageStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbGUIDesignFancy, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbGUIDesignFancy, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnGUIDesignFancyStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbUseHighQualityAudio, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbUseHighQualityAudio, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnUseHighQualityAudioStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbUseStereo, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbUseStereo, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnUseStereoStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbAutoJitBuf, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnAutoJitBuf ( int ) ) );
|
||||
QObject::connect ( chbAutoJitBuf, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnAutoJitBufStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbDefaultCentralServer, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbDefaultCentralServer, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnDefaultCentralServerStateChanged ( int ) ) );
|
||||
|
||||
// line edits
|
||||
QObject::connect ( LineEditCentralServerAddress,
|
||||
SIGNAL ( editingFinished() ),
|
||||
this, SLOT ( OnLineEditCentralServerAddressEditingFinished() ) );
|
||||
QObject::connect ( edtCentralServerAddress, SIGNAL ( editingFinished() ),
|
||||
this, SLOT ( OnCentralServerAddressEditingFinished() ) );
|
||||
|
||||
// combo boxes
|
||||
QObject::connect ( cbSoundcard, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSoundCrdSelection ( int ) ) );
|
||||
QObject::connect ( cbxSoundcard, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSoundcardActivated ( int ) ) );
|
||||
|
||||
QObject::connect ( cbLInChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSndCrdLeftInChannelSelection ( int ) ) );
|
||||
QObject::connect ( cbxLInChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnLInChanActivated ( int ) ) );
|
||||
|
||||
QObject::connect ( cbRInChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSndCrdRightInChannelSelection ( int ) ) );
|
||||
QObject::connect ( cbxRInChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnRInChanActivated ( int ) ) );
|
||||
|
||||
QObject::connect ( cbLOutChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSndCrdLeftOutChannelSelection ( int ) ) );
|
||||
QObject::connect ( cbxLOutChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnLOutChanActivated ( int ) ) );
|
||||
|
||||
QObject::connect ( cbROutChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnSndCrdRightOutChannelSelection ( int ) ) );
|
||||
QObject::connect ( cbxROutChan, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnROutChanActivated ( int ) ) );
|
||||
|
||||
// buttons
|
||||
QObject::connect ( ButtonDriverSetup, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnDriverSetupBut() ) );
|
||||
QObject::connect ( butDriverSetup, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnDriverSetupClicked() ) );
|
||||
|
||||
// misc
|
||||
QObject::connect ( &SndCrdBufferDelayButtonGroup,
|
||||
|
@ -416,13 +415,13 @@ void CClientSettingsDlg::UpdateJitterBufferFrame()
|
|||
{
|
||||
// update slider value and text
|
||||
const int iCurNumNetBuf = pClient->GetSockBufNumFrames();
|
||||
SliderNetBuf->setValue ( iCurNumNetBuf );
|
||||
sldNetBuf->setValue ( iCurNumNetBuf );
|
||||
TextNetBuf->setText ( "Size: " + QString().setNum ( iCurNumNetBuf ) );
|
||||
|
||||
// if auto setting is enabled, disable slider control
|
||||
cbAutoJitBuf->setChecked ( pClient->GetDoAutoSockBufSize() );
|
||||
SliderNetBuf->setEnabled ( !pClient->GetDoAutoSockBufSize() );
|
||||
TextNetBuf->setEnabled ( !pClient->GetDoAutoSockBufSize() );
|
||||
chbAutoJitBuf->setChecked ( pClient->GetDoAutoSockBufSize() );
|
||||
sldNetBuf->setEnabled ( !pClient->GetDoAutoSockBufSize() );
|
||||
TextNetBuf->setEnabled ( !pClient->GetDoAutoSockBufSize() );
|
||||
}
|
||||
|
||||
QString CClientSettingsDlg::GenSndCrdBufferDelayString ( const int iFrameSize,
|
||||
|
@ -449,25 +448,25 @@ void CClientSettingsDlg::UpdateSoundCardFrame()
|
|||
// are disabeld and unchecked.).
|
||||
SndCrdBufferDelayButtonGroup.setExclusive ( false );
|
||||
|
||||
rButBufferDelayPreferred->setChecked ( iCurActualBufSize ==
|
||||
rbtBufferDelayPreferred->setChecked ( iCurActualBufSize ==
|
||||
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED );
|
||||
|
||||
rButBufferDelayDefault->setChecked ( iCurActualBufSize ==
|
||||
rbtBufferDelayDefault->setChecked ( iCurActualBufSize ==
|
||||
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_DEFAULT );
|
||||
|
||||
rButBufferDelaySafe->setChecked ( iCurActualBufSize ==
|
||||
rbtBufferDelaySafe->setChecked ( iCurActualBufSize ==
|
||||
SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE );
|
||||
|
||||
SndCrdBufferDelayButtonGroup.setExclusive ( true );
|
||||
|
||||
// disable radio buttons which are not supported by audio interface
|
||||
rButBufferDelayPreferred->setEnabled (
|
||||
rbtBufferDelayPreferred->setEnabled (
|
||||
pClient->GetFraSiFactPrefSupported() );
|
||||
|
||||
rButBufferDelayDefault->setEnabled (
|
||||
rbtBufferDelayDefault->setEnabled (
|
||||
pClient->GetFraSiFactDefSupported() );
|
||||
|
||||
rButBufferDelaySafe->setEnabled (
|
||||
rbtBufferDelaySafe->setEnabled (
|
||||
pClient->GetFraSiFactSafeSupported() );
|
||||
}
|
||||
|
||||
|
@ -492,26 +491,26 @@ void CClientSettingsDlg::UpdateSoundChannelSelectionFrame()
|
|||
FrameSoundcardChannelSelection->setVisible ( true );
|
||||
|
||||
// input
|
||||
cbLInChan->clear();
|
||||
cbRInChan->clear();
|
||||
cbxLInChan->clear();
|
||||
cbxRInChan->clear();
|
||||
for ( iSndChanIdx = 0; iSndChanIdx < pClient->GetSndCrdNumInputChannels(); iSndChanIdx++ )
|
||||
{
|
||||
cbLInChan->addItem ( pClient->GetSndCrdInputChannelName ( iSndChanIdx ) );
|
||||
cbRInChan->addItem ( pClient->GetSndCrdInputChannelName ( iSndChanIdx ) );
|
||||
cbxLInChan->addItem ( pClient->GetSndCrdInputChannelName ( iSndChanIdx ) );
|
||||
cbxRInChan->addItem ( pClient->GetSndCrdInputChannelName ( iSndChanIdx ) );
|
||||
}
|
||||
cbLInChan->setCurrentIndex ( pClient->GetSndCrdLeftInputChannel() );
|
||||
cbRInChan->setCurrentIndex ( pClient->GetSndCrdRightInputChannel() );
|
||||
cbxLInChan->setCurrentIndex ( pClient->GetSndCrdLeftInputChannel() );
|
||||
cbxRInChan->setCurrentIndex ( pClient->GetSndCrdRightInputChannel() );
|
||||
|
||||
// output
|
||||
cbLOutChan->clear();
|
||||
cbROutChan->clear();
|
||||
cbxLOutChan->clear();
|
||||
cbxROutChan->clear();
|
||||
for ( iSndChanIdx = 0; iSndChanIdx < pClient->GetSndCrdNumOutputChannels(); iSndChanIdx++ )
|
||||
{
|
||||
cbLOutChan->addItem ( pClient->GetSndCrdOutputChannelName ( iSndChanIdx ) );
|
||||
cbROutChan->addItem ( pClient->GetSndCrdOutputChannelName ( iSndChanIdx ) );
|
||||
cbxLOutChan->addItem ( pClient->GetSndCrdOutputChannelName ( iSndChanIdx ) );
|
||||
cbxROutChan->addItem ( pClient->GetSndCrdOutputChannelName ( iSndChanIdx ) );
|
||||
}
|
||||
cbLOutChan->setCurrentIndex ( pClient->GetSndCrdLeftOutputChannel() );
|
||||
cbROutChan->setCurrentIndex ( pClient->GetSndCrdRightOutputChannel() );
|
||||
cbxLOutChan->setCurrentIndex ( pClient->GetSndCrdLeftOutputChannel() );
|
||||
cbxROutChan->setCurrentIndex ( pClient->GetSndCrdRightOutputChannel() );
|
||||
}
|
||||
#else
|
||||
// for other OS, no sound card channel selection is supported
|
||||
|
@ -527,31 +526,31 @@ void CClientSettingsDlg::UpdateCentralServerDependency()
|
|||
// If the default central server address is enabled, the line edit shows
|
||||
// the default server and is not editable. Make sure the line edit does not
|
||||
// fire signals when we update the text.
|
||||
LineEditCentralServerAddress->blockSignals ( true );
|
||||
edtCentralServerAddress->blockSignals ( true );
|
||||
{
|
||||
if ( bCurUseDefCentServAddr )
|
||||
{
|
||||
LineEditCentralServerAddress->setText ( DEFAULT_SERVER_ADDRESS );
|
||||
edtCentralServerAddress->setText ( DEFAULT_SERVER_ADDRESS );
|
||||
}
|
||||
else
|
||||
{
|
||||
LineEditCentralServerAddress->setText (
|
||||
edtCentralServerAddress->setText (
|
||||
pClient->GetServerListCentralServerAddress() );
|
||||
}
|
||||
}
|
||||
LineEditCentralServerAddress->blockSignals ( false );
|
||||
edtCentralServerAddress->blockSignals ( false );
|
||||
|
||||
// the line edit of the central server address is only enabled, if not the
|
||||
// default address is used
|
||||
LineEditCentralServerAddress->setEnabled ( !bCurUseDefCentServAddr );
|
||||
edtCentralServerAddress->setEnabled ( !bCurUseDefCentServAddr );
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnDriverSetupBut()
|
||||
void CClientSettingsDlg::OnDriverSetupClicked()
|
||||
{
|
||||
pClient->OpenSndCrdDriverSetup();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSliderNetBuf ( int value )
|
||||
void CClientSettingsDlg::OnNetBufValueChanged ( int value )
|
||||
{
|
||||
pClient->SetSockBufNumFrames ( value );
|
||||
UpdateJitterBufferFrame();
|
||||
|
@ -563,7 +562,7 @@ void CClientSettingsDlg::OnSliderSndCrdBufferDelay ( int value )
|
|||
UpdateDisplay();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSoundCrdSelection ( int iSndDevIdx )
|
||||
void CClientSettingsDlg::OnSoundcardActivated ( int iSndDevIdx )
|
||||
{
|
||||
const QString strError = pClient->SetSndCrdDev ( iSndDevIdx );
|
||||
|
||||
|
@ -576,37 +575,37 @@ void CClientSettingsDlg::OnSoundCrdSelection ( int iSndDevIdx )
|
|||
"Ok", 0 );
|
||||
|
||||
// recover old selection
|
||||
cbSoundcard->setCurrentIndex ( pClient->GetSndCrdDev() );
|
||||
cbxSoundcard->setCurrentIndex ( pClient->GetSndCrdDev() );
|
||||
}
|
||||
UpdateSoundChannelSelectionFrame();
|
||||
UpdateDisplay();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSndCrdLeftInChannelSelection ( int iChanIdx )
|
||||
void CClientSettingsDlg::OnLInChanActivated ( int iChanIdx )
|
||||
{
|
||||
pClient->SetSndCrdLeftInputChannel ( iChanIdx );
|
||||
UpdateSoundChannelSelectionFrame();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSndCrdRightInChannelSelection ( int iChanIdx )
|
||||
void CClientSettingsDlg::OnRInChanActivated ( int iChanIdx )
|
||||
{
|
||||
pClient->SetSndCrdRightInputChannel ( iChanIdx );
|
||||
UpdateSoundChannelSelectionFrame();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSndCrdLeftOutChannelSelection ( int iChanIdx )
|
||||
void CClientSettingsDlg::OnLOutChanActivated ( int iChanIdx )
|
||||
{
|
||||
pClient->SetSndCrdLeftOutputChannel ( iChanIdx );
|
||||
UpdateSoundChannelSelectionFrame();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSndCrdRightOutChannelSelection ( int iChanIdx )
|
||||
void CClientSettingsDlg::OnROutChanActivated ( int iChanIdx )
|
||||
{
|
||||
pClient->SetSndCrdRightOutputChannel ( iChanIdx );
|
||||
UpdateSoundChannelSelectionFrame();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnAutoJitBuf ( int value )
|
||||
void CClientSettingsDlg::OnAutoJitBufStateChanged ( int value )
|
||||
{
|
||||
pClient->SetDoAutoSockBufSize ( value == Qt::Checked );
|
||||
UpdateJitterBufferFrame();
|
||||
|
@ -654,26 +653,26 @@ void CClientSettingsDlg::OnDefaultCentralServerStateChanged ( int value )
|
|||
UpdateCentralServerDependency();
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnLineEditCentralServerAddressEditingFinished()
|
||||
void CClientSettingsDlg::OnCentralServerAddressEditingFinished()
|
||||
{
|
||||
// store new setting in the client
|
||||
pClient->SetServerListCentralServerAddress (
|
||||
LineEditCentralServerAddress->text() );
|
||||
edtCentralServerAddress->text() );
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::OnSndCrdBufferDelayButtonGroupClicked ( QAbstractButton* button )
|
||||
{
|
||||
if ( button == rButBufferDelayPreferred )
|
||||
if ( button == rbtBufferDelayPreferred )
|
||||
{
|
||||
pClient->SetSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_PREFERRED );
|
||||
}
|
||||
|
||||
if ( button == rButBufferDelayDefault )
|
||||
if ( button == rbtBufferDelayDefault )
|
||||
{
|
||||
pClient->SetSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT );
|
||||
}
|
||||
|
||||
if ( button == rButBufferDelaySafe )
|
||||
if ( button == rbtBufferDelaySafe )
|
||||
{
|
||||
pClient->SetSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_SAFE );
|
||||
}
|
||||
|
@ -692,18 +691,18 @@ void CClientSettingsDlg::SetPingTimeResult ( const int iPingTime,
|
|||
const QString sErrorText =
|
||||
"<font color=""red""><b>>500 ms</b></font>";
|
||||
|
||||
TextLabelPingTime->setText ( sErrorText );
|
||||
TextLabelOverallDelay->setText ( sErrorText );
|
||||
lblPingTimeValue->setText ( sErrorText );
|
||||
lblOverallDelayValue->setText ( sErrorText );
|
||||
}
|
||||
else
|
||||
{
|
||||
TextLabelPingTime->setText ( QString().setNum ( iPingTime ) + " ms" );
|
||||
TextLabelOverallDelay->setText (
|
||||
lblPingTimeValue->setText ( QString().setNum ( iPingTime ) + " ms" );
|
||||
lblOverallDelayValue->setText (
|
||||
QString().setNum ( iOverallDelayMs ) + " ms" );
|
||||
}
|
||||
|
||||
// set current LED status
|
||||
CLEDOverallDelay->SetLight ( iOverallDelayLEDColor );
|
||||
ledOverallDelay->SetLight ( iOverallDelayLEDColor );
|
||||
}
|
||||
|
||||
void CClientSettingsDlg::UpdateDisplay()
|
||||
|
@ -715,14 +714,14 @@ void CClientSettingsDlg::UpdateDisplay()
|
|||
if ( !pClient->IsRunning() )
|
||||
{
|
||||
// clear text labels with client parameters
|
||||
TextLabelPingTime->setText ( "" );
|
||||
TextLabelOverallDelay->setText ( "" );
|
||||
TextUpstreamValue->setText ( "" );
|
||||
lblPingTimeValue->setText ( "" );
|
||||
lblOverallDelayValue->setText ( "" );
|
||||
lblUpstreamValue->setText ( "" );
|
||||
}
|
||||
else
|
||||
{
|
||||
// update upstream rate information label (only if client is running)
|
||||
TextUpstreamValue->setText (
|
||||
lblUpstreamValue->setText (
|
||||
QString().setNum ( pClient->GetUploadRateKbps() ) + " kbps" );
|
||||
}
|
||||
}
|
||||
|
@ -734,11 +733,11 @@ void CClientSettingsDlg::SetStatus ( const int iMessType, const int iStatus )
|
|||
case MS_JIT_BUF_PUT:
|
||||
case MS_JIT_BUF_GET:
|
||||
// network LED shows combined status of put and get
|
||||
CLEDNetw->SetLight ( iStatus );
|
||||
ledNetw->SetLight ( iStatus );
|
||||
break;
|
||||
|
||||
case MS_RESET_ALL:
|
||||
CLEDNetw->Reset();
|
||||
ledNetw->Reset();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,22 +84,22 @@ protected:
|
|||
|
||||
public slots:
|
||||
void OnTimerStatus() { UpdateDisplay(); }
|
||||
void OnSliderNetBuf ( int value );
|
||||
void OnNetBufValueChanged ( int value );
|
||||
void OnSliderSndCrdBufferDelay ( int value );
|
||||
void OnAutoJitBuf ( int value );
|
||||
void OnAutoJitBufStateChanged ( int value );
|
||||
void OnOpenChatOnNewMessageStateChanged ( int value );
|
||||
void OnGUIDesignFancyStateChanged ( int value );
|
||||
void OnUseHighQualityAudioStateChanged ( int value );
|
||||
void OnUseStereoStateChanged ( int value );
|
||||
void OnDefaultCentralServerStateChanged ( int value );
|
||||
void OnLineEditCentralServerAddressEditingFinished();
|
||||
void OnCentralServerAddressEditingFinished();
|
||||
void OnSndCrdBufferDelayButtonGroupClicked ( QAbstractButton* button );
|
||||
void OnSoundCrdSelection ( int iSndDevIdx );
|
||||
void OnSndCrdLeftInChannelSelection ( int iChanIdx );
|
||||
void OnSndCrdRightInChannelSelection ( int iChanIdx );
|
||||
void OnSndCrdLeftOutChannelSelection ( int iChanIdx );
|
||||
void OnSndCrdRightOutChannelSelection ( int iChanIdx );
|
||||
void OnDriverSetupBut();
|
||||
void OnSoundcardActivated ( int iSndDevIdx );
|
||||
void OnLInChanActivated ( int iChanIdx );
|
||||
void OnRInChanActivated ( int iChanIdx );
|
||||
void OnLOutChanActivated ( int iChanIdx );
|
||||
void OnROutChanActivated ( int iChanIdx );
|
||||
void OnDriverSetupClicked();
|
||||
|
||||
signals:
|
||||
void GUIDesignChanged();
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
</property>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QGroupBox" name="GroupBoxJitterBuffer" >
|
||||
<widget class="QGroupBox" name="grbJitterBuffer" >
|
||||
<property name="title" >
|
||||
<string>Jitter Buffer</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbAutoJitBuf" >
|
||||
<widget class="QCheckBox" name="chbAutoJitBuf" >
|
||||
<property name="text" >
|
||||
<string>Auto</string>
|
||||
</property>
|
||||
|
@ -85,7 +85,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSlider" name="SliderNetBuf" >
|
||||
<widget class="QSlider" name="sldNetBuf" >
|
||||
<property name="pageStep" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -134,7 +134,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLED" native="1" name="CLEDNetw" >
|
||||
<widget class="CMultiColorLED" native="1" name="ledNetw" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -177,20 +177,20 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="GroupBoxSoundCard" >
|
||||
<widget class="QGroupBox" name="grbSoundCard" >
|
||||
<property name="title" >
|
||||
<string>Soundcard</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextSoundcardDevice" >
|
||||
<widget class="QLabel" name="lblSoundcardDevice" >
|
||||
<property name="text" >
|
||||
<string>Device</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbSoundcard" >
|
||||
<widget class="QComboBox" name="cbxSoundcard" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -233,7 +233,7 @@
|
|||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbInChannelMapping" >
|
||||
<widget class="QLabel" name="lblInChannelMapping" >
|
||||
<property name="text" >
|
||||
<string>Input Channel Mapping</string>
|
||||
</property>
|
||||
|
@ -247,7 +247,7 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="labelLInChan" >
|
||||
<widget class="QLabel" name="lblLInChan" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -260,7 +260,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelRInChan" >
|
||||
<widget class="QLabel" name="lblRInChan" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -280,17 +280,17 @@
|
|||
<number>3</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbLInChan" />
|
||||
<widget class="QComboBox" name="cbxLInChan" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbRInChan" />
|
||||
<widget class="QComboBox" name="cbxRInChan" />
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbOutChannelMapping" >
|
||||
<widget class="QLabel" name="lblOutChannelMapping" >
|
||||
<property name="text" >
|
||||
<string>Output Channel Mapping</string>
|
||||
</property>
|
||||
|
@ -304,7 +304,7 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="labelLOutChan" >
|
||||
<widget class="QLabel" name="lblLOutChan" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -317,7 +317,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelROutChan" >
|
||||
<widget class="QLabel" name="lblROutChan" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -337,10 +337,10 @@
|
|||
<number>3</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbLOutChan" />
|
||||
<widget class="QComboBox" name="cbxLOutChan" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbROutChan" />
|
||||
<widget class="QComboBox" name="cbxROutChan" />
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
@ -363,34 +363,34 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="GroupBoxSoundCrdBufDelay" >
|
||||
<widget class="QGroupBox" name="grbSoundCrdBufDelay" >
|
||||
<property name="title" >
|
||||
<string>Buffer Delay</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rButBufferDelayPreferred" >
|
||||
<widget class="QRadioButton" name="rbtBufferDelayPreferred" >
|
||||
<property name="text" >
|
||||
<string>(preferred)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rButBufferDelayDefault" >
|
||||
<widget class="QRadioButton" name="rbtBufferDelayDefault" >
|
||||
<property name="text" >
|
||||
<string>(default)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rButBufferDelaySafe" >
|
||||
<widget class="QRadioButton" name="rbtBufferDelaySafe" >
|
||||
<property name="text" >
|
||||
<string>(safe)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="ButtonDriverSetup" >
|
||||
<widget class="QPushButton" name="butDriverSetup" >
|
||||
<property name="text" >
|
||||
<string>Driver Setup</string>
|
||||
</property>
|
||||
|
@ -403,27 +403,27 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="GroupBoxMeasureResults" >
|
||||
<widget class="QGroupBox" name="grbMeasureResults" >
|
||||
<property name="title" >
|
||||
<string>Misc</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbOpenChatOnNewMessage" >
|
||||
<widget class="QCheckBox" name="chbOpenChatOnNewMessage" >
|
||||
<property name="text" >
|
||||
<string>Open Chat on New Message</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbGUIDesignFancy" >
|
||||
<widget class="QCheckBox" name="chbGUIDesignFancy" >
|
||||
<property name="text" >
|
||||
<string>Fancy GUI Design</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbUseHighQualityAudio" >
|
||||
<widget class="QCheckBox" name="chbUseHighQualityAudio" >
|
||||
<property name="windowModality" >
|
||||
<enum>Qt::NonModal</enum>
|
||||
</property>
|
||||
|
@ -433,7 +433,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbUseStereo" >
|
||||
<widget class="QCheckBox" name="chbUseStereo" >
|
||||
<property name="windowModality" >
|
||||
<enum>Qt::NonModal</enum>
|
||||
</property>
|
||||
|
@ -445,14 +445,14 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="LabelCentralServerAddress" >
|
||||
<widget class="QLabel" name="lblCentralServerAddress" >
|
||||
<property name="text" >
|
||||
<string>Central Server Address:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbDefaultCentralServer" >
|
||||
<widget class="QCheckBox" name="chbDefaultCentralServer" >
|
||||
<property name="text" >
|
||||
<string>Default</string>
|
||||
</property>
|
||||
|
@ -461,7 +461,7 @@
|
|||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="LineEditCentralServerAddress" >
|
||||
<widget class="QLineEdit" name="edtCentralServerAddress" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -486,14 +486,14 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextPingTime" >
|
||||
<widget class="QLabel" name="lblPingTime" >
|
||||
<property name="text" >
|
||||
<string>Ping Time</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelPingTime" >
|
||||
<widget class="QLabel" name="lblPingTimeValue" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Maximum" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -522,7 +522,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextOverallDelay" >
|
||||
<widget class="QLabel" name="lblOverallDelay" >
|
||||
<property name="text" >
|
||||
<string>Overall Delay</string>
|
||||
</property>
|
||||
|
@ -534,7 +534,7 @@
|
|||
<number>3</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelOverallDelay" >
|
||||
<widget class="QLabel" name="lblOverallDelayValue" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Maximum" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -565,7 +565,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLED" native="1" name="CLEDOverallDelay" >
|
||||
<widget class="CMultiColorLED" native="1" name="ledOverallDelay" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -593,14 +593,14 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextUpstream" >
|
||||
<widget class="QLabel" name="lblUpstream" >
|
||||
<property name="text" >
|
||||
<string>Audio Stream Rate</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextUpstreamValue" >
|
||||
<widget class="QLabel" name="lblUpstreamValue" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>0</width>
|
||||
|
@ -639,23 +639,23 @@
|
|||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>cbAutoJitBuf</tabstop>
|
||||
<tabstop>SliderNetBuf</tabstop>
|
||||
<tabstop>cbSoundcard</tabstop>
|
||||
<tabstop>cbLInChan</tabstop>
|
||||
<tabstop>cbRInChan</tabstop>
|
||||
<tabstop>cbLOutChan</tabstop>
|
||||
<tabstop>cbROutChan</tabstop>
|
||||
<tabstop>rButBufferDelayPreferred</tabstop>
|
||||
<tabstop>rButBufferDelayDefault</tabstop>
|
||||
<tabstop>rButBufferDelaySafe</tabstop>
|
||||
<tabstop>ButtonDriverSetup</tabstop>
|
||||
<tabstop>cbOpenChatOnNewMessage</tabstop>
|
||||
<tabstop>cbGUIDesignFancy</tabstop>
|
||||
<tabstop>cbUseHighQualityAudio</tabstop>
|
||||
<tabstop>cbUseStereo</tabstop>
|
||||
<tabstop>cbDefaultCentralServer</tabstop>
|
||||
<tabstop>LineEditCentralServerAddress</tabstop>
|
||||
<tabstop>chbAutoJitBuf</tabstop>
|
||||
<tabstop>sldNetBuf</tabstop>
|
||||
<tabstop>cbxSoundcard</tabstop>
|
||||
<tabstop>cbxLInChan</tabstop>
|
||||
<tabstop>cbxRInChan</tabstop>
|
||||
<tabstop>cbxLOutChan</tabstop>
|
||||
<tabstop>cbxROutChan</tabstop>
|
||||
<tabstop>rbtBufferDelayPreferred</tabstop>
|
||||
<tabstop>rbtBufferDelayDefault</tabstop>
|
||||
<tabstop>rbtBufferDelaySafe</tabstop>
|
||||
<tabstop>butDriverSetup</tabstop>
|
||||
<tabstop>chbOpenChatOnNewMessage</tabstop>
|
||||
<tabstop>chbGUIDesignFancy</tabstop>
|
||||
<tabstop>chbUseHighQualityAudio</tabstop>
|
||||
<tabstop>chbUseStereo</tabstop>
|
||||
<tabstop>chbDefaultCentralServer</tabstop>
|
||||
<tabstop>edtCentralServerAddress</tabstop>
|
||||
</tabstops>
|
||||
<resources>
|
||||
<include location="resources.qrc" />
|
||||
|
|
|
@ -45,47 +45,46 @@ CConnectDlg::CConnectDlg ( QWidget* parent, Qt::WindowFlags f )
|
|||
"A list of the most recent used server URLs is available for "
|
||||
"selection." );
|
||||
|
||||
TextLabelServerAddr->setWhatsThis ( strServAddrH );
|
||||
LineEditServerAddr->setWhatsThis ( strServAddrH );
|
||||
lblServerAddr->setWhatsThis ( strServAddrH );
|
||||
cbxServerAddr->setWhatsThis ( strServAddrH );
|
||||
|
||||
LineEditServerAddr->setAccessibleName ( tr ( "Server address edit box" ) );
|
||||
LineEditServerAddr->setAccessibleDescription ( tr ( "Holds the current server "
|
||||
cbxServerAddr->setAccessibleName ( tr ( "Server address edit box" ) );
|
||||
cbxServerAddr->setAccessibleDescription ( tr ( "Holds the current server "
|
||||
"URL. It also stores old URLs in the combo box list." ) );
|
||||
|
||||
|
||||
// init server address combo box (max MAX_NUM_SERVER_ADDR_ITEMS entries)
|
||||
LineEditServerAddr->setMaxCount ( MAX_NUM_SERVER_ADDR_ITEMS );
|
||||
LineEditServerAddr->setInsertPolicy ( QComboBox::NoInsert );
|
||||
cbxServerAddr->setMaxCount ( MAX_NUM_SERVER_ADDR_ITEMS );
|
||||
cbxServerAddr->setInsertPolicy ( QComboBox::NoInsert );
|
||||
|
||||
// set up list view for connected clients
|
||||
ListViewServers->setColumnWidth ( 0, 170 );
|
||||
ListViewServers->setColumnWidth ( 1, 65 );
|
||||
ListViewServers->setColumnWidth ( 2, 55 );
|
||||
ListViewServers->setColumnWidth ( 3, 130 );
|
||||
ListViewServers->clear();
|
||||
lvwServers->setColumnWidth ( 0, 170 );
|
||||
lvwServers->setColumnWidth ( 1, 65 );
|
||||
lvwServers->setColumnWidth ( 2, 55 );
|
||||
lvwServers->setColumnWidth ( 3, 130 );
|
||||
lvwServers->clear();
|
||||
|
||||
|
||||
// Connections -------------------------------------------------------------
|
||||
// list view
|
||||
QObject::connect ( ListViewServers,
|
||||
QObject::connect ( lvwServers,
|
||||
SIGNAL ( itemSelectionChanged() ),
|
||||
this, SLOT ( OnServerListItemSelectionChanged() ) );
|
||||
|
||||
QObject::connect ( ListViewServers,
|
||||
QObject::connect ( lvwServers,
|
||||
SIGNAL ( itemDoubleClicked ( QTreeWidgetItem*, int ) ),
|
||||
this, SLOT ( OnServerListItemDoubleClicked ( QTreeWidgetItem*, int ) ) );
|
||||
|
||||
// combo boxes
|
||||
QObject::connect ( LineEditServerAddr,
|
||||
SIGNAL ( editTextChanged ( const QString& ) ),
|
||||
this, SLOT ( OnLineEditServerAddrEditTextChanged ( const QString& ) ) );
|
||||
QObject::connect ( cbxServerAddr, SIGNAL ( editTextChanged ( const QString& ) ),
|
||||
this, SLOT ( OnServerAddrEditTextChanged ( const QString& ) ) );
|
||||
|
||||
// buttons
|
||||
QObject::connect ( CancelButton, SIGNAL ( clicked() ),
|
||||
QObject::connect ( butCancel, SIGNAL ( clicked() ),
|
||||
this, SLOT ( close() ) );
|
||||
|
||||
QObject::connect ( ConnectButton, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnConnectButtonClicked() ) );
|
||||
QObject::connect ( butConnect, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnConnectClicked() ) );
|
||||
|
||||
// timers
|
||||
QObject::connect ( &TimerPing, SIGNAL ( timeout() ),
|
||||
|
@ -102,12 +101,12 @@ void CConnectDlg::Init ( const QString strNewCentralServerAddr,
|
|||
strCentralServerAddress = strNewCentralServerAddr;
|
||||
|
||||
// load stored IP addresses in combo box
|
||||
LineEditServerAddr->clear();
|
||||
cbxServerAddr->clear();
|
||||
for ( int iLEIdx = 0; iLEIdx < MAX_NUM_SERVER_ADDR_ITEMS; iLEIdx++ )
|
||||
{
|
||||
if ( !vstrIPAddresses[iLEIdx].isEmpty() )
|
||||
{
|
||||
LineEditServerAddr->addItem ( vstrIPAddresses[iLEIdx] );
|
||||
cbxServerAddr->addItem ( vstrIPAddresses[iLEIdx] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +124,7 @@ void CConnectDlg::showEvent ( QShowEvent* )
|
|||
strSelectedServerName = "";
|
||||
|
||||
// clear server list view
|
||||
ListViewServers->clear();
|
||||
lvwServers->clear();
|
||||
|
||||
// get the IP address of the central server (using the ParseNetworAddress
|
||||
// function) when the connect dialog is opened, this seems to be the correct
|
||||
|
@ -147,8 +146,7 @@ void CConnectDlg::hideEvent ( QHideEvent* )
|
|||
// get the IP address to be used according to the following definitions:
|
||||
// - if the list has focus and a line is selected, use this line
|
||||
// - if the list has no focus, use the current combo box text
|
||||
QList<QTreeWidgetItem*> CurSelListItemList =
|
||||
ListViewServers->selectedItems();
|
||||
QList<QTreeWidgetItem*> CurSelListItemList = lvwServers->selectedItems();
|
||||
|
||||
if ( CurSelListItemList.count() > 0 )
|
||||
{
|
||||
|
@ -164,7 +162,7 @@ void CConnectDlg::hideEvent ( QHideEvent* )
|
|||
}
|
||||
else
|
||||
{
|
||||
strSelectedAddress = LineEditServerAddr->currentText();
|
||||
strSelectedAddress = cbxServerAddr->currentText();
|
||||
}
|
||||
|
||||
// if window is closed, stop timers
|
||||
|
@ -190,7 +188,7 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr,
|
|||
TimerReRequestServList.stop();
|
||||
|
||||
// first clear list
|
||||
ListViewServers->clear();
|
||||
lvwServers->clear();
|
||||
|
||||
// add list item for each server in the server list
|
||||
const int iServerInfoLen = vecServerInfo.Size();
|
||||
|
@ -212,8 +210,7 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr,
|
|||
}
|
||||
|
||||
// create new list view item
|
||||
QTreeWidgetItem* pNewListViewItem =
|
||||
new QTreeWidgetItem ( ListViewServers );
|
||||
QTreeWidgetItem* pNewListViewItem = new QTreeWidgetItem ( lvwServers );
|
||||
|
||||
// make the entry invisible (will be set to visible on successful ping
|
||||
// result)
|
||||
|
@ -278,19 +275,17 @@ void CConnectDlg::OnServerListItemSelectionChanged()
|
|||
{
|
||||
// get current selected item (we are only interested in the first selcted
|
||||
// item)
|
||||
QList<QTreeWidgetItem*> CurSelListItemList =
|
||||
ListViewServers->selectedItems();
|
||||
QList<QTreeWidgetItem*> CurSelListItemList = lvwServers->selectedItems();
|
||||
|
||||
// if an item is clicked/selected, copy the server name to the combo box
|
||||
if ( CurSelListItemList.count() > 0 )
|
||||
{
|
||||
// make sure no signals are send when we change the text
|
||||
LineEditServerAddr->blockSignals ( true );
|
||||
cbxServerAddr->blockSignals ( true );
|
||||
{
|
||||
LineEditServerAddr->setEditText (
|
||||
CurSelListItemList[0]->text ( 0 ) );
|
||||
cbxServerAddr->setEditText ( CurSelListItemList[0]->text ( 0 ) );
|
||||
}
|
||||
LineEditServerAddr->blockSignals ( false );
|
||||
cbxServerAddr->blockSignals ( false );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -301,18 +296,18 @@ void CConnectDlg::OnServerListItemDoubleClicked ( QTreeWidgetItem* Item,
|
|||
// connect button was clicked
|
||||
if ( Item != 0 )
|
||||
{
|
||||
OnConnectButtonClicked();
|
||||
OnConnectClicked();
|
||||
}
|
||||
}
|
||||
|
||||
void CConnectDlg::OnLineEditServerAddrEditTextChanged ( const QString& )
|
||||
void CConnectDlg::OnServerAddrEditTextChanged ( const QString& )
|
||||
{
|
||||
// in the server address combo box, a text was changed, remove selection
|
||||
// in the server list (if any)
|
||||
ListViewServers->clearSelection();
|
||||
lvwServers->clearSelection();
|
||||
}
|
||||
|
||||
void CConnectDlg::OnConnectButtonClicked()
|
||||
void CConnectDlg::OnConnectClicked()
|
||||
{
|
||||
// set state OK flag
|
||||
bStateOK = true;
|
||||
|
@ -324,7 +319,7 @@ void CConnectDlg::OnConnectButtonClicked()
|
|||
void CConnectDlg::OnTimerPing()
|
||||
{
|
||||
// send ping messages to the servers in the list
|
||||
const int iServerListLen = ListViewServers->topLevelItemCount();
|
||||
const int iServerListLen = lvwServers->topLevelItemCount();
|
||||
|
||||
for ( int iIdx = 0; iIdx < iServerListLen; iIdx++ )
|
||||
{
|
||||
|
@ -333,7 +328,7 @@ void CConnectDlg::OnTimerPing()
|
|||
// try to parse host address string which is stored as user data
|
||||
// in the server list item GUI control element
|
||||
if ( LlconNetwUtil().ParseNetworkAddress (
|
||||
ListViewServers->topLevelItem ( iIdx )->
|
||||
lvwServers->topLevelItem ( iIdx )->
|
||||
data ( 0, Qt::UserRole ).toString(),
|
||||
CurServerAddress ) )
|
||||
{
|
||||
|
@ -349,13 +344,13 @@ void CConnectDlg::SetPingTimeAndNumClientsResult ( CHostAddress& InetAddr,
|
|||
const int iNumClients )
|
||||
{
|
||||
// apply the received ping time to the correct server list entry
|
||||
const int iServerListLen = ListViewServers->topLevelItemCount();
|
||||
const int iServerListLen = lvwServers->topLevelItemCount();
|
||||
|
||||
for ( int iIdx = 0; iIdx < iServerListLen; iIdx++ )
|
||||
{
|
||||
// compare the received address with the user data string of the
|
||||
// host address by a string compare
|
||||
if ( !ListViewServers->topLevelItem ( iIdx )->
|
||||
if ( !lvwServers->topLevelItem ( iIdx )->
|
||||
data ( 0, Qt::UserRole ).toString().
|
||||
compare ( InetAddr.toString() ) )
|
||||
{
|
||||
|
@ -363,31 +358,31 @@ void CConnectDlg::SetPingTimeAndNumClientsResult ( CHostAddress& InetAddr,
|
|||
switch ( iPingTimeLEDColor )
|
||||
{
|
||||
case MUL_COL_LED_GREEN:
|
||||
ListViewServers->
|
||||
lvwServers->
|
||||
topLevelItem ( iIdx )->setTextColor ( 1, Qt::darkGreen );
|
||||
break;
|
||||
|
||||
case MUL_COL_LED_YELLOW:
|
||||
ListViewServers->
|
||||
lvwServers->
|
||||
topLevelItem ( iIdx )->setTextColor ( 1, Qt::darkYellow );
|
||||
break;
|
||||
|
||||
case MUL_COL_LED_RED:
|
||||
ListViewServers->
|
||||
lvwServers->
|
||||
topLevelItem ( iIdx )->setTextColor ( 1, Qt::red );
|
||||
break;
|
||||
}
|
||||
|
||||
// update ping text
|
||||
ListViewServers->topLevelItem ( iIdx )->
|
||||
lvwServers->topLevelItem ( iIdx )->
|
||||
setText ( 1, QString().setNum ( iPingTime ) + " ms" );
|
||||
|
||||
// update number of clients text
|
||||
ListViewServers->topLevelItem ( iIdx )->
|
||||
lvwServers->topLevelItem ( iIdx )->
|
||||
setText ( 2, QString().setNum ( iNumClients ) );
|
||||
|
||||
// a ping time was received, set item to visible
|
||||
ListViewServers->topLevelItem ( iIdx )->setHidden ( false );
|
||||
lvwServers->topLevelItem ( iIdx )->setHidden ( false );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,8 +90,8 @@ protected:
|
|||
public slots:
|
||||
void OnServerListItemSelectionChanged();
|
||||
void OnServerListItemDoubleClicked ( QTreeWidgetItem* Item, int );
|
||||
void OnLineEditServerAddrEditTextChanged ( const QString& );
|
||||
void OnConnectButtonClicked();
|
||||
void OnServerAddrEditTextChanged ( const QString& );
|
||||
void OnConnectClicked();
|
||||
void OnTimerPing();
|
||||
void OnTimerReRequestServList();
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="ListViewServers" >
|
||||
<widget class="QTreeWidget" name="lvwServers" >
|
||||
<property name="editTriggers" >
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
|
@ -61,7 +61,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelServerAddr" >
|
||||
<widget class="QLabel" name="lblServerAddr" >
|
||||
<property name="text" >
|
||||
<string>Server Name/Address</string>
|
||||
</property>
|
||||
|
@ -71,7 +71,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="LineEditServerAddr" >
|
||||
<widget class="QComboBox" name="cbxServerAddr" >
|
||||
<property name="editable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
@ -95,14 +95,14 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="CancelButton" >
|
||||
<widget class="QPushButton" name="butCancel" >
|
||||
<property name="text" >
|
||||
<string>C&ancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="ConnectButton" >
|
||||
<widget class="QPushButton" name="butConnect" >
|
||||
<property name="text" >
|
||||
<string>&Connect</string>
|
||||
</property>
|
||||
|
|
17
src/global.h
17
src/global.h
|
@ -4,6 +4,23 @@
|
|||
* Author(s):
|
||||
* Volker Fischer
|
||||
*
|
||||
|
||||
Prefix definitions for the GUI:
|
||||
|
||||
label: lbl
|
||||
combo box: cbx
|
||||
line edit: edt
|
||||
list view: lvw
|
||||
check box: chb
|
||||
radio button: rbt
|
||||
button: but
|
||||
text view: txv
|
||||
slider: sld
|
||||
LED: led
|
||||
group box: grb
|
||||
pixmap label: pxl
|
||||
LED bar: lbr
|
||||
|
||||
******************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
|
|
|
@ -65,28 +65,28 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
QString strInpLevHAccText = tr ( "Input level meter" );
|
||||
QString strInpLevHAccDescr = tr ( "Simulates an analog LED level meter." );
|
||||
|
||||
TextInputLEDMeter->setWhatsThis ( strInpLevH );
|
||||
TextLevelMeterLeft->setWhatsThis ( strInpLevH );
|
||||
TextLevelMeterRight->setWhatsThis ( strInpLevH );
|
||||
MultiColorLEDBarInputLevelL->setWhatsThis ( strInpLevH );
|
||||
MultiColorLEDBarInputLevelL->setAccessibleName ( strInpLevHAccText );
|
||||
MultiColorLEDBarInputLevelL->setAccessibleDescription ( strInpLevHAccDescr );
|
||||
MultiColorLEDBarInputLevelL->setToolTip ( strInpLevHTT );
|
||||
MultiColorLEDBarInputLevelR->setWhatsThis ( strInpLevH );
|
||||
MultiColorLEDBarInputLevelR->setAccessibleName ( strInpLevHAccText );
|
||||
MultiColorLEDBarInputLevelR->setAccessibleDescription ( strInpLevHAccDescr );
|
||||
MultiColorLEDBarInputLevelR->setToolTip ( strInpLevHTT );
|
||||
lblInputLEDMeter->setWhatsThis ( strInpLevH );
|
||||
lblLevelMeterLeft->setWhatsThis ( strInpLevH );
|
||||
lblLevelMeterRight->setWhatsThis ( strInpLevH );
|
||||
lbrInputLevelL->setWhatsThis ( strInpLevH );
|
||||
lbrInputLevelL->setAccessibleName ( strInpLevHAccText );
|
||||
lbrInputLevelL->setAccessibleDescription ( strInpLevHAccDescr );
|
||||
lbrInputLevelL->setToolTip ( strInpLevHTT );
|
||||
lbrInputLevelR->setWhatsThis ( strInpLevH );
|
||||
lbrInputLevelR->setAccessibleName ( strInpLevHAccText );
|
||||
lbrInputLevelR->setAccessibleDescription ( strInpLevHAccDescr );
|
||||
lbrInputLevelR->setToolTip ( strInpLevHTT );
|
||||
|
||||
// connect/disconnect button
|
||||
PushButtonConnect->setWhatsThis ( tr ( "<b>Connect / Disconnect Button:"
|
||||
butConnect->setWhatsThis ( tr ( "<b>Connect / Disconnect Button:"
|
||||
"</b> Push this button to connect the server. A valid IP address has "
|
||||
"to be specified before. If the client is connected, pressing this "
|
||||
"button will disconnect the connection." ) );
|
||||
|
||||
PushButtonConnect->setAccessibleName (
|
||||
butConnect->setAccessibleName (
|
||||
tr ( "Connect and disconnect toggle button" ) );
|
||||
|
||||
PushButtonConnect->setAccessibleDescription ( tr ( "Clicking on this "
|
||||
butConnect->setAccessibleDescription ( tr ( "Clicking on this "
|
||||
"button changes the caption of the button from Connect to "
|
||||
"Disconnect, i.e., it implements a toggle functionality for connecting "
|
||||
"and disconnecting the llcon software." ) );
|
||||
|
@ -103,12 +103,12 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"pseoudonym here so that the other musicians can identify you." ) +
|
||||
TOOLTIP_COM_END_TEXT;
|
||||
|
||||
TextLabelServerTag->setWhatsThis ( strFaderTag );
|
||||
TextLabelServerTag->setToolTip ( strFaderTagTT );
|
||||
LineEditFaderTag->setWhatsThis ( strFaderTag );
|
||||
LineEditFaderTag->setToolTip ( strFaderTagTT );
|
||||
lblServerTag->setWhatsThis ( strFaderTag );
|
||||
lblServerTag->setToolTip ( strFaderTagTT );
|
||||
edtFaderTag->setWhatsThis ( strFaderTag );
|
||||
edtFaderTag->setToolTip ( strFaderTagTT );
|
||||
|
||||
LineEditFaderTag->setAccessibleName ( tr ( "Fader tag edit box" ) );
|
||||
edtFaderTag->setAccessibleName ( tr ( "Fader tag edit box" ) );
|
||||
|
||||
// local audio input fader
|
||||
QString strAudFader = tr ( "<b>Local Audio Input Fader:</b> With the "
|
||||
|
@ -120,10 +120,10 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"a direction where the label above the fader shows <i>L -x</i>, where "
|
||||
"<i>x</i> is the current attenuation indication. " );
|
||||
|
||||
TextAudInFader->setWhatsThis ( strAudFader );
|
||||
SliderAudInFader->setWhatsThis ( strAudFader );
|
||||
lblAudioPan->setWhatsThis ( strAudFader );
|
||||
sldAudioPan->setWhatsThis ( strAudFader );
|
||||
|
||||
SliderAudInFader->setAccessibleName ( tr ( "Local audio input fader (left/right)" ) );
|
||||
sldAudioPan->setAccessibleName ( tr ( "Local audio input fader (left/right)" ) );
|
||||
|
||||
// reverberation level
|
||||
QString strAudReverb = tr ( "<b>Reverberation Level:</b> A reverberation "
|
||||
|
@ -138,10 +138,10 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"minimum (which is the default setting), the reverberation effect is "
|
||||
"switched off and does not cause any additional CPU usage." );
|
||||
|
||||
TextLabelAudReverb->setWhatsThis ( strAudReverb );
|
||||
SliderAudReverb->setWhatsThis ( strAudReverb );
|
||||
lblAudioReverb->setWhatsThis ( strAudReverb );
|
||||
sldAudioReverb->setWhatsThis ( strAudReverb );
|
||||
|
||||
SliderAudReverb->setAccessibleName ( tr ( "Reverberation effect level setting" ) );
|
||||
sldAudioReverb->setAccessibleName ( tr ( "Reverberation effect level setting" ) );
|
||||
|
||||
// reverberation channel selection
|
||||
QString strRevChanSel = tr ( "<b>Reverberation Channel Selection:</b> "
|
||||
|
@ -149,10 +149,10 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"reverberation effect is applied can be chosen. Either the left "
|
||||
"or right input channel can be selected." );
|
||||
|
||||
RadioButtonRevSelL->setWhatsThis ( strRevChanSel );
|
||||
RadioButtonRevSelL->setAccessibleName ( tr ( "Left channel selection for reverberation" ) );
|
||||
RadioButtonRevSelR->setWhatsThis ( strRevChanSel );
|
||||
RadioButtonRevSelR->setAccessibleName ( tr ( "Right channel selection for reverberation" ) );
|
||||
rbtReverbSelL->setWhatsThis ( strRevChanSel );
|
||||
rbtReverbSelL->setAccessibleName ( tr ( "Left channel selection for reverberation" ) );
|
||||
rbtReverbSelR->setWhatsThis ( strRevChanSel );
|
||||
rbtReverbSelR->setAccessibleName ( tr ( "Right channel selection for reverberation" ) );
|
||||
|
||||
// connection LED
|
||||
QString strLEDConnection = tr ( "<b>Connection Status LED:</b> "
|
||||
|
@ -163,10 +163,10 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"If the light turns red and stays red, the connection to the "
|
||||
"server is lost." );
|
||||
|
||||
TextLabelConnection->setWhatsThis ( strLEDConnection );
|
||||
LEDConnection->setWhatsThis ( strLEDConnection );
|
||||
lblConnection->setWhatsThis ( strLEDConnection );
|
||||
ledConnection->setWhatsThis ( strLEDConnection );
|
||||
|
||||
LEDConnection->setAccessibleName ( tr ( "Connection status LED indicator" ) );
|
||||
ledConnection->setAccessibleName ( tr ( "Connection status LED indicator" ) );
|
||||
|
||||
// delay LED
|
||||
QString strLEDDelay = tr ( "<b>Delay Status LED:</b> "
|
||||
|
@ -176,13 +176,13 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"it may be harder to play. If the light is red, the delay is too "
|
||||
"large for jamming." );
|
||||
|
||||
TextLabelDelay->setWhatsThis ( strLEDDelay );
|
||||
LEDDelay->setWhatsThis ( strLEDDelay );
|
||||
LEDDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
||||
lblDelay->setWhatsThis ( strLEDDelay );
|
||||
ledDelay->setWhatsThis ( strLEDDelay );
|
||||
ledDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
||||
"you will not have much fun using the llcon software." ) +
|
||||
TOOLTIP_COM_END_TEXT );
|
||||
|
||||
LEDDelay->setAccessibleName ( tr ( "Delay status LED indicator" ) );
|
||||
ledDelay->setAccessibleName ( tr ( "Delay status LED indicator" ) );
|
||||
|
||||
// buffers LED
|
||||
QString strLEDBuffers = tr ( "<b>Buffers Status LED:</b> "
|
||||
|
@ -200,20 +200,20 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
"<li>The CPU of the client or server is at 100%.</li>"
|
||||
"</ul>" );
|
||||
|
||||
TextLabelBuffers->setWhatsThis ( strLEDBuffers );
|
||||
LEDBuffers->setWhatsThis ( strLEDBuffers );
|
||||
lblBuffers->setWhatsThis ( strLEDBuffers );
|
||||
ledBuffers->setWhatsThis ( strLEDBuffers );
|
||||
|
||||
LEDBuffers->setAccessibleName ( tr ( "Buffers status LED indicator" ) );
|
||||
ledBuffers->setAccessibleName ( tr ( "Buffers status LED indicator" ) );
|
||||
|
||||
// chat LED
|
||||
QString strLEDChat = tr ( "<b>Chat Status LED:</b> "
|
||||
"If the option Open Chat on New Message is not activated, this "
|
||||
"status LED will turn green on a new received chat message." );
|
||||
|
||||
TextLabelChat->setWhatsThis ( strLEDChat );
|
||||
LEDChat->setWhatsThis ( strLEDChat );
|
||||
lblChat->setWhatsThis ( strLEDChat );
|
||||
ledChat->setWhatsThis ( strLEDChat );
|
||||
|
||||
LEDBuffers->setAccessibleName ( tr ( "Chat status LED indicator" ) );
|
||||
ledBuffers->setAccessibleName ( tr ( "Chat status LED indicator" ) );
|
||||
|
||||
|
||||
// init GUI design
|
||||
|
@ -223,36 +223,36 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
MainMixerBoard->HideAll();
|
||||
|
||||
// init fader tag line edit
|
||||
LineEditFaderTag->setText ( pClient->strName );
|
||||
edtFaderTag->setText ( pClient->strName );
|
||||
|
||||
// init status label
|
||||
OnTimerStatus();
|
||||
|
||||
// init connection button text
|
||||
PushButtonConnect->setText ( CON_BUT_CONNECTTEXT );
|
||||
butConnect->setText ( CON_BUT_CONNECTTEXT );
|
||||
|
||||
// init input level meter bars
|
||||
MultiColorLEDBarInputLevelL->setValue ( 0 );
|
||||
MultiColorLEDBarInputLevelR->setValue ( 0 );
|
||||
lbrInputLevelL->setValue ( 0 );
|
||||
lbrInputLevelR->setValue ( 0 );
|
||||
|
||||
// init status LEDs
|
||||
LEDConnection->SetUpdateTime ( 2 * LED_BAR_UPDATE_TIME_MS );
|
||||
LEDChat->SetUpdateTime ( 2 * LED_BAR_UPDATE_TIME_MS );
|
||||
LEDDelay->SetUpdateTime ( 2 * PING_UPDATE_TIME_MS );
|
||||
LEDDelay->Reset();
|
||||
ledConnection->SetUpdateTime ( 2 * LED_BAR_UPDATE_TIME_MS );
|
||||
ledChat->SetUpdateTime ( 2 * LED_BAR_UPDATE_TIME_MS );
|
||||
ledDelay->SetUpdateTime ( 2 * PING_UPDATE_TIME_MS );
|
||||
ledDelay->Reset();
|
||||
|
||||
|
||||
// init slider controls ---
|
||||
// audio in fader
|
||||
SliderAudInFader->setRange ( AUD_FADER_IN_MIN, AUD_FADER_IN_MAX );
|
||||
SliderAudInFader->setTickInterval ( AUD_FADER_IN_MAX / 5 );
|
||||
sldAudioPan->setRange ( AUD_FADER_IN_MIN, AUD_FADER_IN_MAX );
|
||||
sldAudioPan->setTickInterval ( AUD_FADER_IN_MAX / 5 );
|
||||
UpdateAudioFaderSlider();
|
||||
|
||||
// audio reverberation
|
||||
SliderAudReverb->setRange ( 0, AUD_REVERB_MAX );
|
||||
sldAudioReverb->setRange ( 0, AUD_REVERB_MAX );
|
||||
const int iCurAudReverb = pClient->GetReverbLevel();
|
||||
SliderAudReverb->setValue ( iCurAudReverb );
|
||||
SliderAudReverb->setTickInterval ( AUD_REVERB_MAX / 5 );
|
||||
sldAudioReverb->setValue ( iCurAudReverb );
|
||||
sldAudioReverb->setTickInterval ( AUD_REVERB_MAX / 5 );
|
||||
|
||||
// init reverb channel
|
||||
UpdateRevSelection();
|
||||
|
@ -272,13 +272,13 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
// disable LEDs in main window if requested
|
||||
if ( bNewDisalbeLEDs )
|
||||
{
|
||||
MultiColorLEDBarInputLevelL->setEnabled ( false );
|
||||
MultiColorLEDBarInputLevelR->setEnabled ( false );
|
||||
LEDConnection->setEnabled ( false );
|
||||
LEDBuffers->setEnabled ( false );
|
||||
LEDDelay->setEnabled ( false );
|
||||
LEDChat->setEnabled ( false );
|
||||
PushButtonConnect->setFocus();
|
||||
lbrInputLevelL->setEnabled ( false );
|
||||
lbrInputLevelR->setEnabled ( false );
|
||||
ledConnection->setEnabled ( false );
|
||||
ledBuffers->setEnabled ( false );
|
||||
ledDelay->setEnabled ( false );
|
||||
ledChat->setEnabled ( false );
|
||||
butConnect->setFocus();
|
||||
}
|
||||
|
||||
|
||||
|
@ -289,7 +289,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
// Better solution: increase thread priority of worker thread (since the
|
||||
// user can always highlight the button manually, too) -> TODO
|
||||
#if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||
PushButtonConnect->setDefault ( false );
|
||||
butConnect->setDefault ( false );
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -320,7 +320,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
|
||||
// Connections -------------------------------------------------------------
|
||||
// push-buttons
|
||||
QObject::connect ( PushButtonConnect, SIGNAL ( clicked() ),
|
||||
QObject::connect ( butConnect, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnConnectDisconBut() ) );
|
||||
|
||||
// timers
|
||||
|
@ -334,21 +334,21 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
this, SLOT ( OnTimerPing() ) );
|
||||
|
||||
// sliders
|
||||
QObject::connect ( SliderAudInFader, SIGNAL ( valueChanged ( int ) ),
|
||||
this, SLOT ( OnSliderAudInFader ( int ) ) );
|
||||
QObject::connect ( sldAudioPan, SIGNAL ( valueChanged ( int ) ),
|
||||
this, SLOT ( OnAudioPanValueChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( SliderAudReverb, SIGNAL ( valueChanged ( int ) ),
|
||||
this, SLOT ( OnSliderAudReverb ( int ) ) );
|
||||
QObject::connect ( sldAudioReverb, SIGNAL ( valueChanged ( int ) ),
|
||||
this, SLOT ( OnAudioReverbValueChanged ( int ) ) );
|
||||
|
||||
// radio buttons
|
||||
QObject::connect ( RadioButtonRevSelL, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnRevSelL() ) );
|
||||
QObject::connect ( rbtReverbSelL, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnReverbSelLClicked() ) );
|
||||
|
||||
QObject::connect ( RadioButtonRevSelR, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnRevSelR() ) );
|
||||
QObject::connect ( rbtReverbSelR, SIGNAL ( clicked() ),
|
||||
this, SLOT ( OnReverbSelRClicked() ) );
|
||||
|
||||
// line edits
|
||||
QObject::connect ( LineEditFaderTag, SIGNAL ( textChanged ( const QString& ) ),
|
||||
QObject::connect ( edtFaderTag, SIGNAL ( textChanged ( const QString& ) ),
|
||||
this, SLOT ( OnFaderTagTextChanged ( const QString& ) ) );
|
||||
|
||||
// other
|
||||
|
@ -416,7 +416,7 @@ void CLlconClientDlg::closeEvent ( QCloseEvent* Event )
|
|||
}
|
||||
|
||||
// store fader tag
|
||||
pClient->strName = LineEditFaderTag->text();
|
||||
pClient->strName = edtFaderTag->text();
|
||||
|
||||
// default implementation of this event handler routine
|
||||
Event->accept();
|
||||
|
@ -426,26 +426,26 @@ void CLlconClientDlg::UpdateAudioFaderSlider()
|
|||
{
|
||||
// update slider and label of audio fader
|
||||
const int iCurAudInFader = pClient->GetAudioInFader();
|
||||
SliderAudInFader->setValue ( iCurAudInFader );
|
||||
sldAudioPan->setValue ( iCurAudInFader );
|
||||
|
||||
// show in label the center position and what channel is
|
||||
// attenuated
|
||||
if ( iCurAudInFader == AUD_FADER_IN_MIDDLE )
|
||||
{
|
||||
TextLabelAudFader->setText ( "Center" );
|
||||
lblAudioPanValue->setText ( "Center" );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( iCurAudInFader > AUD_FADER_IN_MIDDLE )
|
||||
{
|
||||
// attenuation on right channel
|
||||
TextLabelAudFader->setText ( "R -" +
|
||||
lblAudioPanValue->setText ( "R -" +
|
||||
QString().setNum ( iCurAudInFader - AUD_FADER_IN_MIDDLE ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
// attenuation on left channel
|
||||
TextLabelAudFader->setText ( "L -" +
|
||||
lblAudioPanValue->setText ( "L -" +
|
||||
QString().setNum ( AUD_FADER_IN_MIDDLE - iCurAudInFader ) );
|
||||
}
|
||||
}
|
||||
|
@ -457,28 +457,28 @@ void CLlconClientDlg::UpdateRevSelection()
|
|||
{
|
||||
// for stereo make channel selection invisible since
|
||||
// reverberation effect is always applied to both channels
|
||||
RadioButtonRevSelL->setVisible ( false );
|
||||
RadioButtonRevSelR->setVisible ( false );
|
||||
rbtReverbSelL->setVisible ( false );
|
||||
rbtReverbSelR->setVisible ( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
// make radio buttons visible
|
||||
RadioButtonRevSelL->setVisible ( true );
|
||||
RadioButtonRevSelR->setVisible ( true );
|
||||
rbtReverbSelL->setVisible ( true );
|
||||
rbtReverbSelR->setVisible ( true );
|
||||
|
||||
// update value
|
||||
if ( pClient->IsReverbOnLeftChan() )
|
||||
{
|
||||
RadioButtonRevSelL->setChecked ( true );
|
||||
rbtReverbSelL->setChecked ( true );
|
||||
}
|
||||
else
|
||||
{
|
||||
RadioButtonRevSelR->setChecked ( true );
|
||||
rbtReverbSelR->setChecked ( true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CLlconClientDlg::OnSliderAudInFader ( int value )
|
||||
void CLlconClientDlg::OnAudioPanValueChanged ( int value )
|
||||
{
|
||||
pClient->SetAudioInFader ( value );
|
||||
UpdateAudioFaderSlider();
|
||||
|
@ -596,7 +596,7 @@ void CLlconClientDlg::OnFaderTagTextChanged ( const QString& strNewName )
|
|||
else
|
||||
{
|
||||
// text is too long, update control with shortend text
|
||||
LineEditFaderTag->setText ( strNewName.left ( MAX_LEN_FADER_TAG ) );
|
||||
edtFaderTag->setText ( strNewName.left ( MAX_LEN_FADER_TAG ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -629,8 +629,8 @@ void CLlconClientDlg::OnTimerSigMet()
|
|||
}
|
||||
|
||||
// show current level
|
||||
MultiColorLEDBarInputLevelL->setValue ( (int) ceil ( dCurSigLevelL ) );
|
||||
MultiColorLEDBarInputLevelR->setValue ( (int) ceil ( dCurSigLevelR ) );
|
||||
lbrInputLevelL->setValue ( (int) ceil ( dCurSigLevelL ) );
|
||||
lbrInputLevelR->setValue ( (int) ceil ( dCurSigLevelR ) );
|
||||
}
|
||||
|
||||
void CLlconClientDlg::OnTimerPing()
|
||||
|
@ -673,7 +673,7 @@ void CLlconClientDlg::OnPingTimeResult ( int iPingTime )
|
|||
}
|
||||
|
||||
// update delay LED on the main window
|
||||
LEDDelay->SetLight ( iOverallDelayLEDColor );
|
||||
ledDelay->SetLight ( iOverallDelayLEDColor );
|
||||
}
|
||||
|
||||
void CLlconClientDlg::OnCLPingTimeWithNumClientsReceived ( CHostAddress InetAddr,
|
||||
|
@ -785,7 +785,7 @@ void CLlconClientDlg::ConnectDisconnect ( const bool bDoStart )
|
|||
if ( bStartOk )
|
||||
{
|
||||
// change connect button text to "disconnect"
|
||||
PushButtonConnect->setText ( CON_BUT_DISCONNECTTEXT );
|
||||
butConnect->setText ( CON_BUT_DISCONNECTTEXT );
|
||||
|
||||
// set server name in audio mixer group box title
|
||||
if ( ConnectDlg.GetServerListItemWasChosen() )
|
||||
|
@ -811,7 +811,7 @@ void CLlconClientDlg::ConnectDisconnect ( const bool bDoStart )
|
|||
else
|
||||
{
|
||||
// show the error as red light
|
||||
LEDConnection->SetLight ( MUL_COL_LED_RED );
|
||||
ledConnection->SetLight ( MUL_COL_LED_RED );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -828,15 +828,15 @@ void CLlconClientDlg::ConnectDisconnect ( const bool bDoStart )
|
|||
}
|
||||
|
||||
// change connect button text to "connect"
|
||||
PushButtonConnect->setText ( CON_BUT_CONNECTTEXT );
|
||||
butConnect->setText ( CON_BUT_CONNECTTEXT );
|
||||
|
||||
// reset server name in audio mixer group box title
|
||||
MainMixerBoard->SetServerName ( "" );
|
||||
|
||||
// stop timer for level meter bars and reset them
|
||||
TimerSigMet.stop();
|
||||
MultiColorLEDBarInputLevelL->setValue ( 0 );
|
||||
MultiColorLEDBarInputLevelR->setValue ( 0 );
|
||||
lbrInputLevelL->setValue ( 0 );
|
||||
lbrInputLevelR->setValue ( 0 );
|
||||
|
||||
// stop ping time measurement timer
|
||||
TimerPing.stop();
|
||||
|
@ -848,10 +848,10 @@ OnTimerStatus();
|
|||
|
||||
// TODO this seems not to work, LEDs are still updated afterwards...
|
||||
// reset LEDs
|
||||
LEDConnection->Reset();
|
||||
LEDBuffers->Reset();
|
||||
LEDDelay->Reset();
|
||||
LEDChat->Reset();
|
||||
ledConnection->Reset();
|
||||
ledBuffers->Reset();
|
||||
ledDelay->Reset();
|
||||
ledChat->Reset();
|
||||
|
||||
|
||||
// clear mixer board (remove all faders)
|
||||
|
@ -869,20 +869,20 @@ void CLlconClientDlg::UpdateDisplay()
|
|||
// chat LED
|
||||
if ( bUnreadChatMessage )
|
||||
{
|
||||
LEDChat->SetLight ( MUL_COL_LED_GREEN );
|
||||
ledChat->SetLight ( MUL_COL_LED_GREEN );
|
||||
}
|
||||
else
|
||||
{
|
||||
LEDChat->Reset();
|
||||
ledChat->Reset();
|
||||
}
|
||||
|
||||
// connection LED
|
||||
LEDConnection->SetLight ( MUL_COL_LED_GREEN );
|
||||
ledConnection->SetLight ( MUL_COL_LED_GREEN );
|
||||
}
|
||||
else
|
||||
{
|
||||
// connection LED
|
||||
LEDConnection->SetLight ( MUL_COL_LED_RED );
|
||||
ledConnection->SetLight ( MUL_COL_LED_RED );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -912,10 +912,10 @@ void CLlconClientDlg::SetGUIDesign ( const EGUIDesign eNewDesign )
|
|||
// background frame the style sheet for QRadioButton was already set. But it
|
||||
// seems that it is only applied if the style was set to default and then back
|
||||
// to GD_ORIGINAL. This seems to be a QT related issue...
|
||||
RadioButtonRevSelL->setStyleSheet ( "color: rgb(148, 148, 148);"
|
||||
"font: bold;" );
|
||||
RadioButtonRevSelR->setStyleSheet ( "color: rgb(148, 148, 148);"
|
||||
"font: bold;" );
|
||||
rbtReverbSelL->setStyleSheet ( "color: rgb(148, 148, 148);"
|
||||
"font: bold;" );
|
||||
rbtReverbSelR->setStyleSheet ( "color: rgb(148, 148, 148);"
|
||||
"font: bold;" );
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
@ -926,8 +926,8 @@ RadioButtonRevSelR->setStyleSheet ( "color: rgb(148, 148, 148);"
|
|||
|
||||
#ifdef _WIN32
|
||||
// Workaround QT-Windows problem: See above description
|
||||
RadioButtonRevSelL->setStyleSheet ( "" );
|
||||
RadioButtonRevSelR->setStyleSheet ( "" );
|
||||
rbtReverbSelL->setStyleSheet ( "" );
|
||||
rbtReverbSelR->setStyleSheet ( "" );
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
@ -951,14 +951,14 @@ void CLlconClientDlg::customEvent ( QEvent* Event )
|
|||
case MS_JIT_BUF_PUT:
|
||||
case MS_JIT_BUF_GET:
|
||||
// buffer status -> if any buffer goes red, this LED will go red
|
||||
LEDBuffers->SetLight ( iStatus );
|
||||
ledBuffers->SetLight ( iStatus );
|
||||
break;
|
||||
|
||||
case MS_RESET_ALL:
|
||||
LEDConnection->Reset();
|
||||
LEDBuffers->Reset();
|
||||
LEDDelay->Reset();
|
||||
LEDChat->Reset();
|
||||
ledConnection->Reset();
|
||||
ledBuffers->Reset();
|
||||
ledDelay->Reset();
|
||||
ledChat->Reset();
|
||||
break;
|
||||
|
||||
case MS_SET_JIT_BUF_SIZE:
|
||||
|
|
|
@ -123,15 +123,15 @@ public slots:
|
|||
void OnOpenChatDialog()
|
||||
{ ShowChatWindow(); }
|
||||
|
||||
void OnSliderAudInFader ( int value );
|
||||
void OnAudioPanValueChanged ( int value );
|
||||
|
||||
void OnSliderAudReverb ( int value )
|
||||
void OnAudioReverbValueChanged ( int value )
|
||||
{ pClient->SetReverbLevel ( value ); }
|
||||
|
||||
void OnRevSelL()
|
||||
void OnReverbSelLClicked()
|
||||
{ pClient->SetReverbOnLeftChan ( true ); }
|
||||
|
||||
void OnRevSelR()
|
||||
void OnReverbSelRClicked()
|
||||
{ pClient->SetReverbOnLeftChan ( false ); }
|
||||
|
||||
void OnConClientListMesReceived ( CVector<CChannelShortInfo> vecChanInfo );
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="PixmapLabelCorrados" >
|
||||
<widget class="QLabel" name="pxlLogo" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -113,7 +113,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelConnection" >
|
||||
<widget class="QLabel" name="lblConnection" >
|
||||
<property name="text" >
|
||||
<string>Connection</string>
|
||||
</property>
|
||||
|
@ -126,7 +126,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLED" native="1" name="LEDConnection" >
|
||||
<widget class="CMultiColorLED" native="1" name="ledConnection" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -165,7 +165,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelDelay" >
|
||||
<widget class="QLabel" name="lblDelay" >
|
||||
<property name="text" >
|
||||
<string>Delay</string>
|
||||
</property>
|
||||
|
@ -178,7 +178,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLED" native="1" name="LEDDelay" >
|
||||
<widget class="CMultiColorLED" native="1" name="ledDelay" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -217,7 +217,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelBuffers" >
|
||||
<widget class="QLabel" name="lblBuffers" >
|
||||
<property name="text" >
|
||||
<string>Buffers</string>
|
||||
</property>
|
||||
|
@ -230,7 +230,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLED" native="1" name="LEDBuffers" >
|
||||
<widget class="CMultiColorLED" native="1" name="ledBuffers" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -269,7 +269,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelChat" >
|
||||
<widget class="QLabel" name="lblChat" >
|
||||
<property name="text" >
|
||||
<string>Chat</string>
|
||||
</property>
|
||||
|
@ -282,7 +282,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLED" native="1" name="LEDChat" >
|
||||
<widget class="CMultiColorLED" native="1" name="ledChat" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -330,7 +330,7 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextInputLEDMeter" >
|
||||
<widget class="QLabel" name="lblInputLEDMeter" >
|
||||
<property name="text" >
|
||||
<string>Input</string>
|
||||
</property>
|
||||
|
@ -342,7 +342,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="CMultiColorLEDBar" native="1" name="MultiColorLEDBarInputLevelL" >
|
||||
<widget class="CMultiColorLEDBar" native="1" name="lbrInputLevelL" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -358,7 +358,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="CMultiColorLEDBar" native="1" name="MultiColorLEDBarInputLevelR" >
|
||||
<widget class="CMultiColorLEDBar" native="1" name="lbrInputLevelR" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -378,7 +378,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLevelMeterLeft" >
|
||||
<widget class="QLabel" name="lblLevelMeterLeft" >
|
||||
<property name="text" >
|
||||
<string>L</string>
|
||||
</property>
|
||||
|
@ -388,7 +388,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLevelMeterRight" >
|
||||
<widget class="QLabel" name="lblLevelMeterRight" >
|
||||
<property name="text" >
|
||||
<string>R</string>
|
||||
</property>
|
||||
|
@ -427,7 +427,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelServerTag" >
|
||||
<widget class="QLabel" name="lblServerTag" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -443,7 +443,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="LineEditFaderTag" >
|
||||
<widget class="QLineEdit" name="edtFaderTag" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -455,7 +455,7 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QPushButton" name="PushButtonConnect" >
|
||||
<widget class="QPushButton" name="butConnect" >
|
||||
<property name="text" >
|
||||
<string>C&onnect</string>
|
||||
</property>
|
||||
|
@ -499,7 +499,7 @@
|
|||
<number>3</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextAudInFader" >
|
||||
<widget class="QLabel" name="lblAudioPan" >
|
||||
<property name="text" >
|
||||
<string>Pan</string>
|
||||
</property>
|
||||
|
@ -509,7 +509,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelAudFader" >
|
||||
<widget class="QLabel" name="lblAudioPanValue" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>50</width>
|
||||
|
@ -561,7 +561,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSlider" name="SliderAudInFader" >
|
||||
<widget class="QSlider" name="sldAudioPan" >
|
||||
<property name="styleSheet" >
|
||||
<string/>
|
||||
</property>
|
||||
|
@ -616,7 +616,7 @@
|
|||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelAudReverb" >
|
||||
<widget class="QLabel" name="lblAudioReverb" >
|
||||
<property name="text" >
|
||||
<string>Reverb</string>
|
||||
</property>
|
||||
|
@ -659,7 +659,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSlider" name="SliderAudReverb" >
|
||||
<widget class="QSlider" name="sldAudioReverb" >
|
||||
<property name="pageStep" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -697,14 +697,14 @@
|
|||
<number>3</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="RadioButtonRevSelL" >
|
||||
<widget class="QRadioButton" name="rbtReverbSelL" >
|
||||
<property name="text" >
|
||||
<string>Left</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="RadioButtonRevSelR" >
|
||||
<widget class="QRadioButton" name="rbtReverbSelR" >
|
||||
<property name="text" >
|
||||
<string>Right</string>
|
||||
</property>
|
||||
|
@ -750,12 +750,12 @@
|
|||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>PushButtonConnect</tabstop>
|
||||
<tabstop>LineEditFaderTag</tabstop>
|
||||
<tabstop>SliderAudInFader</tabstop>
|
||||
<tabstop>SliderAudReverb</tabstop>
|
||||
<tabstop>RadioButtonRevSelL</tabstop>
|
||||
<tabstop>RadioButtonRevSelR</tabstop>
|
||||
<tabstop>butConnect</tabstop>
|
||||
<tabstop>edtFaderTag</tabstop>
|
||||
<tabstop>sldAudioPan</tabstop>
|
||||
<tabstop>sldAudioReverb</tabstop>
|
||||
<tabstop>rbtReverbSelL</tabstop>
|
||||
<tabstop>rbtReverbSelR</tabstop>
|
||||
</tabstops>
|
||||
<resources>
|
||||
<include location="resources.qrc" />
|
||||
|
|
|
@ -40,15 +40,15 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
|||
|
||||
// Add help text to controls -----------------------------------------------
|
||||
// client list
|
||||
ListViewClients->setWhatsThis ( tr ( "<b>Client List:</b> The client list "
|
||||
lvwClients->setWhatsThis ( tr ( "<b>Client List:</b> The client list "
|
||||
"shows all clients which are currently connected to this server. Some "
|
||||
"informations about the clients like the IP address, name, buffer "
|
||||
"state are given for each connected client." ) );
|
||||
|
||||
ListViewClients->setAccessibleName ( tr ( "Connected clients list view" ) );
|
||||
lvwClients->setAccessibleName ( tr ( "Connected clients list view" ) );
|
||||
|
||||
// register server flag
|
||||
cbRegisterServer->setWhatsThis ( tr ( "<b>Register Server Status:</b> If "
|
||||
chbRegisterServer->setWhatsThis ( tr ( "<b>Register Server Status:</b> If "
|
||||
"the register server check box is checked, this server registers "
|
||||
"itself at the central server so that all " ) + APP_NAME +
|
||||
tr ( " users can see the server in the connect dialog server list and "
|
||||
|
@ -62,14 +62,14 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
|||
"at which this server is registered. If the Default check box is "
|
||||
"checked, the default central server address is shown read-only." );
|
||||
|
||||
LabelCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
cbDefaultCentralServer->setWhatsThis ( strCentrServAddr );
|
||||
LineEditCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
lblCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
chbDefaultCentralServer->setWhatsThis ( strCentrServAddr );
|
||||
edtCentralServerAddress->setWhatsThis ( strCentrServAddr );
|
||||
|
||||
cbDefaultCentralServer->setAccessibleName (
|
||||
chbDefaultCentralServer->setAccessibleName (
|
||||
tr ( "Default central server check box" ) );
|
||||
|
||||
LineEditCentralServerAddress->setAccessibleName (
|
||||
edtCentralServerAddress->setAccessibleName (
|
||||
tr ( "Central server address line edit" ) );
|
||||
|
||||
// server name
|
||||
|
@ -77,20 +77,20 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
|||
"your server in the connect dialog server list at the clients. If no "
|
||||
"name is given, the IP address is shown instead." );
|
||||
|
||||
LabelServerName->setWhatsThis ( strServName );
|
||||
LineEditServerName->setWhatsThis ( strServName );
|
||||
lblServerName->setWhatsThis ( strServName );
|
||||
edtServerName->setWhatsThis ( strServName );
|
||||
|
||||
LineEditServerName->setAccessibleName ( tr ( "Server name line edit" ) );
|
||||
edtServerName->setAccessibleName ( tr ( "Server name line edit" ) );
|
||||
|
||||
// location city
|
||||
QString strLocCity = tr ( "<b>Location City:</b> The city in which this "
|
||||
"server is located can be set here. If a city name is entered, it "
|
||||
"will be shown in the connect dialog server list at the clients." );
|
||||
|
||||
LabelLocationCity->setWhatsThis ( strLocCity );
|
||||
LineEditLocationCity->setWhatsThis ( strLocCity );
|
||||
lblLocationCity->setWhatsThis ( strLocCity );
|
||||
edtLocationCity->setWhatsThis ( strLocCity );
|
||||
|
||||
LineEditLocationCity->setAccessibleName ( tr (
|
||||
edtLocationCity->setAccessibleName ( tr (
|
||||
"City where the server is located line edit" ) );
|
||||
|
||||
// location country
|
||||
|
@ -99,10 +99,10 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
|||
"entered, it will be shown in the connect dialog server list at the "
|
||||
"clients." );
|
||||
|
||||
LabelLocationCountry->setWhatsThis ( strLocCountry );
|
||||
ComboBoxLocationCountry->setWhatsThis ( strLocCountry );
|
||||
lblLocationCountry->setWhatsThis ( strLocCountry );
|
||||
cbxLocationCountry->setWhatsThis ( strLocCountry );
|
||||
|
||||
ComboBoxLocationCountry->setAccessibleName ( tr (
|
||||
cbxLocationCountry->setAccessibleName ( tr (
|
||||
"Country where the server is located combo box" ) );
|
||||
|
||||
|
||||
|
@ -141,19 +141,19 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
|||
}
|
||||
|
||||
// set text for version and application name
|
||||
TextLabelNameVersion->setText ( QString ( APP_NAME ) +
|
||||
lblNameVersion->setText ( QString ( APP_NAME ) +
|
||||
tr ( " server " ) + QString ( VERSION ) );
|
||||
|
||||
// set up list view for connected clients
|
||||
ListViewClients->setColumnWidth ( 0, 170 );
|
||||
ListViewClients->setColumnWidth ( 1, 130 );
|
||||
ListViewClients->setColumnWidth ( 2, 60 );
|
||||
ListViewClients->clear();
|
||||
lvwClients->setColumnWidth ( 0, 170 );
|
||||
lvwClients->setColumnWidth ( 1, 130 );
|
||||
lvwClients->setColumnWidth ( 2, 60 );
|
||||
lvwClients->clear();
|
||||
|
||||
|
||||
// TEST workaround for resize problem of window after iconize in task bar
|
||||
ListViewClients->setMinimumWidth ( 170 + 130 + 60 + 205 );
|
||||
ListViewClients->setMinimumHeight ( 140 );
|
||||
lvwClients->setMinimumWidth ( 170 + 130 + 60 + 205 );
|
||||
lvwClients->setMinimumHeight ( 140 );
|
||||
|
||||
|
||||
// insert items in reverse order because in Windows all of them are
|
||||
|
@ -161,29 +161,29 @@ ListViewClients->setMinimumHeight ( 140 );
|
|||
vecpListViewItems.Init ( USED_NUM_CHANNELS );
|
||||
for ( int i = USED_NUM_CHANNELS - 1; i >= 0; i-- )
|
||||
{
|
||||
vecpListViewItems[i] = new CServerListViewItem ( ListViewClients );
|
||||
vecpListViewItems[i] = new CServerListViewItem ( lvwClients );
|
||||
vecpListViewItems[i]->setHidden ( true );
|
||||
}
|
||||
|
||||
// update default central server address check box
|
||||
if ( pServer->GetUseDefaultCentralServerAddress() )
|
||||
{
|
||||
cbDefaultCentralServer->setCheckState ( Qt::Checked );
|
||||
chbDefaultCentralServer->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbDefaultCentralServer->setCheckState ( Qt::Unchecked );
|
||||
chbDefaultCentralServer->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
|
||||
// update server name line edit
|
||||
LineEditServerName->setText ( pServer->GetServerName() );
|
||||
edtServerName->setText ( pServer->GetServerName() );
|
||||
|
||||
// update server city line edit
|
||||
LineEditLocationCity->setText ( pServer->GetServerCity() );
|
||||
edtLocationCity->setText ( pServer->GetServerCity() );
|
||||
|
||||
// load country combo box with all available countries
|
||||
ComboBoxLocationCountry->setInsertPolicy ( QComboBox::NoInsert );
|
||||
ComboBoxLocationCountry->clear();
|
||||
cbxLocationCountry->setInsertPolicy ( QComboBox::NoInsert );
|
||||
cbxLocationCountry->clear();
|
||||
|
||||
for ( int iCurCntry = static_cast<int> ( QLocale::AnyCountry );
|
||||
iCurCntry < static_cast<int> ( QLocale::LastCountry ); iCurCntry++ )
|
||||
|
@ -193,42 +193,42 @@ ListViewClients->setMinimumHeight ( 140 );
|
|||
{
|
||||
// store the country enum index together with the string (this is
|
||||
// important since we sort the combo box items later on)
|
||||
ComboBoxLocationCountry->addItem ( QLocale::countryToString (
|
||||
cbxLocationCountry->addItem ( QLocale::countryToString (
|
||||
static_cast<QLocale::Country> ( iCurCntry ) ), iCurCntry );
|
||||
}
|
||||
}
|
||||
|
||||
// sort country combo box items in alphabetical order
|
||||
ComboBoxLocationCountry->model()->sort ( 0, Qt::AscendingOrder );
|
||||
cbxLocationCountry->model()->sort ( 0, Qt::AscendingOrder );
|
||||
|
||||
// select current country
|
||||
ComboBoxLocationCountry->setCurrentIndex (
|
||||
ComboBoxLocationCountry->findData (
|
||||
cbxLocationCountry->setCurrentIndex (
|
||||
cbxLocationCountry->findData (
|
||||
static_cast<int> ( pServer->GetServerCountry() ) ) );
|
||||
|
||||
// update register server check box
|
||||
if ( pServer->GetServerListEnabled() )
|
||||
{
|
||||
cbRegisterServer->setCheckState ( Qt::Checked );
|
||||
chbRegisterServer->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbRegisterServer->setCheckState ( Qt::Unchecked );
|
||||
chbRegisterServer->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
|
||||
// update start minimized check box (only available for Windows)
|
||||
#ifndef _WIN32
|
||||
cbStartOnOSStart->setVisible ( false );
|
||||
chbStartOnOSStart->setVisible ( false );
|
||||
#else
|
||||
const bool bCurAutoStartMinState = pServer->GetAutoRunMinimized();
|
||||
|
||||
if ( bCurAutoStartMinState )
|
||||
{
|
||||
cbStartOnOSStart->setCheckState ( Qt::Checked );
|
||||
chbStartOnOSStart->setCheckState ( Qt::Checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
cbStartOnOSStart->setCheckState ( Qt::Unchecked );
|
||||
chbStartOnOSStart->setCheckState ( Qt::Unchecked );
|
||||
}
|
||||
|
||||
// modify registry according to setting (this is just required in case a
|
||||
|
@ -259,29 +259,28 @@ ListViewClients->setMinimumHeight ( 140 );
|
|||
|
||||
// Connections -------------------------------------------------------------
|
||||
// check boxes
|
||||
QObject::connect ( cbRegisterServer, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbRegisterServer, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnRegisterServerStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbDefaultCentralServer, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbDefaultCentralServer, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnDefaultCentralServerStateChanged ( int ) ) );
|
||||
|
||||
QObject::connect ( cbStartOnOSStart, SIGNAL ( stateChanged ( int ) ),
|
||||
QObject::connect ( chbStartOnOSStart, SIGNAL ( stateChanged ( int ) ),
|
||||
this, SLOT ( OnStartOnOSStartStateChanged ( int ) ) );
|
||||
|
||||
// line edits
|
||||
QObject::connect ( LineEditCentralServerAddress,
|
||||
SIGNAL ( editingFinished() ),
|
||||
this, SLOT ( OnLineEditCentralServerAddressEditingFinished() ) );
|
||||
QObject::connect ( edtCentralServerAddress, SIGNAL ( editingFinished() ),
|
||||
this, SLOT ( OnCentralServerAddressEditingFinished() ) );
|
||||
|
||||
QObject::connect ( LineEditServerName, SIGNAL ( textChanged ( const QString& ) ),
|
||||
this, SLOT ( OnLineEditServerNameTextChanged ( const QString& ) ) );
|
||||
QObject::connect ( edtServerName, SIGNAL ( textChanged ( const QString& ) ),
|
||||
this, SLOT ( OnServerNameTextChanged ( const QString& ) ) );
|
||||
|
||||
QObject::connect ( LineEditLocationCity, SIGNAL ( textChanged ( const QString& ) ),
|
||||
this, SLOT ( OnLineEditLocationCityTextChanged ( const QString& ) ) );
|
||||
QObject::connect ( edtLocationCity, SIGNAL ( textChanged ( const QString& ) ),
|
||||
this, SLOT ( OnLocationCityTextChanged ( const QString& ) ) );
|
||||
|
||||
// combo boxes
|
||||
QObject::connect ( ComboBoxLocationCountry, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnComboBoxLocationCountryActivated ( int ) ) );
|
||||
QObject::connect ( cbxLocationCountry, SIGNAL ( activated ( int ) ),
|
||||
this, SLOT ( OnLocationCountryActivated ( int ) ) );
|
||||
|
||||
// timers
|
||||
QObject::connect ( &Timer, SIGNAL ( timeout() ), this, SLOT ( OnTimer() ) );
|
||||
|
@ -303,16 +302,16 @@ ListViewClients->setMinimumHeight ( 140 );
|
|||
Timer.start ( GUI_CONTRL_UPDATE_TIME );
|
||||
}
|
||||
|
||||
void CLlconServerDlg::closeEvent ( QCloseEvent* Event )
|
||||
{
|
||||
// if server was registered at the central server, unregister on shutdown
|
||||
void CLlconServerDlg::closeEvent ( QCloseEvent* Event )
|
||||
{
|
||||
// if server was registered at the central server, unregister on shutdown
|
||||
if ( pServer->GetServerListEnabled() )
|
||||
{
|
||||
pServer->UnregisterSlaveServer();
|
||||
}
|
||||
|
||||
// default implementation of this event handler routine
|
||||
Event->accept();
|
||||
}
|
||||
|
||||
// default implementation of this event handler routine
|
||||
Event->accept();
|
||||
}
|
||||
|
||||
void CLlconServerDlg::OnStartOnOSStartStateChanged ( int value )
|
||||
|
@ -356,16 +355,16 @@ void CLlconServerDlg::OnRegisterServerStateChanged ( int value )
|
|||
UpdateGUIDependencies();
|
||||
}
|
||||
|
||||
void CLlconServerDlg::OnLineEditCentralServerAddressEditingFinished()
|
||||
void CLlconServerDlg::OnCentralServerAddressEditingFinished()
|
||||
{
|
||||
// apply new setting to the server and update it
|
||||
pServer->SetServerListCentralServerAddress (
|
||||
LineEditCentralServerAddress->text() );
|
||||
edtCentralServerAddress->text() );
|
||||
|
||||
pServer->UpdateServerList();
|
||||
}
|
||||
|
||||
void CLlconServerDlg::OnLineEditServerNameTextChanged ( const QString& strNewName )
|
||||
void CLlconServerDlg::OnServerNameTextChanged ( const QString& strNewName )
|
||||
{
|
||||
// check length
|
||||
if ( strNewName.length() <= MAX_LEN_SERVER_NAME )
|
||||
|
@ -377,11 +376,11 @@ void CLlconServerDlg::OnLineEditServerNameTextChanged ( const QString& strNewNam
|
|||
else
|
||||
{
|
||||
// text is too long, update control with shortend text
|
||||
LineEditServerName->setText ( strNewName.left ( MAX_LEN_SERVER_NAME ) );
|
||||
edtServerName->setText ( strNewName.left ( MAX_LEN_SERVER_NAME ) );
|
||||
}
|
||||
}
|
||||
|
||||
void CLlconServerDlg::OnLineEditLocationCityTextChanged ( const QString& strNewCity )
|
||||
void CLlconServerDlg::OnLocationCityTextChanged ( const QString& strNewCity )
|
||||
{
|
||||
// check length
|
||||
if ( strNewCity.length() <= MAX_LEN_SERVER_CITY )
|
||||
|
@ -393,15 +392,15 @@ void CLlconServerDlg::OnLineEditLocationCityTextChanged ( const QString& strNewC
|
|||
else
|
||||
{
|
||||
// text is too long, update control with shortend text
|
||||
LineEditLocationCity->setText ( strNewCity.left ( MAX_LEN_SERVER_CITY ) );
|
||||
edtLocationCity->setText ( strNewCity.left ( MAX_LEN_SERVER_CITY ) );
|
||||
}
|
||||
}
|
||||
|
||||
void CLlconServerDlg::OnComboBoxLocationCountryActivated ( int iCntryListItem )
|
||||
void CLlconServerDlg::OnLocationCountryActivated ( int iCntryListItem )
|
||||
{
|
||||
// apply new setting to the server and update it
|
||||
pServer->SetServerCountry ( static_cast<QLocale::Country> (
|
||||
ComboBoxLocationCountry->itemData ( iCntryListItem ).toInt() ) );
|
||||
cbxLocationCountry->itemData ( iCntryListItem ).toInt() ) );
|
||||
|
||||
pServer->UpdateServerList();
|
||||
}
|
||||
|
@ -472,29 +471,29 @@ void CLlconServerDlg::UpdateGUIDependencies()
|
|||
|
||||
// if register server is not enabled, we disable all the configuration
|
||||
// controls for the server list
|
||||
cbDefaultCentralServer->setEnabled ( bCurSerListEnabled );
|
||||
GroupBoxServerInfo->setEnabled ( bCurSerListEnabled );
|
||||
chbDefaultCentralServer->setEnabled ( bCurSerListEnabled );
|
||||
grbServerInfo->setEnabled ( bCurSerListEnabled );
|
||||
|
||||
// If the default central server address is enabled, the line edit shows
|
||||
// the default server and is not editable. Make sure the line edit does not
|
||||
// fire signals when we update the text.
|
||||
LineEditCentralServerAddress->blockSignals ( true );
|
||||
edtCentralServerAddress->blockSignals ( true );
|
||||
{
|
||||
if ( bCurUseDefCentServAddr )
|
||||
{
|
||||
LineEditCentralServerAddress->setText ( DEFAULT_SERVER_ADDRESS );
|
||||
edtCentralServerAddress->setText ( DEFAULT_SERVER_ADDRESS );
|
||||
}
|
||||
else
|
||||
{
|
||||
LineEditCentralServerAddress->setText (
|
||||
edtCentralServerAddress->setText (
|
||||
pServer->GetServerListCentralServerAddress() );
|
||||
}
|
||||
}
|
||||
LineEditCentralServerAddress->blockSignals ( false );
|
||||
edtCentralServerAddress->blockSignals ( false );
|
||||
|
||||
// the line edit of the central server address is only enabled, if the
|
||||
// server list is enabled and not the default address is used
|
||||
LineEditCentralServerAddress->setEnabled (
|
||||
edtCentralServerAddress->setEnabled (
|
||||
!bCurUseDefCentServAddr && bCurSerListEnabled );
|
||||
}
|
||||
|
||||
|
|
|
@ -90,10 +90,10 @@ public slots:
|
|||
void OnRegisterServerStateChanged ( int value );
|
||||
void OnDefaultCentralServerStateChanged ( int value );
|
||||
void OnStartOnOSStartStateChanged ( int value );
|
||||
void OnLineEditCentralServerAddressEditingFinished();
|
||||
void OnLineEditServerNameTextChanged ( const QString& strNewName );
|
||||
void OnLineEditLocationCityTextChanged ( const QString& strNewCity );
|
||||
void OnComboBoxLocationCountryActivated ( int iCntryListItem );
|
||||
void OnCentralServerAddressEditingFinished();
|
||||
void OnServerNameTextChanged ( const QString& strNewName );
|
||||
void OnLocationCityTextChanged ( const QString& strNewCity );
|
||||
void OnLocationCountryActivated ( int iCntryListItem );
|
||||
void OnTimer();
|
||||
void OnServerStarted() { UpdateSystemTrayIcon ( true ); }
|
||||
void OnServerStopped() { UpdateSystemTrayIcon ( false ); }
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="ListViewClients" >
|
||||
<widget class="QTreeWidget" name="lvwClients" >
|
||||
<property name="rootIsDecorated" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
|
@ -52,14 +52,14 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbStartOnOSStart" >
|
||||
<widget class="QCheckBox" name="chbStartOnOSStart" >
|
||||
<property name="text" >
|
||||
<string>Start Minimized on Windows Start</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbRegisterServer" >
|
||||
<widget class="QCheckBox" name="chbRegisterServer" >
|
||||
<property name="text" >
|
||||
<string>Register My Server in the Server List at the Central Server</string>
|
||||
</property>
|
||||
|
@ -68,17 +68,17 @@
|
|||
<item>
|
||||
<layout class="QHBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="LabelCentralServerAddress" >
|
||||
<widget class="QLabel" name="lblCentralServerAddress" >
|
||||
<property name="text" >
|
||||
<string>Central Server Address:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="LineEditCentralServerAddress" />
|
||||
<widget class="QLineEdit" name="edtCentralServerAddress" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbDefaultCentralServer" >
|
||||
<widget class="QCheckBox" name="chbDefaultCentralServer" >
|
||||
<property name="text" >
|
||||
<string>Default</string>
|
||||
</property>
|
||||
|
@ -87,7 +87,7 @@
|
|||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="GroupBoxServerInfo" >
|
||||
<widget class="QGroupBox" name="grbServerInfo" >
|
||||
<property name="title" >
|
||||
<string>My Server Info</string>
|
||||
</property>
|
||||
|
@ -95,21 +95,21 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLabel" name="LabelServerName" >
|
||||
<widget class="QLabel" name="lblServerName" >
|
||||
<property name="text" >
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="LabelLocationCity" >
|
||||
<widget class="QLabel" name="lblLocationCity" >
|
||||
<property name="text" >
|
||||
<string>Location: City</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="LabelLocationCountry" >
|
||||
<widget class="QLabel" name="lblLocationCountry" >
|
||||
<property name="text" >
|
||||
<string>Location: Country</string>
|
||||
</property>
|
||||
|
@ -120,13 +120,13 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QLineEdit" name="LineEditServerName" />
|
||||
<widget class="QLineEdit" name="edtServerName" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="LineEditLocationCity" />
|
||||
<widget class="QLineEdit" name="edtLocationCity" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="ComboBoxLocationCountry" />
|
||||
<widget class="QComboBox" name="cbxLocationCountry" />
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
@ -151,7 +151,7 @@
|
|||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelNameVersion" >
|
||||
<widget class="QLabel" name="lblNameVersion" >
|
||||
<property name="text" >
|
||||
<string>TextLabelNameVersion</string>
|
||||
</property>
|
||||
|
|
|
@ -308,8 +308,8 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : QDialog ( parent )
|
|||
setupUi ( this );
|
||||
|
||||
// set the text for the about dialog html text control
|
||||
TextViewCredits->setOpenExternalLinks ( true );
|
||||
TextViewCredits->setText (
|
||||
txvCredits->setOpenExternalLinks ( true );
|
||||
txvCredits->setText (
|
||||
"<p>" // general description of llcon software
|
||||
"<big><b>llcon</b> " + tr("The llcon software enables musicians to "
|
||||
"perform real-time jam sessions over the internet. There is a llcon "
|
||||
|
@ -350,7 +350,7 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : QDialog ( parent )
|
|||
"</center><br>");
|
||||
|
||||
// set version number in about dialog
|
||||
TextLabelVersion->setText ( GetVersionAndNameStr() );
|
||||
lblVersion->setText ( GetVersionAndNameStr() );
|
||||
}
|
||||
|
||||
QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
|
||||
|
|
Loading…
Reference in a new issue