3
* $Id: InactivityCountdownMessage.cpp $
6
* Copyright 2008-12 MetaEmotion S.L. All rights reserved.
7
* http://ginkgo-cadx.com
9
* This file is licensed under LGPL v3 license.
10
* See License.txt for details
14
#include <wx/statbmp.h>
15
#include <wx/bmpbuttn.h>
17
#include "downloadagaindialog.h"
18
#include <wx/ginkgostyle/ginkgostyle.h>
19
#include <main/controllers/historycontroller.h>
20
#include <main/gui/mainwindow/ventanaprincipal.h>
21
#include <main/gui/history3/historypanel3.h>
22
#include <main/controllers/inactivitycontroller.h>
23
#include <main/entorno.h>
27
DownloadAgainDialog::DownloadAgainDialog(wxWindow* pParent, std::string uid, bool isSeries): DownloadAgainDialogBase(pParent),
32
m_pLabelMessage->SetLabel(_("This series has been already downloaded in the local history, Do you want to download it again?"));
34
m_pLabelMessage->SetLabel(_("This study has been already downloaded in the local history, Do you want to download it again?"));
36
m_pLabelMessage->Wrap(350);
37
m_pFormPanel->Layout();
42
DownloadAgainDialog::~DownloadAgainDialog()
46
void DownloadAgainDialog::OnOpenClick(wxCommandEvent &)
49
GNC::GCS::HistoryController::SeriesModelList sml;
50
GNC::GCS::HistoryController::Instance()->GetSeriesModelFromUID(UID, sml);
52
GNC::GUI::HistoryPanel3::Instance()->OpenSeriesOrStudy(sml.front().pk, true);
55
GNC::GCS::HistoryController::StudyModelList sml;
56
GNC::GCS::HistoryController::Instance()->GetStudyModelFromUID(UID, sml);
58
GNC::GUI::HistoryPanel3::Instance()->OpenSeriesOrStudy(sml.front().pk, false);
61
EndModal(wxID_CANCEL);