"<p align='center'><a href=\"http://www.csie.nctu.edu.tw/~chtai/\"><b>Nelson Tai</b></a> for Chinese translation, good ideas and always fast answers.</p></br>"
"<p align='center'><a href=\"http://www.hartwork.org/\"><b>Sebastian Pipping</b></a> for helping me bring UiGUI into the Debian repository and other good ideas.</p></br>"
"<p align='center'><a href=\"http://korytskyy.lviv.ua/\"><b>Oleksandr</b></a> for Ukrainian and Russian translation.</p></br>"
"<p align='center'><b>Erwan "leg"</b> for French translation and the icon logo.</p></br>"
"<p align='center'>The <a href=\"http://www.scintilla.org/\"><b>Scintilla</b></a> project for their great text editing component.</p></br>"
"<p align='center'><a href=\"http://www.riverbankcomputing.co.uk/software/qscintilla/\"><b>Riverbank</b></a> for their Scintilla TQt wrapper TQScintilla.</p></br>"
"<p align='center'><b>Nirvash</b> for the initial Japanese translation.</p></br>"
"<p align='center'>The <a href=\"http://tango.freedesktop.org/Tango_Desktop_Project/\"><b>Tango Project</b></a> for their icons.</p></br>"
"<p align='center'><a href=\"http://www.famfamfam.com/\"><b>famfamfam</b></a> for the flag icons.</p></br>"
"<p align='center'><a href=\"http://trolltech.com/\"><b>Trolltech</b></a> for their really great GUI framework <img src=\":/aboutDialog/qt_logo.png\"/>.</p></br>"
"<h3 align='center'>My girlfriend (meanwhile also wife) for putting my head right and not sit all the time in front of my computer ;-)</h3>"
"<p align='center'><a href=\"http://www.csie.nctu.edu.tw/~chtai/\"><b>Nelson Tai</b></a> for Chinese translation, good ideas and always fast answers.</p></br>"
"<p align='center'><a href=\"http://www.hartwork.org/\"><b>Sebastian Pipping</b></a> for helping me bring UiGUI into the Debian repository and other good ideas.</p></br>"
"<p align='center'><a href=\"http://korytskyy.lviv.ua/\"><b>Oleksandr</b></a> for Ukrainian and Russian translation.</p></br>"
"<p align='center'><b>Erwan "leg"</b> for French translation and the icon logo.</p></br>"
"<p align='center'>The <a href=\"http://www.scintilla.org/\"><b>Scintilla</b></a> project for their great text editing component.</p></br>"
"<p align='center'><a href=\"http://www.riverbankcomputing.co.uk/software/qscintilla/\"><b>Riverbank</b></a> for their Scintilla TQt wrapper TQScintilla.</p></br>"
"<p align='center'><b>Nirvash</b> for the initial Japanese translation.</p></br>"
"<p align='center'>The <a href=\"http://tango.freedesktop.org/Tango_Desktop_Project/\"><b>Tango Project</b></a> for their icons.</p></br>"
"<p align='center'><a href=\"http://www.famfamfam.com/\"><b>famfamfam</b></a> for the flag icons.</p></br>"
"<p align='center'><a href=\"http://trolltech.com/\"><b>Trolltech</b></a> for their really great GUI framework <img src=\":/aboutDialog/qt_logo.png\"/>.</p></br>"
"<h3 align='center'>My girlfriend (meanwhile also wife) for putting my head right and not sit all the time in front of my computer ;-)</h3>"
//TODO: This call has to be removed when the properties for the highlighters can be set
// with the settings dialog.
_settingsDialogForm->groupBoxSyntaxHighlighterProperties->setToolTip("(Will be implemented soon)"+_settingsDialogForm->groupBoxSyntaxHighlighterProperties->toolTip());
// Connect the accepted signal to own function, to write values back to the UiGuiSettings object.
//TODO: This has to be removed when the properties for the highlighters can be set.
_settingsDialogForm->groupBoxSyntaxHighlighterProperties->setToolTip("(Will be implemented soon)"+_settingsDialogForm->groupBoxSyntaxHighlighterProperties->toolTip());
operatingSystemString="Windows NT (operating system version 4.0)";
break;
caseTQSysInfo::WV_2000:
operatingSystemString="Windows 2000 (operating system version 5.0)";
break;
caseTQSysInfo::WV_XP:
operatingSystemString="Windows XP (operating system version 5.1)";
break;
caseTQSysInfo::WV_2003:
operatingSystemString="Windows Server 2003, Windows Server 2003 R2, Windows Home Server, Windows XP Professional x64 Edition (operating system version 5.2)";
break;
caseTQSysInfo::WV_VISTA:
operatingSystemString="Windows Vista, Windows Server 2008 (operating system version 6.0)";
break;
caseTQSysInfo::WV_WINDOWS7:
operatingSystemString="Windows 7 (operating system version 6.1)";
break;
caseTQSysInfo::WV_CE:
operatingSystemString="Windows CE";
break;
caseTQSysInfo::WV_CENET:
operatingSystemString="Windows CE .NET";
break;
caseTQSysInfo::WV_CE_5:
operatingSystemString="Windows CE 5.x";
break;
caseTQSysInfo::WV_CE_6:
operatingSystemString="Windows CE 6.x";
break;
default:
operatingSystemString="Unknown Windows operating system.";
break;
}
#elif defined(Q_WS_MAC)
switch(TQSysInfo::MacintoshVersion){
caseTQSysInfo::MV_9:
operatingSystemString="Mac OS 9 (unsupported)";
break;
caseTQSysInfo::MV_10_0:
operatingSystemString="Mac OS X 10.0 Cheetah (unsupported)";
break;
caseTQSysInfo::MV_10_1:
operatingSystemString="Mac OS X 10.1 Puma (unsupported)";
break;
caseTQSysInfo::MV_10_2:
operatingSystemString="Mac OS X 10.2 Jaguar (unsupported)";
break;
caseTQSysInfo::MV_10_3:
operatingSystemString="Mac OS X 10.3 Panther";
break;
caseTQSysInfo::MV_10_4:
operatingSystemString="Mac OS X 10.4 Tiger";
break;
caseTQSysInfo::MV_10_5:
operatingSystemString="Mac OS X 10.5 Leopard";
break;
caseTQSysInfo::MV_10_6:
operatingSystemString="Mac OS X 10.6 Snow Leopard";
break;
caseTQSysInfo::MV_Unknown:
operatingSystemString="An unknown and currently unsupported platform";
break;
default:
operatingSystemString="Unknown Mac operating system.";
break;
}
TQStringUiGuiSystemInfo::getOperatingSystem()
{
TQStringoperatingSystemString="";
#if defined (Q_WS_WIN)
switch(TQSysInfo::WindowsVersion)
{
caseTQSysInfo::WV_32s:
{
operatingSystemString="Windows 3.1 with Win 32s";
break;
}
caseTQSysInfo::WV_95:
{
operatingSystemString="Windows 95";
break;
}
caseTQSysInfo::WV_98:
{
operatingSystemString="Windows 98";
break;
}
caseTQSysInfo::WV_Me:
{
operatingSystemString="Windows Me";
break;
}
caseTQSysInfo::WV_NT:
{
operatingSystemString="Windows NT (operating system version 4.0)";
break;
}
caseTQSysInfo::WV_2000:
{
operatingSystemString="Windows 2000 (operating system version 5.0)";
break;
}
caseTQSysInfo::WV_XP:
{
operatingSystemString="Windows XP (operating system version 5.1)";
break;
}
caseTQSysInfo::WV_2003:
{
operatingSystemString=
"Windows Server 2003, Windows Server 2003 R2, Windows Home Server, Windows XP Professional x64 Edition (operating system version 5.2)";
break;
}
caseTQSysInfo::WV_VISTA:
{
operatingSystemString="Windows Vista, Windows Server 2008 (operating system version 6.0)";
break;
}
caseTQSysInfo::WV_WINDOWS7:
{
operatingSystemString="Windows 7 (operating system version 6.1)";
break;
}
caseTQSysInfo::WV_CE:
{
operatingSystemString="Windows CE";
break;
}
caseTQSysInfo::WV_CENET:
{
operatingSystemString="Windows CE .NET";
break;
}
caseTQSysInfo::WV_CE_5:
{
operatingSystemString="Windows CE 5.x";
break;
}
caseTQSysInfo::WV_CE_6:
{
operatingSystemString="Windows CE 6.x";
break;
}
default:
{
operatingSystemString="Unknown Windows operating system.";
break;
}
}
#elif defined (Q_WS_MAC)
switch(TQSysInfo::MacintoshVersion)
{
caseTQSysInfo::MV_9:
{
operatingSystemString="Mac OS 9 (unsupported)";
break;
}
caseTQSysInfo::MV_10_0:
{
operatingSystemString="Mac OS X 10.0 Cheetah (unsupported)";
break;
}
caseTQSysInfo::MV_10_1:
{
operatingSystemString="Mac OS X 10.1 Puma (unsupported)";
break;
}
caseTQSysInfo::MV_10_2:
{
operatingSystemString="Mac OS X 10.2 Jaguar (unsupported)";
break;
}
caseTQSysInfo::MV_10_3:
{
operatingSystemString="Mac OS X 10.3 Panther";
break;
}
caseTQSysInfo::MV_10_4:
{
operatingSystemString="Mac OS X 10.4 Tiger";
break;
}
caseTQSysInfo::MV_10_5:
{
operatingSystemString="Mac OS X 10.5 Leopard";
break;
}
caseTQSysInfo::MV_10_6:
{
operatingSystemString="Mac OS X 10.6 Snow Leopard";
break;
}
caseTQSysInfo::MV_Unknown:
{
operatingSystemString="An unknown and currently unsupported platform";
break;
}
default:
{
operatingSystemString="Unknown Mac operating system.";
break;
}
}
#else
//TODO: Detect Unix, Linux etc. distro as described on http://www.novell.com/coolsolutions/feature/11251.html
// In the returned string, the version string could not be found.
else{
TQMessageBox::warning(this,tr("Update check error"),tr("There was an error while trying to check for an update! The retrieved file did not contain expected content."));
}
}
// If there was some error while trying to retrieve the update info from server and not cancel was pressed.
TQMessageBox::warning(this,tr("Update check error"),tr("There was an error while trying to check for an update! Error was : %1").arg(networkReply->errorString()));
_updateCheckDialogForm->label->setText(tr("A newer version of UniversalIndentGUI is available.\nYour version is %1. New version is %2.\nDo you want to go to the download website?").arg(PROGRAM_VERSION_STRING).arg(newVersion));
// -- // Wrap everything in a try block. Do this every time,
// -- // because exceptions will be thrown for problems.
// -- try {
// -- // Define the command line object.
// -- TCLAP::CmdLine cmd("If -p and -s are set, -p will be used.\nGiving no parameters starts full gui without server.", ' ', "UiGUI version " PROGRAM_VERSION_STRING " " PROGRAM_REVISION);
// -- cmd.setExceptionHandling(false);
// --
// -- // Define a value argument and add it to the command line.
// -- TCLAP::UnlabeledValueArg<std::string> filenameArg("file", "Opens the by filename defined file on start" , false, "", "filename");
// -- cmd.add( filenameArg );
// --
// -- // Define a switch and add it to the command line.
// -- TCLAP::SwitchArg pluginSwitch("p", "plugin", "Run as plugin. Server will be started with a simplified gui", false);
// -- cmd.add( pluginSwitch );
// --
// -- // Define a switch and add it to the command line.
// -- TCLAP::SwitchArg serverSwitch("s", "server", "Run as server only without gui", false);
// -- cmd.add( serverSwitch );
// --
// -- // Define a value argument and add it to the command line.
// -- TCLAP::ValueArg<int> verboselevelArg("v", "verbose", "Sets how many info is written to the log. 0 means with debug info, 3 means critical messages only" , false, 1, "int");