Added project files for Qt

This commit is contained in:
Daniel Brunner
2017-03-12 10:51:34 +01:00
parent 476b278aef
commit 1c200596f1
7 changed files with 10200 additions and 242 deletions

305
.gitignore vendored
View File

@@ -1,252 +1,73 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# DNX
project.lock.json
artifacts/
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
Makefile*
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# qtcreator generated files
*.pro.user*
# RIA/Silverlight projects
Generated_Code/
# xemacs temporary files
*.flc
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# Vim temporary files
.*.swp
# SQL Server files
*.mdf
*.ldf
# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# MinGW generated files
*.Debug
*.Release
# Microsoft Fakes
FakesAssemblies/
# Python byte code
*.pyc
# GhostDoc plugin setting file
*.GhostDoc.xml
# Binaries
# --------
*.dll
*.exe
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml

Binary file not shown.

27
KnappCC2017.pro Normal file
View File

@@ -0,0 +1,27 @@
QT += core
QT -= gui
CONFIG += c++11
TARGET = KnappCC2017
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as 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 you use 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=0x060000 # disables all the APIs deprecated before Qt 6.0.0
DISTFILES += \
input/containers.csv \
input/products.csv

Binary file not shown.

10001
input/containers.csv Normal file

File diff suppressed because it is too large Load Diff

101
input/products.csv Normal file
View File

@@ -0,0 +1,101 @@
# code;(container-type;max-slot-quantity;)+
PROD000001;Full;96;
PROD000002;Full;55;Half;25;Quarter;10;
PROD000003;Full;415;Half;207;Quarter;103;
PROD000004;Full;48;
PROD000005;Full;122;Half;60;Quarter;29;
PROD000006;Full;55;Half;25;Quarter;10;
PROD000007;Half;201;Quarter;100;
PROD000008;Full;102;Half;51;
PROD000009;Full;28;
PROD000010;Full;127;Half;63;Quarter;31;
PROD000011;Quarter;31;
PROD000012;Full;198;Half;98;Quarter;48;
PROD000013;Half;20;Quarter;9;
PROD000014;Full;207;Half;103;Quarter;51;
PROD000015;Full;51;Half;23;Quarter;9;
PROD000016;Full;51;Half;23;Quarter;9;
PROD000017;Half;96;Quarter;48;
PROD000018;Full;396;Half;198;Quarter;99;
PROD000019;Full;36;Half;18;Quarter;9;
PROD000020;Full;40;Half;20;Quarter;10;
PROD000021;Full;102;Half;51;
PROD000022;Half;23;Quarter;9;
PROD000023;Full;36;Half;18;Quarter;9;
PROD000024;Full;48;
PROD000025;Full;198;Half;98;
PROD000026;Quarter;50;
PROD000027;Full;29;
PROD000028;Half;195;Quarter;97;
PROD000029;Full;9;
PROD000030;Full;130;Half;64;Quarter;31;
PROD000031;Quarter;51;
PROD000032;Full;192;Half;96;Quarter;48;
PROD000033;Full;407;Half;203;Quarter;101;
PROD000034;Full;139;Half;67;Quarter;31;
PROD000035;Full;9;
PROD000036;Full;99;
PROD000037;Full;195;Half;97;Quarter;48;
PROD000038;Full;49;
PROD000039;Full;96;
PROD000040;Full;61;Half;30;
PROD000041;Full;42;Half;20;Quarter;9;
PROD000042;Full;415;Half;205;Quarter;100;
PROD000043;Full;396;Half;198;Quarter;99;
PROD000044;Full;55;Half;25;Quarter;10;
PROD000045;Full;46;Half;22;Quarter;10;
PROD000046;Half;105;Quarter;50;
PROD000047;Full;55;Half;25;Quarter;10;
PROD000048;Full;50;
PROD000049;Full;9;
PROD000050;Full;20;Half;9;
PROD000051;Full;400;Half;200;Quarter;100;
PROD000052;Quarter;31;
PROD000053;Full;207;Half;103;Quarter;51;
PROD000054;Full;9;
PROD000055;Full;36;Half;18;Quarter;9;
PROD000056;Full;18;Half;9;
PROD000057;Full;388;Half;194;Quarter;97;
PROD000058;Quarter;9;
PROD000059;Full;61;Half;28;
PROD000060;Full;49;
PROD000061;Full;10;
PROD000062;Quarter;49;
PROD000063;Full;387;Half;193;Quarter;96;
PROD000064;Full;61;Half;30;
PROD000065;Full;48;
PROD000066;Full;42;Half;20;Quarter;9;
PROD000067;Quarter;103;
PROD000068;Full;120;Half;60;Quarter;30;
PROD000069;Quarter;101;
PROD000070;Full;202;Half;100;Quarter;49;
PROD000071;Quarter;10;
PROD000072;Full;192;Half;96;
PROD000073;Full;120;Half;60;Quarter;30;
PROD000074;Full;46;Half;22;Quarter;10;
PROD000075;Full;101;
PROD000076;Full;100;
PROD000077;Full;119;Half;59;Quarter;29;
PROD000078;Full;62;Half;31;
PROD000079;Half;102;Quarter;51;
PROD000080;Half;194;Quarter;97;
PROD000081;Quarter;31;
PROD000082;Full;112;Half;56;Quarter;28;
PROD000083;Full;122;Half;60;Quarter;29;
PROD000084;Full;390;Half;194;Quarter;96;
PROD000085;Full;65;Half;30;
PROD000086;Full;127;Half;61;Quarter;28;
PROD000087;Half;18;Quarter;9;
PROD000088;Full;116;Half;58;Quarter;29;
PROD000089;Full;101;
PROD000090;Full;115;Half;57;Quarter;28;
PROD000091;Full;105;Half;50;
PROD000092;Full;97;
PROD000093;Full;20;Half;10;
PROD000094;Full;116;Half;58;Quarter;29;
PROD000095;Full;29;
PROD000096;Full;9;
PROD000097;Full;20;Half;10;
PROD000098;Full;206;Half;102;Quarter;50;
PROD000099;Half;21;Quarter;10;
PROD000100;Full;10;
1 # code;(container-type;max-slot-quantity;)+
2 PROD000001;Full;96;
3 PROD000002;Full;55;Half;25;Quarter;10;
4 PROD000003;Full;415;Half;207;Quarter;103;
5 PROD000004;Full;48;
6 PROD000005;Full;122;Half;60;Quarter;29;
7 PROD000006;Full;55;Half;25;Quarter;10;
8 PROD000007;Half;201;Quarter;100;
9 PROD000008;Full;102;Half;51;
10 PROD000009;Full;28;
11 PROD000010;Full;127;Half;63;Quarter;31;
12 PROD000011;Quarter;31;
13 PROD000012;Full;198;Half;98;Quarter;48;
14 PROD000013;Half;20;Quarter;9;
15 PROD000014;Full;207;Half;103;Quarter;51;
16 PROD000015;Full;51;Half;23;Quarter;9;
17 PROD000016;Full;51;Half;23;Quarter;9;
18 PROD000017;Half;96;Quarter;48;
19 PROD000018;Full;396;Half;198;Quarter;99;
20 PROD000019;Full;36;Half;18;Quarter;9;
21 PROD000020;Full;40;Half;20;Quarter;10;
22 PROD000021;Full;102;Half;51;
23 PROD000022;Half;23;Quarter;9;
24 PROD000023;Full;36;Half;18;Quarter;9;
25 PROD000024;Full;48;
26 PROD000025;Full;198;Half;98;
27 PROD000026;Quarter;50;
28 PROD000027;Full;29;
29 PROD000028;Half;195;Quarter;97;
30 PROD000029;Full;9;
31 PROD000030;Full;130;Half;64;Quarter;31;
32 PROD000031;Quarter;51;
33 PROD000032;Full;192;Half;96;Quarter;48;
34 PROD000033;Full;407;Half;203;Quarter;101;
35 PROD000034;Full;139;Half;67;Quarter;31;
36 PROD000035;Full;9;
37 PROD000036;Full;99;
38 PROD000037;Full;195;Half;97;Quarter;48;
39 PROD000038;Full;49;
40 PROD000039;Full;96;
41 PROD000040;Full;61;Half;30;
42 PROD000041;Full;42;Half;20;Quarter;9;
43 PROD000042;Full;415;Half;205;Quarter;100;
44 PROD000043;Full;396;Half;198;Quarter;99;
45 PROD000044;Full;55;Half;25;Quarter;10;
46 PROD000045;Full;46;Half;22;Quarter;10;
47 PROD000046;Half;105;Quarter;50;
48 PROD000047;Full;55;Half;25;Quarter;10;
49 PROD000048;Full;50;
50 PROD000049;Full;9;
51 PROD000050;Full;20;Half;9;
52 PROD000051;Full;400;Half;200;Quarter;100;
53 PROD000052;Quarter;31;
54 PROD000053;Full;207;Half;103;Quarter;51;
55 PROD000054;Full;9;
56 PROD000055;Full;36;Half;18;Quarter;9;
57 PROD000056;Full;18;Half;9;
58 PROD000057;Full;388;Half;194;Quarter;97;
59 PROD000058;Quarter;9;
60 PROD000059;Full;61;Half;28;
61 PROD000060;Full;49;
62 PROD000061;Full;10;
63 PROD000062;Quarter;49;
64 PROD000063;Full;387;Half;193;Quarter;96;
65 PROD000064;Full;61;Half;30;
66 PROD000065;Full;48;
67 PROD000066;Full;42;Half;20;Quarter;9;
68 PROD000067;Quarter;103;
69 PROD000068;Full;120;Half;60;Quarter;30;
70 PROD000069;Quarter;101;
71 PROD000070;Full;202;Half;100;Quarter;49;
72 PROD000071;Quarter;10;
73 PROD000072;Full;192;Half;96;
74 PROD000073;Full;120;Half;60;Quarter;30;
75 PROD000074;Full;46;Half;22;Quarter;10;
76 PROD000075;Full;101;
77 PROD000076;Full;100;
78 PROD000077;Full;119;Half;59;Quarter;29;
79 PROD000078;Full;62;Half;31;
80 PROD000079;Half;102;Quarter;51;
81 PROD000080;Half;194;Quarter;97;
82 PROD000081;Quarter;31;
83 PROD000082;Full;112;Half;56;Quarter;28;
84 PROD000083;Full;122;Half;60;Quarter;29;
85 PROD000084;Full;390;Half;194;Quarter;96;
86 PROD000085;Full;65;Half;30;
87 PROD000086;Full;127;Half;61;Quarter;28;
88 PROD000087;Half;18;Quarter;9;
89 PROD000088;Full;116;Half;58;Quarter;29;
90 PROD000089;Full;101;
91 PROD000090;Full;115;Half;57;Quarter;28;
92 PROD000091;Full;105;Half;50;
93 PROD000092;Full;97;
94 PROD000093;Full;20;Half;10;
95 PROD000094;Full;116;Half;58;Quarter;29;
96 PROD000095;Full;29;
97 PROD000096;Full;9;
98 PROD000097;Full;20;Half;10;
99 PROD000098;Full;206;Half;102;Quarter;50;
100 PROD000099;Half;21;Quarter;10;
101 PROD000100;Full;10;

8
main.cpp Normal file
View File

@@ -0,0 +1,8 @@
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
return app.exec();
}