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
//================================================================
void WxGimmick::UpdateColumnsTitles(wxTreeItemId& item,
- DicomNode::Type t)
+ DicomNode::Type t)
{
// std::cout << "Update columns titles "<<t<<std::endl;
int c = 0;
//================================================================
void WxGimmick::OnItemExpanded(wxTreeEvent& event)
{
-
// std::cout << "* Expanded *"<<std::endl;
// }
void WxGimmick::OnItemRightClick(wxTreeEvent& event)
{
-
wxTreeItemId itemId = event.GetItem();
if (itemId.IsOk())
{
event.Skip();
}
//=====================================================================
-
-
//=====================================================================
void WxGimmick::ShowMenu(wxTreeItemId id, const wxPoint& pt)
}
GetEventHandler()->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;
}
}
*/
-
-
-
PopupMenu(&menu, pt);
#endif // wxUSE_MENUS
}
//=====================================================================
-
//=====================================================================
void WxGimmick::OnPopUpOpenCollection(wxCommandEvent& event)
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"<<std::endl;
// wxTreeItemId id = event.GetId();
TreeItemData *data = (TreeItemData *)mTreeListCtrl->GetItemData(mItemOfMenu);
DicomDatabase* r = data->GetDicomNode()->GetDicomDatabase();
-
+
wxRemoveFile(std2wx(r->GetFileName()));
// std::cout << "OnPopUpClose '"<<r->GetName()<<"'"<<std::endl;
DeleteDicomDatabase(mItemOfMenu,r);
-
+
}
//=====================================================================
-
+
void DisplayUpdateSummary( DicomDatabase::UpdateSummary& summary,
wxWindow* parent )
{
summary.update_database_time,
(int)(summary.update_database_time*100./summary.total_time),
summary.total_time );
-
+
mess << times;
-
+
wxMessageBox(std2wx(mess.str()),_T("Update summary"),wxOK,parent);
}
-
-
+
+
//=====================================================================
void WxGimmick::OnPopUpAddFile(wxCommandEvent& event)
{
long style = wxOPEN | wxFILE_MUST_EXIST | wxFD_MULTIPLE;
- std::string wc("*.*");
+ std::string wc("*");
wxFileDialog* FD = new wxFileDialog( 0,
_T("Select file"),
mCurrentDirectory,
std2wx(wc),
style,
wxDefaultPosition);
-
+
if (FD->ShowModal()==wxID_OK)
{
wxBusyCursor busy;