Skip to content

Commit

Permalink
Added parameters to main form.
Browse files Browse the repository at this point in the history
  • Loading branch information
avighnac committed Apr 14, 2022
1 parent 7aa13ac commit 144d629
Show file tree
Hide file tree
Showing 3 changed files with 327 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Get Wordle Word - GUI/Get Wordle Word - GUI.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@
<FileType>CppForm</FileType>
</ClInclude>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="GetWordleWordGUI.resx">
<DependentUpon>GetWordleWordGUI.h</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
210 changes: 202 additions & 8 deletions Get Wordle Word - GUI/GetWordleWordGUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,50 @@ namespace GetWordleWordGUI {
}
}

private:
System::Windows::Forms::Label ^ label1;

private:


private:
System::Windows::Forms::Label ^ label2;

private:
System::Windows::Forms::RichTextBox ^ richTextBox1;

private:
System::Windows::Forms::Label ^ label3;

private:
System::Windows::Forms::RichTextBox ^ richTextBox2;

private:
System::Windows::Forms::Label ^ label4;

private:
System::Windows::Forms::RichTextBox ^ richTextBox3;

private:
System::Windows::Forms::Label ^ label5;

private:
System::Windows::Forms::RichTextBox ^ richTextBox4;

private:
System::Windows::Forms::RichTextBox ^ richTextBox5;

private:


private:


private:


protected:

private:
/// <summary>
/// Required designer variable.
Expand All @@ -48,12 +92,162 @@ namespace GetWordleWordGUI {
/// </summary>
void InitializeComponent(void)
{
this->components = gcnew System::ComponentModel::Container();
this->Size = System::Drawing::Size(300,300);
this->Text = L"Get Wordle Word";
this->Padding = System::Windows::Forms::Padding(0);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
}
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->richTextBox1 =
(gcnew System::Windows::Forms::RichTextBox());
this->label3 = (gcnew System::Windows::Forms::Label());
this->richTextBox2 =
(gcnew System::Windows::Forms::RichTextBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->richTextBox3 =
(gcnew System::Windows::Forms::RichTextBox());
this->label5 = (gcnew System::Windows::Forms::Label());
this->richTextBox4 =
(gcnew System::Windows::Forms::RichTextBox());
this->richTextBox5 =
(gcnew System::Windows::Forms::RichTextBox());
this->SuspendLayout();
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(12, 50);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(110, 16);
this->label1->TabIndex = 0;
this->label1->Text = L"Letters to include:";
this->label1->Click += gcnew System::EventHandler(
this, &GetWordleWordGUI::label1_Click);
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location = System::Drawing::Point(413, 50);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(91, 16);
this->label2->TabIndex = 2;
this->label2->Text = L"Best Guesses";
this->label2->Click += gcnew System::EventHandler(
this, &GetWordleWordGUI::label2_Click);
//
// richTextBox1
//
this->richTextBox1->Location = System::Drawing::Point(15, 69);
this->richTextBox1->Name = L"richTextBox1";
this->richTextBox1->Size = System::Drawing::Size(241, 25);
this->richTextBox1->TabIndex = 3;
this->richTextBox1->Text = L"";
//
// label3
//
this->label3->AutoSize = true;
this->label3->Location = System::Drawing::Point(12, 122);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(114, 16);
this->label3->TabIndex = 4;
this->label3->Text = L"Letters to exclude:";
this->label3->Click += gcnew System::EventHandler(
this, &GetWordleWordGUI::label3_Click);
//
// richTextBox2
//
this->richTextBox2->Location =
System::Drawing::Point(15, 141);
this->richTextBox2->Name = L"richTextBox2";
this->richTextBox2->Size = System::Drawing::Size(241, 25);
this->richTextBox2->TabIndex = 5;
this->richTextBox2->Text = L"";
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(15, 187);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(192, 16);
this->label4->TabIndex = 6;
this->label4->Text = L"Letters in their correct positions:";
//
// richTextBox3
//
this->richTextBox3->Location =
System::Drawing::Point(15, 206);
this->richTextBox3->Name = L"richTextBox3";
this->richTextBox3->Size = System::Drawing::Size(241, 25);
this->richTextBox3->TabIndex = 7;
this->richTextBox3->Text = L"";
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(15, 245);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(202, 16);
this->label5->TabIndex = 8;
this->label5->Text = L"Letters in their incorrect positions:";
//
// richTextBox4
//
this->richTextBox4->Location =
System::Drawing::Point(15, 264);
this->richTextBox4->Name = L"richTextBox4";
this->richTextBox4->Size = System::Drawing::Size(241, 25);
this->richTextBox4->TabIndex = 9;
this->richTextBox4->Text = L"";
//
// richTextBox5
//
this->richTextBox5->Location =
System::Drawing::Point(308, 73);
this->richTextBox5->Name = L"richTextBox5";
this->richTextBox5->Size = System::Drawing::Size(285, 228);
this->richTextBox5->TabIndex = 10;
this->richTextBox5->Text = L"";
//
// GetWordleWordGUI
//
this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
this->AutoScaleMode =
System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(609, 312);
this->Controls->Add(this->richTextBox5);
this->Controls->Add(this->richTextBox4);
this->Controls->Add(this->label5);
this->Controls->Add(this->richTextBox3);
this->Controls->Add(this->label4);
this->Controls->Add(this->richTextBox2);
this->Controls->Add(this->label3);
this->Controls->Add(this->richTextBox1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Name = L"GetWordleWordGUI";
this->Text = L"Get Wordle Word";
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
};
}
private:
System::Void label1_Click(System::Object ^ sender,
System::EventArgs ^ e) {}

private:
System::Void richTextBox1_TextChanged(System::Object ^ sender,
System::EventArgs ^ e) {}

private:
System::Void label2_Click(System::Object ^ sender,
System::EventArgs ^ e) {}

private:
System::Void pictureBox1_Click(System::Object ^ sender,
System::EventArgs ^ e) {}

private:
System::Void buttonA_Click(System::Object ^ sender,
System::EventArgs ^ e) {}

private:
System::Void label3_Click(System::Object ^ sender,
System::EventArgs ^ e) {}
};
}
120 changes: 120 additions & 0 deletions Get Wordle Word - GUI/GetWordleWordGUI.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

0 comments on commit 144d629

Please sign in to comment.