11
11
#include <qtoolbutton.h>
12
12
#include <qtooltip.h>
13
13
#include <qwhatsthis.h>
14
#include <qmainwindow.h>
15
17
#include "action.h"
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"
22
const char* infoPencil = "select Pencil Tool:\n"
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");
42
{&pointerIcon, "pointer", infoPointer },
43
{&pencilIcon, "pencil", infoPencil },
44
{&deleteIcon, "rubber", infoDel },
45
{&cutIcon, "cutter", infoCut },
46
{¬e1Icon, "score", infoScore },
47
{&glueIcon, "glue", infoGlue },
48
{&quantIcon, "quantize", infoQuant },
49
{&drawIcon, "draw", infoDraw },
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
{¬e1Icon, 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 },
52
53
//---------------------------------------------------------
54
55
//---------------------------------------------------------
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)
59
60
QActionGroup* action = new QActionGroup(parent, "editaction", true);