Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
            }
        }