Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
(wip) more pseudocode
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanpasu64 committed May 29, 2018
1 parent e072d8c commit 39efb67
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions Source/PatternEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3046,19 +3046,32 @@ void CPatternEditor::OnMouseDblClk(const CPoint &point)
}

void CPatternEditor::onMiddleClick(CPoint point) {
#if 0
// Swap middle-click with selection
if (not in bounds) return;
/*// Swap middle-click with selection
// if (not in bounds) return;
// Swap middle-click with selection (middle-click with selection)
m_selection
CPatternClipData *selBuffer = CopyRaw();
CPatternClipData clickBuffer = CopyRaw(foo);
// write clickBuffer to selPoint;
Paste(clickBuffer, PASTE_DEFAULT, PASTE_SELECTION);
// write selection to clickPoint;
Paste(selBuffer, PASTE_DEFAULT, PASTE_CURSOR);
auto selPoint, selData; // auto realClipboard, realClipboardData
auto clickPoint, clickData;
CopyRaw()
copy selData;
// write clickData to selPoint;
// write clipboard to clickPoint;
Paste(clipboard, PASTE_DEFAULT, PASTE_DRAG);
#endif
Paste(clipboard, PASTE_DEFAULT, PASTE_DRAG);*/
}

void CPatternEditor::OnMouseScroll(int Delta)
Expand Down

0 comments on commit 39efb67

Please sign in to comment.