3
* $Id: synchronizedialog.h $
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
15
#include "synchronizedialog.h"
16
#include <main/controllers/commandcontroller.h>
17
#include <commands/synchronizationcommand.h>
18
#include <main/controllers/hangingprotocolcontroller.h>
21
GNC::GUI::SynchronizeDialog::SynchronizeDialog(wxWindow* parent, const std::list<long>& seriesPk, GNC::GCS::IHistoryTool* pTool): GNC::GUI::SynchronizeDialogBase(parent),
26
m_pHangingProtocol(NULL),
31
GNC::GUI::SynchronizeDialog::SynchronizeDialog(wxWindow* parent, const std::list<long>& seriesPk, GNC::GCS::IModuleController* pCtrlMod, int mode, const GNC::GCS::Ptr<GNC::GCS::HangingProtocol>& pHangingProtocol): GNC::GUI::SynchronizeDialogBase(parent),
36
m_pHangingProtocol(pHangingProtocol),
41
GNC::GUI::SynchronizeDialog::~SynchronizeDialog()
45
void GNC::GUI::SynchronizeDialog::OnSynchronize(wxCommandEvent &/*evt*/)
48
GADAPI::SynchronizationCommandParameters* pParams = new GADAPI::SynchronizationCommandParameters(m_seriesPk, m_pTool);
49
GADAPI::SynchronizationCommand* pCmd = new GADAPI::SynchronizationCommand(pParams);
50
GNC::GCS::ICommandController::Instance()->ProcessAsync("syncronizing...", pCmd, NULL);
52
GADAPI::SynchronizationCommandParameters* pParams = new GADAPI::SynchronizationCommandParameters(m_seriesPk, m_pCtrlMod, m_mode, m_pHangingProtocol);
53
GADAPI::SynchronizationCommand* pCmd = new GADAPI::SynchronizationCommand(pParams);
54
GNC::GCS::ICommandController::Instance()->ProcessAsync("syncronizing...", pCmd, NULL);
b'\\ No newline at end of file'