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

« back to all changes in this revision

Viewing changes to score/score.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: score.cpp,v 1.1 2002/01/30 12:08:39 muse Exp $
 
4
//    $Id: score.cpp,v 1.1.1.1 2003/10/29 10:05:26 wschweer Exp $
5
5
//  (C) Copyright 1999,2000 Werner Schweer (ws@seh.de)
6
6
//=========================================================
7
7
 
44
44
 
45
45
int Score::_quantInit = 96;
46
46
int Score::_rasterInit = 96;
 
47
int Score::_widthInit = 600;
 
48
int Score::_heightInit = 400;
47
49
 
48
50
//---------------------------------------------------------
49
51
//   Score Editor
52
54
Score::Score(PartList* pl)
53
55
   : MidiEditor(_quantInit, _rasterInit, pl)
54
56
      {
 
57
      resize(_widthInit, _heightInit);
55
58
      paletteBg  = new QButtonGroup(this, "paletteBg");
56
59
      paletteBg->hide();
57
60
      paletteBg->setExclusive(true);
98
101
 
99
102
      //-------------------------------------------------------------
100
103
      //    Transport Bar
101
 
      new TransportToolbar(this);
 
104
      QToolBar* transport = new QToolBar(this);
 
105
      transportAction->addTo(transport);
102
106
 
103
107
      //---------ToolBar 1----------------------------------
104
108
      toolbar = new Toolbar1(this, _rasterInit, _quantInit);
108
112
      //    Palettes
109
113
      //---------------------------------------------------
110
114
 
111
 
      QToolBar* toolbar3  = new QToolBar("Palettes", this, Top, true, "toolbar3");
 
115
      QToolBar* toolbar3  = new QToolBar(tr("Palettes"), this, this, true, "toolbar3");
112
116
//      QHBox* hbox4 = new QHBox(toolbar3, "hbox4");
113
117
      QToolButton* lyricsB = new QToolButton(toolbar3, "lyricsB");
114
118
      lyricsB->setText(tr("Lyrics"));
130
134
      // Toolbar 2
131
135
      //---------------------------------------------------
132
136
 
133
 
      QToolBar* toolbar2  = new QToolBar("Score", this, Top, true, "toolbar2");
 
137
      QToolBar* toolbar2  = new QToolBar(tr("Score"), this, this, true, "toolbar2");
134
138
 
135
139
      QActionGroup* action2 = new QActionGroup(toolbar2, "action2", true);
136
140
      for (int k = 0; k < 7; ++k) {
296
300
            info->setValue(NoteInfo::VAL_PITCH, e->pitch());
297
301
            info->setValue(NoteInfo::VAL_VELON, e->velo());
298
302
            info->setValue(NoteInfo::VAL_VELOFF, e->veloOff());
299
 
            info->setValue(NoteInfo::VAL_CHANNEL, e->channel() + 1);
 
303
//            info->setValue(NoteInfo::VAL_CHANNEL, p->track()->outChannel() + 1);
300
304
            }
301
305
      else {
302
306
            // set illegal values
305
309
            info->setValue(NoteInfo::VAL_PITCH, -5);
306
310
            info->setValue(NoteInfo::VAL_VELON, -5);
307
311
            info->setValue(NoteInfo::VAL_VELOFF, -5);
308
 
            info->setValue(NoteInfo::VAL_CHANNEL, -5);
 
312
//            info->setValue(NoteInfo::VAL_CHANNEL, -5);
309
313
            }
310
314
      }
311
315
 
516
520
            case NoteInfo::VAL_VELOFF:
517
521
                  event->setVeloOff(val);
518
522
                  break;
519
 
            case NoteInfo::VAL_CHANNEL:
 
523
//            case NoteInfo::VAL_CHANNEL:
520
524
//                  event->setChannel(val-1);
521
 
                  break;
 
525
//                  break;
522
526
            case NoteInfo::VAL_PITCH:
523
527
                  event->setPitch(val);
524
528
                  break;
538
542
 
539
543
void Score::configBackground()
540
544
      {
541
 
      scoreBg = getImageFileName("wallpapers", image_file_pattern, this);
 
545
      scoreBg = getImageFileName(QString("wallpapers"), image_file_pattern, this,
 
546
        tr("MusE: config wallpaper"));
542
547
      if (scoreBg.isEmpty())
543
548
            return;
544
549
      canvas->setBg(QPixmap(scoreBg));