summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NotationView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/notation/NotationView.cpp')
-rw-r--r--src/gui/editors/notation/NotationView.cpp514
1 files changed, 257 insertions, 257 deletions
diff --git a/src/gui/editors/notation/NotationView.cpp b/src/gui/editors/notation/NotationView.cpp
index a97c7c7..1fa96b3 100644
--- a/src/gui/editors/notation/NotationView.cpp
+++ b/src/gui/editors/notation/NotationView.cpp
@@ -526,19 +526,19 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
m_topStandardRuler->getLoopRuler()->setBackgroundColor
(GUIPalette::getColour(GUIPalette::InsertCursorRuler));
- connect(m_topStandardRuler->getLoopRuler(), TQT_SIGNAL(startMouseMove(int)),
- m_canvasView, TQT_SLOT(startAutoScroll(int)));
- connect(m_topStandardRuler->getLoopRuler(), TQT_SIGNAL(stopMouseMove()),
- m_canvasView, TQT_SLOT(stopAutoScroll()));
+ connect(m_topStandardRuler->getLoopRuler(), TQ_SIGNAL(startMouseMove(int)),
+ m_canvasView, TQ_SLOT(startAutoScroll(int)));
+ connect(m_topStandardRuler->getLoopRuler(), TQ_SIGNAL(stopMouseMove()),
+ m_canvasView, TQ_SLOT(stopAutoScroll()));
- connect(m_bottomStandardRuler->getLoopRuler(), TQT_SIGNAL(startMouseMove(int)),
- m_canvasView, TQT_SLOT(startAutoScroll(int)));
- connect(m_bottomStandardRuler->getLoopRuler(), TQT_SIGNAL(stopMouseMove()),
- m_canvasView, TQT_SLOT(stopAutoScroll()));
+ connect(m_bottomStandardRuler->getLoopRuler(), TQ_SIGNAL(startMouseMove(int)),
+ m_canvasView, TQ_SLOT(startAutoScroll(int)));
+ connect(m_bottomStandardRuler->getLoopRuler(), TQ_SIGNAL(stopMouseMove()),
+ m_canvasView, TQ_SLOT(stopAutoScroll()));
// Following connection have to be done before calling setPageMode())
- connect(m_headersGroup, TQT_SIGNAL(headersResized(int)),
- this, TQT_SLOT(slotHeadersWidthChanged(int)));
+ connect(m_headersGroup, TQ_SIGNAL(headersResized(int)),
+ this, TQ_SLOT(slotHeadersWidthChanged(int)));
//
@@ -615,8 +615,8 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
//
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(renderRequired(double, double)),
- this, TQT_SLOT(slotCheckRendered(double, double)));
+ (getCanvasView(), TQ_SIGNAL(renderRequired(double, double)),
+ this, TQ_SLOT(slotCheckRendered(double, double)));
m_topStandardRuler->connectRulerToDocPointer(doc);
m_bottomStandardRuler->connectRulerToDocPointer(doc);
@@ -626,102 +626,102 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
TQObject::disconnect
(m_topStandardRuler->getLoopRuler(),
- TQT_SIGNAL(setPointerPosition(timeT)), 0, 0);
+ TQ_SIGNAL(setPointerPosition(timeT)), 0, 0);
TQObject::connect
(m_topStandardRuler->getLoopRuler(),
- TQT_SIGNAL(setPointerPosition(timeT)),
- this, TQT_SLOT(slotSetInsertCursorPosition(timeT)));
+ TQ_SIGNAL(setPointerPosition(timeT)),
+ this, TQ_SLOT(slotSetInsertCursorPosition(timeT)));
TQObject::connect
(m_topStandardRuler,
- TQT_SIGNAL(dragPointerToPosition(timeT)),
- this, TQT_SLOT(slotSetInsertCursorPosition(timeT)));
+ TQ_SIGNAL(dragPointerToPosition(timeT)),
+ this, TQ_SLOT(slotSetInsertCursorPosition(timeT)));
- connect(m_bottomStandardRuler, TQT_SIGNAL(dragPointerToPosition(timeT)),
- this, TQT_SLOT(slotSetPointerPosition(timeT)));
+ connect(m_bottomStandardRuler, TQ_SIGNAL(dragPointerToPosition(timeT)),
+ this, TQ_SLOT(slotSetPointerPosition(timeT)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(itemPressed(int, int, TQMouseEvent*, NotationElement*)),
- this, TQT_SLOT (slotItemPressed(int, int, TQMouseEvent*, NotationElement*)));
+ (getCanvasView(), TQ_SIGNAL(itemPressed(int, int, TQMouseEvent*, NotationElement*)),
+ this, TQ_SLOT (slotItemPressed(int, int, TQMouseEvent*, NotationElement*)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(activeItemPressed(TQMouseEvent*, TQCanvasItem*)),
- this, TQT_SLOT (slotActiveItemPressed(TQMouseEvent*, TQCanvasItem*)));
+ (getCanvasView(), TQ_SIGNAL(activeItemPressed(TQMouseEvent*, TQCanvasItem*)),
+ this, TQ_SLOT (slotActiveItemPressed(TQMouseEvent*, TQCanvasItem*)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(nonNotationItemPressed(TQMouseEvent*, TQCanvasItem*)),
- this, TQT_SLOT (slotNonNotationItemPressed(TQMouseEvent*, TQCanvasItem*)));
+ (getCanvasView(), TQ_SIGNAL(nonNotationItemPressed(TQMouseEvent*, TQCanvasItem*)),
+ this, TQ_SLOT (slotNonNotationItemPressed(TQMouseEvent*, TQCanvasItem*)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(textItemPressed(TQMouseEvent*, TQCanvasItem*)),
- this, TQT_SLOT (slotTextItemPressed(TQMouseEvent*, TQCanvasItem*)));
+ (getCanvasView(), TQ_SIGNAL(textItemPressed(TQMouseEvent*, TQCanvasItem*)),
+ this, TQ_SLOT (slotTextItemPressed(TQMouseEvent*, TQCanvasItem*)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(mouseMoved(TQMouseEvent*)),
- this, TQT_SLOT (slotMouseMoved(TQMouseEvent*)));
+ (getCanvasView(), TQ_SIGNAL(mouseMoved(TQMouseEvent*)),
+ this, TQ_SLOT (slotMouseMoved(TQMouseEvent*)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(mouseReleased(TQMouseEvent*)),
- this, TQT_SLOT (slotMouseReleased(TQMouseEvent*)));
+ (getCanvasView(), TQ_SIGNAL(mouseReleased(TQMouseEvent*)),
+ this, TQ_SLOT (slotMouseReleased(TQMouseEvent*)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(hoveredOverNoteChanged(const TQString&)),
- this, TQT_SLOT (slotHoveredOverNoteChanged(const TQString&)));
+ (getCanvasView(), TQ_SIGNAL(hoveredOverNoteChanged(const TQString&)),
+ this, TQ_SLOT (slotHoveredOverNoteChanged(const TQString&)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(hoveredOverAbsoluteTimeChanged(unsigned int)),
- this, TQT_SLOT (slotHoveredOverAbsoluteTimeChanged(unsigned int)));
+ (getCanvasView(), TQ_SIGNAL(hoveredOverAbsoluteTimeChanged(unsigned int)),
+ this, TQ_SLOT (slotHoveredOverAbsoluteTimeChanged(unsigned int)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(zoomIn()), this, TQT_SLOT(slotZoomIn()));
+ (getCanvasView(), TQ_SIGNAL(zoomIn()), this, TQ_SLOT(slotZoomIn()));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(zoomOut()), this, TQT_SLOT(slotZoomOut()));
+ (getCanvasView(), TQ_SIGNAL(zoomOut()), this, TQ_SLOT(slotZoomOut()));
TQObject::connect
- (m_pannerDialog->scrollbox(), TQT_SIGNAL(valueChanged(const TQPoint &)),
- getCanvasView(), TQT_SLOT(slotSetScrollPos(const TQPoint &)));
+ (m_pannerDialog->scrollbox(), TQ_SIGNAL(valueChanged(const TQPoint &)),
+ getCanvasView(), TQ_SLOT(slotSetScrollPos(const TQPoint &)));
TQObject::connect
- (getCanvasView()->horizontalScrollBar(), TQT_SIGNAL(valueChanged(int)),
- m_pannerDialog->scrollbox(), TQT_SLOT(setViewX(int)));
+ (getCanvasView()->horizontalScrollBar(), TQ_SIGNAL(valueChanged(int)),
+ m_pannerDialog->scrollbox(), TQ_SLOT(setViewX(int)));
TQObject::connect
- (getCanvasView()->verticalScrollBar(), TQT_SIGNAL(valueChanged(int)),
- m_pannerDialog->scrollbox(), TQT_SLOT(setViewY(int)));
+ (getCanvasView()->verticalScrollBar(), TQ_SIGNAL(valueChanged(int)),
+ m_pannerDialog->scrollbox(), TQ_SLOT(setViewY(int)));
TQObject::connect
- (doc, TQT_SIGNAL(pointerPositionChanged(timeT)),
- this, TQT_SLOT(slotSetPointerPosition(timeT)));
+ (doc, TQ_SIGNAL(pointerPositionChanged(timeT)),
+ this, TQ_SLOT(slotSetPointerPosition(timeT)));
//
// Connect vertical scrollbars between canvas and notation header
TQObject::connect
- (getCanvasView()->verticalScrollBar(), TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(slotVerticalScrollHeadersGroup(int)));
+ (getCanvasView()->verticalScrollBar(), TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(slotVerticalScrollHeadersGroup(int)));
TQObject::connect
- (getCanvasView()->verticalScrollBar(), TQT_SIGNAL(sliderMoved(int)),
- this, TQT_SLOT(slotVerticalScrollHeadersGroup(int)));
+ (getCanvasView()->verticalScrollBar(), TQ_SIGNAL(sliderMoved(int)),
+ this, TQ_SLOT(slotVerticalScrollHeadersGroup(int)));
TQObject::connect
- (m_headersGroupView, TQT_SIGNAL(gotWheelEvent(TQWheelEvent*)),
- getCanvasView(), TQT_SLOT(slotExternalWheelEvent(TQWheelEvent*)));
+ (m_headersGroupView, TQ_SIGNAL(gotWheelEvent(TQWheelEvent*)),
+ getCanvasView(), TQ_SLOT(slotExternalWheelEvent(TQWheelEvent*)));
// Ensure notation header keeps the right bottom margin when user
// toggles the canvas view bottom rulers
- connect(getCanvasView(), TQT_SIGNAL(bottomWidgetHeightChanged(int)),
- this, TQT_SLOT(slotCanvasBottomWidgetHeightChanged(int)));
+ connect(getCanvasView(), TQ_SIGNAL(bottomWidgetHeightChanged(int)),
+ this, TQ_SLOT(slotCanvasBottomWidgetHeightChanged(int)));
// Signal canvas horizontal scroll to notation header
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(contentsMoving(int, int)),
- this, TQT_SLOT(slotUpdateHeaders(int, int)));
+ (getCanvasView(), TQ_SIGNAL(contentsMoving(int, int)),
+ this, TQ_SLOT(slotUpdateHeaders(int, int)));
// Connect the close notation headers button
- TQObject::connect(hideHeadersButton, TQT_SIGNAL(clicked()),
- this, TQT_SLOT(slotHideHeadersGroup()));
+ TQObject::connect(hideHeadersButton, TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(slotHideHeadersGroup()));
stateChanged("have_selection", KXMLGUIClient::StateReverse);
stateChanged("have_notes_in_selection", KXMLGUIClient::StateReverse);
@@ -763,16 +763,16 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
updateView();
TQObject::connect
- (this, TQT_SIGNAL(renderComplete()),
- getCanvasView(), TQT_SLOT(slotRenderComplete()));
+ (this, TQ_SIGNAL(renderComplete()),
+ getCanvasView(), TQ_SLOT(slotRenderComplete()));
if (parent)
{
const TrackButtons * trackLabels =
((RosegardenGUIView*)parent)->getTrackEditor()->getTrackButtons();
TQObject::connect
- (trackLabels, TQT_SIGNAL(nameChanged()),
- this, TQT_SLOT(slotUpdateStaffName()));
+ (trackLabels, TQ_SIGNAL(nameChanged()),
+ this, TQ_SLOT(slotUpdateStaffName()));
}
setConfigDialogPageIndex(3);
@@ -1491,16 +1491,16 @@ void NotationView::readOptions()
void NotationView::setupActions()
{
- KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
- KStdAction::printPreview(this, TQT_SLOT(slotFilePrintPreview()),
+ KStdAction::print(this, TQ_SLOT(slotFilePrint()), actionCollection());
+ KStdAction::printPreview(this, TQ_SLOT(slotFilePrintPreview()),
actionCollection());
new TDEAction(i18n("Print &with LilyPond..."), 0, 0, this,
- TQT_SLOT(slotPrintLilyPond()), actionCollection(),
+ TQ_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond");
new TDEAction(i18n("Preview with Lil&yPond..."), 0, 0, this,
- TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
+ TQ_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond");
EditViewBase::setupActions("notation.rc");
@@ -1524,7 +1524,7 @@ void NotationView::setupActions()
TDEToggleAction *fontAction =
new TDEToggleAction
- (fontTQName, 0, this, TQT_SLOT(slotChangeFontFromAction()),
+ (fontTQName, 0, this, TQ_SLOT(slotChangeFontFromAction()),
actionCollection(), TQString("note_font_" + fontTQName).ascii());
fontAction->setChecked(*i == m_fontName);
@@ -1541,7 +1541,7 @@ void NotationView::setupActions()
m_showHeadersMenuEntry
= new TDEAction(i18n("Show Track Headers"), 0, this,
- TQT_SLOT(slotShowHeadersGroup()),
+ TQ_SLOT(slotShowHeadersGroup()),
actionCollection(), "show_track_headers");
TDEActionMenu *spacingActionMenu =
@@ -1556,7 +1556,7 @@ void NotationView::setupActions()
TDEToggleAction *spacingAction =
new TDEToggleAction
(TQString("%1%").arg(*i), 0, this,
- TQT_SLOT(slotChangeSpacingFromAction()),
+ TQ_SLOT(slotChangeSpacingFromAction()),
actionCollection(), TQString("spacing_%1").arg(*i).ascii());
spacingAction->setExclusiveGroup("spacing");
@@ -1582,7 +1582,7 @@ void NotationView::setupActions()
TDEToggleAction *proportionAction =
new TDEToggleAction
(name, 0, this,
- TQT_SLOT(slotChangeProportionFromAction()),
+ TQ_SLOT(slotChangeProportionFromAction()),
actionCollection(), TQString("proportion_%1").arg(*i).ascii());
proportionAction->setExclusiveGroup("proportion");
@@ -1605,7 +1605,7 @@ void NotationView::setupActions()
TDEAction *styleAction =
new TDEAction
- (styleTQName, 0, this, TQT_SLOT(slotSetStyleFromAction()),
+ (styleTQName, 0, this, TQ_SLOT(slotSetStyleFromAction()),
actionCollection(), TQString("style_" + styleTQName).ascii());
styleActionMenu->insert(styleAction);
@@ -1619,17 +1619,17 @@ void NotationView::setupActions()
new TDEAction
- (i18n("Insert Rest"), Key_P, this, TQT_SLOT(slotInsertRest()),
+ (i18n("Insert Rest"), Key_P, this, TQ_SLOT(slotInsertRest()),
actionCollection(), TQString("insert_rest").ascii());
new TDEAction
(i18n("Switch from Note to Rest"), Key_T, this,
- TQT_SLOT(slotSwitchFromNoteToRest()),
+ TQ_SLOT(slotSwitchFromNoteToRest()),
actionCollection(), TQString("switch_from_note_to_rest").ascii());
new TDEAction
(i18n("Switch from Rest to Note"), Key_Y, this,
- TQT_SLOT(slotSwitchFromRestToNote()),
+ TQ_SLOT(slotSwitchFromRestToNote()),
actionCollection(), TQString("switch_from_rest_to_note").ascii());
@@ -1649,7 +1649,7 @@ void NotationView::setupActions()
icon,
noteActionData.keycode,
this,
- TQT_SLOT(slotNoteAction()),
+ TQ_SLOT(slotNoteAction()),
actionCollection(),
noteActionData.actionName.ascii());
noteAction->setExclusiveGroup("notes");
@@ -1675,7 +1675,7 @@ void NotationView::setupActions()
icon,
data.keycode,
this,
- TQT_SLOT(slotNoteChangeAction()),
+ TQ_SLOT(slotNoteChangeAction()),
actionCollection(),
data.actionName.ascii());
}
@@ -1713,47 +1713,47 @@ void NotationView::setupActions()
// Treble
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-treble")));
noteAction = new TDERadioAction(i18n("&Treble Clef"), icon, 0, this,
- TQT_SLOT(slotTrebleClef()),
+ TQ_SLOT(slotTrebleClef()),
actionCollection(), "treble_clef");
noteAction->setExclusiveGroup("notes");
// Alto
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-alto")));
noteAction = new TDERadioAction(i18n("&Alto Clef"), icon, 0, this,
- TQT_SLOT(slotAltoClef()),
+ TQ_SLOT(slotAltoClef()),
actionCollection(), "alto_clef");
noteAction->setExclusiveGroup("notes");
// Tenor
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-tenor")));
noteAction = new TDERadioAction(i18n("Te&nor Clef"), icon, 0, this,
- TQT_SLOT(slotTenorClef()),
+ TQ_SLOT(slotTenorClef()),
actionCollection(), "tenor_clef");
noteAction->setExclusiveGroup("notes");
// Bass
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-bass")));
noteAction = new TDERadioAction(i18n("&Bass Clef"), icon, 0, this,
- TQT_SLOT(slotBassClef()),
+ TQ_SLOT(slotBassClef()),
actionCollection(), "bass_clef");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("text")));
noteAction = new TDERadioAction(i18n("&Text"), icon, Key_F8, this,
- TQT_SLOT(slotText()),
+ TQ_SLOT(slotText()),
actionCollection(), "text");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("guitarchord")));
noteAction = new TDERadioAction(i18n("&Guitar Chord"), icon, Key_F9, this,
- TQT_SLOT(slotGuitarChord()),
+ TQ_SLOT(slotGuitarChord()),
actionCollection(), "guitarchord");
noteAction->setExclusiveGroup("notes");
/* icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("lilypond")));
noteAction = new TDERadioAction(i18n("Lil&ypond Directive"), icon, Key_F9, this,
- TQT_SLOT(slotLilyPondDirective()),
+ TQ_SLOT(slotLilyPondDirective()),
actionCollection(), "lilypond_directive");
noteAction->setExclusiveGroup("notes"); */
@@ -1762,53 +1762,53 @@ void NotationView::setupActions()
// Edition tools (eraser, selector...)
//
noteAction = new TDERadioAction(i18n("&Erase"), "eraser", Key_F4,
- this, TQT_SLOT(slotEraseSelected()),
+ this, TQ_SLOT(slotEraseSelected()),
actionCollection(), "erase");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("select")));
noteAction = new TDERadioAction(i18n("&Select and Edit"), icon, Key_F2,
- this, TQT_SLOT(slotSelectSelected()),
+ this, TQ_SLOT(slotSelectSelected()),
actionCollection(), "select");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("step_by_step")));
new TDEToggleAction(i18n("Ste&p Recording"), icon, 0, this,
- TQT_SLOT(slotToggleStepByStep()), actionCollection(),
+ TQ_SLOT(slotToggleStepByStep()), actionCollection(),
"toggle_step_by_step");
// Edit menu
new TDEAction(i18n("Select from Sta&rt"), 0, this,
- TQT_SLOT(slotEditSelectFromStart()), actionCollection(),
+ TQ_SLOT(slotEditSelectFromStart()), actionCollection(),
"select_from_start");
new TDEAction(i18n("Select to &End"), 0, this,
- TQT_SLOT(slotEditSelectToEnd()), actionCollection(),
+ TQ_SLOT(slotEditSelectToEnd()), actionCollection(),
"select_to_end");
new TDEAction(i18n("Select Whole St&aff"), Key_A + CTRL, this,
- TQT_SLOT(slotEditSelectWholeStaff()), actionCollection(),
+ TQ_SLOT(slotEditSelectWholeStaff()), actionCollection(),
"select_whole_staff");
new TDEAction(i18n("C&ut and Close"), CTRL + SHIFT + Key_X, this,
- TQT_SLOT(slotEditCutAndClose()), actionCollection(),
+ TQ_SLOT(slotEditCutAndClose()), actionCollection(),
"cut_and_close");
new TDEAction(i18n("Pa&ste..."), CTRL + SHIFT + Key_V, this,
- TQT_SLOT(slotEditGeneralPaste()), actionCollection(),
+ TQ_SLOT(slotEditGeneralPaste()), actionCollection(),
"general_paste");
new TDEAction(i18n("De&lete"), Key_Delete, this,
- TQT_SLOT(slotEditDelete()), actionCollection(),
+ TQ_SLOT(slotEditDelete()), actionCollection(),
"delete");
new TDEAction(i18n("Move to Staff Above"), 0, this,
- TQT_SLOT(slotMoveEventsUpStaff()), actionCollection(),
+ TQ_SLOT(slotMoveEventsUpStaff()), actionCollection(),
"move_events_up_staff");
new TDEAction(i18n("Move to Staff Below"), 0, this,
- TQT_SLOT(slotMoveEventsDownStaff()), actionCollection(),
+ TQ_SLOT(slotMoveEventsDownStaff()), actionCollection(),
"move_events_down_staff");
//
@@ -1821,7 +1821,7 @@ void NotationView::setupActions()
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/linear-layout.xpm");
icon = TQIconSet(pixmap);
TDERadioAction *linearModeAction = new TDERadioAction
- (i18n("&Linear Layout"), icon, 0, this, TQT_SLOT(slotLinearMode()),
+ (i18n("&Linear Layout"), icon, 0, this, TQ_SLOT(slotLinearMode()),
actionCollection(), "linear_mode");
linearModeAction->setExclusiveGroup("layoutMode");
if (layoutMode == 0)
@@ -1830,7 +1830,7 @@ void NotationView::setupActions()
pixmap.load(pixmapDir + "/toolbar/continuous-page-mode.xpm");
icon = TQIconSet(pixmap);
TDERadioAction *continuousPageModeAction = new TDERadioAction
- (i18n("&Continuous Page Layout"), icon, 0, this, TQT_SLOT(slotContinuousPageMode()),
+ (i18n("&Continuous Page Layout"), icon, 0, this, TQ_SLOT(slotContinuousPageMode()),
actionCollection(), "continuous_page_mode");
continuousPageModeAction->setExclusiveGroup("layoutMode");
if (layoutMode == 1)
@@ -1839,33 +1839,33 @@ void NotationView::setupActions()
pixmap.load(pixmapDir + "/toolbar/multi-page-mode.xpm");
icon = TQIconSet(pixmap);
TDERadioAction *multiPageModeAction = new TDERadioAction
- (i18n("&Multiple Page Layout"), icon, 0, this, TQT_SLOT(slotMultiPageMode()),
+ (i18n("&Multiple Page Layout"), icon, 0, this, TQ_SLOT(slotMultiPageMode()),
actionCollection(), "multi_page_mode");
multiPageModeAction->setExclusiveGroup("layoutMode");
if (layoutMode == 2)
multiPageModeAction->setChecked(true);
new TDEToggleAction(i18n("Show Ch&ord Name Ruler"), 0, this,
- TQT_SLOT(slotToggleChordsRuler()),
+ TQ_SLOT(slotToggleChordsRuler()),
actionCollection(), "show_chords_ruler");
new TDEToggleAction(i18n("Show Ra&w Note Ruler"), 0, this,
- TQT_SLOT(slotToggleRawNoteRuler()),
+ TQ_SLOT(slotToggleRawNoteRuler()),
actionCollection(), "show_raw_note_ruler");
new TDEToggleAction(i18n("Show &Tempo Ruler"), 0, this,
- TQT_SLOT(slotToggleTempoRuler()),
+ TQ_SLOT(slotToggleTempoRuler()),
actionCollection(), "show_tempo_ruler");
new TDEToggleAction(i18n("Show &Annotations"), 0, this,
- TQT_SLOT(slotToggleAnnotations()),
+ TQ_SLOT(slotToggleAnnotations()),
actionCollection(), "show_annotations");
new TDEToggleAction(i18n("Show Lily&Pond Directives"), 0, this,
- TQT_SLOT(slotToggleLilyPondDirectives()),
+ TQ_SLOT(slotToggleLilyPondDirectives()),
actionCollection(), "show_lilypond_directives");
- new TDEAction(i18n("Open L&yric Editor"), 0, this, TQT_SLOT(slotEditLyrics()),
+ new TDEAction(i18n("Open L&yric Editor"), 0, this, TQ_SLOT(slotEditLyrics()),
actionCollection(), "lyric_editor");
//
@@ -1876,53 +1876,53 @@ void NotationView::setupActions()
("group-beam")));
new TDEAction(BeamCommand::getGlobalName(), icon, Key_B + CTRL, this,
- TQT_SLOT(slotGroupBeam()), actionCollection(), "beam");
+ TQ_SLOT(slotGroupBeam()), actionCollection(), "beam");
new TDEAction(AutoBeamCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotGroupAutoBeam()), actionCollection(), "auto_beam");
+ TQ_SLOT(slotGroupAutoBeam()), actionCollection(), "auto_beam");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-unbeam")));
new TDEAction(BreakCommand::getGlobalName(), icon, Key_U + CTRL, this,
- TQT_SLOT(slotGroupBreak()), actionCollection(), "break_group");
+ TQ_SLOT(slotGroupBreak()), actionCollection(), "break_group");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-simple-tuplet")));
new TDEAction(TupletCommand::getGlobalName(true), icon, Key_R + CTRL, this,
- TQT_SLOT(slotGroupSimpleTuplet()), actionCollection(), "simple_tuplet");
+ TQ_SLOT(slotGroupSimpleTuplet()), actionCollection(), "simple_tuplet");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-tuplet")));
new TDEAction(TupletCommand::getGlobalName(false), icon, Key_T + CTRL, this,
- TQT_SLOT(slotGroupGeneralTuplet()), actionCollection(), "tuplet");
+ TQ_SLOT(slotGroupGeneralTuplet()), actionCollection(), "tuplet");
new TDEAction(UnTupletCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotGroupUnTuplet()), actionCollection(), "break_tuplets");
+ TQ_SLOT(slotGroupUnTuplet()), actionCollection(), "break_tuplets");
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("triplet")));
(new TDEToggleAction(i18n("Trip&let Insert Mode"), icon, Key_G,
- this, TQT_SLOT(slotUpdateInsertModeStatus()),
+ this, TQ_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "triplet_mode"))->
setChecked(false);
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("chord")));
(new TDEToggleAction(i18n("C&hord Insert Mode"), icon, Key_H,
- this, TQT_SLOT(slotUpdateInsertModeStatus()),
+ this, TQ_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "chord_mode"))->
setChecked(false);
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("group-grace")));
(new TDEToggleAction(i18n("Grace Insert Mode"), icon, 0,
- this, TQT_SLOT(slotUpdateInsertModeStatus()),
+ this, TQ_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "grace_mode"))->
setChecked(false);
/*!!!
@@ -1931,10 +1931,10 @@ void NotationView::setupActions()
("group-grace")));
new TDEAction(GraceCommand::getGlobalName(), icon, 0, this,
- TQT_SLOT(slotGroupGrace()), actionCollection(), "grace");
+ TQ_SLOT(slotGroupGrace()), actionCollection(), "grace");
new TDEAction(UnGraceCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotGroupUnGrace()), actionCollection(), "ungrace");
+ TQ_SLOT(slotGroupUnGrace()), actionCollection(), "ungrace");
*/
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
@@ -1942,11 +1942,11 @@ void NotationView::setupActions()
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Slur), icon, Key_ParenRight, this,
- TQT_SLOT(slotGroupSlur()), actionCollection(), "slur");
+ TQ_SLOT(slotGroupSlur()), actionCollection(), "slur");
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::PhrasingSlur), 0, Key_ParenRight + CTRL, this,
- TQT_SLOT(slotGroupPhrasingSlur()), actionCollection(), "phrasing_slur");
+ TQ_SLOT(slotGroupPhrasingSlur()), actionCollection(), "phrasing_slur");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
@@ -1954,7 +1954,7 @@ void NotationView::setupActions()
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Glissando), icon, 0, this,
- TQT_SLOT(slotGroupGlissando()), actionCollection(), "glissando");
+ TQ_SLOT(slotGroupGlissando()), actionCollection(), "glissando");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
@@ -1962,7 +1962,7 @@ void NotationView::setupActions()
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Crescendo), icon, Key_Less, this,
- TQT_SLOT(slotGroupCrescendo()), actionCollection(), "crescendo");
+ TQ_SLOT(slotGroupCrescendo()), actionCollection(), "crescendo");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
@@ -1970,11 +1970,11 @@ void NotationView::setupActions()
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Decrescendo), icon, Key_Greater, this,
- TQT_SLOT(slotGroupDecrescendo()), actionCollection(), "decrescendo");
+ TQ_SLOT(slotGroupDecrescendo()), actionCollection(), "decrescendo");
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::QuindicesimaUp), 0, 0, this,
- TQT_SLOT(slotGroupOctave2Up()), actionCollection(), "octave_2up");
+ TQ_SLOT(slotGroupOctave2Up()), actionCollection(), "octave_2up");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
@@ -1982,33 +1982,33 @@ void NotationView::setupActions()
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::OttavaUp), icon, 0, this,
- TQT_SLOT(slotGroupOctaveUp()), actionCollection(), "octave_up");
+ TQ_SLOT(slotGroupOctaveUp()), actionCollection(), "octave_up");
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::OttavaDown), 0, 0, this,
- TQT_SLOT(slotGroupOctaveDown()), actionCollection(), "octave_down");
+ TQ_SLOT(slotGroupOctaveDown()), actionCollection(), "octave_down");
new TDEAction(AddIndicationCommand::getGlobalName
(Indication::QuindicesimaDown), 0, 0, this,
- TQT_SLOT(slotGroupOctave2Down()), actionCollection(), "octave_2down");
+ TQ_SLOT(slotGroupOctave2Down()), actionCollection(), "octave_2down");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-chord")));
new TDEAction(MakeChordCommand::getGlobalName(), icon, 0, this,
- TQT_SLOT(slotGroupMakeChord()), actionCollection(), "make_chord");
+ TQ_SLOT(slotGroupMakeChord()), actionCollection(), "make_chord");
// setup Transforms menu
new TDEAction(NormalizeRestsCommand::getGlobalName(), Key_N + CTRL, this,
- TQT_SLOT(slotTransformsNormalizeRests()), actionCollection(),
+ TQ_SLOT(slotTransformsNormalizeRests()), actionCollection(),
"normalize_rests");
new TDEAction(CollapseRestsCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotTransformsCollapseRests()), actionCollection(),
+ TQ_SLOT(slotTransformsCollapseRests()), actionCollection(),
"collapse_rests_aggressively");
new TDEAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, this,
- TQT_SLOT(slotTransformsCollapseNotes()), actionCollection(),
+ TQ_SLOT(slotTransformsCollapseNotes()), actionCollection(),
"collapse_notes");
icon = TQIconSet
@@ -2016,15 +2016,15 @@ void NotationView::setupActions()
("transforms-tie")));
new TDEAction(TieNotesCommand::getGlobalName(), icon, Key_AsciiTilde, this,
- TQT_SLOT(slotTransformsTieNotes()), actionCollection(),
+ TQ_SLOT(slotTransformsTieNotes()), actionCollection(),
"tie_notes");
new TDEAction(UntieNotesCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotTransformsUntieNotes()), actionCollection(),
+ TQ_SLOT(slotTransformsUntieNotes()), actionCollection(),
"untie_notes");
new TDEAction(MakeNotesViableCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotTransformsMakeNotesViable()), actionCollection(),
+ TQ_SLOT(slotTransformsMakeNotesViable()), actionCollection(),
"make_notes_viable");
icon = TQIconSet
@@ -2032,49 +2032,49 @@ void NotationView::setupActions()
("transforms-decounterpoint")));
new TDEAction(DeCounterpointCommand::getGlobalName(), icon, 0, this,
- TQT_SLOT(slotTransformsDeCounterpoint()), actionCollection(),
+ TQ_SLOT(slotTransformsDeCounterpoint()), actionCollection(),
"de_counterpoint");
new TDEAction(ChangeStemsCommand::getGlobalName(true),
0, Key_PageUp + CTRL, this,
- TQT_SLOT(slotTransformsStemsUp()), actionCollection(),
+ TQ_SLOT(slotTransformsStemsUp()), actionCollection(),
"stems_up");
new TDEAction(ChangeStemsCommand::getGlobalName(false),
0, Key_PageDown + CTRL, this,
- TQT_SLOT(slotTransformsStemsDown()), actionCollection(),
+ TQ_SLOT(slotTransformsStemsDown()), actionCollection(),
"stems_down");
new TDEAction(RestoreStemsCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotTransformsRestoreStems()), actionCollection(),
+ TQ_SLOT(slotTransformsRestoreStems()), actionCollection(),
"restore_stems");
new TDEAction(ChangeSlurPositionCommand::getGlobalName(true),
0, this,
- TQT_SLOT(slotTransformsSlursAbove()), actionCollection(),
+ TQ_SLOT(slotTransformsSlursAbove()), actionCollection(),
"slurs_above");
new TDEAction(ChangeSlurPositionCommand::getGlobalName(false),
0, this,
- TQT_SLOT(slotTransformsSlursBelow()), actionCollection(),
+ TQ_SLOT(slotTransformsSlursBelow()), actionCollection(),
"slurs_below");
new TDEAction(RestoreSlursCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotTransformsRestoreSlurs()), actionCollection(),
+ TQ_SLOT(slotTransformsRestoreSlurs()), actionCollection(),
"restore_slurs");
new TDEAction(ChangeTiePositionCommand::getGlobalName(true),
0, this,
- TQT_SLOT(slotTransformsTiesAbove()), actionCollection(),
+ TQ_SLOT(slotTransformsTiesAbove()), actionCollection(),
"ties_above");
new TDEAction(ChangeTiePositionCommand::getGlobalName(false),
0, this,
- TQT_SLOT(slotTransformsTiesBelow()), actionCollection(),
+ TQ_SLOT(slotTransformsTiesBelow()), actionCollection(),
"ties_below");
new TDEAction(RestoreTiesCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotTransformsRestoreTies()), actionCollection(),
+ TQ_SLOT(slotTransformsRestoreTies()), actionCollection(),
"restore_ties");
icon = TQIconSet
@@ -2084,7 +2084,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::DoubleFlat),
icon, 0, this,
- TQT_SLOT(slotRespellDoubleFlat()), actionCollection(),
+ TQ_SLOT(slotRespellDoubleFlat()), actionCollection(),
"respell_doubleflat");
icon = TQIconSet
@@ -2094,7 +2094,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Flat),
icon, 0, this,
- TQT_SLOT(slotRespellFlat()), actionCollection(),
+ TQ_SLOT(slotRespellFlat()), actionCollection(),
"respell_flat");
icon = TQIconSet
@@ -2104,7 +2104,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Natural),
icon, 0, this,
- TQT_SLOT(slotRespellNatural()), actionCollection(),
+ TQ_SLOT(slotRespellNatural()), actionCollection(),
"respell_natural");
icon = TQIconSet
@@ -2114,7 +2114,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Sharp),
icon, 0, this,
- TQT_SLOT(slotRespellSharp()), actionCollection(),
+ TQ_SLOT(slotRespellSharp()), actionCollection(),
"respell_sharp");
icon = TQIconSet
@@ -2124,35 +2124,35 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::DoubleSharp),
icon, 0, this,
- TQT_SLOT(slotRespellDoubleSharp()), actionCollection(),
+ TQ_SLOT(slotRespellDoubleSharp()), actionCollection(),
"respell_doublesharp");
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Up, Accidentals::NoAccidental),
Key_Up + CTRL + SHIFT, this,
- TQT_SLOT(slotRespellUp()), actionCollection(),
+ TQ_SLOT(slotRespellUp()), actionCollection(),
"respell_up");
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Down, Accidentals::NoAccidental),
Key_Down + CTRL + SHIFT, this,
- TQT_SLOT(slotRespellDown()), actionCollection(),
+ TQ_SLOT(slotRespellDown()), actionCollection(),
"respell_down");
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Restore, Accidentals::NoAccidental),
0, this,
- TQT_SLOT(slotRespellRestore()), actionCollection(),
+ TQ_SLOT(slotRespellRestore()), actionCollection(),
"respell_restore");
new TDEAction(MakeAccidentalsCautionaryCommand::getGlobalName(true),
0, this,
- TQT_SLOT(slotShowCautionary()), actionCollection(),
+ TQ_SLOT(slotShowCautionary()), actionCollection(),
"show_cautionary");
new TDEAction(MakeAccidentalsCautionaryCommand::getGlobalName(false),
0, this,
- TQT_SLOT(slotCancelCautionary()), actionCollection(),
+ TQ_SLOT(slotCancelCautionary()), actionCollection(),
"cancel_cautionary");
icon = TQIconSet
@@ -2160,23 +2160,23 @@ void NotationView::setupActions()
("quantize")));
new TDEAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, this,
- TQT_SLOT(slotTransformsQuantize()), actionCollection(),
+ TQ_SLOT(slotTransformsQuantize()), actionCollection(),
"quantize");
new TDEAction(FixNotationQuantizeCommand::getGlobalName(), 0,
- this, TQT_SLOT(slotTransformsFixQuantization()), actionCollection(),
+ this, TQ_SLOT(slotTransformsFixQuantization()), actionCollection(),
"fix_quantization");
new TDEAction(RemoveNotationQuantizeCommand::getGlobalName(), 0,
- this, TQT_SLOT(slotTransformsRemoveQuantization()), actionCollection(),
+ this, TQ_SLOT(slotTransformsRemoveQuantization()), actionCollection(),
"remove_quantization");
new TDEAction(InterpretCommand::getGlobalName(), 0,
- this, TQT_SLOT(slotTransformsInterpret()), actionCollection(),
+ this, TQ_SLOT(slotTransformsInterpret()), actionCollection(),
"interpret");
new TDEAction(i18n("&Dump selected events to stderr"), 0, this,
- TQT_SLOT(slotDebugDump()), actionCollection(), "debug_dump");
+ TQ_SLOT(slotDebugDump()), actionCollection(), "debug_dump");
for (MarkActionDataMap::Iterator i = m_markActionDataMap->begin();
i != m_markActionDataMap->end(); ++i) {
@@ -2190,7 +2190,7 @@ void NotationView::setupActions()
icon,
markActionData.keycode,
this,
- TQT_SLOT(slotAddMark()),
+ TQ_SLOT(slotAddMark()),
actionCollection(),
markActionData.actionName.ascii());
}
@@ -2200,59 +2200,59 @@ void NotationView::setupActions()
("text-mark")));
new TDEAction(AddTextMarkCommand::getGlobalName(), icon, 0, this,
- TQT_SLOT(slotMarksAddTextMark()), actionCollection(),
+ TQ_SLOT(slotMarksAddTextMark()), actionCollection(),
"add_text_mark");
new TDEAction(AddFingeringMarkCommand::getGlobalName("0"), 0, Key_0 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_0");
new TDEAction(AddFingeringMarkCommand::getGlobalName("1"), 0, Key_1 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_1");
new TDEAction(AddFingeringMarkCommand::getGlobalName("2"), 0, Key_2 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_2");
new TDEAction(AddFingeringMarkCommand::getGlobalName("3"), 0, Key_3 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_3");
new TDEAction(AddFingeringMarkCommand::getGlobalName("4"), 0, Key_4 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_4");
new TDEAction(AddFingeringMarkCommand::getGlobalName("5"), 0, Key_5 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_5");
new TDEAction(AddFingeringMarkCommand::getGlobalName("+"), 0, Key_9 + ALT, this,
- TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_plus");
new TDEAction(AddFingeringMarkCommand::getGlobalName(), 0, 0, this,
- TQT_SLOT(slotMarksAddFingeringMark()), actionCollection(),
+ TQ_SLOT(slotMarksAddFingeringMark()), actionCollection(),
"add_fingering_mark");
new TDEAction(RemoveMarksCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotMarksRemoveMarks()), actionCollection(),
+ TQ_SLOT(slotMarksRemoveMarks()), actionCollection(),
"remove_marks");
new TDEAction(RemoveFingeringMarksCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotMarksRemoveFingeringMarks()), actionCollection(),
+ TQ_SLOT(slotMarksRemoveFingeringMarks()), actionCollection(),
"remove_fingering_marks");
new TDEAction(i18n("Ma&ke Ornament..."), 0, this,
- TQT_SLOT(slotMakeOrnament()), actionCollection(),
+ TQ_SLOT(slotMakeOrnament()), actionCollection(),
"make_ornament");
new TDEAction(i18n("Trigger &Ornament..."), 0, this,
- TQT_SLOT(slotUseOrnament()), actionCollection(),
+ TQ_SLOT(slotUseOrnament()), actionCollection(),
"use_ornament");
new TDEAction(i18n("Remove Ornament..."), 0, this,
- TQT_SLOT(slotRemoveOrnament()), actionCollection(),
+ TQ_SLOT(slotRemoveOrnament()), actionCollection(),
"remove_ornament");
static TQString slashTitles[] = {
@@ -2260,32 +2260,32 @@ void NotationView::setupActions()
};
for (int i = 0; i <= 5; ++i) {
new TDEAction(slashTitles[i], 0, this,
- TQT_SLOT(slotAddSlashes()), actionCollection(),
+ TQ_SLOT(slotAddSlashes()), actionCollection(),
TQString("slashes_%1").arg(i).ascii());
}
new TDEAction(ClefInsertionCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotEditAddClef()), actionCollection(),
+ TQ_SLOT(slotEditAddClef()), actionCollection(),
"add_clef");
new TDEAction(KeyInsertionCommand::getGlobalName(), 0, this,
- TQT_SLOT(slotEditAddKeySignature()), actionCollection(),
+ TQ_SLOT(slotEditAddKeySignature()), actionCollection(),
"add_key_signature");
new TDEAction(SustainInsertionCommand::getGlobalName(true), 0, this,
- TQT_SLOT(slotEditAddSustainDown()), actionCollection(),
+ TQ_SLOT(slotEditAddSustainDown()), actionCollection(),
"add_sustain_down");
new TDEAction(SustainInsertionCommand::getGlobalName(false), 0, this,
- TQT_SLOT(slotEditAddSustainUp()), actionCollection(),
+ TQ_SLOT(slotEditAddSustainUp()), actionCollection(),
"add_sustain_up");
new TDEAction(TransposeCommand::getDiatonicGlobalName(false), 0, this,
- TQT_SLOT(slotEditTranspose()), actionCollection(),
+ TQ_SLOT(slotEditTranspose()), actionCollection(),
"transpose_segment");
new TDEAction(i18n("Convert Notation For..."), 0, this,
- TQT_SLOT(slotEditSwitchPreset()), actionCollection(),
+ TQ_SLOT(slotEditSwitchPreset()), actionCollection(),
"switch_preset");
@@ -2321,79 +2321,79 @@ void NotationView::setupActions()
}
new TDEAction(i18n("Cursor &Back"), 0, Key_Left, this,
- TQT_SLOT(slotStepBackward()), actionCollection(),
+ TQ_SLOT(slotStepBackward()), actionCollection(),
"cursor_back");
new TDEAction(i18n("Cursor &Forward"), 0, Key_Right, this,
- TQT_SLOT(slotStepForward()), actionCollection(),
+ TQ_SLOT(slotStepForward()), actionCollection(),
"cursor_forward");
new TDEAction(i18n("Cursor Ba&ck Bar"), 0, Key_Left + CTRL, this,
- TQT_SLOT(slotJumpBackward()), actionCollection(),
+ TQ_SLOT(slotJumpBackward()), actionCollection(),
"cursor_back_bar");
new TDEAction(i18n("Cursor For&ward Bar"), 0, Key_Right + CTRL, this,
- TQT_SLOT(slotJumpForward()), actionCollection(),
+ TQ_SLOT(slotJumpForward()), actionCollection(),
"cursor_forward_bar");
new TDEAction(i18n("Cursor Back and Se&lect"), SHIFT + Key_Left, this,
- TQT_SLOT(slotExtendSelectionBackward()), actionCollection(),
+ TQ_SLOT(slotExtendSelectionBackward()), actionCollection(),
"extend_selection_backward");
new TDEAction(i18n("Cursor Forward and &Select"), SHIFT + Key_Right, this,
- TQT_SLOT(slotExtendSelectionForward()), actionCollection(),
+ TQ_SLOT(slotExtendSelectionForward()), actionCollection(),
"extend_selection_forward");
new TDEAction(i18n("Cursor Back Bar and Select"), SHIFT + CTRL + Key_Left, this,
- TQT_SLOT(slotExtendSelectionBackwardBar()), actionCollection(),
+ TQ_SLOT(slotExtendSelectionBackwardBar()), actionCollection(),
"extend_selection_backward_bar");
new TDEAction(i18n("Cursor Forward Bar and Select"), SHIFT + CTRL + Key_Right, this,
- TQT_SLOT(slotExtendSelectionForwardBar()), actionCollection(),
+ TQ_SLOT(slotExtendSelectionForwardBar()), actionCollection(),
"extend_selection_forward_bar");
/*!!! not here yet
new TDEAction(i18n("Move Selection Left"), Key_Minus, this,
- TQT_SLOT(slotMoveSelectionLeft()), actionCollection(),
+ TQ_SLOT(slotMoveSelectionLeft()), actionCollection(),
"move_selection_left");
*/
new TDEAction(i18n("Cursor to St&art"), 0,
/* #1025717: conflicting meanings for ctrl+a - dupe with Select All
Key_A + CTRL, */ this,
- TQT_SLOT(slotJumpToStart()), actionCollection(),
+ TQ_SLOT(slotJumpToStart()), actionCollection(),
"cursor_start");
new TDEAction(i18n("Cursor to &End"), 0, Key_E + CTRL, this,
- TQT_SLOT(slotJumpToEnd()), actionCollection(),
+ TQ_SLOT(slotJumpToEnd()), actionCollection(),
"cursor_end");
new TDEAction(i18n("Cursor &Up Staff"), 0, Key_Up + SHIFT, this,
- TQT_SLOT(slotCurrentStaffUp()), actionCollection(),
+ TQ_SLOT(slotCurrentStaffUp()), actionCollection(),
"cursor_up_staff");
new TDEAction(i18n("Cursor &Down Staff"), 0, Key_Down + SHIFT, this,
- TQT_SLOT(slotCurrentStaffDown()), actionCollection(),
+ TQ_SLOT(slotCurrentStaffDown()), actionCollection(),
"cursor_down_staff");
new TDEAction(i18n("Cursor Pre&vious Segment"), 0, Key_Prior + ALT, this,
- TQT_SLOT(slotCurrentSegmentPrior()), actionCollection(),
+ TQ_SLOT(slotCurrentSegmentPrior()), actionCollection(),
"cursor_prior_segment");
new TDEAction(i18n("Cursor Ne&xt Segment"), 0, Key_Next + ALT, this,
- TQT_SLOT(slotCurrentSegmentNext()), actionCollection(),
+ TQ_SLOT(slotCurrentSegmentNext()), actionCollection(),
"cursor_next_segment");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-cursor-to-pointer")));
new TDEAction(i18n("Cursor to &Playback Pointer"), icon, 0, this,
- TQT_SLOT(slotJumpCursorToPlayback()), actionCollection(),
+ TQ_SLOT(slotJumpCursorToPlayback()), actionCollection(),
"cursor_to_playback_pointer");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play")));
TDEAction *play = new TDEAction(i18n("&Play"), icon, Key_Enter, this,
- TQT_SIGNAL(play()), actionCollection(), "play");
+ TQ_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play
TDEShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
@@ -2402,112 +2402,112 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop")));
new TDEAction(i18n("&Stop"), icon, Key_Insert, this,
- TQT_SIGNAL(stop()), actionCollection(), "stop");
+ TQ_SIGNAL(stop()), actionCollection(), "stop");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind")));
new TDEAction(i18n("Re&wind"), icon, Key_End, this,
- TQT_SIGNAL(rewindPlayback()), actionCollection(),
+ TQ_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd")));
new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown, this,
- TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
+ TQ_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end")));
new TDEAction(i18n("Rewind to &Beginning"), icon, 0, this,
- TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
+ TQ_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end")));
new TDEAction(i18n("Fast Forward to &End"), icon, 0, this,
- TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
+ TQ_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-pointer-to-cursor")));
new TDEAction(i18n("Playback Pointer to &Cursor"), icon, 0, this,
- TQT_SLOT(slotJumpPlaybackToCursor()), actionCollection(),
+ TQ_SLOT(slotJumpPlaybackToCursor()), actionCollection(),
"playback_pointer_to_cursor");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-solo")));
new TDEToggleAction(i18n("&Solo"), icon, 0, this,
- TQT_SLOT(slotToggleSolo()), actionCollection(),
+ TQ_SLOT(slotToggleSolo()), actionCollection(),
"toggle_solo");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-tracking")));
(new TDEToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, this,
- TQT_SLOT(slotToggleTracking()), actionCollection(),
+ TQ_SLOT(slotToggleTracking()), actionCollection(),
"toggle_tracking"))->setChecked(m_playTracking);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic")));
new TDEAction(i18n("Panic"), icon, Key_P + CTRL + ALT, this,
- TQT_SIGNAL(panic()), actionCollection(), "panic");
+ TQ_SIGNAL(panic()), actionCollection(), "panic");
new TDEAction(i18n("Set Loop to Selection"), Key_Semicolon + CTRL, this,
- TQT_SLOT(slotPreviewSelection()), actionCollection(),
+ TQ_SLOT(slotPreviewSelection()), actionCollection(),
"preview_selection");
new TDEAction(i18n("Clear L&oop"), Key_Colon + CTRL, this,
- TQT_SLOT(slotClearLoop()), actionCollection(),
+ TQ_SLOT(slotClearLoop()), actionCollection(),
"clear_loop");
new TDEAction(i18n("Clear Selection"), Key_Escape, this,
- TQT_SLOT(slotClearSelection()), actionCollection(),
+ TQ_SLOT(slotClearSelection()), actionCollection(),
"clear_selection");
// TQString pixmapDir =
// TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
// icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
new TDEAction(i18n("&Filter Selection"), "filter", Key_F + CTRL, this,
- TQT_SLOT(slotFilterSelection()), actionCollection(),
+ TQ_SLOT(slotFilterSelection()), actionCollection(),
"filter_selection");
new TDEAction(i18n("Push &Left"), 0, this,
- TQT_SLOT(slotFinePositionLeft()), actionCollection(),
+ TQ_SLOT(slotFinePositionLeft()), actionCollection(),
"fine_position_left");
new TDEAction(i18n("Push &Right"), 0, this,
- TQT_SLOT(slotFinePositionRight()), actionCollection(),
+ TQ_SLOT(slotFinePositionRight()), actionCollection(),
"fine_position_right");
new TDEAction(i18n("Push &Up"), 0, this,
- TQT_SLOT(slotFinePositionUp()), actionCollection(),
+ TQ_SLOT(slotFinePositionUp()), actionCollection(),
"fine_position_up");
new TDEAction(i18n("Push &Down"), 0, this,
- TQT_SLOT(slotFinePositionDown()), actionCollection(),
+ TQ_SLOT(slotFinePositionDown()), actionCollection(),
"fine_position_down");
new TDEAction(i18n("&Restore Positions"), 0, this,
- TQT_SLOT(slotFinePositionRestore()), actionCollection(),
+ TQ_SLOT(slotFinePositionRestore()), actionCollection(),
"fine_position_restore");
new TDEAction(i18n("Make &Invisible"), 0, this,
- TQT_SLOT(slotMakeInvisible()), actionCollection(),
+ TQ_SLOT(slotMakeInvisible()), actionCollection(),
"make_invisible");
new TDEAction(i18n("Make &Visible"), 0, this,
- TQT_SLOT(slotMakeVisible()), actionCollection(),
+ TQ_SLOT(slotMakeVisible()), actionCollection(),
"make_visible");
new TDEAction(i18n("Toggle Dot"), Key_Period, this,
- TQT_SLOT(slotToggleDot()), actionCollection(),
+ TQ_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot");
new TDEAction(i18n("Add Dot"), Key_Period + CTRL, this,
- TQT_SLOT(slotAddDot()), actionCollection(),
+ TQ_SLOT(slotAddDot()), actionCollection(),
"add_dot");
new TDEAction(i18n("Add Dot"), Key_Period + CTRL + ALT, this,
- TQT_SLOT(slotAddDotNotationOnly()), actionCollection(),
+ TQ_SLOT(slotAddDotNotationOnly()), actionCollection(),
"add_notation_dot");
createGUI(getRCFileName(), false);
@@ -2567,7 +2567,7 @@ NotationView::setupFontSizeMenu(std::string oldFontName)
sizeAction =
new TDEToggleAction(i18n("1 pixel", "%n pixels", sizes[i]),
0, this,
- TQT_SLOT(slotChangeFontSizeFromAction()),
+ TQ_SLOT(slotChangeFontSizeFromAction()),
actionCollection(), actionName.ascii());
}
@@ -2647,8 +2647,8 @@ void NotationView::initLayoutToolbar()
m_fontName = NoteFontFactory::getDefaultFontName();
}
- connect(m_fontCombo, TQT_SIGNAL(activated(const TQString &)),
- this, TQT_SLOT(slotChangeFont(const TQString &)));
+ connect(m_fontCombo, TQ_SIGNAL(activated(const TQString &)),
+ this, TQ_SLOT(slotChangeFont(const TQString &)));
new TQLabel(i18n(" Size: "), layoutToolbar, "size label");
@@ -2669,8 +2669,8 @@ void NotationView::initLayoutToolbar()
value.setNum(m_fontSize);
m_fontSizeCombo->setCurrentText(value);
- connect(m_fontSizeCombo, TQT_SIGNAL(activated(const TQString&)),
- this, TQT_SLOT(slotChangeFontSizeFromStringValue(const TQString&)));
+ connect(m_fontSizeCombo, TQ_SIGNAL(activated(const TQString&)),
+ this, TQ_SLOT(slotChangeFontSizeFromStringValue(const TQString&)));
new TQLabel(i18n(" Spacing: "), layoutToolbar, "spacing label");
@@ -2692,8 +2692,8 @@ void NotationView::initLayoutToolbar()
value += "%";
m_spacingCombo->setCurrentText(value);
- connect(m_spacingCombo, TQT_SIGNAL(activated(const TQString&)),
- this, TQT_SLOT(slotChangeSpacingFromStringValue(const TQString&)));
+ connect(m_spacingCombo, TQ_SIGNAL(activated(const TQString&)),
+ this, TQ_SLOT(slotChangeSpacingFromStringValue(const TQString&)));
}
void NotationView::initStatusBar()
@@ -4108,24 +4108,24 @@ void NotationView::setupProgress(KProgress* bar)
if (bar) {
NOTATION_DEBUG << "NotationView::setupProgress(bar)\n";
- connect(m_hlayout, TQT_SIGNAL(setProgress(int)),
- bar, TQT_SLOT(setValue(int)));
+ connect(m_hlayout, TQ_SIGNAL(setProgress(int)),
+ bar, TQ_SLOT(setValue(int)));
- connect(m_hlayout, TQT_SIGNAL(incrementProgress(int)),
- bar, TQT_SLOT(advance(int)));
+ connect(m_hlayout, TQ_SIGNAL(incrementProgress(int)),
+ bar, TQ_SLOT(advance(int)));
- connect(this, TQT_SIGNAL(setProgress(int)),
- bar, TQT_SLOT(setValue(int)));
+ connect(this, TQ_SIGNAL(setProgress(int)),
+ bar, TQ_SLOT(setValue(int)));
- connect(this, TQT_SIGNAL(incrementProgress(int)),
- bar, TQT_SLOT(advance(int)));
+ connect(this, TQ_SIGNAL(incrementProgress(int)),
+ bar, TQ_SLOT(advance(int)));
for (unsigned int i = 0; i < m_staffs.size(); ++i) {
- connect(m_staffs[i], TQT_SIGNAL(setProgress(int)),
- bar, TQT_SLOT(setValue(int)));
+ connect(m_staffs[i], TQ_SIGNAL(setProgress(int)),
+ bar, TQ_SLOT(setValue(int)));
- connect(m_staffs[i], TQT_SIGNAL(incrementProgress(int)),
- bar, TQT_SLOT(advance(int)));
+ connect(m_staffs[i], TQ_SIGNAL(incrementProgress(int)),
+ bar, TQ_SLOT(advance(int)));
}
}
@@ -4139,19 +4139,19 @@ void NotationView::setupProgress(ProgressDialog* dialog)
if (dialog) {
setupProgress(dialog->progressBar());
- connect(dialog, TQT_SIGNAL(cancelClicked()),
- m_hlayout, TQT_SLOT(slotCancel()));
+ connect(dialog, TQ_SIGNAL(cancelClicked()),
+ m_hlayout, TQ_SLOT(slotCancel()));
for (unsigned int i = 0; i < m_staffs.size(); ++i) {
- connect(m_staffs[i], TQT_SIGNAL(setOperationName(TQString)),
- this, TQT_SLOT(slotSetOperationNameAndStatus(TQString)));
+ connect(m_staffs[i], TQ_SIGNAL(setOperationName(TQString)),
+ this, TQ_SLOT(slotSetOperationNameAndStatus(TQString)));
- connect(dialog, TQT_SIGNAL(cancelClicked()),
- m_staffs[i], TQT_SLOT(slotCancel()));
+ connect(dialog, TQ_SIGNAL(cancelClicked()),
+ m_staffs[i], TQ_SLOT(slotCancel()));
}
- connect(this, TQT_SIGNAL(setOperationName(TQString)),
- dialog, TQT_SLOT(slotSetOperationName(TQString)));
+ connect(this, TQ_SIGNAL(setOperationName(TQString)),
+ dialog, TQ_SLOT(slotSetOperationName(TQString)));
m_progressDisplayer = PROGRESS_DIALOG;
}
@@ -4169,9 +4169,9 @@ void NotationView::disconnectProgress()
NOTATION_DEBUG << "NotationView::disconnectProgress()" << endl;
m_hlayout->disconnect();
- disconnect(TQT_SIGNAL(setProgress(int)));
- disconnect(TQT_SIGNAL(incrementProgress(int)));
- disconnect(TQT_SIGNAL(setOperationName(TQString)));
+ disconnect(TQ_SIGNAL(setProgress(int)));
+ disconnect(TQ_SIGNAL(incrementProgress(int)));
+ disconnect(TQ_SIGNAL(setOperationName(TQString)));
for (unsigned int i = 0; i < m_staffs.size(); ++i) {
m_staffs[i]->disconnect();
@@ -4658,8 +4658,8 @@ void NotationView::slotPrintLilyPond()
*proc << "--graphical";
*proc << "--print";
*proc << file->name();
- connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),
- this, TQT_SLOT(slotLilyPondViewProcessExited(TDEProcess *)));
+ connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),
+ this, TQ_SLOT(slotLilyPondViewProcessExited(TDEProcess *)));
m_lilyTempFileMap[proc] = file;
proc->start(TDEProcess::NotifyOnExit);
}
@@ -4682,8 +4682,8 @@ void NotationView::slotPreviewLilyPond()
*proc << "--graphical";
*proc << "--pdf";
*proc << file->name();
- connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),
- this, TQT_SLOT(slotLilyPondViewProcessExited(TDEProcess *)));
+ connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),
+ this, TQ_SLOT(slotLilyPondViewProcessExited(TDEProcess *)));
m_lilyTempFileMap[proc] = file;
proc->start(TDEProcess::NotifyOnExit);
}
@@ -4714,11 +4714,11 @@ bool NotationView::exportLilyPondFile(TQString file, bool forPreview)
LilyPondExporter e(this, m_doc, std::string(TQFile::encodeName(file)));
- connect(&e, TQT_SIGNAL(setProgress(int)),
- progressDlg.progressBar(), TQT_SLOT(setValue(int)));
+ connect(&e, TQ_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQ_SLOT(setValue(int)));
- connect(&e, TQT_SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), TQT_SLOT(advance(int)));
+ connect(&e, TQ_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQ_SLOT(advance(int)));
if (!e.write()) {
// CurrentProgressDialog::freeze();
@@ -7407,7 +7407,7 @@ NotationView::slotCheckRendered(double cx0, double cx1)
if (m_renderTimer)
delete m_renderTimer;
m_renderTimer = new TQTimer(this);
- connect(m_renderTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotRenderSomething()));
+ connect(m_renderTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotRenderSomething()));
m_renderTimer->start(0, true);
}
@@ -7426,7 +7426,7 @@ NotationView::slotRenderSomething()
long elapsed = ((now - lastWork) * 1000 / CLOCKS_PER_SEC);
if (elapsed < 70) {
m_renderTimer = new TQTimer(this);
- connect(m_renderTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotRenderSomething()));
+ connect(m_renderTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotRenderSomething()));
m_renderTimer->start(0, true);
return ;
}
@@ -7437,7 +7437,7 @@ NotationView::slotRenderSomething()
if (m_staffs[i]->doRenderWork(m_staffs[i]->getSegment().getStartTime(),
m_staffs[i]->getSegment().getEndTime())) {
m_renderTimer = new TQTimer(this);
- connect(m_renderTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotRenderSomething()));
+ connect(m_renderTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotRenderSomething()));
m_renderTimer->start(0, true);
return ;
}