Skip to content

Commit 03fb097

Browse files
committedOct 9, 2021
Initial commit
·
v1.6v1.0
0 parents  commit 03fb097

21 files changed

+1153
-0
lines changed
 

‎.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

‎.gitignore

Lines changed: 408 additions & 0 deletions
Large diffs are not rendered by default.

‎CellLifeSimulation.sln

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31515.178
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimulationModel", "SimulationModel\SimulationModel.vcxitems", "{23F9D373-1BA8-4401-9331-15EE3FA01915}"
7+
EndProject
8+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QtCellLifeSimulationApp", "QtCellLifeSimulationApp\QtCellLifeSimulationApp.vcxproj", "{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}"
9+
EndProject
10+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WinFormsCellLifeSimulationApp", "WinFormsCellLifeSimulationApp\WinFormsCellLifeSimulationApp.vcxproj", "{4D767318-7902-4C1A-827C-F55015D389E8}"
11+
EndProject
12+
Global
13+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
14+
SimulationModel\SimulationModel.vcxitems*{021e48bd-aa35-475f-8b91-9e9ef6a59ba8}*SharedItemsImports = 4
15+
SimulationModel\SimulationModel.vcxitems*{23f9d373-1ba8-4401-9331-15ee3fa01915}*SharedItemsImports = 9
16+
SimulationModel\SimulationModel.vcxitems*{4d767318-7902-4c1a-827c-f55015d389e8}*SharedItemsImports = 4
17+
EndGlobalSection
18+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
19+
Debug|x64 = Debug|x64
20+
Debug|x86 = Debug|x86
21+
Release|x64 = Release|x64
22+
Release|x86 = Release|x86
23+
EndGlobalSection
24+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25+
{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}.Debug|x64.ActiveCfg = Debug|x64
26+
{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}.Debug|x64.Build.0 = Debug|x64
27+
{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}.Debug|x86.ActiveCfg = Debug|x64
28+
{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}.Release|x64.ActiveCfg = Release|x64
29+
{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}.Release|x64.Build.0 = Release|x64
30+
{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}.Release|x86.ActiveCfg = Release|x64
31+
{4D767318-7902-4C1A-827C-F55015D389E8}.Debug|x64.ActiveCfg = Debug|x64
32+
{4D767318-7902-4C1A-827C-F55015D389E8}.Debug|x64.Build.0 = Debug|x64
33+
{4D767318-7902-4C1A-827C-F55015D389E8}.Debug|x86.ActiveCfg = Debug|Win32
34+
{4D767318-7902-4C1A-827C-F55015D389E8}.Debug|x86.Build.0 = Debug|Win32
35+
{4D767318-7902-4C1A-827C-F55015D389E8}.Release|x64.ActiveCfg = Release|x64
36+
{4D767318-7902-4C1A-827C-F55015D389E8}.Release|x64.Build.0 = Release|x64
37+
{4D767318-7902-4C1A-827C-F55015D389E8}.Release|x86.ActiveCfg = Release|Win32
38+
{4D767318-7902-4C1A-827C-F55015D389E8}.Release|x86.Build.0 = Release|Win32
39+
EndGlobalSection
40+
GlobalSection(SolutionProperties) = preSolution
41+
HideSolutionNode = FALSE
42+
EndGlobalSection
43+
GlobalSection(ExtensibilityGlobals) = postSolution
44+
SolutionGuid = {35D72D82-D305-4F05-BFE8-DFFF3BAEEA25}
45+
EndGlobalSection
46+
EndGlobal

‎LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Maxim Chistyakov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include "QtCellLifeSimulationApp.h"
2+
3+
QtCellLifeSimulationApp::QtCellLifeSimulationApp(QWidget *parent)
4+
: QMainWindow(parent)
5+
{
6+
ui.setupUi(this);
7+
//simulation = new Simulation();
8+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
#include <QtWidgets/QMainWindow>
4+
#include "ui_QtCellLifeSimulationApp.h"
5+
//#include "SimulationModel.h"
6+
7+
class QtCellLifeSimulationApp : public QMainWindow
8+
{
9+
Q_OBJECT
10+
11+
public:
12+
QtCellLifeSimulationApp(QWidget *parent = Q_NULLPTR);
13+
//Simulation* simulation;
14+
15+
private:
16+
Ui::QtCellLifeSimulationAppClass ui;
17+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<RCC>
2+
<qresource prefix="QtCellLifeSimulationApp">
3+
</qresource>
4+
</RCC>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<UI version="4.0" >
2+
<class>QtCellLifeSimulationAppClass</class>
3+
<widget class="QMainWindow" name="QtCellLifeSimulationAppClass" >
4+
<property name="objectName" >
5+
<string notr="true">QtCellLifeSimulationAppClass</string>
6+
</property>
7+
<property name="geometry" >
8+
<rect>
9+
<x>0</x>
10+
<y>0</y>
11+
<width>600</width>
12+
<height>400</height>
13+
</rect>
14+
</property>
15+
<property name="windowTitle" >
16+
<string>QtCellLifeSimulationApp</string>
17+
</property> <widget class="QMenuBar" name="menuBar" />
18+
<widget class="QToolBar" name="mainToolBar" />
19+
<widget class="QWidget" name="centralWidget" />
20+
<widget class="QStatusBar" name="statusBar" />
21+
</widget>
22+
<layoutDefault spacing="6" margin="11" />
23+
<pixmapfunction></pixmapfunction>
24+
<resources>
25+
<include location="QtCellLifeSimulationApp.qrc"/>
26+
</resources>
27+
<connections/>
28+
</UI>
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|x64">
5+
<Configuration>Debug</Configuration>
6+
<Platform>x64</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|x64">
9+
<Configuration>Release</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{021E48BD-AA35-475F-8B91-9E9EF6A59BA8}</ProjectGuid>
15+
<Keyword>QtVS_v304</Keyword>
16+
<WindowsTargetPlatformVersion Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">10.0.19041.0</WindowsTargetPlatformVersion>
17+
<WindowsTargetPlatformVersion Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">10.0.19041.0</WindowsTargetPlatformVersion>
18+
<QtMsBuild Condition="'$(QtMsBuild)'=='' OR !Exists('$(QtMsBuild)\qt.targets')">$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
19+
</PropertyGroup>
20+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" Label="Configuration">
22+
<ConfigurationType>Application</ConfigurationType>
23+
<PlatformToolset>v142</PlatformToolset>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" Label="Configuration">
26+
<ConfigurationType>Application</ConfigurationType>
27+
<PlatformToolset>v142</PlatformToolset>
28+
</PropertyGroup>
29+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
30+
<ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')">
31+
<Import Project="$(QtMsBuild)\qt_defaults.props" />
32+
</ImportGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" Label="QtSettings">
34+
<QtInstall>5.15.0_msvc2019_64</QtInstall>
35+
<QtModules>core;gui;widgets</QtModules>
36+
<QtBuildConfig>debug</QtBuildConfig>
37+
</PropertyGroup>
38+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" Label="QtSettings">
39+
<QtInstall>5.15.0_msvc2019_64</QtInstall>
40+
<QtModules>core;gui;widgets</QtModules>
41+
<QtBuildConfig>release</QtBuildConfig>
42+
</PropertyGroup>
43+
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
44+
<Message Importance="High" Text="QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly." />
45+
</Target>
46+
<ImportGroup Label="ExtensionSettings" />
47+
<ImportGroup Label="Shared">
48+
<Import Project="..\SimulationModel\SimulationModel.vcxitems" Label="Shared" />
49+
</ImportGroup>
50+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
51+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
52+
<Import Project="$(QtMsBuild)\Qt.props" />
53+
</ImportGroup>
54+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
55+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56+
<Import Project="$(QtMsBuild)\Qt.props" />
57+
</ImportGroup>
58+
<PropertyGroup Label="UserMacros" />
59+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
60+
</PropertyGroup>
61+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
62+
</PropertyGroup>
63+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" Label="Configuration">
64+
<ClCompile>
65+
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
66+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
67+
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
68+
<Optimization>Disabled</Optimization>
69+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
70+
</ClCompile>
71+
<Link>
72+
<SubSystem>Windows</SubSystem>
73+
<GenerateDebugInformation>true</GenerateDebugInformation>
74+
</Link>
75+
</ItemDefinitionGroup>
76+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" Label="Configuration">
77+
<ClCompile>
78+
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
79+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
80+
<DebugInformationFormat>None</DebugInformationFormat>
81+
<Optimization>MaxSpeed</Optimization>
82+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
83+
</ClCompile>
84+
<Link>
85+
<SubSystem>Windows</SubSystem>
86+
<GenerateDebugInformation>false</GenerateDebugInformation>
87+
</Link>
88+
</ItemDefinitionGroup>
89+
<ItemGroup>
90+
<QtRcc Include="QtCellLifeSimulationApp.qrc" />
91+
<QtUic Include="QtCellLifeSimulationApp.ui" />
92+
<QtMoc Include="QtCellLifeSimulationApp.h" />
93+
<ClCompile Include="QtCellLifeSimulationApp.cpp" />
94+
<ClCompile Include="main.cpp" />
95+
</ItemGroup>
96+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
97+
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.targets')">
98+
<Import Project="$(QtMsBuild)\qt.targets" />
99+
</ImportGroup>
100+
<ImportGroup Label="ExtensionTargets">
101+
</ImportGroup>
102+
</Project>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
<Filter Include="Form Files">
17+
<UniqueIdentifier>{99349809-55BA-4b9d-BF79-8FDBB0286EB3}</UniqueIdentifier>
18+
<Extensions>ui</Extensions>
19+
</Filter>
20+
<Filter Include="Translation Files">
21+
<UniqueIdentifier>{639EADAA-A684-42e4-A9AD-28FC9BCB8F7C}</UniqueIdentifier>
22+
<Extensions>ts</Extensions>
23+
</Filter>
24+
</ItemGroup>
25+
<ItemGroup>
26+
<QtRcc Include="QtCellLifeSimulationApp.qrc">
27+
<Filter>Resource Files</Filter>
28+
</QtRcc>
29+
<QtUic Include="QtCellLifeSimulationApp.ui">
30+
<Filter>Form Files</Filter>
31+
</QtUic>
32+
<QtMoc Include="QtCellLifeSimulationApp.h">
33+
<Filter>Header Files</Filter>
34+
</QtMoc>
35+
<ClCompile Include="QtCellLifeSimulationApp.cpp">
36+
<Filter>Source Files</Filter>
37+
</ClCompile>
38+
</ItemGroup>
39+
<ItemGroup>
40+
<ClCompile Include="main.cpp">
41+
<Filter>Source Files</Filter>
42+
</ClCompile>
43+
</ItemGroup>
44+
</Project>

‎QtCellLifeSimulationApp/main.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include "QtCellLifeSimulationApp.h"
2+
#include <QtWidgets/QApplication>
3+
4+
int main(int argc, char *argv[])
5+
{
6+
QApplication a(argc, argv);
7+
QtCellLifeSimulationApp w;
8+
w.show();
9+
return a.exec();
10+
}

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CellLifeSimulation
2+
Project of 2D cells simulation with C++. MVC, two clients - WinForms and Qt

‎SimulationModel/SimulationModel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "SimulationModel.h"

‎SimulationModel/SimulationModel.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#pragma once
2+
class Simulation
3+
{
4+
};
5+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Globals">
4+
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5+
<HasSharedItems>true</HasSharedItems>
6+
<ItemsProjectGuid>{23f9d373-1ba8-4401-9331-15ee3fa01915}</ItemsProjectGuid>
7+
</PropertyGroup>
8+
<ItemDefinitionGroup>
9+
<ClCompile>
10+
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(MSBuildThisFileDirectory)</AdditionalIncludeDirectories>
11+
</ClCompile>
12+
</ItemDefinitionGroup>
13+
<ItemGroup>
14+
<ProjectCapability Include="SourceItemsFromImports" />
15+
</ItemGroup>
16+
<ItemGroup>
17+
<ClInclude Include="$(MSBuildThisFileDirectory)SimulationModel.h" />
18+
</ItemGroup>
19+
<ItemGroup>
20+
<ClCompile Include="$(MSBuildThisFileDirectory)SimulationModel.cpp" />
21+
</ItemGroup>
22+
</Project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "CLSAppForm.h"
2+
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#pragma once
2+
3+
namespace WinFormsCellLifeSimulationApp {
4+
5+
using namespace System;
6+
using namespace System::ComponentModel;
7+
using namespace System::Collections;
8+
using namespace System::Windows::Forms;
9+
using namespace System::Data;
10+
using namespace System::Drawing;
11+
12+
/// <summary>
13+
/// Ñâîäêà äëÿ CLSAppForm
14+
/// </summary>
15+
public ref class CLSAppForm : public System::Windows::Forms::Form
16+
{
17+
public:
18+
CLSAppForm(void)
19+
{
20+
InitializeComponent();
21+
//
22+
//TODO: äîáàâüòå êîä êîíñòðóêòîðà
23+
//
24+
}
25+
26+
protected:
27+
/// <summary>
28+
/// Îñâîáîäèòü âñå èñïîëüçóåìûå ðåñóðñû.
29+
/// </summary>
30+
~CLSAppForm()
31+
{
32+
if (components)
33+
{
34+
delete components;
35+
}
36+
}
37+
38+
protected:
39+
40+
private:
41+
/// <summary>
42+
/// Îáÿçàòåëüíàÿ ïåðåìåííàÿ êîíñòðóêòîðà.
43+
/// </summary>
44+
System::ComponentModel::Container ^components;
45+
46+
#pragma region Windows Form Designer generated code
47+
/// <summary>
48+
/// Òðåáóåìûé ìåòîä äëÿ ïîääåðæêè êîíñòðóêòîðà — íå èçìåíÿéòå
49+
/// ñîäåðæèìîå ýòîãî ìåòîäà ñ ïîìîùüþ ðåäàêòîðà êîäà.
50+
/// </summary>
51+
void InitializeComponent(void)
52+
{
53+
this->SuspendLayout();
54+
//
55+
// CLSAppForm
56+
//
57+
this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
58+
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
59+
this->ClientSize = System::Drawing::Size(1052, 593);
60+
this->Name = L"CLSAppForm";
61+
this->Text = L"CLSAppForm";
62+
this->ResumeLayout(false);
63+
64+
}
65+
#pragma endregion
66+
67+
};
68+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 2.0
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">2.0</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
<value>[base64 mime encoded serialized .NET Framework object]</value>
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27+
<comment>This is a comment</comment>
28+
</data>
29+
30+
There are any number of "resheader" rows that contain simple
31+
name/value pairs.
32+
33+
Each data row contains a name, and value. The row also contains a
34+
type or mimetype. Type corresponds to a .NET class that support
35+
text/value conversion through the TypeConverter architecture.
36+
Classes that don't support this are serialized and stored with the
37+
mimetype set.
38+
39+
The mimetype is used for serialized objects, and tells the
40+
ResXResourceReader how to depersist the object. This is currently not
41+
extensible. For a given mimetype the value must be set accordingly:
42+
43+
Note - application/x-microsoft.net.object.binary.base64 is the format
44+
that the ResXResourceWriter will generate, however the reader can
45+
read any of the formats listed below.
46+
47+
mimetype: application/x-microsoft.net.object.binary.base64
48+
value : The object must be serialized with
49+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50+
: and then encoded with base64 encoding.
51+
52+
mimetype: application/x-microsoft.net.object.soap.base64
53+
value : The object must be serialized with
54+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55+
: and then encoded with base64 encoding.
56+
57+
mimetype: application/x-microsoft.net.object.bytearray.base64
58+
value : The object must be serialized into a byte array
59+
: using a System.ComponentModel.TypeConverter
60+
: and then encoded with base64 encoding.
61+
-->
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64+
<xsd:element name="root" msdata:IsDataSet="true">
65+
<xsd:complexType>
66+
<xsd:choice maxOccurs="unbounded">
67+
<xsd:element name="metadata">
68+
<xsd:complexType>
69+
<xsd:sequence>
70+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
71+
</xsd:sequence>
72+
<xsd:attribute name="name" use="required" type="xsd:string" />
73+
<xsd:attribute name="type" type="xsd:string" />
74+
<xsd:attribute name="mimetype" type="xsd:string" />
75+
<xsd:attribute ref="xml:space" />
76+
</xsd:complexType>
77+
</xsd:element>
78+
<xsd:element name="assembly">
79+
<xsd:complexType>
80+
<xsd:attribute name="alias" type="xsd:string" />
81+
<xsd:attribute name="name" type="xsd:string" />
82+
</xsd:complexType>
83+
</xsd:element>
84+
<xsd:element name="data">
85+
<xsd:complexType>
86+
<xsd:sequence>
87+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89+
</xsd:sequence>
90+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93+
<xsd:attribute ref="xml:space" />
94+
</xsd:complexType>
95+
</xsd:element>
96+
<xsd:element name="resheader">
97+
<xsd:complexType>
98+
<xsd:sequence>
99+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100+
</xsd:sequence>
101+
<xsd:attribute name="name" type="xsd:string" use="required" />
102+
</xsd:complexType>
103+
</xsd:element>
104+
</xsd:choice>
105+
</xsd:complexType>
106+
</xsd:element>
107+
</xsd:schema>
108+
<resheader name="resmimetype">
109+
<value>text/microsoft-resx</value>
110+
</resheader>
111+
<resheader name="version">
112+
<value>2.0</value>
113+
</resheader>
114+
<resheader name="reader">
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116+
</resheader>
117+
<resheader name="writer">
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119+
</resheader>
120+
</root>
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>16.0</VCProjectVersion>
23+
<ProjectGuid>{4D767318-7902-4C1A-827C-F55015D389E8}</ProjectGuid>
24+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
25+
<Keyword>ManagedCProj</Keyword>
26+
<RootNamespace>WinFormsCellLifeSimulationApp</RootNamespace>
27+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
28+
</PropertyGroup>
29+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
31+
<ConfigurationType>Application</ConfigurationType>
32+
<UseDebugLibraries>true</UseDebugLibraries>
33+
<PlatformToolset>v142</PlatformToolset>
34+
<CLRSupport>true</CLRSupport>
35+
<CharacterSet>Unicode</CharacterSet>
36+
</PropertyGroup>
37+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
38+
<ConfigurationType>Application</ConfigurationType>
39+
<UseDebugLibraries>false</UseDebugLibraries>
40+
<PlatformToolset>v142</PlatformToolset>
41+
<CLRSupport>true</CLRSupport>
42+
<CharacterSet>Unicode</CharacterSet>
43+
</PropertyGroup>
44+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
45+
<ConfigurationType>Application</ConfigurationType>
46+
<UseDebugLibraries>true</UseDebugLibraries>
47+
<PlatformToolset>v142</PlatformToolset>
48+
<CLRSupport>true</CLRSupport>
49+
<CharacterSet>Unicode</CharacterSet>
50+
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
52+
<ConfigurationType>Application</ConfigurationType>
53+
<UseDebugLibraries>false</UseDebugLibraries>
54+
<PlatformToolset>v142</PlatformToolset>
55+
<CLRSupport>true</CLRSupport>
56+
<CharacterSet>Unicode</CharacterSet>
57+
</PropertyGroup>
58+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
59+
<ImportGroup Label="ExtensionSettings">
60+
</ImportGroup>
61+
<ImportGroup Label="Shared">
62+
<Import Project="..\SimulationModel\SimulationModel.vcxitems" Label="Shared" />
63+
</ImportGroup>
64+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
65+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
66+
</ImportGroup>
67+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
68+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
69+
</ImportGroup>
70+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
71+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
72+
</ImportGroup>
73+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
74+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
75+
</ImportGroup>
76+
<PropertyGroup Label="UserMacros" />
77+
<PropertyGroup />
78+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
79+
<ClCompile>
80+
<WarningLevel>Level3</WarningLevel>
81+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
82+
</ClCompile>
83+
<Link>
84+
<AdditionalDependencies />
85+
<SubSystem>Windows</SubSystem>
86+
<EntryPointSymbol>main</EntryPointSymbol>
87+
</Link>
88+
</ItemDefinitionGroup>
89+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
90+
<ClCompile>
91+
<WarningLevel>Level3</WarningLevel>
92+
<PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
93+
</ClCompile>
94+
<Link>
95+
<AdditionalDependencies />
96+
</Link>
97+
</ItemDefinitionGroup>
98+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
99+
<ClCompile>
100+
<WarningLevel>Level3</WarningLevel>
101+
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
102+
</ClCompile>
103+
<Link>
104+
<AdditionalDependencies />
105+
</Link>
106+
</ItemDefinitionGroup>
107+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
108+
<ClCompile>
109+
<WarningLevel>Level3</WarningLevel>
110+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111+
</ClCompile>
112+
<Link>
113+
<AdditionalDependencies />
114+
</Link>
115+
</ItemDefinitionGroup>
116+
<ItemGroup>
117+
<Reference Include="System" />
118+
<Reference Include="System.Data" />
119+
<Reference Include="System.Drawing" />
120+
<Reference Include="System.Windows.Forms" />
121+
<Reference Include="System.Xml" />
122+
</ItemGroup>
123+
<ItemGroup>
124+
<ClCompile Include="CLSAppForm.cpp" />
125+
<ClCompile Include="main.cpp" />
126+
</ItemGroup>
127+
<ItemGroup>
128+
<ClInclude Include="CLSAppForm.h">
129+
<FileType>CppForm</FileType>
130+
</ClInclude>
131+
</ItemGroup>
132+
<ItemGroup>
133+
<EmbeddedResource Include="CLSAppForm.resx">
134+
<DependentUpon>CLSAppForm.h</DependentUpon>
135+
</EmbeddedResource>
136+
</ItemGroup>
137+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
138+
<ImportGroup Label="ExtensionTargets">
139+
</ImportGroup>
140+
</Project>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Исходные файлы">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Файлы заголовков">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Файлы ресурсов">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="CLSAppForm.cpp">
19+
<Filter>Исходные файлы</Filter>
20+
</ClCompile>
21+
<ClCompile Include="main.cpp">
22+
<Filter>Исходные файлы</Filter>
23+
</ClCompile>
24+
</ItemGroup>
25+
<ItemGroup>
26+
<ClInclude Include="CLSAppForm.h">
27+
<Filter>Файлы заголовков</Filter>
28+
</ClInclude>
29+
</ItemGroup>
30+
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "CLSAppForm.h"
2+
3+
namespace WinFormsCellLifeSimulationApp {
4+
[STAThreadAttribute]
5+
void main(array<String^>^ args) {
6+
Application::EnableVisualStyles();
7+
Application::SetCompatibleTextRenderingDefault(false);
8+
9+
CLSAppForm form;
10+
Application::Run(% form);
11+
}
12+
}

0 commit comments

Comments
 (0)
Please sign in to comment.