Blame | Last modification | View Log | RSS feed
#pragma once#include <spk.h>using namespace System;using namespace System::ComponentModel;using namespace System::Collections;using namespace System::Windows::Forms;using namespace System::Data;using namespace System::Drawing;namespace PluginManager {/// <summary>/// Summary for CommandSlots////// WARNING: If you change the name of this class, you will need to change the/// 'Resource File Name' property for the managed resource compiler tool/// associated with all .resx files this class depends on. Otherwise,/// the designers will not be able to interact properly with localized/// resources associated with this form./// </summary>public ref class CommandSlots : public System::Windows::Forms::Form{public:CommandSlots(CPackages *packages) : _pPackages(packages){InitializeComponent();updateCommands();}void updateCommands();protected:System::String ^_commandType(int id);System::String ^_commandSlot(int id, bool bWing);void _updateCommands(CLinkList<SCommandSlot> &list, ListView ^listView);void _updateCommandConflicts(CLinkList<SCommandSlot> &list, bool bWing);int _commandIcon(int id);private: System::Windows::Forms::ColumnHeader^ columnHeader2;protected:private: System::Windows::Forms::ColumnHeader^ columnHeader3;private: System::Windows::Forms::ColumnHeader^ columnHeader4;private: System::Windows::Forms::ColumnHeader^ columnHeader5;private: System::Windows::Forms::ColumnHeader^ columnHeader6;private: System::Windows::Forms::TabControl^ tabControl1;private: System::Windows::Forms::TabPage^ tabPage1;private: System::Windows::Forms::TabPage^ tabPage2;private: System::Windows::Forms::ListView^ listView2;private: System::Windows::Forms::ColumnHeader^ columnHeader7;private: System::Windows::Forms::ColumnHeader^ columnHeader8;private: System::Windows::Forms::ColumnHeader^ columnHeader9;private: System::Windows::Forms::ColumnHeader^ columnHeader10;private: System::Windows::Forms::ColumnHeader^ columnHeader11;private: System::Windows::Forms::ColumnHeader^ columnHeader12;private: System::Windows::Forms::ImageList^ imageList1;private: System::Windows::Forms::TabPage^ tabPage3;private: System::Windows::Forms::ListView^ listView3;private: System::Windows::Forms::ColumnHeader^ columnHeader13;private: System::Windows::Forms::ColumnHeader^ columnHeader14;private: System::Windows::Forms::ColumnHeader^ columnHeader15;CPackages *_pPackages;/// <summary>/// Clean up any resources being used./// </summary>~CommandSlots(){if (components){delete components;}}private: System::Windows::Forms::Button^ button1;protected:private: System::Windows::Forms::ListView^ listView1;private: System::Windows::Forms::ColumnHeader^ columnHeader1;private: System::ComponentModel::IContainer^ components;private:/// <summary>/// Required designer variable./// </summary>#pragma region Windows Form Designer generated code/// <summary>/// Required method for Designer support - do not modify/// the contents of this method with the code editor./// </summary>void InitializeComponent(void){this->components = (gcnew System::ComponentModel::Container());System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(CommandSlots::typeid));this->button1 = (gcnew System::Windows::Forms::Button());this->listView1 = (gcnew System::Windows::Forms::ListView());this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader5 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader6 = (gcnew System::Windows::Forms::ColumnHeader());this->imageList1 = (gcnew System::Windows::Forms::ImageList(this->components));this->tabControl1 = (gcnew System::Windows::Forms::TabControl());this->tabPage1 = (gcnew System::Windows::Forms::TabPage());this->tabPage2 = (gcnew System::Windows::Forms::TabPage());this->listView2 = (gcnew System::Windows::Forms::ListView());this->columnHeader7 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader8 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader9 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader10 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader11 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader12 = (gcnew System::Windows::Forms::ColumnHeader());this->tabPage3 = (gcnew System::Windows::Forms::TabPage());this->listView3 = (gcnew System::Windows::Forms::ListView());this->columnHeader13 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader14 = (gcnew System::Windows::Forms::ColumnHeader());this->columnHeader15 = (gcnew System::Windows::Forms::ColumnHeader());this->tabControl1->SuspendLayout();this->tabPage1->SuspendLayout();this->tabPage2->SuspendLayout();this->tabPage3->SuspendLayout();this->SuspendLayout();//// button1//this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;this->button1->Location = System::Drawing::Point(667, 468);this->button1->Name = L"button1";this->button1->Size = System::Drawing::Size(102, 41);this->button1->TabIndex = 0;this->button1->Text = L"Close";this->button1->UseVisualStyleBackColor = true;//// listView1//this->listView1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)| System::Windows::Forms::AnchorStyles::Left)| System::Windows::Forms::AnchorStyles::Right));this->listView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(6) {this->columnHeader1, this->columnHeader2,this->columnHeader3, this->columnHeader4, this->columnHeader5, this->columnHeader6});this->listView1->FullRowSelect = true;this->listView1->LargeImageList = this->imageList1;this->listView1->Location = System::Drawing::Point(-4, 0);this->listView1->Name = L"listView1";this->listView1->Size = System::Drawing::Size(757, 411);this->listView1->SmallImageList = this->imageList1;this->listView1->TabIndex = 1;this->listView1->UseCompatibleStateImageBehavior = false;this->listView1->View = System::Windows::Forms::View::Details;//// columnHeader1//this->columnHeader1->Text = L"Slot";//// columnHeader2//this->columnHeader2->Text = L"Name";//// columnHeader3//this->columnHeader3->Text = L"Package";//// columnHeader4//this->columnHeader4->Text = L"Short Name";//// columnHeader5//this->columnHeader5->Text = L"Info";//// columnHeader6//this->columnHeader6->Text = L"ID";//// imageList1//this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"imageList1.ImageStream")));this->imageList1->TransparentColor = System::Drawing::Color::Transparent;this->imageList1->Images->SetKeyName(0, L"navigation.png");this->imageList1->Images->SetKeyName(1, L"combat.png");this->imageList1->Images->SetKeyName(2, L"trade.png");this->imageList1->Images->SetKeyName(3, L"special.png");this->imageList1->Images->SetKeyName(4, L"pirate.png");this->imageList1->Images->SetKeyName(5, L"command.png");this->imageList1->Images->SetKeyName(6, L"stock_init.png");this->imageList1->Images->SetKeyName(7, L"sandman_gun.png");this->imageList1->Images->SetKeyName(8, L"commandprompt.ico");this->imageList1->Images->SetKeyName(9, L"space_station.png");this->imageList1->Images->SetKeyName(10, L"run.png");this->imageList1->Images->SetKeyName(11, L"tf_droid_control_ship.png");this->imageList1->Images->SetKeyName(12, L"plus_minus2.png");this->imageList1->Images->SetKeyName(13, L"Actions-dialog-ok-apply-icon.png");this->imageList1->Images->SetKeyName(14, L"no.png");this->imageList1->Images->SetKeyName(15, L"emblem_cvs_conflict.png");this->imageList1->Images->SetKeyName(16, L"angel_wing.png");//// tabControl1//this->tabControl1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)| System::Windows::Forms::AnchorStyles::Left)| System::Windows::Forms::AnchorStyles::Right));this->tabControl1->Controls->Add(this->tabPage1);this->tabControl1->Controls->Add(this->tabPage2);this->tabControl1->Controls->Add(this->tabPage3);this->tabControl1->ImageList = this->imageList1;this->tabControl1->Location = System::Drawing::Point(12, 12);this->tabControl1->Name = L"tabControl1";this->tabControl1->SelectedIndex = 0;this->tabControl1->Size = System::Drawing::Size(757, 450);this->tabControl1->TabIndex = 2;//// tabPage1//this->tabPage1->Controls->Add(this->listView1);this->tabPage1->ImageKey = L"commandprompt.ico";this->tabPage1->Location = System::Drawing::Point(4, 39);this->tabPage1->Name = L"tabPage1";this->tabPage1->Padding = System::Windows::Forms::Padding(3);this->tabPage1->Size = System::Drawing::Size(749, 407);this->tabPage1->TabIndex = 0;this->tabPage1->Text = L"Commands";this->tabPage1->UseVisualStyleBackColor = true;//// tabPage2//this->tabPage2->Controls->Add(this->listView2);this->tabPage2->ImageIndex = 16;this->tabPage2->Location = System::Drawing::Point(4, 39);this->tabPage2->Name = L"tabPage2";this->tabPage2->Padding = System::Windows::Forms::Padding(3);this->tabPage2->Size = System::Drawing::Size(749, 407);this->tabPage2->TabIndex = 1;this->tabPage2->Text = L"Wing Commands";this->tabPage2->UseVisualStyleBackColor = true;//// listView2//this->listView2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)| System::Windows::Forms::AnchorStyles::Left)| System::Windows::Forms::AnchorStyles::Right));this->listView2->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(6) {this->columnHeader7, this->columnHeader8,this->columnHeader9, this->columnHeader10, this->columnHeader11, this->columnHeader12});this->listView2->FullRowSelect = true;this->listView2->LargeImageList = this->imageList1;this->listView2->Location = System::Drawing::Point(-4, 0);this->listView2->Name = L"listView2";this->listView2->Size = System::Drawing::Size(757, 411);this->listView2->SmallImageList = this->imageList1;this->listView2->TabIndex = 0;this->listView2->UseCompatibleStateImageBehavior = false;this->listView2->View = System::Windows::Forms::View::Details;//// columnHeader7//this->columnHeader7->Text = L"Slot";//// columnHeader8//this->columnHeader8->Text = L"Name";//// columnHeader9//this->columnHeader9->Text = L"Package";//// columnHeader10//this->columnHeader10->Text = L"Short Name";//// columnHeader11//this->columnHeader11->Text = L"Info";//// columnHeader12//this->columnHeader12->Text = L"ID";//// tabPage3//this->tabPage3->Controls->Add(this->listView3);this->tabPage3->ImageIndex = 15;this->tabPage3->Location = System::Drawing::Point(4, 39);this->tabPage3->Name = L"tabPage3";this->tabPage3->Padding = System::Windows::Forms::Padding(3);this->tabPage3->Size = System::Drawing::Size(749, 407);this->tabPage3->TabIndex = 2;this->tabPage3->Text = L"Conflicts";this->tabPage3->UseVisualStyleBackColor = true;//// listView3//this->listView3->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)| System::Windows::Forms::AnchorStyles::Left)| System::Windows::Forms::AnchorStyles::Right));this->listView3->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(3) {this->columnHeader13, this->columnHeader14,this->columnHeader15});this->listView3->FullRowSelect = true;this->listView3->LargeImageList = this->imageList1;this->listView3->Location = System::Drawing::Point(-4, 0);this->listView3->Name = L"listView3";this->listView3->Size = System::Drawing::Size(757, 411);this->listView3->SmallImageList = this->imageList1;this->listView3->TabIndex = 0;this->listView3->UseCompatibleStateImageBehavior = false;this->listView3->View = System::Windows::Forms::View::Details;//// columnHeader13//this->columnHeader13->Text = L"Package";//// columnHeader14//this->columnHeader14->Text = L"Name";//// columnHeader15//this->columnHeader15->Text = L"Info";//// CommandSlots//this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;this->ClientSize = System::Drawing::Size(781, 521);this->Controls->Add(this->tabControl1);this->Controls->Add(this->button1);this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));this->Name = L"CommandSlots";this->Text = L"CommandSlots";this->tabControl1->ResumeLayout(false);this->tabPage1->ResumeLayout(false);this->tabPage2->ResumeLayout(false);this->tabPage3->ResumeLayout(false);this->ResumeLayout(false);}#pragma endregion};}