removed the "open chat on new message" mechanism since nobody actually uses this, now simply the window automatically opens on a new message if it is not already open, otherwise do nothing
This commit is contained in:
parent
3ba632be9e
commit
5b2d256bc2
9 changed files with 205 additions and 374 deletions
|
@ -57,7 +57,6 @@ CClient::CClient ( const quint16 iPortNumber ) :
|
||||||
bFraSiFactPrefSupported ( false ),
|
bFraSiFactPrefSupported ( false ),
|
||||||
bFraSiFactDefSupported ( false ),
|
bFraSiFactDefSupported ( false ),
|
||||||
bFraSiFactSafeSupported ( false ),
|
bFraSiFactSafeSupported ( false ),
|
||||||
bOpenChatOnNewMessage ( true ),
|
|
||||||
eGUIDesign ( GD_ORIGINAL ),
|
eGUIDesign ( GD_ORIGINAL ),
|
||||||
bJitterBufferOK ( true ),
|
bJitterBufferOK ( true ),
|
||||||
strCentralServerAddress ( "" ),
|
strCentralServerAddress ( "" ),
|
||||||
|
|
|
@ -120,9 +120,6 @@ public:
|
||||||
|
|
||||||
bool IsConnected() { return Channel.IsConnected(); }
|
bool IsConnected() { return Channel.IsConnected(); }
|
||||||
|
|
||||||
bool GetOpenChatOnNewMessage() const { return bOpenChatOnNewMessage; }
|
|
||||||
void SetOpenChatOnNewMessage ( const bool bNV ) { bOpenChatOnNewMessage = bNV; }
|
|
||||||
|
|
||||||
EGUIDesign GetGUIDesign() const { return eGUIDesign; }
|
EGUIDesign GetGUIDesign() const { return eGUIDesign; }
|
||||||
void SetGUIDesign ( const EGUIDesign eNGD ) { eGUIDesign = eNGD; }
|
void SetGUIDesign ( const EGUIDesign eNGD ) { eGUIDesign = eNGD; }
|
||||||
|
|
||||||
|
@ -360,7 +357,6 @@ void SetAudoCompressiontype ( const EAudComprType eNAudCompressionType );
|
||||||
int iMonoBlockSizeSam;
|
int iMonoBlockSizeSam;
|
||||||
int iStereoBlockSizeSam;
|
int iStereoBlockSizeSam;
|
||||||
|
|
||||||
bool bOpenChatOnNewMessage;
|
|
||||||
EGUIDesign eGUIDesign;
|
EGUIDesign eGUIDesign;
|
||||||
|
|
||||||
bool bJitterBufferOK;
|
bool bJitterBufferOK;
|
||||||
|
|
|
@ -37,7 +37,6 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
QDialog ( parent, f ),
|
QDialog ( parent, f ),
|
||||||
pClient ( pNCliP ),
|
pClient ( pNCliP ),
|
||||||
pSettings ( pNSetP ),
|
pSettings ( pNSetP ),
|
||||||
bUnreadChatMessage ( false ),
|
|
||||||
ClientSettingsDlg ( pNCliP, parent, Qt::Window ),
|
ClientSettingsDlg ( pNCliP, parent, Qt::Window ),
|
||||||
ChatDlg ( parent, Qt::Window ),
|
ChatDlg ( parent, Qt::Window ),
|
||||||
ConnectDlg ( bNewShowComplRegConnList, parent, Qt::Dialog ),
|
ConnectDlg ( bNewShowComplRegConnList, parent, Qt::Dialog ),
|
||||||
|
@ -217,17 +216,6 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
|
|
||||||
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." );
|
|
||||||
|
|
||||||
lblChat->setWhatsThis ( strLEDChat );
|
|
||||||
ledChat->setWhatsThis ( strLEDChat );
|
|
||||||
|
|
||||||
ledBuffers->setAccessibleName ( tr ( "Chat status LED indicator" ) );
|
|
||||||
|
|
||||||
|
|
||||||
// init GUI design
|
// init GUI design
|
||||||
SetGUIDesign ( pClient->GetGUIDesign() );
|
SetGUIDesign ( pClient->GetGUIDesign() );
|
||||||
|
|
||||||
|
@ -258,7 +246,6 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
ledConnection->Reset();
|
ledConnection->Reset();
|
||||||
ledBuffers->Reset();
|
ledBuffers->Reset();
|
||||||
ledDelay->Reset();
|
ledDelay->Reset();
|
||||||
ledChat->Reset();
|
|
||||||
|
|
||||||
|
|
||||||
// init slider controls ---
|
// init slider controls ---
|
||||||
|
@ -306,7 +293,6 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
ledConnection->setEnabled ( false );
|
ledConnection->setEnabled ( false );
|
||||||
ledBuffers->setEnabled ( false );
|
ledBuffers->setEnabled ( false );
|
||||||
ledDelay->setEnabled ( false );
|
ledDelay->setEnabled ( false );
|
||||||
ledChat->setEnabled ( false );
|
|
||||||
butConnect->setFocus();
|
butConnect->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -733,23 +719,11 @@ void CClientDlg::OnInstPicturesMenuTriggered ( QAction* SelAction )
|
||||||
|
|
||||||
void CClientDlg::OnChatTextReceived ( QString strChatText )
|
void CClientDlg::OnChatTextReceived ( QString strChatText )
|
||||||
{
|
{
|
||||||
// init flag (will maybe overwritten later in this function)
|
|
||||||
bUnreadChatMessage = false;
|
|
||||||
|
|
||||||
ChatDlg.AddChatText ( strChatText );
|
ChatDlg.AddChatText ( strChatText );
|
||||||
|
|
||||||
// if requested, open window
|
// open window (note that we do not want to force the dialog to be upfront
|
||||||
if ( pClient->GetOpenChatOnNewMessage() )
|
// always when a new message arrives since this is annoying)
|
||||||
{
|
ShowChatWindow ( false );
|
||||||
ShowChatWindow();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( !ChatDlg.isVisible() )
|
|
||||||
{
|
|
||||||
bUnreadChatMessage = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
UpdateDisplay();
|
UpdateDisplay();
|
||||||
}
|
}
|
||||||
|
@ -817,17 +791,17 @@ void CClientDlg::ShowGeneralSettings()
|
||||||
ClientSettingsDlg.activateWindow();
|
ClientSettingsDlg.activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CClientDlg::ShowChatWindow()
|
void CClientDlg::ShowChatWindow ( const bool bForceRaise )
|
||||||
|
{
|
||||||
|
// open chat dialog if it is not visible
|
||||||
|
if ( bForceRaise || !ChatDlg.isVisible() )
|
||||||
{
|
{
|
||||||
// open chat dialog
|
|
||||||
ChatDlg.show();
|
ChatDlg.show();
|
||||||
|
|
||||||
// make sure dialog is upfront and has focus
|
// make sure dialog is upfront and has focus
|
||||||
ChatDlg.raise();
|
ChatDlg.raise();
|
||||||
ChatDlg.activateWindow();
|
ChatDlg.activateWindow();
|
||||||
|
}
|
||||||
// chat dialog is opened, reset unread message flag
|
|
||||||
bUnreadChatMessage = false;
|
|
||||||
|
|
||||||
UpdateDisplay();
|
UpdateDisplay();
|
||||||
}
|
}
|
||||||
|
@ -1086,7 +1060,6 @@ OnTimerStatus();
|
||||||
ledConnection->Reset();
|
ledConnection->Reset();
|
||||||
ledBuffers->Reset();
|
ledBuffers->Reset();
|
||||||
ledDelay->Reset();
|
ledDelay->Reset();
|
||||||
ledChat->Reset();
|
|
||||||
ClientSettingsDlg.ResetStatusAndPingLED();
|
ClientSettingsDlg.ResetStatusAndPingLED();
|
||||||
|
|
||||||
// clear mixer board (remove all faders)
|
// clear mixer board (remove all faders)
|
||||||
|
@ -1100,16 +1073,6 @@ void CClientDlg::UpdateDisplay()
|
||||||
{
|
{
|
||||||
if ( pClient->IsConnected() )
|
if ( pClient->IsConnected() )
|
||||||
{
|
{
|
||||||
// chat LED
|
|
||||||
if ( bUnreadChatMessage )
|
|
||||||
{
|
|
||||||
ledChat->SetLight ( CMultiColorLED::RL_GREEN );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ledChat->Reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
// connection LED
|
// connection LED
|
||||||
ledConnection->SetLight ( CMultiColorLED::RL_GREEN );
|
ledConnection->SetLight ( CMultiColorLED::RL_GREEN );
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ protected:
|
||||||
void SetMyWindowTitle ( const int iNumClients );
|
void SetMyWindowTitle ( const int iNumClients );
|
||||||
void ShowConnectionSetupDialog();
|
void ShowConnectionSetupDialog();
|
||||||
void ShowGeneralSettings();
|
void ShowGeneralSettings();
|
||||||
void ShowChatWindow();
|
void ShowChatWindow ( const bool bForceRaise = true );
|
||||||
void ShowAnalyzerConsole();
|
void ShowAnalyzerConsole();
|
||||||
void UpdateAudioFaderSlider();
|
void UpdateAudioFaderSlider();
|
||||||
void UpdateRevSelection();
|
void UpdateRevSelection();
|
||||||
|
@ -95,7 +95,6 @@ protected:
|
||||||
CSettings* pSettings;
|
CSettings* pSettings;
|
||||||
|
|
||||||
bool bConnected;
|
bool bConnected;
|
||||||
bool bUnreadChatMessage;
|
|
||||||
QTimer TimerSigMet;
|
QTimer TimerSigMet;
|
||||||
QTimer TimerBuffersLED;
|
QTimer TimerBuffersLED;
|
||||||
QTimer TimerStatus;
|
QTimer TimerStatus;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>CClientDlgBase</class>
|
<class>CClientDlgBase</class>
|
||||||
<widget class="QDialog" name="CClientDlgBase">
|
<widget class="QDialog" name="CClientDlgBase">
|
||||||
|
@ -10,10 +11,11 @@
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string></string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset resource="resources.qrc" >:/png/main/res/mainicon.png</iconset>
|
<iconset resource="resources.qrc">
|
||||||
|
<normaloff>:/png/main/res/mainicon.png</normaloff>:/png/main/res/mainicon.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string/>
|
<string/>
|
||||||
|
@ -63,7 +65,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="pxlLogo">
|
<widget class="QLabel" name="pxlLogo">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -87,7 +89,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -102,7 +104,7 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>10</width>
|
<width>10</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
|
@ -126,9 +128,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="CMultiColorLED" native="1" name="ledConnection" >
|
<widget class="CMultiColorLED" name="ledConnection" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -154,7 +156,7 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>10</width>
|
<width>10</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
|
@ -178,9 +180,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="CMultiColorLED" native="1" name="ledDelay" >
|
<widget class="CMultiColorLED" name="ledDelay" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -206,7 +208,7 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>10</width>
|
<width>10</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
|
@ -230,9 +232,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="CMultiColorLED" native="1" name="ledBuffers" >
|
<widget class="CMultiColorLED" name="ledBuffers" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -258,59 +260,7 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
|
||||||
<width>10</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" >
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lblChat" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Chat</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment" >
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap" >
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="CMultiColorLED" native="1" name="ledChat" >
|
|
||||||
<property name="sizePolicy" >
|
|
||||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize" >
|
|
||||||
<size>
|
|
||||||
<width>14</width>
|
|
||||||
<height>14</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize" >
|
|
||||||
<size>
|
|
||||||
<width>14</width>
|
|
||||||
<height>14</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer>
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" >
|
|
||||||
<size>
|
<size>
|
||||||
<width>10</width>
|
<width>10</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
|
@ -342,9 +292,9 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="CMultiColorLEDBar" native="1" name="lbrInputLevelL" >
|
<widget class="CMultiColorLEDBar" name="lbrInputLevelL" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -358,9 +308,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="CMultiColorLEDBar" native="1" name="lbrInputLevelR" >
|
<widget class="CMultiColorLEDBar" name="lbrInputLevelR" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -409,7 +359,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -455,7 +405,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="edtFaderTag">
|
<widget class="QLineEdit" name="edtFaderTag">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Fixed" hsizetype="Ignored" >
|
<sizepolicy hsizetype="Ignored" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
@ -471,13 +421,14 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="butInstPicture">
|
<widget class="QPushButton" name="butInstPicture">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc" >:/png/instr/res/instrnone.png</iconset>
|
<iconset resource="resources.qrc">
|
||||||
|
<normaloff>:/png/instr/res/instrnone.png</normaloff>:/png/instr/res/instrnone.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -503,7 +454,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>25</height>
|
<height>25</height>
|
||||||
|
@ -563,16 +514,7 @@
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin" >
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
@ -583,7 +525,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -615,7 +557,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -634,16 +576,7 @@
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin" >
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
@ -661,16 +594,7 @@
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin" >
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
@ -681,7 +605,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -710,7 +634,7 @@
|
||||||
<property name="sizeType">
|
<property name="sizeType">
|
||||||
<enum>QSizePolicy::Minimum</enum>
|
<enum>QSizePolicy::Minimum</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -748,9 +672,9 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="CAudioMixerBoard" native="1" name="MainMixerBoard" >
|
<widget class="CAudioMixerBoard" name="MainMixerBoard" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
|
|
@ -174,18 +174,6 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
butDriverSetup->setAccessibleName ( tr ( "ASIO setup push button" ) );
|
butDriverSetup->setAccessibleName ( tr ( "ASIO setup push button" ) );
|
||||||
butDriverSetup->setToolTip ( strSndCrdBufDelayTT );
|
butDriverSetup->setToolTip ( strSndCrdBufDelayTT );
|
||||||
|
|
||||||
// open chat on new message
|
|
||||||
chbOpenChatOnNewMessage->setWhatsThis ( tr ( "<b>Open Chat on New "
|
|
||||||
"Message:</b> If enabled, the chat window will "
|
|
||||||
"open on any incoming chat text if it not already opened." ) );
|
|
||||||
|
|
||||||
chbOpenChatOnNewMessage->setAccessibleName ( tr ( "Open chat on new "
|
|
||||||
"message check box" ) );
|
|
||||||
|
|
||||||
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 );
|
|
||||||
|
|
||||||
// fancy skin
|
// fancy skin
|
||||||
chbGUIDesignFancy->setWhatsThis ( tr ( "<b>Fancy Skin:</b> If enabled, "
|
chbGUIDesignFancy->setWhatsThis ( tr ( "<b>Fancy Skin:</b> If enabled, "
|
||||||
"a fancy skin will be applied to the main window." ) );
|
"a fancy skin will be applied to the main window." ) );
|
||||||
|
@ -303,16 +291,6 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
// init sound card channel selection frame
|
// init sound card channel selection frame
|
||||||
UpdateSoundChannelSelectionFrame();
|
UpdateSoundChannelSelectionFrame();
|
||||||
|
|
||||||
// "OpenChatOnNewMessage" check box
|
|
||||||
if ( pClient->GetOpenChatOnNewMessage() )
|
|
||||||
{
|
|
||||||
chbOpenChatOnNewMessage->setCheckState ( Qt::Checked );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
chbOpenChatOnNewMessage->setCheckState ( Qt::Unchecked );
|
|
||||||
}
|
|
||||||
|
|
||||||
// fancy GUI design check box
|
// fancy GUI design check box
|
||||||
if ( pClient->GetGUIDesign() == GD_STANDARD )
|
if ( pClient->GetGUIDesign() == GD_STANDARD )
|
||||||
{
|
{
|
||||||
|
@ -380,9 +358,6 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
this, SLOT ( OnNetBufServerValueChanged ( int ) ) );
|
this, SLOT ( OnNetBufServerValueChanged ( int ) ) );
|
||||||
|
|
||||||
// check boxes
|
// check boxes
|
||||||
QObject::connect ( chbOpenChatOnNewMessage, SIGNAL ( stateChanged ( int ) ),
|
|
||||||
this, SLOT ( OnOpenChatOnNewMessageStateChanged ( int ) ) );
|
|
||||||
|
|
||||||
QObject::connect ( chbGUIDesignFancy, SIGNAL ( stateChanged ( int ) ),
|
QObject::connect ( chbGUIDesignFancy, SIGNAL ( stateChanged ( int ) ),
|
||||||
this, SLOT ( OnGUIDesignFancyStateChanged ( int ) ) );
|
this, SLOT ( OnGUIDesignFancyStateChanged ( int ) ) );
|
||||||
|
|
||||||
|
@ -656,12 +631,6 @@ void CClientSettingsDlg::OnAutoJitBufStateChanged ( int value )
|
||||||
UpdateJitterBufferFrame();
|
UpdateJitterBufferFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CClientSettingsDlg::OnOpenChatOnNewMessageStateChanged ( int value )
|
|
||||||
{
|
|
||||||
pClient->SetOpenChatOnNewMessage ( value == Qt::Checked );
|
|
||||||
UpdateDisplay();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CClientSettingsDlg::OnGUIDesignFancyStateChanged ( int value )
|
void CClientSettingsDlg::OnGUIDesignFancyStateChanged ( int value )
|
||||||
{
|
{
|
||||||
if ( value == Qt::Unchecked )
|
if ( value == Qt::Unchecked )
|
||||||
|
|
|
@ -89,7 +89,6 @@ protected:
|
||||||
void OnNetBufServerValueChanged ( int value );
|
void OnNetBufServerValueChanged ( int value );
|
||||||
void OnSliderSndCrdBufferDelay ( int value );
|
void OnSliderSndCrdBufferDelay ( int value );
|
||||||
void OnAutoJitBufStateChanged ( int value );
|
void OnAutoJitBufStateChanged ( int value );
|
||||||
void OnOpenChatOnNewMessageStateChanged ( int value );
|
|
||||||
void OnGUIDesignFancyStateChanged ( int value );
|
void OnGUIDesignFancyStateChanged ( int value );
|
||||||
void OnDefaultCentralServerStateChanged ( int value );
|
void OnDefaultCentralServerStateChanged ( int value );
|
||||||
void OnCentralServerAddressEditingFinished();
|
void OnCentralServerAddressEditingFinished();
|
||||||
|
|
|
@ -467,20 +467,6 @@
|
||||||
<string>Misc</string>
|
<string>Misc</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="chbOpenChatOnNewMessage">
|
|
||||||
<property name="text">
|
|
||||||
<string>Open Chat on New Message</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="chbGUIDesignFancy">
|
|
||||||
<property name="text">
|
|
||||||
<string>Fancy Skin</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
@ -513,6 +499,13 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="chbGUIDesignFancy">
|
||||||
|
<property name="text">
|
||||||
|
<string>Fancy Skin</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
|
@ -692,7 +685,6 @@
|
||||||
<tabstop>chbAutoJitBuf</tabstop>
|
<tabstop>chbAutoJitBuf</tabstop>
|
||||||
<tabstop>sldNetBuf</tabstop>
|
<tabstop>sldNetBuf</tabstop>
|
||||||
<tabstop>sldNetBufServer</tabstop>
|
<tabstop>sldNetBufServer</tabstop>
|
||||||
<tabstop>chbOpenChatOnNewMessage</tabstop>
|
|
||||||
<tabstop>chbGUIDesignFancy</tabstop>
|
<tabstop>chbGUIDesignFancy</tabstop>
|
||||||
<tabstop>cbxAudioChannels</tabstop>
|
<tabstop>cbxAudioChannels</tabstop>
|
||||||
<tabstop>cbxAudioQuality</tabstop>
|
<tabstop>cbxAudioQuality</tabstop>
|
||||||
|
|
|
@ -210,12 +210,6 @@ void CSettings::Load()
|
||||||
pClient->SetServerSockBufNumFrames ( iValue );
|
pClient->SetServerSockBufNumFrames ( iValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
// flag whether the chat window shall be opened on a new chat message
|
|
||||||
if ( GetFlagIniSet ( IniXMLDocument, "client", "openchatonnewmessage", bValue ) )
|
|
||||||
{
|
|
||||||
pClient->SetOpenChatOnNewMessage ( bValue );
|
|
||||||
}
|
|
||||||
|
|
||||||
// GUI design
|
// GUI design
|
||||||
if ( GetNumericIniSet ( IniXMLDocument, "client", "guidesign",
|
if ( GetNumericIniSet ( IniXMLDocument, "client", "guidesign",
|
||||||
0, 1 /* GD_ORIGINAL */, iValue ) )
|
0, 1 /* GD_ORIGINAL */, iValue ) )
|
||||||
|
@ -425,10 +419,6 @@ void CSettings::Save()
|
||||||
SetNumericIniSet ( IniXMLDocument, "client", "jitbufserver",
|
SetNumericIniSet ( IniXMLDocument, "client", "jitbufserver",
|
||||||
pClient->GetServerSockBufNumFrames() );
|
pClient->GetServerSockBufNumFrames() );
|
||||||
|
|
||||||
// flag whether the chat window shall be opened on a new chat message
|
|
||||||
SetFlagIniSet ( IniXMLDocument, "client", "openchatonnewmessage",
|
|
||||||
pClient->GetOpenChatOnNewMessage() );
|
|
||||||
|
|
||||||
// GUI design
|
// GUI design
|
||||||
SetNumericIniSet ( IniXMLDocument, "client", "guidesign",
|
SetNumericIniSet ( IniXMLDocument, "client", "guidesign",
|
||||||
static_cast<int> ( pClient->GetGUIDesign() ) );
|
static_cast<int> ( pClient->GetGUIDesign() ) );
|
||||||
|
|
Loading…
Reference in a new issue