Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gertulla, Janis Luca
UE49Interlock
Commits
846111ea
Commit
846111ea
authored
Sep 16, 2020
by
Gertulla, Janis Luca
Browse files
initial commit
parent
e4f5b3a3
Changes
27
Hide whitespace changes
Inline
Side-by-side
UE49Interlock.pro
0 → 100644
View file @
846111ea
QT
+=
core
gui
network
charts
greaterThan
(
QT_MAJOR_VERSION
,
4
)
:
QT
+=
widgets
CONFIG
+=
c
++
17
#
The
following
define
makes
your
compiler
emit
warnings
if
you
use
#
any
Qt
feature
that
has
been
marked
deprecated
(
the
exact
warnings
#
depend
on
your
compiler
).
Please
consult
the
documentation
of
the
#
deprecated
API
in
order
to
know
how
to
port
your
code
away
from
it
.
DEFINES
+=
QT_DEPRECATED_WARNINGS
#
You
can
also
make
your
code
fail
to
compile
if
it
uses
deprecated
APIs
.
#
In
order
to
do
so
,
uncomment
the
following
line
.
#
You
can
also
select
to
disable
deprecated
APIs
only
up
to
a
certain
version
of
Qt
.
#
DEFINES
+=
QT_DISABLE_DEPRECATED_BEFORE
=
0
x060000
#
disables
all
the
APIs
deprecated
before
Qt
6.0
.
0
SOURCES
+=
\
client
.
cpp
\
lib
.
cpp
\
main
.
cpp
\
maintab
.
cpp
\
window
.
cpp
HEADERS
+=
\
client
.
h
\
lib
.
h
\
maintab
.
h
\
window
.
h
FORMS
+=
\
maintab
.
ui
\
window
.
ui
#
Default
rules
for
deployment
.
qnx
:
target
.
path
=
/
tmp
/
$$
{
TARGET
}
/
bin
else
:
unix
:
!
android
:
target
.
path
=
/
opt
/
$$
{
TARGET
}
/
bin
!
isEmpty
(
target
.
path
)
:
INSTALLS
+=
target
RESOURCES
+=
\
visuals
.
qrc
DISTFILES
+=
\
svg
/
valve_closed
.
svg
\
svg
/
valve_open
.
svg
\
svg
/
valve_unknown
.
svg
UE49Interlock.pro.user
0 → 100644
View file @
846111ea
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.13.0, 2020-09-16T08:42:59. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
<value
type=
"QByteArray"
>
{5102e59a-2644-491e-96f1-78759a468b79}
</value>
</data>
<data>
<variable>
ProjectExplorer.Project.ActiveTarget
</variable>
<value
type=
"int"
>
0
</value>
</data>
<data>
<variable>
ProjectExplorer.Project.EditorSettings
</variable>
<valuemap
type=
"QVariantMap"
>
<value
type=
"bool"
key=
"EditorConfiguration.AutoIndent"
>
true
</value>
<value
type=
"bool"
key=
"EditorConfiguration.AutoSpacesForTabs"
>
false
</value>
<value
type=
"bool"
key=
"EditorConfiguration.CamelCaseNavigation"
>
true
</value>
<valuemap
type=
"QVariantMap"
key=
"EditorConfiguration.CodeStyle.0"
>
<value
type=
"QString"
key=
"language"
>
Cpp
</value>
<valuemap
type=
"QVariantMap"
key=
"value"
>
<value
type=
"QByteArray"
key=
"CurrentPreferences"
>
CppGlobal
</value>
</valuemap>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"EditorConfiguration.CodeStyle.1"
>
<value
type=
"QString"
key=
"language"
>
QmlJS
</value>
<valuemap
type=
"QVariantMap"
key=
"value"
>
<value
type=
"QByteArray"
key=
"CurrentPreferences"
>
QmlJSGlobal
</value>
</valuemap>
</valuemap>
<value
type=
"int"
key=
"EditorConfiguration.CodeStyle.Count"
>
2
</value>
<value
type=
"QByteArray"
key=
"EditorConfiguration.Codec"
>
UTF-8
</value>
<value
type=
"bool"
key=
"EditorConfiguration.ConstrainTooltips"
>
false
</value>
<value
type=
"int"
key=
"EditorConfiguration.IndentSize"
>
4
</value>
<value
type=
"bool"
key=
"EditorConfiguration.KeyboardTooltips"
>
false
</value>
<value
type=
"int"
key=
"EditorConfiguration.MarginColumn"
>
80
</value>
<value
type=
"bool"
key=
"EditorConfiguration.MouseHiding"
>
true
</value>
<value
type=
"bool"
key=
"EditorConfiguration.MouseNavigation"
>
true
</value>
<value
type=
"int"
key=
"EditorConfiguration.PaddingMode"
>
1
</value>
<value
type=
"bool"
key=
"EditorConfiguration.ScrollWheelZooming"
>
true
</value>
<value
type=
"bool"
key=
"EditorConfiguration.ShowMargin"
>
false
</value>
<value
type=
"int"
key=
"EditorConfiguration.SmartBackspaceBehavior"
>
0
</value>
<value
type=
"bool"
key=
"EditorConfiguration.SmartSelectionChanging"
>
true
</value>
<value
type=
"bool"
key=
"EditorConfiguration.SpacesForTabs"
>
true
</value>
<value
type=
"int"
key=
"EditorConfiguration.TabKeyBehavior"
>
0
</value>
<value
type=
"int"
key=
"EditorConfiguration.TabSize"
>
8
</value>
<value
type=
"bool"
key=
"EditorConfiguration.UseGlobal"
>
true
</value>
<value
type=
"int"
key=
"EditorConfiguration.Utf8BomBehavior"
>
1
</value>
<value
type=
"bool"
key=
"EditorConfiguration.addFinalNewLine"
>
true
</value>
<value
type=
"bool"
key=
"EditorConfiguration.cleanIndentation"
>
true
</value>
<value
type=
"bool"
key=
"EditorConfiguration.cleanWhitespace"
>
true
</value>
<value
type=
"QString"
key=
"EditorConfiguration.ignoreFileTypes"
>
*.md, *.MD, Makefile
</value>
<value
type=
"bool"
key=
"EditorConfiguration.inEntireDocument"
>
false
</value>
<value
type=
"bool"
key=
"EditorConfiguration.skipTrailingWhitespace"
>
true
</value>
</valuemap>
</data>
<data>
<variable>
ProjectExplorer.Project.PluginSettings
</variable>
<valuemap
type=
"QVariantMap"
>
<valuemap
type=
"QVariantMap"
key=
"AutoTest.ActiveFrameworks"
>
<value
type=
"bool"
key=
"AutoTest.Framework.Boost"
>
true
</value>
<value
type=
"bool"
key=
"AutoTest.Framework.Catch"
>
true
</value>
<value
type=
"bool"
key=
"AutoTest.Framework.GTest"
>
true
</value>
<value
type=
"bool"
key=
"AutoTest.Framework.QtQuickTest"
>
true
</value>
<value
type=
"bool"
key=
"AutoTest.Framework.QtTest"
>
true
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"AutoTest.CheckStates"
/>
<value
type=
"int"
key=
"AutoTest.RunAfterBuild"
>
0
</value>
<value
type=
"bool"
key=
"AutoTest.UseGlobal"
>
true
</value>
<valuelist
type=
"QVariantList"
key=
"ClangCodeModel.CustomCommandLineKey"
/>
<value
type=
"bool"
key=
"ClangCodeModel.UseGlobalConfig"
>
true
</value>
<value
type=
"QString"
key=
"ClangCodeModel.WarningConfigId"
>
Builtin.Questionable
</value>
<valuemap
type=
"QVariantMap"
key=
"ClangTools"
>
<value
type=
"bool"
key=
"ClangTools.BuildBeforeAnalysis"
>
true
</value>
<value
type=
"QString"
key=
"ClangTools.DiagnosticConfig"
>
Builtin.DefaultTidyAndClazy
</value>
<value
type=
"int"
key=
"ClangTools.ParallelJobs"
>
6
</value>
<valuelist
type=
"QVariantList"
key=
"ClangTools.SelectedDirs"
/>
<valuelist
type=
"QVariantList"
key=
"ClangTools.SelectedFiles"
/>
<valuelist
type=
"QVariantList"
key=
"ClangTools.SuppressedDiagnostics"
/>
<value
type=
"bool"
key=
"ClangTools.UseGlobalSettings"
>
true
</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>
ProjectExplorer.Project.Target.0
</variable>
<valuemap
type=
"QVariantMap"
>
<value
type=
"QString"
key=
"DeviceType"
>
Desktop
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Desktop
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Desktop
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
{b245e4ed-75d4-468a-a020-7c788d06f787}
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.ActiveBuildConfiguration"
>
0
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.ActiveDeployConfiguration"
>
0
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.ActiveRunConfiguration"
>
0
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.BuildConfiguration.0"
>
<value
type=
"bool"
>
true
</value>
<value
type=
"int"
key=
"EnableQmlDebugging"
>
0
</value>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Debug
</value>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Debug
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.0"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.0"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
QtProjectManager.QMakeBuildStep
</value>
<value
type=
"QString"
key=
"QtProjectManager.QMakeBuildStep.QMakeArguments"
></value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.QMakeForced"
>
false
</value>
<valuelist
type=
"QVariantList"
key=
"QtProjectManager.QMakeBuildStep.SelectedAbis"
/>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.1"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.BuildTargets"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.OverrideMakeflags"
>
false
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Erstellen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Erstellen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Build
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.1"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.0"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.BuildTargets"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
>
clean
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.OverrideMakeflags"
>
false
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Bereinigen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Bereinigen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Clean
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildConfiguration.BuildStepListCount"
>
2
</value>
<value
type=
"bool"
key=
"ProjectExplorer.BuildConfiguration.ClearSystemEnvironment"
>
false
</value>
<valuelist
type=
"QVariantList"
key=
"ProjectExplorer.BuildConfiguration.CustomParsers"
/>
<valuelist
type=
"QVariantList"
key=
"ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Debug
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4BuildConfiguration
</value>
<value
type=
"int"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"
>
2
</value>
<value
type=
"int"
key=
"QtQuickCompiler"
>
2
</value>
<value
type=
"int"
key=
"SeparateDebugInfo"
>
2
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.BuildConfiguration.1"
>
<value
type=
"bool"
>
true
</value>
<value
type=
"int"
key=
"EnableQmlDebugging"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Release
</value>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Release
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.0"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.0"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
QtProjectManager.QMakeBuildStep
</value>
<value
type=
"QString"
key=
"QtProjectManager.QMakeBuildStep.QMakeArguments"
></value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.QMakeForced"
>
false
</value>
<valuelist
type=
"QVariantList"
key=
"QtProjectManager.QMakeBuildStep.SelectedAbis"
/>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.1"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.BuildTargets"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.OverrideMakeflags"
>
false
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Erstellen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Erstellen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Build
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.1"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.0"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.BuildTargets"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
>
clean
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.OverrideMakeflags"
>
false
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Bereinigen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Bereinigen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Clean
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildConfiguration.BuildStepListCount"
>
2
</value>
<value
type=
"bool"
key=
"ProjectExplorer.BuildConfiguration.ClearSystemEnvironment"
>
false
</value>
<valuelist
type=
"QVariantList"
key=
"ProjectExplorer.BuildConfiguration.CustomParsers"
/>
<valuelist
type=
"QVariantList"
key=
"ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Release
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4BuildConfiguration
</value>
<value
type=
"int"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"
>
0
</value>
<value
type=
"int"
key=
"QtQuickCompiler"
>
0
</value>
<value
type=
"int"
key=
"SeparateDebugInfo"
>
2
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.BuildConfiguration.2"
>
<value
type=
"bool"
>
true
</value>
<value
type=
"int"
key=
"EnableQmlDebugging"
>
0
</value>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Profile
</value>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Profile
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.0"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.0"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
QtProjectManager.QMakeBuildStep
</value>
<value
type=
"QString"
key=
"QtProjectManager.QMakeBuildStep.QMakeArguments"
></value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.QMakeForced"
>
false
</value>
<valuelist
type=
"QVariantList"
key=
"QtProjectManager.QMakeBuildStep.SelectedAbis"
/>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.1"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.BuildTargets"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.OverrideMakeflags"
>
false
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Erstellen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Erstellen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Build
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.1"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.0"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.BuildTargets"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
>
clean
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.OverrideMakeflags"
>
false
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Bereinigen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Bereinigen
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Clean
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildConfiguration.BuildStepListCount"
>
2
</value>
<value
type=
"bool"
key=
"ProjectExplorer.BuildConfiguration.ClearSystemEnvironment"
>
false
</value>
<valuelist
type=
"QVariantList"
key=
"ProjectExplorer.BuildConfiguration.CustomParsers"
/>
<valuelist
type=
"QVariantList"
key=
"ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Profile
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4BuildConfiguration
</value>
<value
type=
"int"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"
>
0
</value>
<value
type=
"int"
key=
"QtQuickCompiler"
>
0
</value>
<value
type=
"int"
key=
"SeparateDebugInfo"
>
0
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.BuildConfigurationCount"
>
3
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.DeployConfiguration.0"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.0"
>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
0
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Deployment
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Deployment
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Deploy
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildConfiguration.BuildStepListCount"
>
1
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.DeployConfiguration.CustomData"
/>
<value
type=
"bool"
key=
"ProjectExplorer.DeployConfiguration.CustomDataEnabled"
>
false
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.DefaultDeployConfiguration
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.DeployConfigurationCount"
>
1
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.PluginSettings"
/>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.RunConfiguration.0"
>
<value
type=
"QString"
key=
"Analyzer.Perf.CallgraphMode"
>
dwarf
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Perf.Events"
>
<value
type=
"QString"
>
cpu-cycles
</value>
</valuelist>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Perf.ExtraArguments"
/>
<value
type=
"int"
key=
"Analyzer.Perf.Frequency"
>
250
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Perf.RecordArguments"
>
<value
type=
"QString"
>
-e
</value>
<value
type=
"QString"
>
cpu-cycles
</value>
<value
type=
"QString"
>
--call-graph
</value>
<value
type=
"QString"
>
dwarf,4096
</value>
<value
type=
"QString"
>
-F
</value>
<value
type=
"QString"
>
250
</value>
</valuelist>
<value
type=
"QString"
key=
"Analyzer.Perf.SampleMode"
>
-F
</value>
<value
type=
"bool"
key=
"Analyzer.Perf.Settings.UseGlobalSettings"
>
true
</value>
<value
type=
"int"
key=
"Analyzer.Perf.StackSize"
>
4096
</value>
<value
type=
"bool"
key=
"Analyzer.QmlProfiler.AggregateTraces"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.QmlProfiler.FlushEnabled"
>
false
</value>
<value
type=
"uint"
key=
"Analyzer.QmlProfiler.FlushInterval"
>
1000
</value>
<value
type=
"QString"
key=
"Analyzer.QmlProfiler.LastTraceFile"
></value>
<value
type=
"bool"
key=
"Analyzer.QmlProfiler.Settings.UseGlobalSettings"
>
true
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Valgrind.AddedSuppressionFiles"
/>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.CollectBusEvents"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.CollectSystime"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.EnableBranchSim"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.EnableCacheSim"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.EnableEventToolTips"
>
true
</value>
<value
type=
"double"
key=
"Analyzer.Valgrind.Callgrind.MinimumCostRatio"
>
0.01
</value>
<value
type=
"double"
key=
"Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio"
>
10
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.FilterExternalIssues"
>
true
</value>
<value
type=
"QString"
key=
"Analyzer.Valgrind.KCachegrindExecutable"
>
kcachegrind
</value>
<value
type=
"int"
key=
"Analyzer.Valgrind.LeakCheckOnFinish"
>
1
</value>
<value
type=
"int"
key=
"Analyzer.Valgrind.NumCallers"
>
25
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Valgrind.RemovedSuppressionFiles"
/>
<value
type=
"int"
key=
"Analyzer.Valgrind.SelfModifyingCodeDetection"
>
1
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Settings.UseGlobalSettings"
>
true
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.ShowReachable"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.TrackOrigins"
>
true
</value>
<value
type=
"QString"
key=
"Analyzer.Valgrind.ValgrindExecutable"
>
valgrind
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Valgrind.VisibleErrorKinds"
>
<value
type=
"int"
>
0
</value>
<value
type=
"int"
>
1
</value>
<value
type=
"int"
>
2
</value>
<value
type=
"int"
>
3
</value>
<value
type=
"int"
>
4
</value>
<value
type=
"int"
>
5
</value>
<value
type=
"int"
>
6
</value>
<value
type=
"int"
>
7
</value>
<value
type=
"int"
>
8
</value>
<value
type=
"int"
>
9
</value>
<value
type=
"int"
>
10
</value>
<value
type=
"int"
>
11
</value>
<value
type=
"int"
>
12
</value>
<value
type=
"int"
>
13
</value>
<value
type=
"int"
>
14
</value>
</valuelist>
<valuelist
type=
"QVariantList"
key=
"CustomOutputParsers"
/>
<value
type=
"int"
key=
"PE.EnvironmentAspect.Base"
>
2
</value>
<valuelist
type=
"QVariantList"
key=
"PE.EnvironmentAspect.Changes"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4RunConfiguration:/home/fl0wless/Arbeit/UE49Interlock/UE49Interlock.pro
</value>
<value
type=
"QString"
key=
"ProjectExplorer.RunConfiguration.BuildKey"
>
/home/fl0wless/Arbeit/UE49Interlock/UE49Interlock.pro
</value>
<value
type=
"QString"
key=
"RunConfiguration.Arguments"
></value>
<value
type=
"bool"
key=
"RunConfiguration.Arguments.multi"
>
false
</value>
<value
type=
"QString"
key=
"RunConfiguration.OverrideDebuggerStartup"
></value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebuggerAuto"
>
true
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseLibrarySearchPath"
>
true
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseMultiProcess"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebuggerAuto"
>
true
</value>
<value
type=
"QString"
key=
"RunConfiguration.WorkingDirectory"
></value>
<value
type=
"QString"
key=
"RunConfiguration.WorkingDirectory.default"
>
/home/fl0wless/Arbeit/build-UE49Interlock-Desktop-Debug
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.RunConfigurationCount"
>
1
</value>
</valuemap>
</data>
<data>
<variable>
ProjectExplorer.Project.TargetCount
</variable>
<value
type=
"int"
>
1
</value>
</data>
<data>
<variable>
ProjectExplorer.Project.Updater.FileVersion
</variable>
<value
type=
"int"
>
22
</value>
</data>
<data>
<variable>
Version
</variable>
<value
type=
"int"
>
22
</value>
</data>
</qtcreator>
client.cpp
0 → 100644
View file @
846111ea
#include
"client.h"
#include
"window.h"
Client
::
Client
(
std
::
shared_ptr
<
Config
>
config
)
:
QTcpSocket
(),
config
(
config
)
{
connect
(
this
,
&
QAbstractSocket
::
readyRead
,
this
,
&
Client
::
handleMessage
);
pingInterval
=
std
::
make_unique
<
QTimer
>
(
this
);
pingInterval
->
setSingleShot
(
true
);
pingInterval
->
setInterval
(
1000
);
pingTimeout
=
std
::
make_unique
<
QTimer
>
(
this
);
pingTimeout
->
setSingleShot
(
true
);
pingTimeout
->
setInterval
(
3000
);
connect
(
pingInterval
.
get
(),
&
QTimer
::
timeout
,
this
,
&
Client
::
ping
);
connect
(
this
,
&
QAbstractSocket
::
connected
,
[
=
](){
pingInterval
->
start
();
});
connect
(
this
,
&
QAbstractSocket
::
disconnected
,
[
=
](){
// make sure these do not trigger after any disconnect
pingInterval
->
stop
();
pingTimeout
->
stop
();
emit
log
(
"Client disconnect."
);
});
connect
(
pingTimeout
.
get
(),
&
QTimer
::
timeout
,
[
=
](){
//
pingInterval
->
stop
();
disconnectFromHost
();
emit
log
(
"No pong received within 3 seconds, resetting connection."
);
});
}
Client
::~
Client
(){
}
void
Client
::
ping
()
{
emit
log
(
"Sending ping"
);
uint8_t
pingData
[
2
]
=
{
0b00000010
,
'p'
};
write
((
const
char
*
)
pingData
,
2
);
flush
();
pingTimeout
->
start
();
}
void
Client
::
handleMessage
()
{
QByteArray
msg
=
readAll
();
while
(
msg
.
length
()
>
0
){
auto
msgHeader
=
msg
[
0
]
>>
4
;
auto
msgLen
=
msg
[
0
]
&
0xF
;
auto
repr
=
std
::
accumulate
(
msg
.
begin
(),
msg
.
end
(),
QString
(
""
),
[](
QString
a
,
int
b
){
return
std
::
move
(
a
)
+
QString
(
"
\\
"
)
+
QString
::
number
(
b
,
16
)
+
QString
(
" "
);
});
if
(
msgHeader
==
MsgPing
)
// pong
{
if
(
msgLen
==
2
&&
msg
[
1
]
==
'p'
)
{
emit
log
(
"Received valid pong!: "
+
repr
+
"("
+
msg
+
")"
);
pingInterval
->
start
();
}
else
{
emit
log
(
"Received invalid pong-like message!: "
+
repr
+
"("
+
msg
+
")"
);
}
}
else
if
(
msgHeader
==
MsgState
)
// state change
{
if
(
msgLen
==
4
)
{
auto
state
=
std
::
make_shared
<
StateMessage
>
();
state
->
operable
=
msg
[
1
]
&
(
1
<<
7
);
state
->
override
=
msg
[
1
]
&
(
1
<<
6
);
state
->
error
=
msg
[
1
]
&
(
1
<<
5
);
state
->
mode
=
msg
[
1
]
&
(
1
<<
4
);
state
->
settingVTdet
=
msg
[
2
]
&
(
1
<<
7
);
state
->
settingVdet
=
msg
[
2
]
&
(
1
<<
6
);
state
->
settingVfoil
=
msg
[
2
]
&
(
1
<<
5
);
state
->
settingVdps
=
msg
[
2
]
&
(
1
<<
4
);
state
->
settingHVmcp
=
msg
[
2
]
&
(
1
<<
3
);
state
->
settingRbeamline
=
msg
[
2
]
&
(
1
<<
2
);
state
->
pumpEnabled
=
msg
[
2
]
&
(
1
<<
1
);
emit
log
(
"Received new state!: "
+
repr
);
emit
newState
(
state
);
}
else
{
emit
log
(
"Received state-like garbage!"
);
}
}
else
if
(
msgHeader
==
MsgMeasurement
){
// new measurements
if
(
msgLen
==
12
)
{
// emit log("Received measurements");
char
*
data
=
msg
.
data
();
auto
meas
=
std
::
make_shared
<
MeasurementMessage
>
();
meas
->
pGrat
=
(((
int16_t
)
msg
[
1
])
<<
8
)
|
(((
int16_t
)
msg
[
2
])
&
0xFF
);
meas
->
pMCP
=
(((
int16_t
)
msg
[
3
])
<<
8
)
|
(((
int16_t
)
msg
[
4
])
&
0xFF
);
meas
->
pVV
=
(((
int16_t
)
msg
[
5
])
<<
8
)
|
(((
int16_t
)
msg
[
6
])
&
0xFF
);
meas
->
tDet
=
(((
int16_t
)
msg
[
7
])
<<
8
)
|
(((
int16_t
)
msg
[
8
])
&
0xFF
);
meas
->
tDPS
=
(((
int16_t
)
msg
[
9
])
<<
8
)
|
(((
int16_t
)
msg
[
10
])
&
0xFF
);
meas
->
vTdetHigh
=
data
[
11
]
&
(
1
<<
7
);
meas
->
vdetHigh
=
data
[
11
]
&
(
1
<<
6
);
meas
->
vfoilHigh
=
data
[
11
]
&
(
1
<<
5
);
meas
->
vdpsHigh
=
data
[
11
]
&
(
1
<<
4
);
meas
->
vTdetLow
=
data
[
11
]
&
(
1
<<
3
);
meas
->
vdetLow
=
data
[
11
]
&
(
1
<<
2
);
meas
->
vfoilLow
=
data
[
11
]
&
(
1
<<
1
);
meas
->
vdpsLow
=
data
[
11
]
&
(
1
<<
0
);
emit
newMeasurements
(
meas
);
}
else
{
emit
log
(
"Error: received measurement-like garbage!"
);
}
}
else
{
emit
log
(
"Got garbage: "
+
repr
);
}
msg
.
remove
(
0
,
msgLen
);
}
}
void
Client
::
sendState
(
std
::
shared_ptr
<
StateMessage
>
state
){
uint8_t
msg
[
4
];
emit
log
(
"Writing state..."
);
msg
[
0
]
=
0b00010100
;
msg
[
1
]
=
0
;
msg
[
1
]
|=
state
->
operable
<<
7
;
msg
[
1
]
|=
state
->
override
<<
6
;
msg
[
1
]
|=
state
->
error
<<
5
;
msg
[
1
]
|=
state
->
mode
<<
4
;
msg
[
2
]
=
0
;
msg
[
2
]
|=
state
->
settingVTdet
<<
7
;
msg
[
2
]
|=
state
->
settingVdet
<<
6
;
msg
[
2
]
|=
state
->
settingVfoil
<<
5
;
msg
[
2
]
|=
state
->
settingVdps
<<
4
;
msg
[
2
]
|=
state
->
settingHVmcp
<<
3
;
msg
[
2
]
|=
state
->
settingRbeamline
<<
2
;
msg
[
2
]
|=
state
->
pumpEnabled
<<
1
;
write
((
const
char
*
)
msg
,
4
);
flush
();
}
client.h
0 → 100644
View file @
846111ea
#ifndef CONNECTION_H
#define CONNECTION_H
#include
<QTcpSocket>
#include
<QTimer>
#include
"lib.h"
// what ino/client intend
struct
StateMessage
{
// repr: 1 + 1(header) bytes
bool
operable
;
bool
override
;
bool
error
;
bool
mode
;
bool
settingVTdet
;
bool
settingVdet
;
bool
settingVfoil
;
bool
settingVdps
;
bool
settingHVmcp
;
bool
settingRbeamline
;
bool
pumpEnabled
;
};
// what the ino actually measures
struct
MeasurementMessage
{
// repr: 11 + 1(header) bytes
int16_t
pGrat
;
int16_t
pMCP
;
int16_t
pVV
;