From: sirakaba Date: Sat, 21 Nov 2009 10:26:13 +0000 (+0000) Subject: 展開ダイアログで書庫のコメントを閲覧できる機能を追加。 X-Git-Tag: 0.01beta5~26 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=62f09baff13241481c2fdb6f5b6cf13f7fb79923;p=tpi%2Flychee.git 展開ダイアログで書庫のコメントを閲覧できる機能を追加。 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@128 9df91469-1e22-0410-86e7-ea8537beb833 --- diff --git a/src/lychee/dlg_make.cpp b/src/lychee/dlg_make.cpp index ddc6a8a..6b9d636 100644 --- a/src/lychee/dlg_make.cpp +++ b/src/lychee/dlg_make.cpp @@ -115,8 +115,10 @@ void MakeDialog::OnInit(wxInitDialogEvent&) this->tcComment->SetEditable(false); // ‰Šú’l‚ðÝ’èB - this->cbDir->SetValue(((MainFrame *) this->GetParent())->fnArchive.GetPath()); - this->cbFileName->SetValue(((MainFrame *) this->GetParent())->fnArchive.GetFullName()); + MainFrame * frm_main = (MainFrame *) this->GetParent(); + this->cbDir->SetValue(frm_main->fnArchive.GetPath()); + this->cbFileName->SetValue(frm_main->fnArchive.GetFullName()); + this->tcComment->SetValue(frm_main->szComment); // “WŠJæ‚ð—\‘ªB‚½‚¾‚µDTVƒXƒLƒƒƒ“‚ÉŽžŠÔ‚ª‚©‚©‚éê‡‚̓XƒLƒbƒv‰Â”\B if (this->files.GetCount() < 3000 || ::AskDlg(wxT("This archive contains so many files that it takes long to check Directory Traversal Vulnerability(DTV) problem. If you are sure this archive is safe, you can skip this scanning process. Do you want to scan for DTV problem?"), this) == wxYES) diff --git a/src/lychee/frm_main.cpp b/src/lychee/frm_main.cpp index b9b3c07..a93786e 100644 --- a/src/lychee/frm_main.cpp +++ b/src/lychee/frm_main.cpp @@ -480,6 +480,7 @@ void MainFrame::OnArcOpen(wxCommandEvent& e) ::ErrDlg(wxT("GetArchiveInformation()!"), this); return; } + this->szComment = aiInfo.szComment; // ‘ŒÉ‚ð•Â‚¶‚éB if (! tpi.CloseArchive()) @@ -536,6 +537,7 @@ void MainFrame::OnArcClose(wxCommandEvent&) this->statusbar->SetStatusText(wxEmptyString, i); } this->fileinfo.Clear(); + this->szComment.Clear(); g_hIconT.RemoveAll(); g_hIconLL.RemoveAll(); diff --git a/src/lychee/frm_main.h b/src/lychee/frm_main.h index ed2fc10..9c642f0 100644 --- a/src/lychee/frm_main.h +++ b/src/lychee/frm_main.h @@ -33,6 +33,7 @@ public: ArrayTPI_FILEINFO fileinfo; TPIHandle tpi; wxFileName fnArchive; + wxString szComment; wxFileConfig conf; wxString szCurrentPath; wxCmdLineParser cmdLine;