~ubuntu-branches/ubuntu/raring/muse/raring-proposed

« back to all changes in this revision

Viewing changes to widgets/tools.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: tools.cpp,v 1.1 2002/01/30 14:54:04 muse Exp $
 
4
//    $Id: tools.cpp,v 1.1.1.1 2003/10/29 10:06:22 wschweer Exp $
5
5
//  (C) Copyright 1999 Werner Schweer (ws@seh.de)
6
6
//=========================================================
7
7
 
11
11
#include <qtoolbutton.h>
12
12
#include <qtooltip.h>
13
13
#include <qwhatsthis.h>
 
14
#include <qmainwindow.h>
 
15
 
14
16
#include "icons.h"
15
17
#include "action.h"
16
18
 
17
 
const char* infoPointer = "select Pointer Tool:\n"
 
19
const char* infoPointer = QT_TR_NOOP("select Pointer Tool:\n"
18
20
      "with the pointer tool you can:\n"
19
21
      "  select parts\n"
20
22
      "  move parts\n"
21
 
      "  copy parts";
22
 
const char* infoPencil = "select Pencil Tool:\n"
 
23
      "  copy parts");
 
24
const char* infoPencil = QT_TR_NOOP("select Pencil Tool:\n"
23
25
      "with the pencil tool you can:\n"
24
26
      "  create new parts\n"
25
 
      "  modify length of parts";
26
 
const char* infoDel = "select Delete Tool:\n"
27
 
      "with the delete tool you can delete parts";
28
 
const char* infoCut = "select Cut Tool:\n"
29
 
      "with the cut tool you can split a part";
30
 
const char* infoGlue = "select Glue Tool:\n"
31
 
      "with the glue tool you can glue two parts";
32
 
const char* infoScore = "select Score Tool:\n";
33
 
const char* infoQuant = "select Quantize Tool:\n"
34
 
      "insert display quantize event";
35
 
const char* infoDraw = "select Drawing Tool";
 
27
      "  modify length of parts");
 
28
const char* infoDel = QT_TR_NOOP("select Delete Tool:\n"
 
29
      "with the delete tool you can delete parts");
 
30
const char* infoCut = QT_TR_NOOP("select Cut Tool:\n"
 
31
      "with the cut tool you can split a part");
 
32
const char* infoGlue = QT_TR_NOOP("select Glue Tool:\n"
 
33
      "with the glue tool you can glue two parts");
 
34
const char* infoScore = QT_TR_NOOP("select Score Tool:\n");
 
35
const char* infoQuant = QT_TR_NOOP("select Quantize Tool:\n"
 
36
      "insert display quantize event");
 
37
const char* infoDraw = QT_TR_NOOP("select Drawing Tool");
 
38
const char* infoMute = QT_TR_NOOP("select Muting Tool:\n"
 
39
      "click on part to mute/unmute");
36
40
 
37
 
struct ToolB {
38
 
      QPixmap** icon;
39
 
      const char* tip;
40
 
      const char* ltip;
41
 
      } toolList[] = {
42
 
      {&pointerIcon, "pointer", infoPointer },
43
 
      {&pencilIcon,  "pencil",  infoPencil },
44
 
      {&deleteIcon,  "rubber",  infoDel },
45
 
      {&cutIcon,     "cutter",  infoCut },
46
 
      {&note1Icon,   "score",   infoScore },
47
 
      {&glueIcon,    "glue",    infoGlue },
48
 
      {&quantIcon,   "quantize",   infoQuant },
49
 
      {&drawIcon,    "draw",   infoDraw },
 
41
ToolB toolList[] = {
 
42
      {&pointerIcon,  QT_TR_NOOP("pointer"),     infoPointer },
 
43
      {&pencilIcon,   QT_TR_NOOP("pencil"),      infoPencil  },
 
44
      {&deleteIcon,   QT_TR_NOOP("rubber"),      infoDel     },
 
45
      {&cutIcon,      QT_TR_NOOP("cutter"),      infoCut     },
 
46
      {&note1Icon,    QT_TR_NOOP("score"),       infoScore   },
 
47
      {&glueIcon,     QT_TR_NOOP("glue"),        infoGlue    },
 
48
      {&quantIcon,    QT_TR_NOOP("quantize"),    infoQuant   },
 
49
      {&drawIcon,     QT_TR_NOOP("draw"),        infoDraw    },
 
50
      {&editmuteIcon, QT_TR_NOOP("mute parts"),  infoMute    },
50
51
      };
51
52
 
52
53
//---------------------------------------------------------
53
54
//   EditToolBar
54
55
//---------------------------------------------------------
55
56
 
56
 
EditToolBar::EditToolBar(MainWindow* parent, int tools, const char* name = 0)
57
 
   : ToolBar("Edit Tools", parent, name)
 
57
EditToolBar::EditToolBar(QMainWindow* parent, int tools, const char* name)
 
58
   : QToolBar(tr("Edit Tools"), parent)
58
59
      {
59
60
      QActionGroup* action = new QActionGroup(parent, "editaction", true);
60
61
 
75
76
            Action* a = new Action(action, 1<<i, t->tip, true);
76
77
            actions[n] = a;
77
78
            a->setIconSet(QIconSet(**(t->icon)));
78
 
            a->setToolTip(t->tip);
79
 
            a->setWhatsThis(t->ltip);
 
79
            a->setToolTip(tr(t->tip));
 
80
            a->setWhatsThis(tr(t->ltip));
80
81
            if (first) {
81
82
                  a->setOn(true);
82
83
                  first = false;