From 28592baf88ce24ef08a43eea5465f1acb25458ce Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 11 Aug 2009 15:38:06 +0000 Subject: [PATCH] nicer output when no GUI mode is chosen --- src/main.cpp | 20 ++++++++++---------- src/util.cpp | 8 ++++++-- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0b39b8eb..2d423fbd 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -64,7 +64,7 @@ int main ( int argc, char** argv ) if ( GetFlagArgument ( argc, argv, i, "-s", "--server" ) ) { bIsClient = false; - cout << "server mode chosen" << std::endl; + cout << "- server mode chosen" << std::endl; continue; } @@ -73,7 +73,7 @@ int main ( int argc, char** argv ) if ( GetFlagArgument ( argc, argv, i, "-n", "--nogui" ) ) { bUseGUI = false; - cout << "no GUI mode chosen" << std::endl; + cout << "- no GUI mode chosen" << std::endl; continue; } @@ -82,7 +82,7 @@ int main ( int argc, char** argv ) if ( GetFlagArgument ( argc, argv, i, "-d", "--disableleds" ) ) { bDisalbeLEDs = true; - cout << "disable LEDs in main window" << std::endl; + cout << "- disable LEDs in main window" << std::endl; continue; } @@ -91,7 +91,7 @@ int main ( int argc, char** argv ) if ( GetStringArgument ( argc, argv, i, "-l", "--log", strArgument ) ) { strLoggingFileName = strArgument; - cout << "logging file name: " << strLoggingFileName << std::endl; + cout << "- logging file name: " << strLoggingFileName << std::endl; continue; } @@ -101,7 +101,7 @@ int main ( int argc, char** argv ) 0, 65535, rDbleArgument ) ) { iPortNumber = static_cast ( rDbleArgument ); - cout << "selected port number: " << iPortNumber << std::endl; + cout << "- selected port number: " << iPortNumber << std::endl; continue; } @@ -110,14 +110,14 @@ int main ( int argc, char** argv ) if ( GetStringArgument ( argc, argv, i, "-m", "--htmlstatus", strArgument ) ) { strHTMLStatusFileName = strArgument; - cout << "HTML status file name: " << strHTMLStatusFileName << std::endl; + cout << "- HTML status file name: " << strHTMLStatusFileName << std::endl; continue; } if ( GetStringArgument ( argc, argv, i, "-a", "--servername", strArgument ) ) { strServerName = strArgument; - cout << "server name for HTML status file: " << strServerName << std::endl; + cout << "- server name for HTML status file: " << strServerName << std::endl; continue; } @@ -126,7 +126,7 @@ int main ( int argc, char** argv ) if ( GetStringArgument ( argc, argv, i, "-y", "--history", strArgument ) ) { strHistoryFileName = strArgument; - cout << "history file name: " << strHistoryFileName << std::endl; + cout << "- history file name: " << strHistoryFileName << std::endl; continue; } @@ -135,7 +135,7 @@ int main ( int argc, char** argv ) if ( GetStringArgument ( argc, argv, i, "-i", "--inifile", strArgument ) ) { strIniFileName = strArgument; - cout << "initialization file name: " << strIniFileName << std::endl; + cout << "- initialization file name: " << strIniFileName << std::endl; continue; } @@ -144,7 +144,7 @@ int main ( int argc, char** argv ) if ( GetFlagArgument ( argc, argv, i, "-c", "--connect" ) ) { bConnectOnStartup = true; - cout << "connect on startup enabled" << std::endl; + cout << "- connect on startup enabled" << std::endl; continue; } diff --git a/src/util.cpp b/src/util.cpp index 372e8ded..259e1a50 100755 --- a/src/util.cpp +++ b/src/util.cpp @@ -355,6 +355,10 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml ) { strVersionText += "
"; } + else + { + strVersionText += " *** "; + } strVersionText += tr ( "llcon, Version " ) + VERSION; @@ -364,7 +368,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml ) } else { - strVersionText += "\n"; + strVersionText += "\n *** "; } strVersionText += tr ( "llcon, Low-Latency (internet) CONnection" ); @@ -375,7 +379,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml ) } else { - strVersionText += "\n"; + strVersionText += "\n *** "; } strVersionText += tr ( "Under the GNU General Public License (GPL)" );