OSDN Git Service

ステータスバーの最初の部分に形式名を表示するよう変更。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 18 Oct 2009 07:08:42 +0000 (07:08 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 18 Oct 2009 07:08:42 +0000 (07:08 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@61 9df91469-1e22-0410-86e7-ea8537beb833

src/frontend/frm_main.cpp

index ba13da9..0e364a2 100644 (file)
@@ -176,7 +176,7 @@ void MainFrame::OnInit(wxInitDialogEvent&)
        this->list_ctrl->InsertColumn(6, wxT("Last modified"), wxLIST_FORMAT_RIGHT,  fc.Read(wxT("ListView-C-Lastmodified"), 150));
        this->list_ctrl->InsertColumn(7, wxT("Path"),          wxLIST_FORMAT_LEFT,   fc.Read(wxT("ListView-C-Path"), 100));
        this->list_ctrl->InsertColumn(8, wxT("Type"),          wxLIST_FORMAT_LEFT,   fc.Read(wxT("ListView-C-Type"), 100));
-       this->list_ctrl->InsertColumn(9, wxT("No."),           wxLIST_FORMAT_LEFT,   fc.Read(wxT("ListView-C-No"), 35));
+       this->list_ctrl->InsertColumn(9, wxT("No."),           wxLIST_FORMAT_RIGHT,  fc.Read(wxT("ListView-C-No"), 35));
        g_nSortColumn = fc.Read(wxT("ListView-SortColumn"), 9);
        g_fSortAscend = fc.Read(wxT("ListView-SortAscend"), 1) == 1;
        this->list_ctrl->SetDropTarget(new myFileDropTarget(this));
@@ -184,6 +184,7 @@ void MainFrame::OnInit(wxInitDialogEvent&)
        // \83c\81[\83\8b\83o\81[/\83X\83e\81[\83^\83X\83o\81[\90Ý\92è\81B
        int nStatusBarParts[] = {40, 60, 120, 120, 90, 1000};
        this->statusbar->SetFieldsCount(6, nStatusBarParts);
+       this->SetStatusBarPane(-1);
        bool fShow = fc.Read(wxT("StatusBar-Show"), 1) == 1;
        this->menubar->Check(XRCID("Exe_View_StatusBar"), fShow);
        this->statusbar->Show(fShow);
@@ -506,7 +507,7 @@ void MainFrame::OnArcOpen(wxCommandEvent& e)
        this->list_ctrl->atDangerItem.SetTextColour(* wxRED);
 
        // \83X\83e\81[\83^\83X\83o\81[\90Ý\92è\81B
-       this->statusbar->SetStatusText(wxEmptyString, 0);
+       this->statusbar->SetStatusText(aiInfo.fiInfo.szTypeName, 0);
        this->statusbar->SetStatusText(wxString::Format(wxT("%d file(s)"), this->fileinfo.Count()), 1);
        this->statusbar->SetStatusText(wxT("Unpacked: ") + aiInfo.llUnpackedSize.ToString() + wxT(" B"), 2);
        this->statusbar->SetStatusText(wxT("Packed: ")   + aiInfo.llPackedSize.ToString()   + wxT(" B"), 3);