Commit 9565062f authored by Maxime's avatar Maxime
Browse files

add style and presentation

parent d01107c2
......@@ -42,17 +42,26 @@ void MainForm::InitializeComponent(void)
this->ListViewFile = (gcnew System::Windows::Forms::ColumnHeader());
this->ListViewIteration = (gcnew System::Windows::Forms::ColumnHeader());
this->ListViewCost = (gcnew System::Windows::Forms::ColumnHeader());
this->label7 = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->chart))->BeginInit();
this->SuspendLayout();
//
// buttonStart
//
this->buttonStart->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->buttonStart->BackgroundImageLayout = System::Windows::Forms::ImageLayout::None;
this->buttonStart->FlatAppearance->BorderSize = 0;
this->buttonStart->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttonStart->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->buttonStart->ForeColor = System::Drawing::Color::White;
this->buttonStart->Location = System::Drawing::Point(12, 12);
this->buttonStart->Name = L"buttonStart";
this->buttonStart->Size = System::Drawing::Size(75, 23);
this->buttonStart->Size = System::Drawing::Size(84, 42);
this->buttonStart->TabIndex = 0;
this->buttonStart->Text = L"Start";
this->buttonStart->UseVisualStyleBackColor = true;
this->buttonStart->UseVisualStyleBackColor = false;
this->buttonStart->Click += gcnew System::EventHandler(this, &MainForm::buttonStart_Click);
//
// openFileDialog1
......@@ -63,131 +72,189 @@ void MainForm::InitializeComponent(void)
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->label1->ForeColor = System::Drawing::Color::White;
this->label1->Location = System::Drawing::Point(148, 12);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(107, 13);
this->label1->Size = System::Drawing::Size(87, 20);
this->label1->TabIndex = 1;
this->label1->Text = L"Number of iterations :";
this->label1->Text = L"Iteration :";
//
// textBoxIteration
//
this->textBoxIteration->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->textBoxIteration->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->textBoxIteration->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->textBoxIteration->ForeColor = System::Drawing::Color::White;
this->textBoxIteration->Location = System::Drawing::Point(264, 9);
this->textBoxIteration->Name = L"textBoxIteration";
this->textBoxIteration->ReadOnly = true;
this->textBoxIteration->Size = System::Drawing::Size(93, 20);
this->textBoxIteration->Size = System::Drawing::Size(93, 26);
this->textBoxIteration->TabIndex = 2;
//
// buttonStop
//
this->buttonStop->Location = System::Drawing::Point(12, 41);
this->buttonStop->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->buttonStop->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttonStop->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->buttonStop->ForeColor = System::Drawing::Color::White;
this->buttonStop->Location = System::Drawing::Point(12, 60);
this->buttonStop->Name = L"buttonStop";
this->buttonStop->Size = System::Drawing::Size(75, 23);
this->buttonStop->Size = System::Drawing::Size(84, 42);
this->buttonStop->TabIndex = 4;
this->buttonStop->Text = L"Stop";
this->buttonStop->UseVisualStyleBackColor = true;
this->buttonStop->UseVisualStyleBackColor = false;
this->buttonStop->Click += gcnew System::EventHandler(this, &MainForm::buttonStop_Click);
//
// buttonFile
//
this->buttonFile->Location = System::Drawing::Point(12, 142);
this->buttonFile->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->buttonFile->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttonFile->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->buttonFile->ForeColor = System::Drawing::Color::White;
this->buttonFile->Location = System::Drawing::Point(12, 123);
this->buttonFile->Name = L"buttonFile";
this->buttonFile->Size = System::Drawing::Size(75, 23);
this->buttonFile->Size = System::Drawing::Size(122, 42);
this->buttonFile->TabIndex = 5;
this->buttonFile->Text = L"Select File";
this->buttonFile->UseVisualStyleBackColor = true;
this->buttonFile->UseVisualStyleBackColor = false;
this->buttonFile->Click += gcnew System::EventHandler(this, &MainForm::buttonFile_Click);
//
// textBoxFile
//
this->textBoxFile->Location = System::Drawing::Point(136, 175);
this->textBoxFile->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->textBoxFile->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->textBoxFile->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->textBoxFile->ForeColor = System::Drawing::Color::White;
this->textBoxFile->Location = System::Drawing::Point(191, 175);
this->textBoxFile->Name = L"textBoxFile";
this->textBoxFile->ReadOnly = true;
this->textBoxFile->Size = System::Drawing::Size(131, 20);
this->textBoxFile->Size = System::Drawing::Size(131, 26);
this->textBoxFile->TabIndex = 7;
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->label2->ForeColor = System::Drawing::Color::White;
this->label2->Location = System::Drawing::Point(12, 178);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(72, 13);
this->label2->Size = System::Drawing::Size(121, 20);
this->label2->TabIndex = 6;
this->label2->Text = L"File selected :";
//
// label3
//
this->label3->AutoSize = true;
this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->label3->ForeColor = System::Drawing::Color::White;
this->label3->Location = System::Drawing::Point(12, 204);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(88, 13);
this->label3->Size = System::Drawing::Size(148, 20);
this->label3->TabIndex = 8;
this->label3->Text = L"Number of parts :";
//
// label4
//
this->label4->AutoSize = true;
this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->label4->ForeColor = System::Drawing::Color::White;
this->label4->Location = System::Drawing::Point(12, 230);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(110, 13);
this->label4->Size = System::Drawing::Size(183, 20);
this->label4->TabIndex = 9;
this->label4->Text = L"Number of machines :";
//
// textBoxNbPart
//
this->textBoxNbPart->Location = System::Drawing::Point(136, 201);
this->textBoxNbPart->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->textBoxNbPart->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->textBoxNbPart->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->textBoxNbPart->ForeColor = System::Drawing::Color::White;
this->textBoxNbPart->Location = System::Drawing::Point(191, 201);
this->textBoxNbPart->Name = L"textBoxNbPart";
this->textBoxNbPart->ReadOnly = true;
this->textBoxNbPart->Size = System::Drawing::Size(56, 20);
this->textBoxNbPart->Size = System::Drawing::Size(56, 26);
this->textBoxNbPart->TabIndex = 10;
//
// textBoxNbMachine
//
this->textBoxNbMachine->Location = System::Drawing::Point(136, 227);
this->textBoxNbMachine->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->textBoxNbMachine->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->textBoxNbMachine->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->textBoxNbMachine->ForeColor = System::Drawing::Color::White;
this->textBoxNbMachine->Location = System::Drawing::Point(191, 227);
this->textBoxNbMachine->Name = L"textBoxNbMachine";
this->textBoxNbMachine->ReadOnly = true;
this->textBoxNbMachine->Size = System::Drawing::Size(56, 20);
this->textBoxNbMachine->Size = System::Drawing::Size(56, 26);
this->textBoxNbMachine->TabIndex = 11;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->label5->ForeColor = System::Drawing::Color::White;
this->label5->Location = System::Drawing::Point(12, 256);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(84, 13);
this->label5->Size = System::Drawing::Size(140, 20);
this->label5->TabIndex = 12;
this->label5->Text = L"Supposed best :";
//
// textBoxSupposedBest
//
this->textBoxSupposedBest->Location = System::Drawing::Point(136, 253);
this->textBoxSupposedBest->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)),
static_cast<System::Int32>(static_cast<System::Byte>(78)), static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->textBoxSupposedBest->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->textBoxSupposedBest->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->textBoxSupposedBest->ForeColor = System::Drawing::Color::White;
this->textBoxSupposedBest->Location = System::Drawing::Point(191, 253);
this->textBoxSupposedBest->Name = L"textBoxSupposedBest";
this->textBoxSupposedBest->ReadOnly = true;
this->textBoxSupposedBest->Size = System::Drawing::Size(56, 20);
this->textBoxSupposedBest->Size = System::Drawing::Size(56, 26);
this->textBoxSupposedBest->TabIndex = 13;
//
// textBoxCurrentBest
//
this->textBoxCurrentBest->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)),
static_cast<System::Int32>(static_cast<System::Byte>(78)), static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->textBoxCurrentBest->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->textBoxCurrentBest->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->textBoxCurrentBest->ForeColor = System::Drawing::Color::White;
this->textBoxCurrentBest->Location = System::Drawing::Point(264, 38);
this->textBoxCurrentBest->Name = L"textBoxCurrentBest";
this->textBoxCurrentBest->ReadOnly = true;
this->textBoxCurrentBest->Size = System::Drawing::Size(93, 20);
this->textBoxCurrentBest->Size = System::Drawing::Size(93, 26);
this->textBoxCurrentBest->TabIndex = 15;
//
// label6
//
this->label6->AutoSize = true;
this->label6->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->label6->ForeColor = System::Drawing::Color::White;
this->label6->Location = System::Drawing::Point(148, 41);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(109, 13);
this->label6->Size = System::Drawing::Size(118, 20);
this->label6->TabIndex = 14;
this->label6->Text = L"Current best solution :";
this->label6->Text = L"Current cost :";
//
// chart
//
this->chart->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
chartArea1->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
chartArea1->BackSecondaryColor = System::Drawing::Color::White;
chartArea1->Name = L"ChartArea1";
this->chart->ChartAreas->Add(chartArea1);
this->chart->Location = System::Drawing::Point(373, 9);
this->chart->Name = L"chart";
this->chart->Palette = System::Windows::Forms::DataVisualization::Charting::ChartColorPalette::Light;
series1->ChartArea = L"ChartArea1";
series1->ChartType = System::Windows::Forms::DataVisualization::Charting::SeriesChartType::Line;
series1->IsVisibleInLegend = false;
......@@ -198,12 +265,17 @@ void MainForm::InitializeComponent(void)
//
// listView
//
this->listView->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->listView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(3) {
this->ListViewFile, this->ListViewIteration,
this->ListViewCost
});
this->listView->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->listView->ForeColor = System::Drawing::Color::White;
this->listView->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
this->listView->HideSelection = false;
this->listView->Location = System::Drawing::Point(842, 9);
this->listView->Location = System::Drawing::Point(811, 9);
this->listView->Name = L"listView";
this->listView->Size = System::Drawing::Size(304, 300);
this->listView->TabIndex = 17;
......@@ -225,9 +297,24 @@ void MainForm::InitializeComponent(void)
this->ListViewCost->Text = L"Cost";
this->ListViewCost->Width = 100;
//
// label7
//
this->label7->AutoSize = true;
this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12));
this->label7->ForeColor = System::Drawing::Color::White;
this->label7->Location = System::Drawing::Point(854, 358);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(261, 20);
this->label7->TabIndex = 18;
this->label7->Text = L"Maxime POULAIN et Sinaro LY - F2";
//
// MainForm
//
this->ClientSize = System::Drawing::Size(1175, 353);
this->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(43)), static_cast<System::Int32>(static_cast<System::Byte>(93)),
static_cast<System::Int32>(static_cast<System::Byte>(140)));
this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::None;
this->ClientSize = System::Drawing::Size(1123, 387);
this->Controls->Add(this->label7);
this->Controls->Add(this->listView);
this->Controls->Add(this->chart);
this->Controls->Add(this->textBoxCurrentBest);
......@@ -400,3 +487,6 @@ System::Void MainForm::buttonStop_Click(System::Object^ sender, System::EventArg
}
......@@ -76,6 +76,7 @@ private: System::Windows::Forms::ListView^ listView;
private: System::Windows::Forms::ColumnHeader^ ListViewFile;
private: System::Windows::Forms::ColumnHeader^ ListViewIteration;
private: System::Windows::Forms::ColumnHeader^ ListViewCost;
private: System::Windows::Forms::Label^ label7;
......@@ -113,4 +114,5 @@ private: char* stringToChar(String^ string);
private: System::Void buttonStart_Click(System::Object^ sender, System::EventArgs^ e);
private: System::Void buttonStop_Click(System::Object^ sender, System::EventArgs^ e);
};
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
No preview for this file type
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment