~ubuntu-branches/ubuntu/breezy/muse/breezy

« back to all changes in this revision

Viewing changes to score/ncanvas.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-02-07 15:18:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040207151822-es27xxkzbcxkebjm
Tags: 0.6.3-1
* New upstream version.
* Added patches:
  + [10_alsa_init_fix] New, from upstream CVS.
    Initialize direction variable when setting Alsa parameters.
  + [10_canvas_translation_fix] New, from upstream CVS.
    Do not translate tooltips twice in canvas popup.
  + [10_checkbox_fix] New, from upstream CVS.
    Use proper set/test methods on metronome checkboxes.
  + [10_html_doc_cleanup] New.
    Fix links and HTML errors in documentation.
  + [20_allow_system_timer] New.
    The new upstream version fails by default if the real-time clock
    could not be accessed (usually the case when not running suid-root).
    This patch reverts the old behaviour of falling back to the more
    inaccurate system timer.
* Updated patches:
  + [11_PIC_fixes_fixup] Rediffed.
* Removed patches:
  + [20_no_atomic_asm] Merged upstream.
* debian/compat: Splice out debhelper compatibility level from rules file.
* debian/control: Build-depend on latest jack release by default.
  Closes: #228788
* debian/control: Bump standards version.
* debian/control: Use auto-generated debconf dependency via misc:Depends.
* debian/control: Minor tweaks to the long description.
* debian/control: Tighten fluidsynth build dependency to sane version.
* debian/muse.doc-base: New. Register HTML documentation with doc-base.
* debian/templates: Tiny rewording, and typo fix.
* debian/templates, debian/po/*: Switch to po-debconf for translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//=========================================================
2
2
//  MusE
3
3
//  Linux Music Editor
4
 
//    $Id: ncanvas.cpp,v 1.1 2002/01/30 12:08:38 muse Exp $
 
4
//    $Id: ncanvas.cpp,v 1.1.1.1 2003/10/29 10:05:30 wschweer Exp $
5
5
//  (C) Copyright 1999,2000 Werner Schweer (ws@seh.de)
6
6
//=========================================================
7
7
 
8
8
#include <stdio.h>
9
9
#include <qpainter.h>
10
 
#include <math.h>
 
10
#include <cmath>
11
11
#include <qinputdialog.h>
12
12
#include <qtimer.h>
13
13
#include <qcursor.h>
 
14
#include <assert.h>
14
15
 
15
16
#include "layout.h"
16
17
 
424
425
                        int rq = sr->stave->rq;
425
426
                        if (showQuantDialog(&ntick, &nq, &rq)) {
426
427
                              MidiEvent* e = new MidiEvent(
427
 
                                 track->outPort(), track->outChannel(),
428
428
                                 ntick, MidiEvent::Quantize, nq, rq, 0,
429
429
                                 0);
430
430
                              switch(sr->stave->mode) {
465
465
                        int pitch = system->y2pitch(ev->y());
466
466
                        tick      = (tick / editor->raster()) * editor->raster();
467
467
                        MidiEvent* e = new MidiEvent(
468
 
                           track->outPort(), track->outChannel(),
469
468
                           tick, MidiEvent::Note, pitch, curVelo, 0,
470
469
                           editor->quant());
471
470
                        curItem = new NoteItem(tick, e, part);
499
498
                        int xoff = int(mm2dot(leftMargin)) + system->bracketWidth;
500
499
                        QPoint p(start.x() - xoff, ny);
501
500
                        MidiEvent* e = new MidiEvent(
502
 
                           track->outPort(), track->outChannel(),
503
501
                           tick, MidiEvent::Symbol,
504
502
                           paletteItem, ny, 0, 0);
505
503
                        curItem = new Symbol(p, tick, e, part);
687
685
            selectItem(i->second);
688
686
            i->second->move(editor, system, copyflag);
689
687
            }
 
688
 
690
689
      song->endUndo(copyflag ? SC_EVENT_INSERTED : SC_EVENT_REMOVED|SC_EVENT_INSERTED);
691
690
      moving.clear();
692
691
      updateSelection();