~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/main/tools/exportdicomdirtool.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <api/controllers/icontroladorpermisos.h>
23
23
#include <main/gui/dicomdirexport/exportdicomdir.h>
 
24
#include <main/gui/history3/synchronizedialog.h>
24
25
#include <resources/ginkgoresourcesmanager.h>
25
26
#include <main/controllers/historytoolscontroller.h>
26
27
 
46
47
        GNC::GCS::IHistoryPanel* pHistory = GNC::HistoryToolsController::Instance()->GetHistoryPanel();
47
48
        std::list<long> listOfPks;
48
49
        pHistory->GetSelectedSeriesPk(listOfPks);
 
50
        Execute(listOfPks);
 
51
}
49
52
 
 
53
void GNC::ExportDicomDirTool::Execute(const std::list<long>& listOfPks)
 
54
{
 
55
        GNC::GCS::IHistoryPanel* pHistory = GNC::HistoryToolsController::Instance()->GetHistoryPanel();
50
56
        if (listOfPks.empty()) {
51
57
                wxMessageBox(_("Select at least one series"), _("Info"), wxICON_INFORMATION, pHistory->GetWxWindow());
52
58
                return;
53
59
        }
54
60
 
55
 
        GNC::GUI::ExportDicomDir dlg(pHistory->GetWxWindow(), listOfPks);
56
 
        dlg.ShowModal();
 
61
        if (!AreSeriesFullyDownloaded(listOfPks)) {
 
62
                GNC::GUI::SynchronizeDialog dlg(pHistory->GetWxWindow(), listOfPks, this);
 
63
                dlg.ShowModal();
 
64
        } else {
 
65
                GNC::GUI::ExportDicomDir dlg(pHistory->GetWxWindow(), listOfPks);
 
66
                dlg.ShowModal();
 
67
        }
57
68
}
58
69
 
59
70