Commit 0490c1e6 authored by Christian Stenger's avatar Christian Stenger

Re-Initialized after re-setting up jenkins host

parents
Pipeline #2366 failed with stages
Squish_32/*
Squish_64/*
Squish_47x_MacOSX/*
Squish_MinGW/*
Squish_MSVC9/*
Squish_MSVC10/*
Squish4.2_32/*
Squish4.2_64/*
Squish4.2_Mac/*
Squish4.2_MinGW/*
Squish4.2_MSVC9/*
Squish4.2_MSVC10/*
Squish5_47_Linux32/*
Squish5_47_Linux64/*
Squish5_47_Mac/*
Squish5_48_Linux32/*
Squish5_48_Linux64/*
Squish5_48_Mac/*
Squish5_50_Mac/*
Squish5_50_Linux32/*
Squish5_50_Linux64/*
Squish5_50_MinGW/*
Squish5_50_MSVC10/*
Please use the environment variable QTC_TEST_EXTRADATALOCATION
to point to the top level of this repository.
Tests that need this data are expected to just return when
this environment variable is not set!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
This is not executable! This is not executable! This is not executable! This is not executable!
<p align="center"><img src="/src/resources/speedcrunch.png"></p>
# SpeedCrunch
A cross-platform, keyboard-oriented desktop scientific calculator.
## Installing
For release package downloads see the [official page](http://www.speedcrunch.org/).
To build from source, use either CMake or QMake to build the project:
cd src && cmake . && make
or
cd src && qmake speedcrunch.pro && make
In order to have your application settings stored in the same location as
the executable for portability (e.g. running from a USB drive or a directory
without requiring installation and special permissions), configure the project
as below:
cmake -DCMAKE_CXX_FLAGS:STRING="-DSPEEDCRUNCH_PORTABLE"
or
qmake "DEFINES+=SPEEDCRUNCH_PORTABLE" speedcrunch.pro
## Contributing
- Report bugs or request features in the [issue tracker](http://code.google.com/p/speedcrunch/issues/list).
- Add or improve a [translation](https://www.transifex.com/projects/p/speedcrunch/).
- Send a message to the [forum](https://groups.google.com/group/speedcrunch).
- Follow the news on the [blog](http://speedcrunch.blogspot.com).
## License
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.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>CFBundleIconFile</key>
<string>speedcrunch.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>SpeedCrunch</string>
<key>CFBundleIdentifier</key>
<string>org.speedcrunch</string>
<key>CFBundleShortVersionString</key>
<string>0.11</string>
</dict>
</plist>
[Desktop Entry]
Name=SpeedCrunch
GenericName=High precision calculator
GenericName[nl]=Rekenmachine met hoge nauwkeurigheid
GenericName[pt]=Calculadora de alta precisão
GenericName[tr]=Yüksek duyarlıklı hesap makinesi
Exec=speedcrunch
Icon=speedcrunch
Type=Application
Categories=Qt;Utility;Calculator;
#define APPTITLE "SpeedCrunch"
#define SPEEDCRUNCHEXE "..\src\release\" + APPTITLE + ".exe"
#define NUMERICVERSION GetFileVersion(SPEEDCRUNCHEXE)
#define VERSION "0.11" ; GetFileVersionString(SPEEDCRUNCHEXE)
#define URL "http://speedcrunch.org"
#define COPYRIGHT "2004-2013 " + URL
[Setup]
AllowNoIcons=yes
AppName={#APPTITLE}
AppPublisher={#APPTITLE}
AppPublisherURL={#URL}
AppSupportURL={#URL}
AppUpdatesURL={#URL}
AppVerName={#APPTITLE} {#VERSION}
Compression=lzma/ultra
DefaultDirName={pf}\{#APPTITLE}
DefaultGroupName={#APPTITLE}
DisableProgramGroupPage=true
LicenseFile=COPYING.rtf
InternalCompressLevel=ultra
OutputBaseFilename={#APPTITLE}-{#VERSION}
OutputDir=.
ShowLanguageDialog=no
SolidCompression=yes
VersionInfoCompany={#URL}
VersionInfoCopyright=Copyright (C) {#COPYRIGHT}
VersionInfoDescription=Keyboard-oriented high-precision scientific calculator
VersionInfoTextVersion={#VERSION}
VersionInfoVersion={#NUMERICVERSION}
WizardImageFile=compiler:WizModernImage-IS.bmp
WizardSmallImageFile=compiler:WizModernSmallImage-IS.bmp
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
Name: "greek"; MessagesFile: "compiler:Languages\Greek.isl"
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "serbian"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: {#SPEEDCRUNCHEXE}; DestDir: "{app}"; Flags: ignoreversion
[Icons]
Name: "{group}\{#APPTITLE}"; Filename: "{app}\{#APPTITLE}.exe"
Name: "{group}\{cm:UninstallProgram,{#APPTITLE}}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\{#APPTITLE}"; Filename: "{app}\{#APPTITLE}.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#APPTITLE}"; Filename: "{app}\{#APPTITLE}.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\{#APPTITLE}.exe"; Description: "{cm:LaunchProgram,{#APPTITLE}}"; Flags: nowait postinstall skipifsilent
PROJECT(speedcrunch)
SET( speedcrunch_VERSION "0.11" )
IF( APPLE )
SET( PROGNAME SpeedCrunch )
SET( MACOSX_BUNDLE_ICON_FILE speedcrunch.icns )
SET( MACOSX_BUNDLE_SHORT_VERSION_STRING ${speedcrunch_VERSION} )
SET( MACOSX_BUNDLE_VERSION ${speedcrunch_VERSION} )
SET( MACOSX_BUNDLE_LONG_VERSION_STRING Version ${speedcrunch_VERSION} )
SET( CMAKE_OSX_ARCHITECTURES x86_64 )
ELSE( APPLE )
SET( PROGNAME speedcrunch )
ENDIF( APPLE )
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4)
IF(COMMAND cmake_policy)
CMAKE_POLICY(SET CMP0003 NEW)
CMAKE_POLICY(SET CMP0005 OLD) # remove this and the quoted arguments in
# ADD_DEFINITONS() once CMake 2.6 is used
ENDIF(COMMAND cmake_policy)
SET(CMAKE_COLOR_MAKEFILE ON)
SET(CMAKE_VERBOSE_MAKEFILE OFF)
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
SET(QT_MIN_VERSION "4.8.0")
ADD_DEFINITIONS("-DSPEEDCRUNCH_VERSION=\\\"${speedcrunch_VERSION}\\\"")
ADD_DEFINITIONS(-DQT_USE_QSTRINGBUILDER)
IF( WIN32 )
ADD_DEFINITIONS(-D_USE_MATH_DEFINES)
SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup" )
ENDIF( WIN32 )
IF( NOT WIN32 )
IF( NOT APPLE )
ADD_DEFINITIONS( -DENABLE_BINRELOC )
ENDIF( NOT APPLE )
ENDIF( NOT WIN32 )
# sources
INCLUDE(SourceFiles.cmake)
IF( MINGW )
# resource compilation for mingw
ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/speedcrunchico.o
COMMAND windres.exe -I${CMAKE_CURRENT_SOURCE_DIR} -i${CMAKE_CURRENT_SOURCE_DIR}/resources/speedcrunch.rc -o ${CMAKE_CURRENT_BINARY_DIR}/speedcrunchico.o )
SET(speedcrunch_SOURCES ${speedcrunch_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/speedcrunchico.o)
ELSE(MINGW)
SET(speedcrunch_SOURCES ${speedcrunch_SOURCES} resources/speedcrunch.rc)
ENDIF(MINGW)
# enable warnings
IF(CMAKE_COMPILER_IS_GNUCXX )
ADD_DEFINITIONS( -Wall )
ENDIF(CMAKE_COMPILER_IS_GNUCXX )
# setup for Qt4
SET(QT_USE_QTNETWORK TRUE)
#SET(QT_USE_QTXML TRUE)
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
# build everything
qt4_add_RESOURCES( speedcrunch_RESOURCES_SOURCES ${speedcrunch_RESOURCES} )
QT4_WRAP_UI( speedcrunch_FORMS_HEADERS ${speedcrunch_FORMS} )
QT4_WRAP_CPP( speedcrunch_HEADERS_MOC ${speedcrunch_HEADERS} )
ADD_EXECUTABLE( ${PROGNAME} WIN32 MACOSX_BUNDLE ${speedcrunch_SOURCES} ${speedcrunch_HEADERS_MOC} ${speedcrunch_RESOURCES_SOURCES} ${speedcrunch_FORMS_HEADERS} )
IF( APPLE )
SET( speedcrunch_RESOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/${PROGNAME}.app/Contents/Resources )
ADD_CUSTOM_COMMAND( TARGET ${PROGNAME} POST_BUILD
COMMAND mkdir ARGS -p ${speedcrunch_RESOURCE_DIR} )
#COMMAND cp ARGS -f resources/${MACOSX_BUNDLE_ICON_FILE} ${speedcrunch_RESOURCE_DIR} )
ENDIF( APPLE )
ADD_CUSTOM_TARGET( confclean COMMAND rm -rf Makefile CMakeFiles/ CMakeCache.txt cmake_install.cmake DartTestfile.txt install_manifest.txt )
find_library(x11 X11)
IF(x11)
TARGET_LINK_LIBRARIES(${PROGNAME} ${QT_LIBRARIES} X11)
ELSE(x11)
TARGET_LINK_LIBRARIES(${PROGNAME} ${QT_LIBRARIES})
ENDIF(x11)
# only needed for static builds when directx is enabled in qt and you
# get a linker error because of missing a directx function
#IF(WIN32)
# TARGET_LINK_LIBRARIES( speedcrunch dxguid )
#ENDIF(WIN32)
# set(EXECUTABLE_OUTPUT_PATH ${speedcrunch_BINARY_DIR}/../bin)
# required for regression tests
ENABLE_TESTING()
ADD_EXECUTABLE(testhmath ${testhmath_SOURCES})
ADD_TEST(testhmath testhmath)
QT4_WRAP_CPP(testevaluator_HEADERS_MOC ${testevaluator_HEADERS})
ADD_EXECUTABLE(testevaluator ${testevaluator_SOURCES} ${testevaluator_HEADERS_MOC})
TARGET_LINK_LIBRARIES(testevaluator ${QT_LIBRARIES})
ADD_TEST(testevaluator testevaluator)
ADD_EXECUTABLE(testfloatnum ${testfloatnum_SOURCES})
ADD_TEST(testfloatnum testfloatnum)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR} thirdparty core gui math)
################################# INSTALL ######################################
# macros, definitions and options
IF(NOT WIN32)
SET(SHAREDIR "share/")
SET(MENUDIR "${SHAREDIR}/applications/")
SET(ICONDIR "${SHAREDIR}/pixmaps/")
ENDIF(NOT WIN32)
# portable edition
OPTION(PORTABLE "Enable to build in portable mode" OFF)
IF(PORTABLE_SPEEDCRUNCH)
ADD_DEFINITIONS(-DSPEEDCRUNCH_PORTABLE)
ENDIF(PORTABLE_SPEEDCRUNCH)
# executable
INSTALL(TARGETS ${PROGNAME}
DESTINATION bin
)
IF(NOT WIN32)
# freedesktop menu
INSTALL(FILES ../pkg/speedcrunch.desktop
DESTINATION ${MENUDIR}
)
# icon
INSTALL(FILES resources/speedcrunch.png
DESTINATION ${ICONDIR}
)
ENDIF(NOT WIN32)
################################ UNINSTALL #####################################
CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
This diff is collapsed.
# speedcrunch
SET(speedcrunch_RESOURCES
resources/speedcrunch.qrc
)
set(speedcrunch_FORMS
)
set(speedcrunch_HEADERS
#thirdparty/binreloc/binreloc.h
core/book.h
core/constants.h
core/evaluator.h
core/functions.h
#core/numberformatter.h
#core/settings.h
#gui/aboutbox.h
gui/application.h
gui/autohidelabel.h
gui/bookdock.h
gui/constantsdock.h
gui/constantswidget.h
gui/resultdisplay.h
gui/editor.h
gui/functionsdock.h
gui/functionswidget.h
gui/historydock.h
gui/historywidget.h
#gui/syntaxhighlighter.h
gui/tipwidget.h
gui/variablesdock.h
gui/variablelistwidget.h
gui/mainwindow.h
#math/floatcommon.h
#math/floatconfig.h
#math/floatconst.h
#math/floatconvert.h
#math/floaterf.h
#math/floatexp.h
#math/floatgamma.h
#math/floathmath.h
#math/floatio.h
#math/floatipower.h
#math/floatlog.h
#math/floatlogic.h
#math/floatlong.h
#math/floatnum.h
#math/floatpower.h
#math/floatseries.h
#math/floattrig.h
#math/hmath.h
#math/number.h
)
set(speedcrunch_SOURCES
main.cpp
thirdparty/binreloc.c
core/book.cpp
core/constants.cpp
core/evaluator.cpp
core/functions.cpp
core/numberformatter.cpp
core/settings.cpp
gui/aboutbox.cpp
gui/application.cpp
gui/autohidelabel.cpp
gui/bookdock.cpp
gui/constantsdock.cpp
gui/constantswidget.cpp
gui/resultdisplay.cpp
gui/editor.cpp
gui/functionsdock.cpp
gui/functionswidget.cpp
gui/historydock.cpp
gui/historywidget.cpp
gui/syntaxhighlighter.cpp
gui/tipwidget.cpp
gui/variablesdock.cpp
gui/variablelistwidget.cpp
gui/mainwindow.cpp
math/floatcommon.c
math/floatconst.c
math/floatconvert.c
math/floaterf.c
math/floatexp.c
math/floatgamma.c
math/floathmath.c
#math/floatincgamma.c
math/floatio.c
math/floatipower.c
math/floatlog.c
math/floatlogic.c
math/floatlong.c
math/floatnum.c
math/floatpower.c
math/floatseries.c
math/floattrig.c
math/hmath.cpp
math/number.c
)
# regression test for HMath
set(testhmath_SOURCES
math/floatcommon.c
math/floatconst.c
math/floatconvert.c
math/floaterf.c
math/floatexp.c
math/floathmath.c
math/floatgamma.c
#math/floatincgamma.c
math/floatio.c
math/floatipower.c
math/floatlog.c
math/floatlogic.c
math/floatlong.c
math/floatnum.c
math/floatpower.c
math/floatseries.c
math/floattrig.c
math/hmath.cpp
math/number.c
tests/testhmath.cpp
)
# regression test for Evaluator
set(testevaluator_HEADERS
core/evaluator.h
core/functions.h
)
set(testevaluator_SOURCES
core/evaluator.cpp
core/functions.cpp
core/settings.cpp
math/floatcommon.c
math/floatconst.c
math/floatconvert.c
math/floaterf.c
math/floatexp.c
math/floathmath.c
math/floatgamma.c
#math/floatincgamma.c
math/floatio.c
math/floatipower.c
math/floatlog.c
math/floatlogic.c
math/floatlong.c
math/floatnum.c
math/floatpower.c
math/floatseries.c
math/floattrig.c
math/hmath.cpp
math/number.c
tests/testevaluator.cpp
)
# regression test for floatnum
set(testfloatnum_SOURCES
math/floatcommon.c
math/floatconst.c
math/floatconvert.c
math/floaterf.c
math/floatexp.c
math/floathmath.c
math/floatgamma.c
math/floatio.c
math/floatipower.c
math/floatlog.c
math/floatlogic.c
math/floatlong.c
math/floatnum.c
math/floatpower.c
math/floatseries.c
math/floattrig.c
math/number.c
tests/testfloatnum.c
)
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF(NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF(NOT "${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
This diff is collapsed.
// This file is part of the SpeedCrunch project
// Copyright (C) 2013 Helder Correia <helder.pereira.correia@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; see the file COPYING. If not, write to
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#ifndef CORE_BOOK_H
#define CORE_BOOK_H
#include <QtCore/QHash>
#include <QtCore/QString>
class Book : public QObject {
Q_OBJECT
public:
explicit Book(QObject* parent = 0);
QString getPageContent(const QString& id);
QString getCurrentPageContent();