Subversion Repositories spk

Rev

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

Rev 128 Rev 129
Line 43... Line 43...
43
 
43
 
44
			this->Text = "SPK Explorer " + GetProgramVersionString((float)VERSION, (int)BETA);
44
			this->Text = "SPK Explorer " + GetProgramVersionString((float)VERSION, (int)BETA);
45
			m_pLoadedList = new CyStringList;
45
			m_pLoadedList = new CyStringList;
46
 
46
 
47
			m_pPackages = new CPackages;
47
			m_pPackages = new CPackages;
48
			m_pPackages->Startup(".", CyStringFromSystemString(IO::Path::GetTempPath()), CyStringFromSystemString(Environment::GetFolderPath(Environment::SpecialFolder::Personal )));
48
			m_pPackages->startup(".", _S(IO::Path::GetTempPath()), _S(Environment::GetFolderPath(Environment::SpecialFolder::Personal)));
49
 
49
 
50
			this->UpdateDisplay();
50
			this->UpdateDisplay();
51
 
51
 
52
			m_curView = System::Windows::Forms::View::Details;
52
			m_curView = System::Windows::Forms::View::Details;
53
			m_lCopiedFiles = new CLinkList<C_File>;
53
			m_lCopiedFiles = new CLinkList<C_File>;
Line 591... Line 591...
591
			{
591
			{
592
				CMultiSpkFile *mspk = m_pPackages->OpenMultiPackage(sFile, &error);
592
				CMultiSpkFile *mspk = m_pPackages->OpenMultiPackage(sFile, &error);
593
				if ( mspk )
593
				if ( mspk )
594
				{
594
				{
595
					tp = gcnew TabPage();
595
					tp = gcnew TabPage();
596
					childForm = gcnew SpkForm(this, tabControl1, tp);
596
					childForm = gcnew SpkForm(this, tabControl1, tp, m_pPackages);
597
					childForm->SetMultiPackage(mspk, file);
597
					childForm->SetMultiPackage(mspk, file);
598
					tp->ImageIndex = this->imageList1->Images->IndexOfKey("multi");
598
					tp->ImageIndex = this->imageList1->Images->IndexOfKey("multi");
599
					if ( tp->ImageIndex == -1 )
599
					if ( tp->ImageIndex == -1 )
600
						tp->ImageIndex = 0;
600
						tp->ImageIndex = 0;
601
				}
601
				}
Line 633... Line 633...
633
 
633
 
634
					tp->ImageIndex = this->imageList1->Images->IndexOfKey(file);
634
					tp->ImageIndex = this->imageList1->Images->IndexOfKey(file);
635
					if ( tp->ImageIndex == -1 )
635
					if ( tp->ImageIndex == -1 )
636
						tp->ImageIndex = 0;
636
						tp->ImageIndex = 0;
637
 
637
 
638
					childForm = gcnew SpkForm(this, tabControl1, tp);
638
					childForm = gcnew SpkForm(this, tabControl1, tp, m_pPackages);
639
					childForm->SetPackage(package, file);
639
					childForm->SetPackage(package, file);
640
				}
640
				}
641
			}
641
			}
642
 
642
 
643
			if ( tp && childForm )
643
			if ( tp && childForm )