int c = 0;
Settings::ColumnListType::iterator col;
// If Study and Series level are merged and node type is Series
int c = 0;
Settings::ColumnListType::iterator col;
// If Study and Series level are merged and node type is Series
//================================================================
void WxGimmick::UpdateColumnsTitles(wxTreeItemId& item,
//================================================================
void WxGimmick::UpdateColumnsTitles(wxTreeItemId& item,
//================================================================
void WxGimmick::OnItemExpanded(wxTreeEvent& event)
{
//================================================================
void WxGimmick::OnItemExpanded(wxTreeEvent& event)
{
//=====================================================================
void WxGimmick::ShowMenu(wxTreeItemId id, const wxPoint& pt)
//=====================================================================
void WxGimmick::ShowMenu(wxTreeItemId id, const wxPoint& pt)
if (menu.GetMenuItemCount()>0) menu.AppendSeparator();
menu.Append(PopUp_Settings, wxT("&Settings..."));
menu.Append(PopUp_About, wxT("&About..."));
if (menu.GetMenuItemCount()>0) menu.AppendSeparator();
menu.Append(PopUp_Settings, wxT("&Settings..."));
menu.Append(PopUp_About, wxT("&About..."));
//=====================================================================
void WxGimmick::OnPopUpOpenCollection(wxCommandEvent& event)
//=====================================================================
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;
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;
// std::cout << "OnPopUpClose"<<std::endl;
// wxTreeItemId id = event.GetId();
TreeItemData *data = (TreeItemData *)mTreeListCtrl->GetItemData(mItemOfMenu);
DicomDatabase* r = data->GetDicomNode()->GetDicomDatabase();
// 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);
wxRemoveFile(std2wx(r->GetFileName()));
// std::cout << "OnPopUpClose '"<<r->GetName()<<"'"<<std::endl;
DeleteDicomDatabase(mItemOfMenu,r);
summary.update_database_time,
(int)(summary.update_database_time*100./summary.total_time),
summary.total_time );
summary.update_database_time,
(int)(summary.update_database_time*100./summary.total_time),
summary.total_time );
wxMessageBox(std2wx(mess.str()),_T("Update summary"),wxOK,parent);
}
wxMessageBox(std2wx(mess.str()),_T("Update summary"),wxOK,parent);
}
//=====================================================================
void WxGimmick::OnPopUpAddFile(wxCommandEvent& event)
{
long style = wxOPEN | wxFILE_MUST_EXIST | wxFD_MULTIPLE;
//=====================================================================
void WxGimmick::OnPopUpAddFile(wxCommandEvent& event)
{
long style = wxOPEN | wxFILE_MUST_EXIST | wxFD_MULTIPLE;