From c272e3694727dd6fd52dd14538e21f798417c378 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Fri, 3 Jul 2009 13:12:37 +0000 Subject: [PATCH] Allow reading image files without name extention --- src/creaImageIOWxGimmick.cpp | 38 +++++++++++-------------------- src2/creaImageIOWxGimmickView.cpp | 2 +- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/src/creaImageIOWxGimmick.cpp b/src/creaImageIOWxGimmick.cpp index 4b8f3f3..63470ba 100644 --- a/src/creaImageIOWxGimmick.cpp +++ b/src/creaImageIOWxGimmick.cpp @@ -718,8 +718,7 @@ namespace creaImageIO mTreeListCtrl->SetItemText(item,std2wx(lab)); } else - { - + { int c = 0; Settings::ColumnListType::iterator col; // If Study and Series level are merged and node type is Series @@ -788,7 +787,7 @@ namespace creaImageIO //================================================================ void WxGimmick::UpdateColumnsTitles(wxTreeItemId& item, - DicomNode::Type t) + DicomNode::Type t) { // std::cout << "Update columns titles "<ProcessEvent(ev); // - + if (menu.GetMenuItemCount()>0) menu.AppendSeparator(); menu.Append(PopUp_Settings, wxT("&Settings...")); menu.Append(PopUp_About, wxT("&About...")); - - /* wxMenu* newmenu = new wxMenu; wxMenu* openmenu = new wxMenu; @@ -1443,9 +1436,6 @@ namespace creaImageIO } } */ - - - PopupMenu(&menu, pt); #endif // wxUSE_MENUS @@ -1482,7 +1472,6 @@ namespace creaImageIO } //===================================================================== - //===================================================================== void WxGimmick::OnPopUpOpenCollection(wxCommandEvent& event) @@ -1512,22 +1501,21 @@ namespace creaImageIO void WxGimmick::OnPopUpDeleteCollection(wxCommandEvent& event) { if (wxMessageBox(_T("This will physically delete the collection's file on disk and cannot be reverted. Proceed ?"),_T("Confirm"),wxYES_NO,this)==wxNO) return; - + wxBusyCursor busy; - // std::cout << "OnPopUpClose"<GetItemData(mItemOfMenu); DicomDatabase* r = data->GetDicomNode()->GetDicomDatabase(); - + wxRemoveFile(std2wx(r->GetFileName())); // std::cout << "OnPopUpClose '"<GetName()<<"'"<ShowModal()==wxID_OK) { wxBusyCursor busy; diff --git a/src2/creaImageIOWxGimmickView.cpp b/src2/creaImageIOWxGimmickView.cpp index 447b35b..c3e2b07 100644 --- a/src2/creaImageIOWxGimmickView.cpp +++ b/src2/creaImageIOWxGimmickView.cpp @@ -347,7 +347,7 @@ namespace creaImageIO { mViewer->StopPlayer(); long style = wxOPEN | wxFILE_MUST_EXIST | wxFD_MULTIPLE; - std::string wc("*.*"); + std::string wc("*"); wxFileDialog* FD = new wxFileDialog( 0, _T("Select file"), _T(""), -- 2.45.1