void WxGraphs::OnMouseRightDown(wxMouseEvent &event) { if (m_draws_wdg->GetSelectedDrawIndex() == -1) return; Draw *d = m_draws[m_draws_wdg->GetSelectedDrawIndex()]; DrawInfo *di = d->GetDrawInfo(); SetInfoDataObject wido(di->GetBasePrefix(), di->GetSetName(), d->GetPeriod(), d->GetCurrentTime().GetTicks(), m_draws_wdg->GetSelectedDrawIndex()); wxDropSource ds(wido, this); ds.DoDragDrop(0); }
void DrawsWidget::PasteFromClipboard() { if (wxTheClipboard->Open() == false) return; SetInfoDataObject wido(_T(""), _T(""), PERIOD_T_OTHER, -1, -1); if (wxTheClipboard->GetData(wido)) SetSet(wido.GetSet(), wido.GetPrefix(), wido.GetTime(), wido.GetPeriod(), wido.GetSelectedDraw()); wxTheClipboard->Close(); }