This repository has been archived by the owner on Oct 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Pasting (Call Stack)
nyanpasu64 edited this page Jun 3, 2018
·
6 revisions
- Updated documentation at https://docs.google.com/document/d/e/2PACX-1vSirJ91SjDxFpVwI0JKmoH3j92XUTPxUUidnWEzv67HV_VibMLLhODCpGmeC3L0Q6akrya84GAvz_ax/pub
Most recent call last.
- CFV::OnEditPaste
- CFV::AddAction
- CMainFrame::AddAction
- CPatternAction::Redo
- CPatternEditor::Paste(pClipData, m_iPastePos)
Pasting accesses CFamiTrackerView::m_iPastePos .
- CPatternAction::SetDragAndDrop
- PASTE_DRAG
then
- CFamiTrackerView::OnMouseMove
- CPatternEditor::OnMouseMove
- CPatternEditor::ContinueMouseSelection
- CFamiTrackerView::BeginDragData
- COleDataSource::DoDragDrop
- ...
- COleDropTarget::OnDrop
- CFamiTrackerView::OnDrop
- Renamed CFamiTrackerView::m_iClipboard to mClipboardFormat.
- CPatternEditor::PerformDrop
- CMainFrame::AddAction
- CPatternAction::Redo
- CPatternEditor::DragPaste
- CPatternEditor::Paste(pClipData, PASTE_DRAG)
- Swap middle-click with selection (middle-click with selection)
- Afterwards, middle-click is selected.
- Swap keyboard cursor with clipboard (Ctrl-Shift-V, may/not implement if I feel like it)
- CMainFrame::AddAction
- CPatternAction::Redo
- CPatternEditor::pasteSwap:
// Swap middle-click with selection (middle-click with selection)
CPatternClipData selBuffer = ???;
- void CPatternClipData::FromMem(HGLOBAL hMem)
- fuck win32 handles
CPatternClipData clickBuffer = ???;
// write clickBuffer to selPoint;
Paste(clickBuffer, PASTE_DEFAULT, PASTE_SELECTION);
// write selection to clickPoint;
Paste(selBuffer, PASTE_DEFAULT, PASTE_CURSOR);
// Afterwards, middle-click is selected.
???
void CPatternEditor::Paste(const CPatternClipData, const paste_mode_t, const paste_pos_t)