Subversion Repositories spk

Rev

Rev 94 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 94 Rev 197
Line 12... Line 12...
12
			this->Text = "Add Component Entry";
12
			this->Text = "Add Component Entry";
13
 
13
 
14
		this->PanelSection2->Visible = true;
14
		this->PanelSection2->Visible = true;
15
 
15
 
16
		CGameDirectories *gameDir = _prepareSection();
16
		CGameDirectories *gameDir = _prepareSection();
17
		for ( Utils::String section = gameDir->firstComponentSection(); !section.empty(); section = gameDir->nextComponentSection() )
17
		for ( Utils::WString section = gameDir->firstComponentSection(); !section.empty(); section = gameDir->nextComponentSection() )
18
			this->ComboSection->Items->Add(_US(section));
18
			this->ComboSection->Items->Add(_US(section));
19
	}
19
	}
20
 
20
 
21
	CGameDirectories *AddShipPart::_prepareSection()
21
	CGameDirectories *AddShipPart::_prepareSection()
22
	{
22
	{
Line 36... Line 36...
36
			this->Text = "Add Component Entry";
36
			this->Text = "Add Component Entry";
37
 
37
 
38
		this->PanelSection2->Visible = false;
38
		this->PanelSection2->Visible = false;
39
 
39
 
40
		CGameDirectories *gameDir = _prepareSection();
40
		CGameDirectories *gameDir = _prepareSection();
41
		for ( Utils::String section = gameDir->firstDummySection(); !section.empty(); section = gameDir->nextDummySection() )
41
		for ( Utils::WString section = gameDir->firstDummySection(); !section.empty(); section = gameDir->nextDummySection() )
42
			this->ComboSection->Items->Add(_US(section));
42
			this->ComboSection->Items->Add(_US(section));
43
	}
43
	}
44
 
44
 
45
	void AddShipPart::SetBodies(bool edit)
45
	void AddShipPart::SetBodies(bool edit)
46
	{
46
	{
Line 50... Line 50...
50
			this->Text = "Add Bodies Entry";
50
			this->Text = "Add Bodies Entry";
51
 
51
 
52
		this->PanelSection2->Visible = false;
52
		this->PanelSection2->Visible = false;
53
 
53
 
54
		CGameDirectories *gameDir = _prepareSection();
54
		CGameDirectories *gameDir = _prepareSection();
55
		for ( Utils::String section = gameDir->firstBodiesSection(); !section.empty(); section = gameDir->nextBodiesSection() )
55
		for ( Utils::WString section = gameDir->firstBodiesSection(); !section.empty(); section = gameDir->nextBodiesSection() )
56
			this->ComboSection->Items->Add(_US(section));
56
			this->ComboSection->Items->Add(_US(section));
57
	}
57
	}
58
}
58
}