diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-03-10 22:06:49 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-10 22:06:49 +0000 |
commit | 3b9d24733e59de44de13abaf77f1806779715075 (patch) | |
tree | 3b737106a5d0f1c216289782a35b7be7272b53f0 /muse2/muse/widgets | |
parent | cada6a202543d0f3f5ac02b4b52b9f17fda038bf (diff) |
cursor mode
Diffstat (limited to 'muse2/muse/widgets')
-rw-r--r-- | muse2/muse/widgets/tools.cpp | 22 | ||||
-rw-r--r-- | muse2/muse/widgets/tools.h | 15 |
2 files changed, 25 insertions, 12 deletions
diff --git a/muse2/muse/widgets/tools.cpp b/muse2/muse/widgets/tools.cpp index 40b0a328..31f014ef 100644 --- a/muse2/muse/widgets/tools.cpp +++ b/muse2/muse/widgets/tools.cpp @@ -35,18 +35,20 @@ const char* infoDraw = QT_TRANSLATE_NOOP("@default", "select Drawing Tool"); const char* infoMute = QT_TRANSLATE_NOOP("@default", "select Muting Tool:\n" "click on part to mute/unmute"); const char* infoAutomation = QT_TRANSLATE_NOOP("@default", "Manipulate automation"); +const char* infoCursor = QT_TRANSLATE_NOOP("@default", "Cursor tool"); ToolB toolList[] = { - {&pointerIcon, QT_TRANSLATE_NOOP("@default", "pointer"), infoPointer }, - {&pencilIcon, QT_TRANSLATE_NOOP("@default", "pencil"), infoPencil }, - {&deleteIcon, QT_TRANSLATE_NOOP("@default", "eraser"), infoDel }, - {&cutIcon, QT_TRANSLATE_NOOP("@default", "cutter"), infoCut }, - {¬e1Icon, QT_TRANSLATE_NOOP("@default", "score"), infoScore }, - {&glueIcon, QT_TRANSLATE_NOOP("@default", "glue"), infoGlue }, - {&quantIcon, QT_TRANSLATE_NOOP("@default", "quantize"), infoQuant }, - {&drawIcon, QT_TRANSLATE_NOOP("@default", "draw"), infoDraw }, - {&editmuteIcon, QT_TRANSLATE_NOOP("@default", "mute parts"), infoMute }, - {&drawIcon, QT_TRANSLATE_NOOP("@default", "edit automation"), infoAutomation}, + {&pointerIcon, QT_TRANSLATE_NOOP("@default", "pointer"), infoPointer }, + {&pencilIcon, QT_TRANSLATE_NOOP("@default", "pencil"), infoPencil }, + {&deleteIcon, QT_TRANSLATE_NOOP("@default", "eraser"), infoDel }, + {&cutIcon, QT_TRANSLATE_NOOP("@default", "cutter"), infoCut }, + {¬e1Icon, QT_TRANSLATE_NOOP("@default", "score"), infoScore }, + {&glueIcon, QT_TRANSLATE_NOOP("@default", "glue"), infoGlue }, + {&quantIcon, QT_TRANSLATE_NOOP("@default", "quantize"), infoQuant }, + {&drawIcon, QT_TRANSLATE_NOOP("@default", "draw"), infoDraw }, + {&editmuteIcon, QT_TRANSLATE_NOOP("@default", "mute parts"), infoMute }, + {&drawIcon, QT_TRANSLATE_NOOP("@default", "edit automation"),infoAutomation}, + {&cursorIcon, QT_TRANSLATE_NOOP("@default", "cursor"), infoCursor}, }; //--------------------------------------------------------- diff --git a/muse2/muse/widgets/tools.h b/muse2/muse/widgets/tools.h index 43d1ebaf..be479a50 100644 --- a/muse2/muse/widgets/tools.h +++ b/muse2/muse/widgets/tools.h @@ -16,8 +16,19 @@ class QAction; class QPixmap; class QWidget; -enum Tool { PointerTool=1, PencilTool=2, RubberTool=4, CutTool=8, - ScoreTool=16, GlueTool=32, QuantTool=64, DrawTool=128, MuteTool=256, AutomationTool=512}; +enum Tool { + PointerTool=1, + PencilTool=2, + RubberTool=4, + CutTool=8, + ScoreTool=16, + GlueTool=32, + QuantTool=64, + DrawTool=128, + MuteTool=256, + AutomationTool=512, + CursorTool=1024 +}; const int arrangerTools = PointerTool | PencilTool | RubberTool | CutTool | GlueTool | MuteTool | AutomationTool; |