[-]
[+]
|
Changed |
systester.changes
|
|
[-]
[+]
|
Changed |
systester.spec
^
|
|
|
Deleted |
systester-1.3.0.tar.bz2/images/stability.png
^
|
|
Deleted |
systester-1.3.0.tar.bz2/images/system.png
^
|
|
Deleted |
systester-1.3.0.tar.bz2/images/tester.png
^
|
[-]
[+]
|
Deleted |
systester-1.3.0.tar.bz2/qconf/modules/qt43.qcm
^
|
@@ -1,18 +0,0 @@
-/*
-For license information, see the COPYING file in the qconf base directory.
-
------BEGIN QCMOD-----
-name: Qt >= 4.3
------END QCMOD-----
-*/
-class qc_qt43 : public ConfObj
-{
-public:
- qc_qt43(Conf *c) : ConfObj(c) {}
- QString name() const { return "Qt >= 4.3"; }
- QString shortname() const { return "qt43"; }
- bool exec()
- {
- return(QT_VERSION >= 0x040300);
- }
-};
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/Changelog
^
|
@@ -1,4 +1,26 @@
Changelog
+ 20120628: Version 1.5.1
+ PI and log files now lay on user's home directory
+ for GUI version
+ 20120502: Version 1.5.0
+ New splash screen with about and license windows
+ License button removed
+ Flattr button added
+ Minor bugs fixed
+ Aesthetic changes
+ Terminal autoscroll
+ 20120107: Version 1.4.2
+ Systester now depends on QT >= 4.5.3
+ Display available memory in Darwin
+ Checksum validation re-implemented in order to
+ bypass gcc bug
+ 20110918: Version 1.4.0
+ Systester now depends on QT >= 4.4
+ Update button introduced for latest version check
+ Updated systester.pro
+ KDE and Gnome menu icon introduced through
+ install-desktop.sh script
+ FAQ.txt added in the source tree
20110725: Version 1.3.0
Bugfix in configure script. --prefix and "make install" now
work properly
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/FAQ.txt
^
|
@@ -0,0 +1,76 @@
+1. How do I compile Systester from the source in Linux/Unix?
+
+Download the source, untar it and run the configure script by typing:
+
+./configure
+
+The configure script will check the existence of a Qt 4.4.0 (or later)
+installation and a GMP 4.2.1 (or later) installation and no other
+dependencies
+
+./configure --help
+will print a list of available option. Alternatively you may try to
+to use qmake (or qmake-qt4) directly.
+
+qmake systester.pro
+
+Then you can type make and make install to install Systester. The script
+install-desktop.sh will create menu entries for Gnome and KDE.
+
+If you need the CLI version of systester the steps you have to follow are:
+
+cd cli
+make cli
+
+Then you'll have a systester-cli binary you may copy somewhere in you PATH.
+
+
+2. Why should I use the binaries you distribute?
+
+Actually you don't need to use these binaries. The binaries are distributed
+for the users who run systems that do not provide a complete build
+environment by default or do not support all the dependencies like Qt and
+GMP. Distributions like OpenSuse, Pardus and Arch Linux provide precompiled
+packages of System Stability Tester in their primary or secondary
+repositories. If your distribution provides precompiled packages it's better
+and easier for you to use them.
+
+
+3. I have altered the FSB multiplier of my machine. When Systester runs on
+my Linux box reports wrong operational frequency for the CPU. On Windows
+everything is fine. Why?
+
+Systester needs read access to /dev/mem. You need to run Systester using the
+sudo command.
+
+
+4. What is the function of the mode button?
+
+The mode button enables/disables the intermediate result comparisons when
+systester runs with more than one thread.
+
+
+5. I enabled the log function of Systester. Where can I find the log file?
+
+Try the systester.log file.
+
+
+6. I enabled the Pi file function of Systester. Where can I see the digits
+of Pi Systester found?
+
+Try the CPUPI.DAT file. It has the same name and format SuperPI uses, so you
+can compare the results directly using a simple cmp or diff command.
+
+
+7. What's the difference between systester, systester-cli and
+systester-lite?
+
+systester is the GUI branch of the project, with all the features enabled.
+systester-cli is the CLI branch of the project with all the features
+enabled. systester-lite is a CLI branch with platform dependent code
+disabled. This means some of the features, like hardware information, are
+disabled in exchange of increased portability. If you wish to build
+systester-lite for your platform, just be sure you have GMP 4.2.1 or later
+installed on your system. Under directory cli of the source tree you may
+type 'make lite' in order to build systester-lite.
+
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/InfoForm.cpp
^
|
@@ -0,0 +1,33 @@
+/* InfoForm.cpp
+//
+// Copyright 2005-2012 Lucas Tsatiris <systester.project@gmail.com>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+// MA 02110-1301, USA.
+//
+*/
+
+#include "systester.h"
+#include "InfoForm.h"
+
+InfoWindow::InfoWindow (QWidget * parent):
+QDialog (parent), ui (new Ui::InfoWindow)
+{
+ ui->setupUi (this);
+}
+
+InfoWindow::~InfoWindow ()
+{
+}
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/InfoForm.h
^
|
@@ -0,0 +1,43 @@
+/* InfoForm.h
+//
+// Copyright 2005-2012 Lucas Tsatiris <systester.project@gmail.com>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+// MA 02110-1301, USA.
+//
+*/
+
+#if !defined (INFOFORM_H)
+#define INFOFORM_H
+
+#include "ui_InfoWindow.h"
+
+namespace Ui {
+ class InfoWindow;
+}
+
+class InfoWindow:public QDialog
+{
+
+public:
+ explicit InfoWindow (QWidget *parent = 0);
+ ~InfoWindow ();
+
+private:
+ Ui::InfoWindow *ui;
+
+};
+
+#endif /* INFOFORM_H */
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/InfoWindow.ui
^
|
@@ -0,0 +1,609 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>InfoWindow</class>
+ <widget class="QDialog" name="InfoWindow">
+ <property name="windowModality">
+ <enum>Qt::ApplicationModal</enum>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>500</width>
+ <height>550</height>
+ </rect>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>500</width>
+ <height>550</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>500</width>
+ <height>550</height>
+ </size>
+ </property>
+ <property name="sizeIncrement">
+ <size>
+ <width>500</width>
+ <height>550</height>
+ </size>
+ </property>
+ <property name="baseSize">
+ <size>
+ <width>500</width>
+ <height>550</height>
+ </size>
+ </property>
+ <property name="palette">
+ <palette>
+ <active>
+ <colorrole role="WindowText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Button">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Light">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Midlight">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>229</red>
+ <green>238</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Dark">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>102</red>
+ <green>110</green>
+ <blue>127</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Mid">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>136</red>
+ <green>147</green>
+ <blue>170</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Text">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="BrightText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ButtonText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Base">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Window">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Shadow">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="AlternateBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>229</red>
+ <green>238</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>220</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ </active>
+ <inactive>
+ <colorrole role="WindowText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Button">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Light">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Midlight">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>229</red>
+ <green>238</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Dark">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>102</red>
+ <green>110</green>
+ <blue>127</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Mid">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>136</red>
+ <green>147</green>
+ <blue>170</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Text">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="BrightText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ButtonText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Base">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Window">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Shadow">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="AlternateBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>229</red>
+ <green>238</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>220</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ </inactive>
+ <disabled>
+ <colorrole role="WindowText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>102</red>
+ <green>110</green>
+ <blue>127</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Button">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Light">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Midlight">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>229</red>
+ <green>238</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Dark">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>102</red>
+ <green>110</green>
+ <blue>127</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Mid">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>136</red>
+ <green>147</green>
+ <blue>170</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Text">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>102</red>
+ <green>110</green>
+ <blue>127</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="BrightText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ButtonText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>102</red>
+ <green>110</green>
+ <blue>127</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Base">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Window">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="Shadow">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="AlternateBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>204</red>
+ <green>221</green>
+ <blue>255</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>255</red>
+ <green>255</green>
+ <blue>220</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </brush>
+ </colorrole>
+ </disabled>
+ </palette>
+ </property>
+ <property name="windowTitle">
+ <string>System Stability Tester v1.5.1</string>
+ </property>
+ <property name="windowIcon">
+ <iconset resource="resource.qrc">
+ <normaloff>:/images/images/cpu.png</normaloff>:/images/images/cpu.png</iconset>
+ </property>
+ <property name="modal">
+ <bool>true</bool>
+ </property>
+ <widget class="QTextBrowser" name="gplBrowser">
+ <property name="geometry">
+ <rect>
+ <x>5</x>
+ <y>5</y>
+ <width>490</width>
+ <height>501</height>
+ </rect>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
+ </property>
+ <property name="acceptDrops">
+ <bool>false</bool>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="styleSheet">
+ <string notr="true"/>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Plain</enum>
+ </property>
+ <property name="html">
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="SEC1"></a><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a;">G</span><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a;">NU GENERAL PUBLIC LICENSE</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">Version 2, June 1991</span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'monospace'; font-size:9pt; color:#35382a; background-color:#ffffff;">Copyright (C) 1989, 1991 Free Software Foundation, Inc. </span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'monospace'; font-size:9pt; color:#35382a; background-color:#ffffff;">51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA</span></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'monospace'; font-size:9pt; color:#35382a; background-color:#ffffff;"></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'monospace'; font-size:9pt; color:#35382a; background-color:#ffffff;">Everyone is permitted to copy and distribute verbatim copies</span></p>
+<p style=" margin-top:0px; margin-bottom:18px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'monospace'; font-size:9pt; color:#35382a; background-color:#ffffff;">of this license document, but changing it is not allowed.</span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="preamble"></a><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a;">P</span><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a;">reamble</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">The precise terms and conditions for copying, distribution and modification follow.</span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="terms"></a><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a;">T</span><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a;">ERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">0.</span><span style=" font-family:'sans-serif'; color:#35382a;"> This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">1.</span><span style=" font-family:'sans-serif'; color:#35382a;"> You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">2.</span><span style=" font-family:'sans-serif'; color:#35382a;"> You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</span></p>
+<p style=" margin-top:0px; margin-bottom:36px; margin-left:58px; margin-right:20px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">a)</span><span style=" font-family:'sans-serif'; color:#35382a;"> You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.</span></p>
+<p style=" margin-top:0px; margin-bottom:36px; margin-left:58px; margin-right:20px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">b)</span><span style=" font-family:'sans-serif'; color:#35382a;"> You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.</span></p>
+<p style=" margin-top:0px; margin-bottom:36px; margin-left:58px; margin-right:20px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">c)</span><span style=" font-family:'sans-serif'; color:#35382a;"> If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">3.</span><span style=" font-family:'sans-serif'; color:#35382a;"> You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:</span></p>
+<p style=" margin-top:0px; margin-bottom:36px; margin-left:58px; margin-right:20px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">a)</span><span style=" font-family:'sans-serif'; color:#35382a;"> Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,</span></p>
+<p style=" margin-top:0px; margin-bottom:36px; margin-left:58px; margin-right:20px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">b)</span><span style=" font-family:'sans-serif'; color:#35382a;"> Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,</span></p>
+<p style=" margin-top:0px; margin-bottom:36px; margin-left:58px; margin-right:20px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">c)</span><span style=" font-family:'sans-serif'; color:#35382a;"> Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">4.</span><span style=" font-family:'sans-serif'; color:#35382a;"> You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">5.</span><span style=" font-family:'sans-serif'; color:#35382a;"> You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">6.</span><span style=" font-family:'sans-serif'; color:#35382a;"> Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">7.</span><span style=" font-family:'sans-serif'; color:#35382a;"> If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">8.</span><span style=" font-family:'sans-serif'; color:#35382a;"> If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">9.</span><span style=" font-family:'sans-serif'; color:#35382a;"> The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; color:#35382a; background-color:#ffffff;">Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">10.</span><span style=" font-family:'sans-serif'; color:#35382a;"> If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">NO WARRANTY</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">11.</span><span style=" font-family:'sans-serif'; color:#35382a;"> BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</span></p>
+<p style=" margin-top:0px; margin-bottom:20px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-weight:600; color:#35382a;">12.</span><span style=" font-family:'sans-serif'; color:#35382a;"> IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</span></p>
+<p style=" margin-top:18px; margin-bottom:18px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#ffffff;"><span style=" font-family:'sans-serif'; font-size:large; font-weight:600; color:#35382a; background-color:#ffffff;">END OF TERMS AND CONDITIONS</span></p></body></html></string>
+ </property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
+ <property name="openLinks">
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="closeButton">
+ <property name="geometry">
+ <rect>
+ <x>210</x>
+ <y>510</y>
+ <width>80</width>
+ <height>30</height>
+ </rect>
+ </property>
+ <property name="font">
+ <font>
+ <family>Serif</family>
+ <pointsize>8</pointsize>
+ <weight>75</weight>
+ <bold>true</bold>
+ </font>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="styleSheet">
+ <string notr="true"/>
+ </property>
+ <property name="text">
+ <string>Close</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </widget>
+ <resources>
+ <include location="resource.qrc"/>
+ </resources>
+ <connections>
+ <connection>
+ <sender>closeButton</sender>
+ <signal>clicked()</signal>
+ <receiver>InfoWindow</receiver>
+ <slot>hide()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>249</x>
+ <y>524</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>249</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/MainForm.cpp
^
|
@@ -19,19 +19,25 @@
//
*/
-
#include "systester.h"
QFont globalfont, termfont;
QTextEdit *Terminal;
+QNetworkAccessManager *UpdateManager;
char termstr[20000] = "", tempstr[256];
bool licpressed = FALSE;
bool stoppressed = FALSE;
+QScrollBar *VSBar;
-
+/* constructor */
MainForm::MainForm ()
{
setupUi (this);
+ UpdateManager = new QNetworkAccessManager (this);
+ Splash = new SplashWindow;
+ Splash->setGeometry (200, 200, 390, 250);
+ Splash->hideButtons ();
+
connect (runButton, SIGNAL (clicked ()), this, SLOT (runButton_clicked ()));
connect (modeButton, SIGNAL (clicked ()), this,
SLOT (modeButton_clicked ()));
@@ -41,12 +47,22 @@
SLOT (aboutButton_clicked ()));
connect (FontsButton, SIGNAL (clicked ()), this,
SLOT (FontsButton_clicked ()));
- connect (LicenseButton, SIGNAL (clicked ()), this,
- SLOT (LicenseButton_clicked ()));
+ connect (flattrButton, SIGNAL (clicked ()), this,
+ SLOT (flattrButton_clicked ()));
connect (stopButton, SIGNAL (clicked ()), this,
SLOT (stopButton_clicked ()));
connect (threadsBox, SIGNAL (currentIndexChanged (int)), this,
SLOT (threadsBox_changed ()));
+ connect (updateButton, SIGNAL (clicked ()), this,
+ SLOT (updateButton_clicked ()));
+ connect (UpdateManager, SIGNAL (finished (QNetworkReply *)), this,
+ SLOT (updateReplyFinished (QNetworkReply *)));
+}
+
+/* destructor */
+MainForm::~MainForm ()
+{
+ delete Splash;
}
/*
@@ -66,7 +82,6 @@
if (lflag == 1)
unlink ("systester.log");
-
start = pitimer ();
for (i = 0; i < executions; i++)
@@ -91,19 +106,17 @@
/*
End of systestercore.cpp
*/
-SplashForm *Splash;
+
void
MainForm::onload ()
{
-
- Splash = new SplashForm;
- Splash->setGeometry (200, 200, 350, 250);
- Splash->show();
-
- QTimer::singleShot(3000, this, SLOT(initForm()));
+ Splash->show ();
+ QTimer::singleShot (3000, this, SLOT (initForm ()));
+ vsbar = TextTerminal->verticalScrollBar ();
}
-void MainForm::initForm()
+void
+MainForm::initForm ()
{
unsigned long long freq;
int cpu, activecpus;
@@ -146,14 +159,13 @@
ILPString->setText (ilpstring);
Terminal = TextTerminal;
+ VSBar = vsbar;
mode = 0;
-
- Splash->hide();
- delete Splash;
- this->show();
+ Splash->hide ();
+ Splash->showButtons ();
+ this->show ();
}
-
void
MainForm::runButton_clicked ()
{
@@ -161,7 +173,6 @@
int loops, executions, log = 0, out = 0, threads;
Terminal->setVisible (TRUE);
- AboutTerminal->setVisible (FALSE);
qApp->processEvents (QEventLoop::AllEvents, 1000);
stoppressed = FALSE;
@@ -177,7 +188,8 @@
checkout->setEnabled (FALSE);
aboutButton->setEnabled (FALSE);
exitButton->setEnabled (FALSE);
- LicenseButton->setEnabled (FALSE);
+ flattrButton->setEnabled (FALSE);
+ updateButton->setEnabled (FALSE);
FontsButton->setEnabled (FALSE);
runButton->setEnabled (FALSE);
modeButton->setEnabled (FALSE);
@@ -218,7 +230,8 @@
checkout->setEnabled (TRUE);
aboutButton->setEnabled (TRUE);
exitButton->setEnabled (TRUE);
- LicenseButton->setEnabled (TRUE);
+ flattrButton->setEnabled (TRUE);
+ updateButton->setEnabled (TRUE);
FontsButton->setEnabled (TRUE);
runButton->setEnabled (TRUE);
if (threadsBox->currentIndex () != 0)
@@ -240,8 +253,7 @@
{
mode = 1;
modeButton->setText (QApplication::translate ("MainWindow", "Bench", 0,
- QApplication::
- UnicodeUTF8));
+ QApplication::UnicodeUTF8));
return;
}
@@ -253,50 +265,101 @@
}
void
-MainForm::aboutButton_clicked ()
+MainForm::updateButton_clicked ()
{
- char *flag;
- char htmlline[256], cflags[1024];
-
- strcpy (cflags, __GMP_CFLAGS);
- if (licpressed == TRUE)
- Terminal->setFont (globalfont);
+ updateButton->setText ("Checking");
+ UpdateManager->
+ get (QNetworkRequest
+ (QUrl ("http://systester.sourceforge.net/lversion.php")));
+}
+
+void
+MainForm::updateReplyFinished (QNetworkReply * updatereply)
+{
+ int major, minor, patch;
+ int newversion = FALSE, error = TRUE;
+ bool majorok, minorok, patchok;
+
+ updateButton->setText ("Update");
+
+ QByteArray replybytes = updatereply->readAll ();
+ QString replystring (replybytes);
+
+ QStringList versiondigits =
+ replystring.split (".", QString::SkipEmptyParts);
+
+ if (versiondigits.length () == 3)
+ {
+
+ major = versiondigits.at (0).toInt (&majorok, 10);
+ minor = versiondigits.at (1).toInt (&minorok, 10);
+ patch = versiondigits.at (2).toInt (&patchok, 10);
+
+ if (majorok == TRUE && minorok == TRUE && patchok == TRUE)
+ {
+ if (major > SYSTESTER_MAJOR)
+ newversion = TRUE;
+ else if (major == SYSTESTER_MAJOR)
+ {
+ if (minor > SYSTESTER_MINOR)
+ newversion = TRUE;
+ else if (minor == SYSTESTER_MINOR)
+ {
+ if (patch > SYSTESTER_PATCH)
+ newversion = TRUE;
+ }
+ }
+
+ error = FALSE;
+ }
+ }
+
+
+ if (error == FALSE)
+ {
+ if (newversion == TRUE)
+ {
+ int msgret = QMessageBox::information (this,
+ tr
+ ("New version available!"),
+ tr
+ ("System Stability Tester has a new version available\nSwitch to downloads page?"),
+ QMessageBox::
+ Ok | QMessageBox::Cancel);
+
+ if (msgret == QMessageBox::Ok)
+ {
+ QDesktopServices::
+ openUrl (QUrl
+ ("http://systester.sourceforge.net/downloads.php"));
+ }
+
+ }
+ else
+ {
+ QMessageBox::information (this,
+ tr ("Latest version"),
+ tr
+ ("You have the latest version of System Stability Tester"),
+ QMessageBox::Ok);
+ }
+ }
+ else
+ {
+ QMessageBox::warning (this,
+ tr ("Warning"),
+ tr
+ ("Check for a new version failed. Please check for a new version manually"),
+ QMessageBox::Ok);
+ }
- strcpy (termstr, "");
- strcat (termstr, "<html>");
- strcat (termstr, "<body>");
- strcat (termstr, "<style type=\"text/css\">p, li { white-space: pre-wrap; }</style>");
- sprintf (htmlline, "<br><big>System Stability Tester v%d.%d.%d</big><br>",
- SYSTESTER_MAJOR, SYSTESTER_MINOR, SYSTESTER_PATCH);
- strcat (termstr, htmlline);
- strcat (termstr, "<span style=\"font-style: italic;\">(c) 2005-2011 Lucas Tsatiris</span>");
- strcat (termstr, "<br><br>You may contact the authors via email to<br>");
- strcat (termstr, "<span style=\"font-style: italic;\">systester.project@gmail.com</span> <br>");
- strcat (termstr, "<br>Download the latest release from: ");
- strcat (termstr, "<br><a href=\"http://systester.sourceforge.net\">http://systester.sourceforge.net</a><br>");
- strcat (termstr, "<br>Distributed under the <a href=\"http://www.gnu.org/licenses/gpl-2.0.html\">GPL v2</a>. <br>");
- strcat (termstr, "<br>GMP compiled with:");
- sprintf (htmlline, "<br>%s", __GMP_CC);
- strcat (termstr, htmlline);
- flag = strtok (cflags, " ");
- while (flag != NULL)
- {
- sprintf (htmlline, "<br>%s", flag);
- strcat (termstr, htmlline);
- flag = strtok (NULL, " ");
- }
- strcat (termstr, "</body>");
- strcat (termstr, "</html>");
-
- Terminal->setVisible (FALSE);
- AboutTerminal->setVisible (TRUE);
- AboutTerminal->clearHistory ();
- AboutTerminal->setOpenExternalLinks (TRUE);
- AboutTerminal->setOpenLinks (TRUE);
- AboutTerminal->setHtml (termstr);
- qApp->processEvents (QEventLoop::AllEvents, 1000);
}
+void
+MainForm::aboutButton_clicked ()
+{
+ Splash->show ();
+}
void
MainForm::FontsButton_clicked ()
@@ -315,12 +378,13 @@
textLabel15->setFont (globalfont);
digits->setFont (globalfont);
execBox->setFont (globalfont);
+ algoBox->setFont (globalfont);
threadsBox->setFont (globalfont);
runButton->setFont (globalfont);
modeButton->setFont (globalfont);
FontsButton->setFont (globalfont);
aboutButton->setFont (globalfont);
- LicenseButton->setFont (globalfont);
+ flattrButton->setFont (globalfont);
exitButton->setFont (globalfont);
stopButton->setFont (globalfont);
Terminal->setFont (globalfont);
@@ -330,46 +394,18 @@
GMPVERString->setFont (globalfont);
ILPString->setFont (globalfont);
RAMString->setFont (globalfont);
+ updateButton->setFont (globalfont);
}
}
void
-MainForm::LicenseButton_clicked ()
+MainForm::flattrButton_clicked ()
{
-
- static QFont font;
-
- Terminal->setVisible (TRUE);
- AboutTerminal->setVisible (FALSE);
- qApp->processEvents ();
-
- strcpy (termstr, "");
-
- if (licpressed == FALSE)
- {
- font = Terminal->font ();
- globalfont = font;
- }
-
-#if defined(__sun)
- if (font.pointSize () > 8)
- font.setPointSize (8);
-#elif defined(__WIN32)
- if (font.pointSize () > 7)
- font.setPointSize (7);
-#else
- if (font.pointSize () > 6)
- font.setPointSize (6);
-#endif
-
- Terminal->setFont (font);
- licpressed = TRUE;
- strcpy (termstr,
- " GNU GENERAL PUBLIC LICENSE\n Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The licenses for most software are designed to take away your\nfreedom to share and change it. By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users. This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it. (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.) You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have. You must make sure that they, too, receive or can get the\nsource code. And you must show them these terms so they know their\nrights.\n\n We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware. If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n Finally, any free program is threatened constantly by software\npatents. We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary. To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n GNU GENERAL PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License. The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage. (Hereinafter, translation is included without limitation in\nthe term \"modification\".) Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope. The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n 1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n 2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n a) You must cause the modified files to carry prominent notices\n stating that you changed the files and the date of any change.\n\n b) You must cause any work that you distribute or publish, that in\n whole or in part contains or is derived from the Program or any\n part thereof, to be licensed as a whole at no charge to all third\n parties under the terms of this License.\n\n c) If the modified program normally reads commands interactively\n when run, you must cause it, when started running for such\n interactive use in the most ordinary way, to print or display an\n announcement including an appropriate copyright notice and a\n notice that there is no warranty (or else, saying that you provide\n a warranty) and that users may redistribute the program under\n these conditions, and telling the user how to view a copy of this\n License. (Exception: if the Program itself is interactive but\n does not normally print such an announcement, your work based on\n the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole. If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works. But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n 3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n a) Accompany it with the complete corresponding machine-readable\n source code, which must be distributed under the terms of Sections\n 1 and 2 above on a medium customarily used for software interchange; or,\n\n b) Accompany it with a written offer, valid for at least three\n years, to give any third party, for a charge no more than your\n cost of physically performing source distribution, a complete\n machine-readable copy of the corresponding source code, to be\n distributed under the terms of Sections 1 and 2 above on a medium\n customarily used for software interchange; or,\n\n c) Accompany it with the information you received as to the offer\n to distribute corresponding source code. (This alternative is\n allowed only for noncommercial distribution and only if you\n received the program in object code or executable form with such\n an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it. For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable. However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n 4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License. Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n 5. You are not required to accept this License, since you have not\nsigned it. However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works. These actions are\nprohibited by law if you do not accept this License. Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n 6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions. You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n 7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all. For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices. Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n 8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded. In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n 9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation. If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n 10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission. For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this. Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n NO WARRANTY\n\n 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n END OF TERMS AND CONDITIONS\n\n");
-
- Terminal->setAlignment (Qt::AlignHCenter);
- Terminal->setText (termstr);
+ QDesktopServices::
+ openUrl (QUrl
+ ("http://flattr.com/thing/497771/System-Stability-Tester",
+ QUrl::TolerantMode));
}
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/MainForm.h
^
|
@@ -1,46 +1,61 @@
/* MainForm.h
-//
+//
// Copyright 2005-2011 Lucas Tsatiris <systester.project@gmail.com>
-//
+//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
-//
+//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-//
+//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
// MA 02110-1301, USA.
-//
-*/
+//
+*/
-
-#include ".ui/ui_MainWindow.h"
+#if !defined (MAINWINDOW_H)
+#define MAINWINDOW_H
#include <QFontDialog>
#include <QFont>
#include <QTimer>
+#include <QMessageBox>
+#include <QNetworkRequest>
+#include <QNetworkReply>
+#include <QNetworkAccessManager>
+#include <QDesktopServices>
+#include <QScrollBar>
+#include "ui_MainWindow.h"
+#include "SplashForm.h"
+
+extern QScrollBar *VSBar;
class MainForm:public QMainWindow, private
Ui::MainWindow
{
- Q_OBJECT void
- pimaster (unsigned long long iter, int threads, int algo);
- void
- picoremain (int loops, int exec_times, int output_file, int log_file,
+ Q_OBJECT
+ SplashWindow *Splash;
+ void pimaster (unsigned long long iter, int threads, int algo);
+ void picoremain (int loops, int exec_times, int output_file, int log_file,
int threads, int gaussalgo);
+
public:
MainForm ();
+ ~MainForm ();
+
void
onload ();
- private
- slots:void
+ QScrollBar *vsbar; // vertical scroll bar of text terminal
+
+ private slots:
+ void
runButton_clicked ();
void
exitButton_clicked ();
@@ -49,7 +64,7 @@
void
FontsButton_clicked ();
void
- LicenseButton_clicked ();
+ flattrButton_clicked ();
void
stopButton_clicked ();
void
@@ -57,5 +72,11 @@
void
threadsBox_changed ();
void
+ updateButton_clicked ();
+ void
+ updateReplyFinished (QNetworkReply * updatereply);
+ void
initForm();
};
+
+#endif /* MAINWINDOW_H */
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/MainWindow.ui
^
|
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>570</width>
- <height>610</height>
+ <height>640</height>
</rect>
</property>
<property name="sizePolicy">
@@ -19,20 +19,26 @@
<property name="minimumSize">
<size>
<width>570</width>
- <height>610</height>
+ <height>640</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>570</width>
- <height>610</height>
+ <height>640</height>
+ </size>
+ </property>
+ <property name="baseSize">
+ <size>
+ <width>570</width>
+ <height>640</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
<property name="windowTitle">
- <string>System Stability Tester. Version 1.3.0</string>
+ <string>System Stability Tester. Version 1.5.1</string>
</property>
<property name="windowIcon">
<iconset resource="resource.qrc">
@@ -43,7 +49,7 @@
<property name="geometry">
<rect>
<x>462</x>
- <y>490</y>
+ <y>520</y>
<width>80</width>
<height>30</height>
</rect>
@@ -424,7 +430,7 @@
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
@@ -435,6 +441,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
<widget class="QLabel" name="FreqString">
<property name="geometry">
@@ -809,7 +818,7 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -821,7 +830,7 @@
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
@@ -832,6 +841,9 @@
<property name="wordWrap">
<bool>true</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
<widget class="QLabel" name="CPUString">
<property name="geometry">
@@ -1206,7 +1218,7 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -1218,7 +1230,7 @@
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
@@ -1229,12 +1241,15 @@
<property name="wordWrap">
<bool>true</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
<widget class="QLabel" name="CPUPixmap">
<property name="geometry">
<rect>
<x>462</x>
- <y>330</y>
+ <y>360</y>
<width>80</width>
<height>70</height>
</rect>
@@ -1254,9 +1269,9 @@
<colorrole role="Button">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
@@ -1272,27 +1287,27 @@
<colorrole role="Midlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>191</blue>
+ <red>225</red>
+ <green>225</green>
+ <blue>225</blue>
</color>
</brush>
</colorrole>
<colorrole role="Dark">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>127</red>
- <green>127</green>
- <blue>63</blue>
+ <red>97</red>
+ <green>97</green>
+ <blue>97</blue>
</color>
</brush>
</colorrole>
<colorrole role="Mid">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>170</red>
- <green>170</green>
- <blue>84</blue>
+ <red>130</red>
+ <green>130</green>
+ <blue>130</blue>
</color>
</brush>
</colorrole>
@@ -1335,9 +1350,9 @@
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
@@ -1353,9 +1368,27 @@
<colorrole role="AlternateBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
+ <red>225</red>
+ <green>225</green>
+ <blue>225</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
<red>255</red>
<green>255</green>
- <blue>191</blue>
+ <blue>220</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
</color>
</brush>
</colorrole>
@@ -1373,9 +1406,9 @@
<colorrole role="Button">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
@@ -1391,27 +1424,27 @@
<colorrole role="Midlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>191</blue>
+ <red>225</red>
+ <green>225</green>
+ <blue>225</blue>
</color>
</brush>
</colorrole>
<colorrole role="Dark">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>127</red>
- <green>127</green>
- <blue>63</blue>
+ <red>97</red>
+ <green>97</green>
+ <blue>97</blue>
</color>
</brush>
</colorrole>
<colorrole role="Mid">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>170</red>
- <green>170</green>
- <blue>84</blue>
+ <red>130</red>
+ <green>130</green>
+ <blue>130</blue>
</color>
</brush>
</colorrole>
@@ -1454,9 +1487,9 @@
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
@@ -1472,9 +1505,27 @@
<colorrole role="AlternateBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
+ <red>225</red>
+ <green>225</green>
+ <blue>225</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
<red>255</red>
<green>255</green>
- <blue>191</blue>
+ <blue>220</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
</color>
</brush>
</colorrole>
@@ -1483,18 +1534,18 @@
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>127</red>
- <green>127</green>
- <blue>63</blue>
+ <red>97</red>
+ <green>97</green>
+ <blue>97</blue>
</color>
</brush>
</colorrole>
<colorrole role="Button">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
@@ -1510,36 +1561,36 @@
<colorrole role="Midlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>191</blue>
+ <red>225</red>
+ <green>225</green>
+ <blue>225</blue>
</color>
</brush>
</colorrole>
<colorrole role="Dark">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>127</red>
- <green>127</green>
- <blue>63</blue>
+ <red>97</red>
+ <green>97</green>
+ <blue>97</blue>
</color>
</brush>
</colorrole>
<colorrole role="Mid">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>170</red>
- <green>170</green>
- <blue>84</blue>
+ <red>130</red>
+ <green>130</green>
+ <blue>130</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>127</red>
- <green>127</green>
- <blue>63</blue>
+ <red>97</red>
+ <green>97</green>
+ <blue>97</blue>
</color>
</brush>
</colorrole>
@@ -1555,27 +1606,27 @@
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>127</red>
- <green>127</green>
- <blue>63</blue>
+ <red>97</red>
+ <green>97</green>
+ <blue>97</blue>
</color>
</brush>
</colorrole>
<colorrole role="Base">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
- <red>255</red>
- <green>255</green>
- <blue>127</blue>
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
</color>
</brush>
</colorrole>
@@ -1591,9 +1642,27 @@
<colorrole role="AlternateBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
+ <red>195</red>
+ <green>195</green>
+ <blue>195</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipBase">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
<red>255</red>
<green>255</green>
- <blue>127</blue>
+ <blue>220</blue>
+ </color>
+ </brush>
+ </colorrole>
+ <colorrole role="ToolTipText">
+ <brush brushstyle="SolidPattern">
+ <color alpha="255">
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
</color>
</brush>
</colorrole>
@@ -1604,10 +1673,10 @@
<bool>true</bool>
</property>
<property name="frameShape">
- <enum>QFrame::StyledPanel</enum>
+ <enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="scaledContents">
<bool>true</bool>
@@ -1620,7 +1689,7 @@
<property name="geometry">
<rect>
<x>462</x>
- <y>410</y>
+ <y>440</y>
<width>80</width>
<height>30</height>
</rect>
@@ -2001,7 +2070,7 @@
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
@@ -2012,12 +2081,15 @@
<property name="wordWrap">
<bool>false</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
<widget class="QLabel" name="GMPVERString">
<property name="geometry">
<rect>
<x>462</x>
- <y>530</y>
+ <y>560</y>
<width>80</width>
<height>30</height>
</rect>
@@ -2398,7 +2470,7 @@
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
@@ -2409,6 +2481,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
<widget class="QFrame" name="frame">
<property name="geometry">
@@ -2423,21 +2498,21 @@
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<widget class="QLabel" name="textLabel10">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
- <width>80</width>
+ <width>71</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -2460,14 +2535,14 @@
<rect>
<x>170</x>
<y>0</y>
- <width>90</width>
+ <width>81</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -2482,20 +2557,26 @@
<widget class="QComboBox" name="execBox">
<property name="geometry">
<rect>
- <x>270</x>
+ <x>264</x>
<y>0</y>
- <width>45</width>
+ <width>51</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="whatsThis">
<string>The times we want to perform the calculation<p align="center"></p></string>
</property>
@@ -2573,20 +2654,26 @@
<widget class="QComboBox" name="digits">
<property name="geometry">
<rect>
- <x>90</x>
+ <x>79</x>
<y>0</y>
- <width>70</width>
+ <width>81</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="whatsThis">
<string><p align="center"><font face="Arial">The number of digits of pi that we are going to calculate using the <b>Borwein<i></i></b> method</font><font></font></p></string>
</property>
@@ -2654,14 +2741,14 @@
<rect>
<x>320</x>
<y>0</y>
- <width>80</width>
+ <width>71</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -2676,20 +2763,26 @@
<widget class="QComboBox" name="threadsBox">
<property name="geometry">
<rect>
- <x>410</x>
+ <x>404</x>
<y>0</y>
- <width>45</width>
+ <width>51</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="whatsThis">
<string><p align="center">The number of the threads we want to open. The more the threads, the more the stress we apply to the system</p></string>
</property>
@@ -2742,11 +2835,17 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="text">
<string>Test</string>
</property>
@@ -2758,14 +2857,14 @@
<x>440</x>
<y>50</y>
<width>125</width>
- <height>271</height>
+ <height>301</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<widget class="QLabel" name="textLabel13">
<property name="geometry">
@@ -2779,7 +2878,7 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -2794,11 +2893,11 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" name="LicenseButton">
+ <widget class="QPushButton" name="flattrButton">
<property name="geometry">
<rect>
<x>22</x>
- <y>205</y>
+ <y>235</y>
<width>80</width>
<height>30</height>
</rect>
@@ -2806,13 +2905,41 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
<property name="text">
- <string>License</string>
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="resource.qrc">
+ <normaloff>:/images/images/flattr.png</normaloff>:/images/images/flattr.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>70</width>
+ <height>25</height>
+ </size>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>false</bool>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
</property>
</widget>
<widget class="QCheckBox" name="checklog">
@@ -2871,7 +2998,7 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -2890,7 +3017,7 @@
<property name="geometry">
<rect>
<x>22</x>
- <y>175</y>
+ <y>205</y>
<width>80</width>
<height>30</height>
</rect>
@@ -2898,11 +3025,17 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="text">
<string>About</string>
</property>
@@ -2919,11 +3052,17 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="text">
<string>Run</string>
</property>
@@ -2932,7 +3071,7 @@
<property name="geometry">
<rect>
<x>22</x>
- <y>235</y>
+ <y>265</y>
<width>80</width>
<height>30</height>
</rect>
@@ -2940,11 +3079,17 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="text">
<string>Exit</string>
</property>
@@ -2961,11 +3106,17 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
<property name="text">
<string>Fonts</string>
</property>
@@ -2982,7 +3133,7 @@
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@@ -3012,6 +3163,15 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="font">
+ <font>
+ <family>Serif</family>
+ <pointsize>8</pointsize>
+ </font>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
<item>
<property name="text">
<string>Borwein</string>
@@ -3023,6 +3183,33 @@
</property>
</item>
</widget>
+ <widget class="QPushButton" name="updateButton">
+ <property name="geometry">
+ <rect>
+ <x>22</x>
+ <y>175</y>
+ <width>80</width>
+ <height>30</height>
+ </rect>
+ </property>
+ <property name="font">
+ <font>
+ <family>Serif</family>
+ <pointsize>8</pointsize>
+ <weight>75</weight>
+ <bold>true</bold>
+ </font>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
+ </property>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
+ <property name="text">
+ <string>Update</string>
+ </property>
+ </widget>
</widget>
<widget class="QPushButton" name="stopButton">
<property name="enabled">
@@ -3031,7 +3218,7 @@
<property name="geometry">
<rect>
<x>462</x>
- <y>570</y>
+ <y>600</y>
<width>80</width>
<height>30</height>
</rect>
@@ -3094,7 +3281,7 @@
<property name="geometry">
<rect>
<x>462</x>
- <y>450</y>
+ <y>480</y>
<width>80</width>
<height>30</height>
</rect>
@@ -3475,7 +3662,7 @@
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
- <enum>QFrame::Raised</enum>
+ <enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
@@ -3486,14 +3673,17 @@
<property name="wordWrap">
<bool>false</bool>
</property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
- <widget class="QTextBrowser" name="AboutTerminal">
+ <widget class="QTextEdit" name="TextTerminal">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
- <width>421</width>
- <height>531</height>
+ <width>420</width>
+ <height>555</height>
</rect>
</property>
<property name="palette">
@@ -3538,60 +3728,17 @@
<family>Courier New</family>
</font>
</property>
- <property name="openLinks">
- <bool>false</bool>
+ <property name="focusPolicy">
+ <enum>Qt::ClickFocus</enum>
</property>
- </widget>
- <widget class="QTextEdit" name="TextTerminal">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>80</y>
- <width>421</width>
- <height>531</height>
- </rect>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
</property>
- <property name="palette">
- <palette>
- <active>
- <colorrole role="Base">
- <brush brushstyle="SolidPattern">
- <color alpha="255">
- <red>204</red>
- <green>221</green>
- <blue>255</blue>
- </color>
- </brush>
- </colorrole>
- </active>
- <inactive>
- <colorrole role="Base">
- <brush brushstyle="SolidPattern">
- <color alpha="255">
- <red>204</red>
- <green>221</green>
- <blue>255</blue>
- </color>
- </brush>
- </colorrole>
- </inactive>
- <disabled>
- <colorrole role="Base">
- <brush brushstyle="SolidPattern">
- <color alpha="255">
- <red>244</red>
- <green>244</green>
- <blue>244</blue>
- </color>
- </brush>
- </colorrole>
- </disabled>
- </palette>
+ <property name="frameShape">
+ <enum>QFrame::StyledPanel</enum>
</property>
- <property name="font">
- <font>
- <family>Courier New</family>
- </font>
+ <property name="frameShadow">
+ <enum>QFrame::Raised</enum>
</property>
<property name="readOnly">
<bool>true</bool>
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/MainWindow.ui.osx.sh
^
|
@@ -0,0 +1,8 @@
+#!/bin/sh
+cat MainWindow.ui |sed 's/Serif/Monaco/'|sed 's/Courier New/Monaco/' > MainWindow.ui.osx
+rm -rf MainWindow.ui
+mv MainWindow.ui.osx MainWindow.ui
+
+
+
+
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/SplashForm.cpp
^
|
@@ -1,7 +1,64 @@
+/* SplashForm.cpp
+//
+// Copyright 2005-2011 Lucas Tsatiris <systester.project@gmail.com>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+// MA 02110-1301, USA.
+//
+*/
#include "SplashForm.h"
-SplashForm::SplashForm ()
+SplashWindow::SplashWindow (QWidget * parent):
+QDialog (parent), ui (new Ui::SplashWindow)
{
- setupUi (this);
+ ui->setupUi (this);
+ Info = new InfoWindow;
+
+ connect (ui->licenseButton, SIGNAL (clicked ()), this,
+ SLOT (licenseButton_clicked ()));
+}
+
+SplashWindow::~SplashWindow ()
+{
+ delete Info;
+}
+
+void
+SplashWindow::hideButtons ()
+{
+ ui->licenseButton->hide ();
+ ui->closeButton->hide ();
+ ui->waitEdit->show ();
+ ui->copyrightEdit->clearHistory ();
+ ui->copyrightEdit->setOpenExternalLinks (TRUE);
+ ui->copyrightEdit->setOpenLinks (TRUE);
}
+
+void
+SplashWindow::showButtons ()
+{
+ ui->licenseButton->show ();
+ ui->closeButton->show ();
+ ui->waitEdit->hide ();
+ ui->copyrightEdit->setVisible (TRUE);
+}
+
+void
+SplashWindow::licenseButton_clicked ()
+{
+ Info->show ();
+}
+
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/SplashForm.h
^
|
@@ -1,11 +1,50 @@
+/* SplashForm.h
+//
+// Copyright 2005-2012 Lucas Tsatiris <systester.project@gmail.com>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+// MA 02110-1301, USA.
+//
+*/
-#include ".ui/ui_SplashWindow.h"
+#if !defined (SPLASHFORM_H)
+#define SPLASHFORM_H
-class SplashForm:public QDialog, private
- Ui::SplashWindow
-{
+#include <QDialog>
+#include "ui_SplashWindow.h"
+#include "InfoForm.h"
+
+namespace Ui {
+ class SplashWindow;
+}
+class SplashWindow:public QDialog
+{
+ Q_OBJECT
public:
- SplashForm ();
+ explicit SplashWindow (QWidget *parent = 0);
+ ~SplashWindow ();
+ void hideButtons ();
+ void showButtons ();
+private:
+ Ui::SplashWindow *ui;
+ InfoWindow *Info;
+
+private slots:
+ void licenseButton_clicked ();
};
+
+#endif /* SPLASHFORM_H */
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/SplashWindow.ui
^
|
@@ -3,14 +3,14 @@
<class>SplashWindow</class>
<widget class="QDialog" name="SplashWindow">
<property name="windowModality">
- <enum>Qt::NonModal</enum>
+ <enum>Qt::ApplicationModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
- <width>400</width>
- <height>250</height>
+ <width>430</width>
+ <height>270</height>
</rect>
</property>
<property name="sizePolicy">
@@ -21,20 +21,20 @@
</property>
<property name="minimumSize">
<size>
- <width>400</width>
- <height>250</height>
+ <width>430</width>
+ <height>270</height>
</size>
</property>
<property name="maximumSize">
<size>
- <width>400</width>
- <height>250</height>
+ <width>430</width>
+ <height>270</height>
</size>
</property>
<property name="baseSize">
<size>
- <width>400</width>
- <height>250</height>
+ <width>430</width>
+ <height>270</height>
</size>
</property>
<property name="palette">
@@ -402,7 +402,7 @@
<enum>Qt::ClickFocus</enum>
</property>
<property name="windowTitle">
- <string>System Stability Tester. Version 1.3.0</string>
+ <string>System Stability Tester v1.5.1</string>
</property>
<property name="windowIcon">
<iconset resource="resource.qrc">
@@ -411,8 +411,8 @@
<widget class="QLabel" name="GenericCPUPixmap">
<property name="geometry">
<rect>
- <x>80</x>
- <y>20</y>
+ <x>177</x>
+ <y>22</y>
<width>75</width>
<height>75</height>
</rect>
@@ -439,41 +439,74 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel" name="StabilityPixmap">
+ <widget class="QTextEdit" name="systesterEdit">
<property name="geometry">
<rect>
- <x>195</x>
- <y>50</y>
- <width>114</width>
- <height>24</height>
+ <x>5</x>
+ <y>110</y>
+ <width>425</width>
+ <height>40</height>
</rect>
</property>
- <property name="font">
- <font>
- <pointsize>15</pointsize>
- <weight>75</weight>
- <bold>true</bold>
- </font>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
</property>
- <property name="text">
- <string/>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
</property>
- <property name="pixmap">
- <pixmap resource="resource.qrc">:/images/images/stability.png</pixmap>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
</property>
- <property name="scaledContents">
+ <property name="acceptDrops">
+ <bool>false</bool>
+ </property>
+ <property name="autoFillBackground">
<bool>true</bool>
</property>
- <property name="wordWrap">
+ <property name="styleSheet">
+ <string notr="true">background: transparent;</string>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Plain</enum>
+ </property>
+ <property name="verticalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOff</enum>
+ </property>
+ <property name="horizontalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOff</enum>
+ </property>
+ <property name="undoRedoEnabled">
<bool>false</bool>
</property>
+ <property name="lineWrapMode">
+ <enum>QTextEdit::WidgetWidth</enum>
+ </property>
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
+ <property name="html">
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:18pt; font-weight:600;">System Stability Tester</span></p></body></html></string>
+ </property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
</widget>
- <widget class="QLabel" name="WaitLabel">
+ <widget class="QTextEdit" name="waitEdit">
<property name="geometry">
<rect>
- <x>0</x>
- <y>160</y>
- <width>400</width>
+ <x>109</x>
+ <y>230</y>
+ <width>220</width>
<height>30</height>
</rect>
</property>
@@ -483,99 +516,173 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
- <size>
- <width>400</width>
- <height>30</height>
- </size>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
</property>
- <property name="maximumSize">
- <size>
- <width>400</width>
+ <property name="contextMenuPolicy">
+ <enum>Qt::NoContextMenu</enum>
+ </property>
+ <property name="acceptDrops">
+ <bool>false</bool>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">background: transparent;</string>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Plain</enum>
+ </property>
+ <property name="lineWrapMode">
+ <enum>QTextEdit::WidgetWidth</enum>
+ </property>
+ <property name="html">
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:12pt; font-weight:600; font-style:italic;">Please wait...</span></p></body></html></string>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="licenseButton">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>230</y>
+ <width>90</width>
<height>30</height>
- </size>
+ </rect>
</property>
<property name="font">
<font>
<family>Serif</family>
- <pointsize>10</pointsize>
+ <pointsize>8</pointsize>
<weight>75</weight>
- <italic>true</italic>
<bold>true</bold>
</font>
</property>
- <property name="text">
- <string><h1>Please Wait...</h1></string>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
</property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
+ <property name="autoFillBackground">
+ <bool>false</bool>
</property>
- <property name="wordWrap">
+ <property name="styleSheet">
+ <string notr="true"/>
+ </property>
+ <property name="text">
+ <string>License</string>
+ </property>
+ <property name="autoDefault">
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel" name="SystemPixmap">
+ <widget class="QPushButton" name="closeButton">
<property name="geometry">
<rect>
- <x>210</x>
- <y>20</y>
- <width>92</width>
- <height>23</height>
+ <x>340</x>
+ <y>230</y>
+ <width>80</width>
+ <height>30</height>
</rect>
</property>
<property name="font">
<font>
- <family>Sans Serif</family>
- <pointsize>15</pointsize>
+ <family>Serif</family>
+ <pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
- <property name="text">
- <string/>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
</property>
- <property name="pixmap">
- <pixmap resource="resource.qrc">:/images/images/system.png</pixmap>
+ <property name="autoFillBackground">
+ <bool>false</bool>
</property>
- <property name="scaledContents">
- <bool>true</bool>
+ <property name="styleSheet">
+ <string notr="true"/>
</property>
- <property name="wordWrap">
+ <property name="text">
+ <string>Close</string>
+ </property>
+ <property name="autoDefault">
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel" name="TesterPixmap">
+ <widget class="QTextBrowser" name="copyrightEdit">
<property name="geometry">
<rect>
- <x>210</x>
- <y>80</y>
- <width>85</width>
- <height>25</height>
+ <x>5</x>
+ <y>145</y>
+ <width>425</width>
+ <height>75</height>
</rect>
</property>
- <property name="font">
- <font>
- <pointsize>15</pointsize>
- <weight>75</weight>
- <bold>true</bold>
- </font>
+ <property name="focusPolicy">
+ <enum>Qt::NoFocus</enum>
</property>
- <property name="text">
- <string/>
+ <property name="autoFillBackground">
+ <bool>true</bool>
</property>
- <property name="pixmap">
- <pixmap resource="resource.qrc">:/images/images/tester.png</pixmap>
+ <property name="styleSheet">
+ <string notr="true">background: transparent;</string>
</property>
- <property name="scaledContents">
+ <property name="frameShape">
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Plain</enum>
+ </property>
+ <property name="verticalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOff</enum>
+ </property>
+ <property name="horizontalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOff</enum>
+ </property>
+ <property name="lineWrapMode">
+ <enum>QTextEdit::NoWrap</enum>
+ </property>
+ <property name="html">
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:11pt; font-style:italic;">(c) 2005-2012 Lucas Tsatiris. All rights reserved.</span></p>
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:11pt; font-style:italic;">systester.project@gmail.com</span></p>
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://systester.sourceforge.net"><span style=" font-family:'Sans Serif'; font-size:11pt; text-decoration: underline; color:#0000ff;">http://systester.sourceforge.net</span></a></p></body></html></string>
+ </property>
+ <property name="textInteractionFlags">
+ <set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
+ </property>
+ <property name="openExternalLinks">
<bool>true</bool>
</property>
- <property name="wordWrap">
- <bool>false</bool>
+ <property name="openLinks">
+ <bool>true</bool>
</property>
</widget>
</widget>
<resources>
<include location="resource.qrc"/>
</resources>
- <connections/>
+ <connections>
+ <connection>
+ <sender>closeButton</sender>
+ <signal>clicked()</signal>
+ <receiver>SplashWindow</receiver>
+ <slot>hide()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>379</x>
+ <y>224</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>214</x>
+ <y>124</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
</ui>
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/checksum.cpp
^
|
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
// MA 02110-1301, USA.
//
-*/
+*/
/*
@@ -100,6 +100,44 @@
return (~sum >> 16);
}
+/* Checksum validation */
+int
+validate_checksum (int prec, char *pistr)
+{
+ int prec_table[11] = {
+ 131072, 262144, 524288, 1048576, 2097152,
+ 4194304, 8388608, 16777216, 33554432,
+ 67108864, 134217728
+ }, n;
+
+ unsigned short checksum[11] = {
+ 21500, 27186, 156, 22100, 14020,
+ 11126, 19420, 58, 14711, 16470, 60748
+ }, validsum;
+
+
+ validsum = checksum16 ((unsigned char *) pistr, prec);
+
+ n = 0;
+loop_top:
+ if (prec_table[n] == prec)
+ {
+ if (validsum == checksum[n])
+ return 1; /* valid checksum - TRUE */
+ return 0; /* invalid checksum - FALSE */
+ }
+
+ n++;
+ if (n < 11)
+ goto loop_top;
+
+ return 0; /* subscript out of range: return FALSE */
+}
+
+/*
+ * Nasty 32bit gcc bug makes this piece of code useless
+ * Re-implemented above using lookup tables
+ *
int
validate_checksum (int prec, char *pistr)
{
@@ -114,16 +152,16 @@
validsum = checksum16 ((unsigned char *) pistr, prec);
logbase2 = (log10 ((double) prec) / log10 ((double) 2));
-/* Eqv as the above line but it seems less portable.
- FreeBSD rejects it
- logbase2 = log2 ((double) prec);
-*/
+// Eqv as the above line but it seems less portable.
+// FreeBSD rejects it
+// logbase2 = log2 ((double) prec);
+
n = (int) logbase2;
if (validsum == checksum[n - 17])
- return 1; /* valid checksum - TRUE */
+ return 1; // valid checksum - TRUE
- return 0; /* invalid checksum - FALSE */
+ return 0; // invalid checksum - FALSE
}
-
+*/
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/cli/Makefile
^
|
@@ -1,16 +1,38 @@
-CPPFLAGS=-I.. -I/usr/local/include
-LDFLAGS=-L/usr/local/lib -lgmp -lpthread -lm
-CC=gcc
+# Makefile for GNU make 3.81 or later
+
+LIBS=-lgmp -lpthread
+OS := $(shell uname)
+ARCH := $(shell uname -m)
+
+ifeq ($(CPPFLAGS),)
+CPPFLAGS=-I..
+else
+CPPFLAGS+=-I..
+endif
+
+ifeq ($(CC),)
+CC=cc
+endif
+
+ifeq ($(CFLAGS),)
CFLAGS=-O
+endif
+### Linux
+# ifeq ($(OS),Linux)
+# LIBS+=-lpthread
+# endif
all: cli lite
cli:
- $(CC) -D_CLI $(CPPFLAGS) $(CFLAGS) systester-cli.c -o systester-cli $(LDFLAGS)
+ $(CC) -D_CLI $(CPPFLAGS) $(CFLAGS) systester-cli.c -o systester-cli $(LDFLAGS) $(LIBS)
lite:
- $(CC) -D_CLI -D_LITE $(CPPFLAGS) $(CFLAGS) systester-cli.c -o systester-lite $(LDFLAGS)
-
+ $(CC) -D_CLI -D_LITE $(CPPFLAGS) $(CFLAGS) systester-cli.c -o systester-lite $(LDFLAGS) $(LIBS)
+
+strip:
+ strip systester-cli
+ strip systester-lite
clean:
rm -rf systester-cli systester-lite systester-cli.exe systester-lite.exe
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/cli/make-mpir32.bat
^
|
@@ -1 +1,2 @@
cl /O2 /I "\3rdparty-win32\include" /I ".." /D__GMP_LIBGMP_DLL /D_CLI systester-cli.c mpir.lib /link /RELEASE /SUBSYSTEM:CONSOLE /LIBPATH:\3rdparty-win32\lib
+cl /O2 /I "\3rdparty-win32\include" /I ".." /D__GMP_LIBGMP_DLL /D_CLI /D_LITE systester-cli.c mpir.lib /link /RELEASE /SUBSYSTEM:CONSOLE /LIBPATH:\3rdparty-win32\lib /OUT:systester-lite.exe
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/conf.pri
^
|
@@ -0,0 +1,6 @@
+# qconf
+
+PREFIX = /usr/local
+BINDIR = /usr/local/bin
+
+
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/configure
^
|
@@ -10,12 +10,11 @@
This script creates necessary configuration files to build/install.
Main options:
- --prefix=[path] Base path for build/install. Default: /usr/local
- --bindir=[path] Directory for binaries. Default: PREFIX/bin
- --datadir=[path] Directory for data. Default: PREFIX/share
- --qtdir=[path] Directory where Qt is installed.
- --verbose Show extra configure output.
- --help This help text.
+ --prefix=[path] Base path for build/install. Default: /usr/local
+ --bindir=[path] Directory for binaries. Default: PREFIX/bin
+ --qtdir=[path] Directory where Qt is installed.
+ --verbose Show extra configure output.
+ --help This help text.
EOT
}
@@ -122,11 +121,6 @@
shift
;;
- --datadir=*)
- DATADIR=$optarg
- shift
- ;;
-
--qtdir=*)
EX_QTDIR=$optarg
shift
@@ -143,7 +137,6 @@
PREFIX=${PREFIX:-/usr/local}
BINDIR=${BINDIR:-$PREFIX/bin}
-DATADIR=${DATADIR:-$PREFIX/share}
echo "Configuring systester ..."
@@ -151,7 +144,6 @@
echo
echo PREFIX=$PREFIX
echo BINDIR=$BINDIR
-echo DATADIR=$DATADIR
echo EX_QTDIR=$EX_QTDIR
echo
fi
@@ -254,23 +246,23 @@
gen_files() {
cat >$1/modules.cpp <<EOT
-#line 1 "qt41.qcm"
+#line 1 "qt453.qcm"
/*
For license information, see the COPYING file in the qconf base directory.
-----BEGIN QCMOD-----
-name: Qt >= 4.1
+name: Qt >= 4.5.3
-----END QCMOD-----
*/
-class qc_qt41 : public ConfObj
+class qc_qt453 : public ConfObj
{
public:
- qc_qt41(Conf *c) : ConfObj(c) {}
- QString name() const { return "Qt >= 4.1"; }
- QString shortname() const { return "qt41"; }
+ qc_qt453(Conf *c) : ConfObj(c) {}
+ QString name() const { return "Qt >= 4.5.3"; }
+ QString shortname() const { return "qt453"; }
bool exec()
{
- return(QT_VERSION >= 0x040100);
+ return(QT_VERSION >= 0x040503);
}
};
#line 1 "gmp421.qcm"
@@ -307,7 +299,7 @@
EOT
cat >$1/modules_new.cpp <<EOT
- o = new qc_qt41(conf);
+ o = new qc_qt453(conf);
o->required = true;
o->disabled = false;
o = new qc_gmp421(conf);
@@ -1244,7 +1236,7 @@
CONFIG -= app_bundle
QT -= gui
TARGET = conf
-LIBS += -lgmp
+
HEADERS += conf4.h
SOURCES += conf4.cpp
@@ -1256,7 +1248,6 @@
export PREFIX
export BINDIR
-export DATADIR
export EX_QTDIR
export QC_VERBOSE
rm -rf .qconftemp
|
|
Added |
systester-1.5.1.tar.bz2/images/flattr.png
^
|
|
Added |
systester-1.5.1.tar.bz2/images/systester.png
^
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/install-desktop.sh
^
|
@@ -0,0 +1,2 @@
+cp images/systester.png /usr/share/pixmaps
+cp systester.desktop /usr/share/applications
\ No newline at end of file
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/main.cpp
^
|
@@ -1,23 +1,23 @@
/* main.cpp
-//
+//
// Copyright 2005-2011 Lucas Tsatiris <systester.project@gmail.com>
-//
+//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
-//
+//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-//
+//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
// MA 02110-1301, USA.
-//
-*/
+//
+*/
#include <qapplication.h>
#include "MainForm.h"
@@ -29,7 +29,6 @@
Systester.processEvents (QEventLoop::AllEvents, 1000);
MainForm Main;
Main.onload ();
- //Main.show ();
Systester.connect (&Systester, SIGNAL (lastWindowClosed ()), &Systester,
SLOT (quit ()));
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/master.cpp
^
|
@@ -57,7 +57,7 @@
prec += prec;
xdigits = prec;
pth_stacksize = xdigits * 2;
- bits = (unsigned long long) (prec * 3.33);
+ bits = (unsigned long) ((prec / 9) * 32) + 2;
PRINT (" Calculating %ld digits of pi\n", (unsigned long) xdigits);
/*
@@ -332,7 +332,8 @@
PRINT ("%s", " Creating CPUPI.DAT...");
PROCESS_EVENTS;
- fp = fopen ("CPUPI.DAT", "w");
+ //fp = fopen ("CPUPI.DAT", "w");
+ fp = fopen (CPUPI_FILE_PATH, "w");
fprintf (fp, " PI=3.%c%c", 10, 13);
memset (column, ' ', 110);
@@ -386,7 +387,8 @@
if (lflag)
{
- logfile = fopen ("systester.log", "a+");
+ //logfile = fopen ("systester.log", "a+");
+ logfile = fopen (LOG_FILE_PATH, "a+");
fprintf (logfile, " Turn:%4d Errors:%4d Threads:%4d", pass, errors,
threads);
fprintf (logfile,
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/mem.cpp
^
|
@@ -40,8 +40,14 @@
#if defined(__hppa) /* HPUX */
#include <sys/param.h>
#include <sys/pstat.h>
+#else
+#if defined (__APPLE__) /* Mac OS X */
+#include <stdint.h>
+#include <sys/types.h>
+#include <sys/sysctl.h>
#else /* All others */
#include <unistd.h>
+#endif /* __APPLE__ */
#endif /* __hppa */
#endif /* __osf__ */
#endif /* _MSC_VER ... */
@@ -65,12 +71,22 @@
struct pst_static pst;
if (pstat_getstatic (&pst, sizeof (pst), (size_t) 1, 0) != -1)
systemram = (double) pst.physical_memory * 1024;
+#else
+#if defined (__APPLE__) /* Mac OS X */
+ uint64_t size;
+ size_t len = sizeof(size);
+ int mib[2] = { CTL_HW, HW_MEMSIZE };
+ u_int namelen = sizeof(mib) / sizeof(mib[0]);
+
+ if (sysctl(mib, namelen, &size, &len, NULL, 0) == 0)
+ systemram = (double) size;
#else
#if defined (_MSC_VER) || defined (__MINGW32__) /* Microsoft Windows */
MEMORYSTATUS memstatus;
GlobalMemoryStatus (&memstatus);
systemram = memstatus.dwTotalPhys;
#endif /* _MSC_VER */
+#endif /* __APPLE__ */
#endif /* __hppa */
#endif /* __osf__ */
#endif /* __linux || __sun */
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/qconf/modules/qt453.qcm
^
|
@@ -0,0 +1,18 @@
+/*
+For license information, see the COPYING file in the qconf base directory.
+
+-----BEGIN QCMOD-----
+name: Qt >= 4.5.3
+-----END QCMOD-----
+*/
+class qc_qt453 : public ConfObj
+{
+public:
+ qc_qt453(Conf *c) : ConfObj(c) {}
+ QString name() const { return "Qt >= 4.5.3"; }
+ QString shortname() const { return "qt453"; }
+ bool exec()
+ {
+ return(QT_VERSION >= 0x040503);
+ }
+};
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/qconf/systester.qc
^
|
@@ -1,6 +1,6 @@
<qconf>
<name>systester</name>
<profile>systester.pro</profile>
- <dep type='qt41'> <required/> </dep>
+ <dep type='qt453'> <required/> </dep>
<dep type='gmp421'> <required/> </dep>
</qconf>
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/resource.qrc
^
|
@@ -1,13 +1,11 @@
<RCC>
- <qresource prefix="images" >
- <file>images/amd.png</file>
- <file>images/cpu.ico</file>
- <file>images/cpu.png</file>
- <file>images/cpu1.png</file>
- <file>images/hp.png</file>
- <file>images/intel.png</file>
- <file>images/stability.png</file>
- <file>images/system.png</file>
- <file>images/tester.png</file>
- </qresource>
+ <qresource prefix="images" >
+ <file>images/amd.png</file>
+ <file>images/flattr.png</file>
+ <file>images/cpu.ico</file>
+ <file>images/cpu.png</file>
+ <file>images/cpu1.png</file>
+ <file>images/hp.png</file>
+ <file>images/intel.png</file>
+ </qresource>
</RCC>
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/systester-mpir32.pro
^
|
@@ -5,6 +5,8 @@
LIBS += -lmpir
+QT += network
+
win32 : LIBS += -L..\3rdparty-win32\lib
win32 : INCLUDEPATH += ..\3rdparty-win32\include
@@ -12,8 +14,8 @@
FORMS = MainWindow.ui \
- SplashWindow.ui
-
+ SplashWindow.ui \
+ InfoWindow.ui
unix {
UI_DIR = .ui
@@ -45,7 +47,8 @@
pitimer.cpp \
outtime.cpp \
outxdigits.cpp \
-MainForm.cpp
+MainForm.cpp \
+InfoForm.cpp
HEADERS += MainForm.h \
pi.h \
@@ -53,6 +56,7 @@
qcborwein.h \
compthreads.h \
SplashForm.h \
+ InfoForm.h \
gausslegendre.h
RESOURCES += resource.qrc
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/systester-mpir64.pro
^
|
@@ -5,6 +5,8 @@
LIBS += -lmpir
+QT += network
+
win32 : LIBS += -L..\3rdparty-win64\lib
win32 : INCLUDEPATH += ..\3rdparty-win64\include
@@ -12,7 +14,8 @@
FORMS = MainWindow.ui \
- SplashWindow.ui
+ SplashWindow.ui \
+ InfoWindow.ui
unix {
@@ -45,7 +48,8 @@
pitimer.cpp \
outtime.cpp \
outxdigits.cpp \
-MainForm.cpp
+MainForm.cpp \
+InfoForm.cpp
HEADERS += MainForm.h \
pi.h \
@@ -53,6 +57,7 @@
qcborwein.h \
compthreads.h \
SplashForm.h \
+ InfoForm.h \
gausslegendre.h
RESOURCES += resource.qrc
|
[-]
[+]
|
Added |
systester-1.5.1.tar.bz2/systester.desktop
^
|
@@ -0,0 +1,8 @@
+[Desktop Entry]
+GenericName=System stability tester
+Name=Systester
+Exec=systester
+Icon=/usr/share/pixmaps/systester.png
+Type=Application
+Terminal=false
+Categories=Qt;System;
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/systester.h
^
|
@@ -1,31 +1,31 @@
/* systester.h
-//
+//
// Copyright 2005-2011 Lucas Tsatiris <systester.project@gmail.com>
-//
+//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
-//
+//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-//
+//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
// MA 02110-1301, USA.
-//
-*/
+//
+*/
#if !defined(SYSTESTER_H)
#define SYSTESTER_H 1
#define SYSTESTER_MAJOR 1
-#define SYSTESTER_MINOR 3
-#define SYSTESTER_PATCH 0
+#define SYSTESTER_MINOR 5
+#define SYSTESTER_PATCH 1
#if defined (_MSC_VER) /* Visual Studio */
#define _CRT_SECURE_NO_WARNINGS
@@ -47,14 +47,21 @@
#include "qcborwein.h"
#include "gausslegendre.h"
-#if !defined (_CLI)
-#include "MainForm.h"
+#if !defined (_CLI) /* GUI */
+#include <QDesktopServices>
+#include <QDir>
#include "SplashForm.h"
+#include "MainForm.h"
extern QFont globalfont, termfont;
extern QTextEdit *Terminal;
-#define PROCESS_EVENTS Terminal->setText (termstr);qApp->processEvents (QEventLoop::AllEvents, 1000)
+#define SCROLL VSBar->setSliderPosition(VSBar->maximum());VSBar->update();
+#define PROCESS_EVENTS Terminal->setText (termstr);SCROLL;qApp->processEvents (QEventLoop::AllEvents, 1000)
#define PRINT(fmt,str) {sprintf(tempstr, fmt, str);strcat (termstr, tempstr);}
-#else /* GUI */
+#define CPUPI_FILE_PATH QString (QDesktopServices::storageLocation(QDesktopServices::HomeLocation) + QDir::separator() + "CPUPI.DAT").toLocal8Bit().data()
+#define LOG_FILE_PATH QString (QDesktopServices::storageLocation(QDesktopServices::HomeLocation) + QDir::separator() + "systester.log").toLocal8Bit().data()
+#else /* CLI */
+#define CPUPI_FILE_PATH "CPUPI.DAT"
+#define LOG_FILE_PATH "systester.log"
#define PROCESS_EVENTS
#define PRINT(fmt, str) printf(fmt,str)
#endif /* _CLI */
|
[-]
[+]
|
Changed |
systester-1.5.1.tar.bz2/systester.pro
^
|
@@ -3,23 +3,24 @@
LANGUAGE = C++
CONFIG += qt warn_on release -static
-
-LIBS += -lgmp
-
-win32 : LIBS += -L..\3rdparty\lib
-
-win32 : INCLUDEPATH += ..\3rdparty\include
-
-
+QT += network
FORMS = MainWindow.ui \
- SplashWindow.ui
+ SplashWindow.ui \
+ InfoWindow.ui
+win32 {
+ LIBS += -L..\3rdparty\lib
+ INCLUDEPATH += ..\3rdparty\include
+ LIBS += -lmpir
+}
unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
+ LIBS += -lgmp
+ QMAKE_POST_LINK = strip $(TARGET)
}
INSTALLS += target
@@ -44,14 +45,16 @@
pitimer.cpp \
outtime.cpp \
outxdigits.cpp \
-MainForm.cpp
+MainForm.cpp \
+InfoForm.cpp
HEADERS += MainForm.h \
-pi.h \
-systester.h \
+ pi.h \
+ systester.h \
qcborwein.h \
compthreads.h \
SplashForm.h \
+ InfoForm.h \
gausslegendre.h
RESOURCES += resource.qrc
|