Skip to content

Commit

Permalink
Added link to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Random-typ committed Apr 1, 2024
1 parent 456d9a7 commit 78475a9
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions Hotkeyfy/Form1.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ namespace Hotkeyfy {
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::Label^ label8;
private: System::Windows::Forms::LinkLabel^ linkLabel1;

private: System::ComponentModel::IContainer^ components;

Expand All @@ -112,15 +113,15 @@ namespace Hotkeyfy {
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::Windows::Forms::ListViewItem^ listViewItem1 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Play Pause" },
System::Windows::Forms::ListViewItem^ listViewItem6 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Play Pause" },
-1, System::Drawing::SystemColors::ControlLight, System::Drawing::Color::Empty, nullptr));
System::Windows::Forms::ListViewItem^ listViewItem2 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Previous Track" },
System::Windows::Forms::ListViewItem^ listViewItem7 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Previous Track" },
-1, System::Drawing::SystemColors::ControlLight, System::Drawing::Color::Empty, nullptr));
System::Windows::Forms::ListViewItem^ listViewItem3 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Next Track" },
System::Windows::Forms::ListViewItem^ listViewItem8 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Next Track" },
-1, System::Drawing::SystemColors::ControlLight, System::Drawing::Color::Empty, nullptr));
System::Windows::Forms::ListViewItem^ listViewItem4 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Volume Up" },
System::Windows::Forms::ListViewItem^ listViewItem9 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Volume Up" },
-1, System::Drawing::SystemColors::ControlLight, System::Drawing::Color::Empty, nullptr));
System::Windows::Forms::ListViewItem^ listViewItem5 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Volume Down" },
System::Windows::Forms::ListViewItem^ listViewItem10 = (gcnew System::Windows::Forms::ListViewItem(gcnew cli::array< System::String^ >(1) { L"Volume Down" },
-1, System::Drawing::SystemColors::ControlLight, System::Drawing::Color::Empty, nullptr));
this->label1 = (gcnew System::Windows::Forms::Label());
this->panel1 = (gcnew System::Windows::Forms::Panel());
Expand All @@ -134,6 +135,7 @@ namespace Hotkeyfy {
this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
this->label6 = (gcnew System::Windows::Forms::Label());
this->label8 = (gcnew System::Windows::Forms::Label());
this->linkLabel1 = (gcnew System::Windows::Forms::LinkLabel());
this->panel1->SuspendLayout();
this->SuspendLayout();
//
Expand Down Expand Up @@ -223,13 +225,13 @@ namespace Hotkeyfy {
static_cast<System::Byte>(0)));
this->listView1->HideSelection = false;
this->listView1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ListViewItem^ >(5) {
listViewItem1, listViewItem2,
listViewItem3, listViewItem4, listViewItem5
listViewItem6, listViewItem7,
listViewItem8, listViewItem9, listViewItem10
});
this->listView1->Location = System::Drawing::Point(14, 44);
this->listView1->MultiSelect = false;
this->listView1->Name = L"listView1";
this->listView1->Size = System::Drawing::Size(183, 257);
this->listView1->Size = System::Drawing::Size(183, 244);
this->listView1->TabIndex = 4;
this->listView1->UseCompatibleStateImageBehavior = false;
this->listView1->View = System::Windows::Forms::View::List;
Expand Down Expand Up @@ -265,11 +267,25 @@ namespace Hotkeyfy {
this->label8->TabIndex = 11;
this->label8->Text = L"<- Select an action";
//
// linkLabel1
//
this->linkLabel1->AutoSize = true;
this->linkLabel1->LinkColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(64)), static_cast<System::Int32>(static_cast<System::Byte>(64)),
static_cast<System::Int32>(static_cast<System::Byte>(64)));
this->linkLabel1->Location = System::Drawing::Point(13, 287);
this->linkLabel1->Name = L"linkLabel1";
this->linkLabel1->Size = System::Drawing::Size(70, 18);
this->linkLabel1->TabIndex = 12;
this->linkLabel1->TabStop = true;
this->linkLabel1->Text = L"©Luca Trefz";
this->linkLabel1->LinkClicked += gcnew System::Windows::Forms::LinkLabelLinkClickedEventHandler(this, &Form1::linkLabel1_LinkClicked);
//
// Form1
//
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::None;
this->BackColor = System::Drawing::Color::Black;
this->ClientSize = System::Drawing::Size(653, 311);
this->Controls->Add(this->linkLabel1);
this->Controls->Add(this->label8);
this->Controls->Add(this->label6);
this->Controls->Add(this->listView1);
Expand Down Expand Up @@ -523,5 +539,8 @@ namespace Hotkeyfy {
// this fixes the white background on custom controls
panel1->Refresh();
}
private: System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) {
System::Diagnostics::Process::Start(L"https://github.com/Random-typ/Hotkeyfy");
}
};
}

0 comments on commit 78475a9

Please sign in to comment.