nicer output when no GUI mode is chosen

This commit is contained in:
Volker Fischer 2009-08-11 15:38:06 +00:00
parent 87ad3118ff
commit 28592baf88
2 changed files with 16 additions and 12 deletions

View file

@ -64,7 +64,7 @@ int main ( int argc, char** argv )
if ( GetFlagArgument ( argc, argv, i, "-s", "--server" ) ) if ( GetFlagArgument ( argc, argv, i, "-s", "--server" ) )
{ {
bIsClient = false; bIsClient = false;
cout << "server mode chosen" << std::endl; cout << "- server mode chosen" << std::endl;
continue; continue;
} }
@ -73,7 +73,7 @@ int main ( int argc, char** argv )
if ( GetFlagArgument ( argc, argv, i, "-n", "--nogui" ) ) if ( GetFlagArgument ( argc, argv, i, "-n", "--nogui" ) )
{ {
bUseGUI = false; bUseGUI = false;
cout << "no GUI mode chosen" << std::endl; cout << "- no GUI mode chosen" << std::endl;
continue; continue;
} }
@ -82,7 +82,7 @@ int main ( int argc, char** argv )
if ( GetFlagArgument ( argc, argv, i, "-d", "--disableleds" ) ) if ( GetFlagArgument ( argc, argv, i, "-d", "--disableleds" ) )
{ {
bDisalbeLEDs = true; bDisalbeLEDs = true;
cout << "disable LEDs in main window" << std::endl; cout << "- disable LEDs in main window" << std::endl;
continue; continue;
} }
@ -91,7 +91,7 @@ int main ( int argc, char** argv )
if ( GetStringArgument ( argc, argv, i, "-l", "--log", strArgument ) ) if ( GetStringArgument ( argc, argv, i, "-l", "--log", strArgument ) )
{ {
strLoggingFileName = strArgument; strLoggingFileName = strArgument;
cout << "logging file name: " << strLoggingFileName << std::endl; cout << "- logging file name: " << strLoggingFileName << std::endl;
continue; continue;
} }
@ -101,7 +101,7 @@ int main ( int argc, char** argv )
0, 65535, rDbleArgument ) ) 0, 65535, rDbleArgument ) )
{ {
iPortNumber = static_cast<quint16> ( rDbleArgument ); iPortNumber = static_cast<quint16> ( rDbleArgument );
cout << "selected port number: " << iPortNumber << std::endl; cout << "- selected port number: " << iPortNumber << std::endl;
continue; continue;
} }
@ -110,14 +110,14 @@ int main ( int argc, char** argv )
if ( GetStringArgument ( argc, argv, i, "-m", "--htmlstatus", strArgument ) ) if ( GetStringArgument ( argc, argv, i, "-m", "--htmlstatus", strArgument ) )
{ {
strHTMLStatusFileName = strArgument; strHTMLStatusFileName = strArgument;
cout << "HTML status file name: " << strHTMLStatusFileName << std::endl; cout << "- HTML status file name: " << strHTMLStatusFileName << std::endl;
continue; continue;
} }
if ( GetStringArgument ( argc, argv, i, "-a", "--servername", strArgument ) ) if ( GetStringArgument ( argc, argv, i, "-a", "--servername", strArgument ) )
{ {
strServerName = strArgument; strServerName = strArgument;
cout << "server name for HTML status file: " << strServerName << std::endl; cout << "- server name for HTML status file: " << strServerName << std::endl;
continue; continue;
} }
@ -126,7 +126,7 @@ int main ( int argc, char** argv )
if ( GetStringArgument ( argc, argv, i, "-y", "--history", strArgument ) ) if ( GetStringArgument ( argc, argv, i, "-y", "--history", strArgument ) )
{ {
strHistoryFileName = strArgument; strHistoryFileName = strArgument;
cout << "history file name: " << strHistoryFileName << std::endl; cout << "- history file name: " << strHistoryFileName << std::endl;
continue; continue;
} }
@ -135,7 +135,7 @@ int main ( int argc, char** argv )
if ( GetStringArgument ( argc, argv, i, "-i", "--inifile", strArgument ) ) if ( GetStringArgument ( argc, argv, i, "-i", "--inifile", strArgument ) )
{ {
strIniFileName = strArgument; strIniFileName = strArgument;
cout << "initialization file name: " << strIniFileName << std::endl; cout << "- initialization file name: " << strIniFileName << std::endl;
continue; continue;
} }
@ -144,7 +144,7 @@ int main ( int argc, char** argv )
if ( GetFlagArgument ( argc, argv, i, "-c", "--connect" ) ) if ( GetFlagArgument ( argc, argv, i, "-c", "--connect" ) )
{ {
bConnectOnStartup = true; bConnectOnStartup = true;
cout << "connect on startup enabled" << std::endl; cout << "- connect on startup enabled" << std::endl;
continue; continue;
} }

View file

@ -355,6 +355,10 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
{ {
strVersionText += "<center><b>"; strVersionText += "<center><b>";
} }
else
{
strVersionText += " *** ";
}
strVersionText += tr ( "llcon, Version " ) + VERSION; strVersionText += tr ( "llcon, Version " ) + VERSION;
@ -364,7 +368,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
} }
else else
{ {
strVersionText += "\n"; strVersionText += "\n *** ";
} }
strVersionText += tr ( "llcon, Low-Latency (internet) CONnection" ); strVersionText += tr ( "llcon, Low-Latency (internet) CONnection" );
@ -375,7 +379,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
} }
else else
{ {
strVersionText += "\n"; strVersionText += "\n *** ";
} }
strVersionText += tr ( "Under the GNU General Public License (GPL)" ); strVersionText += tr ( "Under the GNU General Public License (GPL)" );