//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());
//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:
}
caseTQSysInfo::WV_2000:
{
operatingSystemString="Windows 2000 (operating system version 5.0)";
break;
caseTQSysInfo::WV_XP:
}
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)";
}
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:
}
caseTQSysInfo::WV_VISTA:
{
operatingSystemString="Windows Vista, Windows Server 2008 (operating system version 6.0)";
break;
caseTQSysInfo::WV_WINDOWS7:
}
caseTQSysInfo::WV_WINDOWS7:
{
operatingSystemString="Windows 7 (operating system version 6.1)";
break;
caseTQSysInfo::WV_CE:
}
caseTQSysInfo::WV_CE:
{
operatingSystemString="Windows CE";
break;
caseTQSysInfo::WV_CENET:
}
caseTQSysInfo::WV_CENET:
{
operatingSystemString="Windows CE .NET";
break;
caseTQSysInfo::WV_CE_5:
}
caseTQSysInfo::WV_CE_5:
{
operatingSystemString="Windows CE 5.x";
break;
caseTQSysInfo::WV_CE_6:
}
caseTQSysInfo::WV_CE_6:
{
operatingSystemString="Windows CE 6.x";
break;
default:
}
default:
{
operatingSystemString="Unknown Windows operating system.";
break;
}
#elif defined(Q_WS_MAC)
switch(TQSysInfo::MacintoshVersion){
caseTQSysInfo::MV_9:
}
#elif defined (Q_WS_MAC)
switch(TQSysInfo::MacintoshVersion)
{
caseTQSysInfo::MV_9:
{
operatingSystemString="Mac OS 9 (unsupported)";
break;
caseTQSysInfo::MV_10_0:
}
caseTQSysInfo::MV_10_0:
{
operatingSystemString="Mac OS X 10.0 Cheetah (unsupported)";
break;
caseTQSysInfo::MV_10_1:
}
caseTQSysInfo::MV_10_1:
{
operatingSystemString="Mac OS X 10.1 Puma (unsupported)";
break;
caseTQSysInfo::MV_10_2:
}
caseTQSysInfo::MV_10_2:
{
operatingSystemString="Mac OS X 10.2 Jaguar (unsupported)";
break;
caseTQSysInfo::MV_10_3:
}
caseTQSysInfo::MV_10_3:
{
operatingSystemString="Mac OS X 10.3 Panther";
break;
caseTQSysInfo::MV_10_4:
}
caseTQSysInfo::MV_10_4:
{
operatingSystemString="Mac OS X 10.4 Tiger";
break;
caseTQSysInfo::MV_10_5:
}
caseTQSysInfo::MV_10_5:
{
operatingSystemString="Mac OS X 10.5 Leopard";
break;
caseTQSysInfo::MV_10_6:
}
caseTQSysInfo::MV_10_6:
{
operatingSystemString="Mac OS X 10.6 Snow Leopard";
break;
caseTQSysInfo::MV_Unknown:
}
caseTQSysInfo::MV_Unknown:
{
operatingSystemString="An unknown and currently unsupported platform";
break;
default:
}
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
//TODO: Detect Unix, Linux etc. distro as described on
// 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."));
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()));
// If there was some error while trying to retrieve the update info from server and not cancel was
_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");