\r
// 処理を行う。\r
{\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
- procDlg.nFileCount = mkDlg.files.GetCount();\r
+ ProcessDialog procDlg(& this->fnArchive, mkDlg.files.GetCount());\r
procDlg.Show(true);\r
\r
tpi.Command(TPI_COMMAND_CREATE, & swInfo, this->fnArchive.GetFullPath(), mkDlg.files);\r
}\r
\r
// 進捗ダイアログ表示。\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
+ ProcessDialog procDlg(& this->fnArchive);\r
procDlg.Show(true);\r
\r
// DnD以外で書庫を開く場合、TPIを読み込み。\r
\r
// 処理を行う。\r
{\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
- procDlg.nFileCount = mkDlg.files.GetCount();\r
+ ProcessDialog procDlg(& this->fnArchive, mkDlg.files.GetCount());\r
procDlg.Show(true);\r
\r
tpi.Command(TPI_COMMAND_ADD, & swInfo, this->fnArchive.GetFullPath(), mkDlg.files);\r
\r
// 処理を行う。\r
{\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
- procDlg.nFileCount = mkDlg.files.GetCount();\r
+ ProcessDialog procDlg(& this->fnArchive, mkDlg.files.GetCount());\r
procDlg.Show(true);\r
\r
tpi.Command(TPI_COMMAND_EXTRACT, & swInfo, this->fnArchive.GetFullPath(), mkDlg.files);\r
// 処理を行う。\r
{\r
wxArrayString asFiles = MakeTargetFileList(this);\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
- procDlg.nFileCount = asFiles.GetCount();\r
+ ProcessDialog procDlg(& this->fnArchive, asFiles.GetCount());\r
procDlg.Show(true);\r
\r
TPI_SWITCHES swInfo;\r
{\r
// 処理を行う。\r
wxArrayString asFiles = MakeTargetFileList(this);\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
- procDlg.nFileCount = asFiles.GetCount();\r
+ ProcessDialog procDlg(& this->fnArchive, asFiles.GetCount());\r
procDlg.Show(true);\r
\r
TPI_SWITCHES swInfo;\r
- bool bIsCorrect = tpi.Command(TPI_COMMAND_TEST, & swInfo, this->fnArchive.GetFullPath(), asFiles);\r
+ tpi.Command(TPI_COMMAND_TEST, & swInfo, this->fnArchive.GetFullPath(), asFiles);\r
+ this->ErrorCheck(tpi.nErrorCode);\r
procDlg.Show(false);\r
-\r
- if (bIsCorrect)\r
- {\r
- wxLogMessage(_("This is a correct archive."));\r
- }\r
- else\r
- {\r
- this->ErrorCheck(tpi.nErrorCode);\r
- }\r
}\r
\r
void MainFrame::OnArcRepair(wxCommandEvent&)\r
{\r
// 処理を行う。\r
wxArrayString asFiles = MakeTargetFileList(this);\r
- ProcessDialog procDlg;\r
- procDlg.fnArchive = & this->fnArchive;\r
- procDlg.nFileCount = asFiles.GetCount();\r
+ ProcessDialog procDlg(& this->fnArchive, asFiles.GetCount());\r
procDlg.Show(true);\r
\r
TPI_SWITCHES swInfo;\r
break;\r
case TPI_ERROR_D_SKIPPED:\r
case TPI_CALLBACK_CANCEL:\r
- wxLogError(_("This operation is canceled by the user."));\r
break;\r
default:\r
wxLogError(_("Error: %s()!\nError code: %d"), szAPIName.c_str(), nErrorCode);\r