added download link in help menu, changed labels

This commit is contained in:
Volker Fischer 2011-02-10 21:17:39 +00:00
parent 46235af2da
commit 1b6a83d8ea
5 changed files with 13 additions and 2 deletions

View File

@ -567,7 +567,7 @@
<item>
<widget class="QLabel" name="TextUpstream" >
<property name="text" >
<string>Upstream Rate</string>
<string>Audio Stream Rate</string>
</property>
</widget>
</item>

View File

@ -52,6 +52,9 @@
// default server address
#define DEFAULT_SERVER_ADDRESS "llcon.dyndns.org"
// download URL
#define LLCON_DOWNLOAD_URL "http://sourceforge.net/projects/llcon/files"
// defined port number for client and server
#define LLCON_DEFAULT_PORT_NUMBER 22124

View File

@ -799,7 +799,7 @@ void CLlconClientDlg::UpdateDisplay()
if ( TimerErrorStatus.isActive() )
{
// right now we only have one error case: delay too high
strStatus = tr ( "<font color=""red""><b>Audio delay too long</b></font>" );
strStatus = tr ( "<font color=""red""><b>Audio delay too large</b></font>" );
}
else
{

View File

@ -407,6 +407,10 @@ CLlconHelpMenu::CLlconHelpMenu ( QWidget* parent ) : QMenu ( "&?", parent )
addAction ( tr ( "What's &This" ), this,
SLOT ( OnHelpWhatsThis() ), QKeySequence ( Qt::SHIFT + Qt::Key_F1 ) );
addSeparator();
addAction ( tr ( "&Download Link..." ), this,
SLOT ( OnHelpDownloadLink() ) );
addSeparator();
addAction ( tr ( "&About..." ), this, SLOT ( OnHelpAbout() ) );
}

View File

@ -32,6 +32,8 @@
#include <qlabel.h>
#include <qdatetime.h>
#include <qfile.h>
#include <qdesktopservices.h>
#include <qurl.h>
#include <vector>
#include "global.h"
using namespace std; // because of the library: "vector"
@ -356,6 +358,8 @@ protected:
public slots:
void OnHelpWhatsThis() { QWhatsThis::enterWhatsThisMode(); }
void OnHelpAbout() { AboutDlg.exec(); }
void OnHelpDownloadLink()
{ QDesktopServices::openUrl ( QUrl ( LLCON_DOWNLOAD_URL ) ); }
};