public void handleButtonClick() { var click = new ReleaseClick(default(Point)); selected.populateNodeClick(click); if (click.multipleNotes()) { executor.executeRemoveMultipleNotes(click); } else if (click.anyNote()) { executor.executeRemoveNote(click); } else if (click.multipleChords()) { executor.executeRemoveMultipleChords(click); } else if (click.anyChord()) { executor.executeRemoveChord(click); } else if (click.multipleMeasures()) { executor.executeRemoveMultipleMeasures(click); } else if (click.anyMeasure()) { executor.executeRemoveMeasure(click); } selected.populateFromClick(click); }
public override void mouseDragRelease(ReleaseClick click) { if (click.multipleMeasures() && !click.anyChord()) { MeasurePositionClick pos_click = performMousePositionCheck(click); executor.executeChangeMultipleMeasurePosition(click, pos_click); } else if (click.anyMeasure() && !click.anyChord()) { MeasurePositionClick pos_click = performMousePositionCheck(click); executor.executeChangeMeasurePosition(click, pos_click); } invokeClickDelegate(click); if (click.anyNote()) { executor.executeChangeNotePositionNewMeasure(click); } else if (click.multipleChords()) { executor.executeChangeMultipleChordPositionNewMeasure(click); } else if (click.anyChord()) { executor.executeChangeChordPositionNewMeasure(click); } }
public override void mouseDragRelease(ReleaseClick click) { if (click.anyNote() && click.chordMatchesFirst(chord)) { executor.executeChangeNoteStringFromPosition(click); } else if (click.anyNote() && !click.chordMatchesFirst(chord)) { executor.executeChangeNotePosition(click); } invokeClickDelegate(click); }
public void mouseUp(Point pos) { if (note_select) { var click = new NoteSelectClick(pos); tree.HandleMouseEvent(click); populateSelected(click); noteSelected(click); } else if (checkMouseMoved(pos)) { NodeClick click; if (checkForDragRelease(pos)) { click = new ReleaseClick(pos); selected.populateNodeClick(click); } else { click = new SelectClick(pos, new Rect(pos, down_point)); } tree.HandleMouseEvent(click); populateSelected(click); } else if (double_click && selected.selectedContainsPoint(pos)) { var click = new NodeClick(pos); selected.populateNodeClick(click); var args = new PropertyMenuEventArgs(click); PropertyMenuChanged?.Invoke(this, args); } else { var click = new StandardClick(SelectionState, pos); tree.HandleMouseEvent(click); if (!click.Handled) { populateSelected(click); } if (SelectionState == Selection.Standard) { TimeDoubleClick(); } } }
public virtual void mouseDragRelease(ReleaseClick click) { }
public override void mouseDragRelease(ReleaseClick click) { }