~ubuntu-branches/ubuntu/karmic/rosegarden/karmic

« back to all changes in this revision

Viewing changes to src/gui/editors/notation/NotationStaff.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-02 00:33:44 UTC
  • mfrom: (1.1.7 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080502003344-67vbfhgqx2yl0ksi
Tags: 1:1.7.0-1ubuntu1
* Merge from Debian unstable. (LP: #225849) Remaining Ubuntu changes:
  - Add usr/share/doc/kde/HTML to rosegarden-data, to provide online
    help documentation.
  - Change fftw3-dev to libfftw3-dev.
  - Update maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
3
2
 
4
3
/*
5
4
    Rosegarden
6
5
    A MIDI and audio sequencer and musical notation editor.
7
6
 
8
 
    This program is Copyright 2000-2007
 
7
    This program is Copyright 2000-2008
9
8
        Guillaume Laurent   <glaurent@telegraph-road.org>,
10
9
        Chris Cannam        <cannam@all-day-breakfast.com>,
11
10
        Richard Bown        <richard.bown@ferventsoftware.com>
303
302
     * an insert. 
304
303
     */
305
304
    virtual void showPreviewNote(double layoutX, int heightOnStaff,
306
 
                                 const Note &note);
 
305
                                 const Note &note, bool grace);
307
306
 
308
307
    /**
309
308
     * Remove any visible preview note.
330
329
 
331
330
    virtual double getBarInset(int barNo, bool isFirstBarInRow) const;
332
331
 
 
332
    /**
 
333
     * Return the time at the given canvas coordinates
 
334
     */
 
335
    timeT getTimeAtCanvasCoords(double x, int y) const;
 
336
 
333
337
protected:
334
338
 
335
339
    virtual ViewElement* makeViewElement(Event*);
447
451
 
448
452
    void truncateClefsAndKeysAt(int);
449
453
 
 
454
    /** Verify that a possible Clef or Key in bar is already inserted
 
455
     * in m_clefChange or m_keyChange.
 
456
     * If not, do the insertion.
 
457
     */
 
458
    void checkAndCompleteClefsAndKeys(int bar);
 
459
 
450
460
    NotePixmapFactory *m_notePixmapFactory;
451
461
    NotePixmapFactory *m_graceNotePixmapFactory;
452
462
    QCanvasSimpleSprite *m_previewSprite;
468
478
    BarStatusMap m_status;
469
479
    std::pair<int, int> m_lastRenderCheck;
470
480
    bool m_ready;
 
481
 
 
482
    int m_lastRenderedBar;
471
483
};
472
484
 
473
485