Subversion Repositories spk

Rev

Rev 162 | Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 162 Rev 165
Line 575... Line 575...
575
				}
575
				}
576
				break;
576
				break;
577
			case 3: // CutData
577
			case 3: // CutData
578
				numColums = 1;
578
				numColums = 1;
579
				this->ColumnPart1->Text = "Cuts";
579
				this->ColumnPart1->Text = "Cuts";
580
				for ( SStringList *cut = xsp->GetCutData()->Head(); cut; cut = cut->next )
580
				for(auto itr = xsp->getCutData().begin(); itr != xsp->getCutData().end(); itr++)
581
				{
581
				{
582
					ListViewItem ^item = gcnew ListViewItem(SystemStringFromCyString(cut->str));
582
					ListViewItem ^item = gcnew ListViewItem(_US((*itr)->str));
583
					item->ImageKey = "cutdata";
583
					item->ImageKey = "cutdata";
584
					this->ListShipPart->Items->Add(item);
584
					this->ListShipPart->Items->Add(item);
585
				}
585
				}
586
				break;
586
				break;
587
			case 4: // Bodies
587
			case 4: // Bodies
Line 1581... Line 1581...
1581
					if ( edit )
1581
					if ( edit )
1582
					{
1582
					{
1583
						InputBox ^input2 = gcnew InputBox("Enter the filename for cut id: " + SystemStringFromCyString(CyStringFromSystemString(m_pSelectedItem->Text).GetToken(";", 1, 1)), SystemStringFromCyString(CyStringFromSystemString(m_pSelectedItem->Text).GetToken(";", 2, 2)));
1583
						InputBox ^input2 = gcnew InputBox("Enter the filename for cut id: " + SystemStringFromCyString(CyStringFromSystemString(m_pSelectedItem->Text).GetToken(";", 1, 1)), SystemStringFromCyString(CyStringFromSystemString(m_pSelectedItem->Text).GetToken(";", 2, 2)));
1584
						if ( input2->ShowDialog(this) == Windows::Forms::DialogResult::OK )
1584
						if ( input2->ShowDialog(this) == Windows::Forms::DialogResult::OK )
1585
						{
1585
						{
1586
							xsp->RemoveCutData(_S(m_pSelectedItem->Text));
1586
							xsp->removeCutData(_S(m_pSelectedItem->Text));
1587
							xsp->AddCutData(_S(SystemStringFromCyString(CyStringFromSystemString(m_pSelectedItem->;Text).GetToken(";", 1, 1)) + "; " + input2->GetInput()));
1587
							xsp->addCutData(_S(m_pSelectedItem->;Text).token(";", 1) + "; " + _S(input2->GetInput()));
1588
							this->UpdateShipPartList();
1588
							this->UpdateShipPartList();
1589
						}
1589
						}
1590
					}
1590
					}
1591
					else
1591
					else
1592
					{
1592
					{
Line 1594... Line 1594...
1594
						if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
1594
						if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
1595
						{
1595
						{
1596
							InputBox ^input2 = gcnew InputBox("Enter the filename for cut id: " + input->GetInput());
1596
							InputBox ^input2 = gcnew InputBox("Enter the filename for cut id: " + input->GetInput());
1597
							if ( input2->ShowDialog(this) == Windows::Forms::DialogResult::OK )
1597
							if ( input2->ShowDialog(this) == Windows::Forms::DialogResult::OK )
1598
							{
1598
							{
1599
								xsp->AddCutData(_S(input->GetInput() + "; " + input2->GetInput()));
1599
								xsp->addCutData(_S(input->GetInput() + "; " + input2->GetInput()));
1600
								this->UpdateShipPartList();
1600
								this->UpdateShipPartList();
1601
							}
1601
							}
1602
						}
1602
						}
1603
					}
1603
					}
1604
				}
1604
				}
Line 1865... Line 1865...
1865
							break;
1865
							break;
1866
						case 2:
1866
						case 2:
1867
							((CXspFile *)m_pPackage)->AddCockpit(s->data.GetToken(" ", 2).ToString(), 0, -1, s->data.GetToken(" ", 1, 1).ToInt());
1867
							((CXspFile *)m_pPackage)->AddCockpit(s->data.GetToken(" ", 2).ToString(), 0, -1, s->data.GetToken(" ", 1, 1).ToInt());
1868
							break;
1868
							break;
1869
						case 3:
1869
						case 3:
1870
							((CXspFile *)m_pPackage)->AddCutData(s->data.GetToken(" ", 2).ToString());
1870
							((CXspFile *)m_pPackage)->addCutData(s->data.GetToken(" ", 2).ToString());
1871
							break;
1871
							break;
1872
						case 4:
1872
						case 4:
1873
							((CXspFile *)m_pPackage)->AddBodies(s->data.GetToken(" ", 2).ToString());
1873
							((CXspFile *)m_pPackage)->AddBodies(s->data.GetToken(" ", 2).ToString());
1874
							break;
1874
							break;
1875
						case 1:
1875
						case 1: