MatrixEraser::MatrixEraser(MatrixWidget *parent) : MatrixTool("matrixeraser.rc", "MatrixEraser", parent) { createAction("resize", SLOT(slotResizeSelected())); createAction("draw", SLOT(slotDrawSelected())); createAction("select", SLOT(slotSelectSelected())); createAction("move", SLOT(slotMoveSelected())); createMenu(); }
MatrixResizer::MatrixResizer(MatrixWidget *parent) : MatrixTool("matrixresizer.rc", "MatrixResizer", parent), m_currentElement(0), m_currentViewSegment(0) { createAction("select", SLOT(slotSelectSelected())); createAction("draw", SLOT(slotDrawSelected())); createAction("erase", SLOT(slotEraseSelected())); createAction("move", SLOT(slotMoveSelected())); createMenu(); }
MatrixSelector::MatrixSelector(MatrixWidget *widget) : MatrixTool("matrixselector.rc", "MatrixSelector", widget), m_selectionRect(0), m_updateRect(false), m_clickedElement(0), m_dispatchTool(0), m_justSelectedBar(false), m_selectionToMerge(0) { //connect(m_widget, SIGNAL(usedSelection()), // this, SLOT(slotHideSelection())); createAction("resize", SLOT(slotResizeSelected())); createAction("draw", SLOT(slotDrawSelected())); createAction("erase", SLOT(slotEraseSelected())); createAction("move", SLOT(slotMoveSelected())); createMenu(); }
SegmentTool::SegmentTool(CompositionView* canvas, RosegardenDocument *doc) : BaseTool("SegmentTool", canvas), m_canvas(canvas), m_doc(doc) { //RG_DEBUG << "SegmentTool::SegmentTool()"; // Set up the actions for the right-click context menu. Note that // all of these end up simply delegating to RosegardenMainWindow. createAction("edit_default", SLOT(slotEdit())); createAction("edit_matrix", SLOT(slotEditInMatrix())); createAction("edit_percussion_matrix", SLOT(slotEditInPercussionMatrix())); createAction("edit_notation", SLOT(slotEditAsNotation())); createAction("edit_event_list", SLOT(slotEditInEventList())); createAction("edit_pitch_tracker", SLOT(slotEditInPitchTracker())); // Can we get some of the following connectionless mojo for some // of these others too? // The undo and redo actions are available globally through // CommandHistory. See ActionFileParser::findStandardAction() which // allows them to be found easily. Since disparate parts of the // system need the exact same QAction objects, it might be a good // idea to introduce a global QAction repository for all QAction // objects. RosegardenMainWindow might suffice. This would also // simplify the implementation of a shortcut manager. //createAction("edit_undo", ...); // handled by CommandHistory //createAction("edit_redo", ...); // handled by CommandHistory createAction("edit_cut", SLOT(slotEditCut())); createAction("edit_copy", SLOT(slotEditCopy())); createAction("edit_paste", SLOT(slotEditPaste())); createAction("delete", SLOT(slotDeleteSelectedSegments())); createAction("join_segments", SLOT(slotJoinSegments())); createAction("quantize_selection", SLOT(slotQuantizeSelection())); createAction("repeat_quantize", SLOT(slotRepeatQuantizeSelection())); createAction("relabel_segment", SLOT(slotRelabelSegments())); createAction("transpose", SLOT(slotTransposeSegments())); createAction("select", SLOT(slotPointerSelected())); createAction("move", SLOT(slotMoveSelected())); createAction("draw", SLOT(slotDrawSelected())); createAction("erase", SLOT(slotEraseSelected())); createAction("resize", SLOT(slotResizeSelected())); createAction("split", SLOT(slotSplitSelected())); }
SegmentTool::SegmentTool(CompositionView* canvas, RosegardenDocument *doc) : BaseTool("SegmentTool", canvas), m_canvas(canvas), m_doc(doc), m_changeMade(false) { //RG_DEBUG << "SegmentTool::SegmentTool()"; // Set up the actions for the right-click context menu. Note that // all of these end up simply delegating to RosegardenMainWindow. createAction("edit_default", SLOT(slotEdit())); createAction("edit_matrix", SLOT(slotEditInMatrix())); createAction("edit_percussion_matrix", SLOT(slotEditInPercussionMatrix())); createAction("edit_notation", SLOT(slotEditAsNotation())); createAction("edit_event_list", SLOT(slotEditInEventList())); createAction("edit_pitch_tracker", SLOT(slotEditInPitchTracker())); // Can we get some of the following connectionless mojo for some // of these others too? //createAction("edit_undo", ...); // handled by a higher authority? //createAction("edit_redo", ...); // handled by a higher authority? createAction("edit_cut", SLOT(slotEditCut())); createAction("edit_copy", SLOT(slotEditCopy())); createAction("edit_paste", SLOT(slotEditPaste())); createAction("delete", SLOT(slotDeleteSelectedSegments())); createAction("join_segments", SLOT(slotJoinSegments())); createAction("quantize_selection", SLOT(slotQuantizeSelection())); createAction("repeat_quantize", SLOT(slotRepeatQuantizeSelection())); createAction("relabel_segment", SLOT(slotRelabelSegments())); createAction("transpose", SLOT(slotTransposeSegments())); createAction("select", SLOT(slotPointerSelected())); createAction("move", SLOT(slotMoveSelected())); createAction("draw", SLOT(slotDrawSelected())); createAction("erase", SLOT(slotEraseSelected())); createAction("resize", SLOT(slotResizeSelected())); createAction("split", SLOT(slotSplitSelected())); }