OSDN Git Service

展開ダイアログで書庫のコメントを閲覧できる機能を追加。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sat, 21 Nov 2009 10:26:13 +0000 (10:26 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sat, 21 Nov 2009 10:26:13 +0000 (10:26 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@128 9df91469-1e22-0410-86e7-ea8537beb833

src/lychee/dlg_make.cpp
src/lychee/frm_main.cpp
src/lychee/frm_main.h

index ddc6a8a..6b9d636 100644 (file)
@@ -115,8 +115,10 @@ void MakeDialog::OnInit(wxInitDialogEvent&)
                this->tcComment->SetEditable(false);
 
                // \8f\89\8aú\92l\82ð\90Ý\92è\81B
-               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);
 
                // \93W\8aJ\90æ\82ð\97\\91ª\81B\82½\82¾\82µDTV\83X\83L\83\83\83\93\82É\8e\9e\8aÔ\82ª\82©\82©\82é\8fê\8d\87\82Í\83X\83L\83b\83v\89Â\94\\81B
                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)
index b9b3c07..a93786e 100644 (file)
@@ -480,6 +480,7 @@ void MainFrame::OnArcOpen(wxCommandEvent& e)
                ::ErrDlg(wxT("GetArchiveInformation()!"), this);
                return;
        }
+       this->szComment = aiInfo.szComment;
 
        // \8f\91\8cÉ\82ð\95Â\82\82é\81B
        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();
index ed2fc10..9c642f0 100644 (file)
@@ -33,6 +33,7 @@ public:
        ArrayTPI_FILEINFO fileinfo;
        TPIHandle tpi;
        wxFileName fnArchive;
+       wxString szComment;
        wxFileConfig conf;
        wxString szCurrentPath;
        wxCmdLineParser cmdLine;