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.cpp348
1 files changed, 174 insertions, 174 deletions
diff --git a/src/gui/editors/notation/NotationView.cpp b/src/gui/editors/notation/NotationView.cpp
index e5d84c5..a97c7c7 100644
--- a/src/gui/editors/notation/NotationView.cpp
+++ b/src/gui/editors/notation/NotationView.cpp
@@ -371,9 +371,9 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
m_leftGutter(20),
m_notePixmapFactory(new NotePixmapFactory(m_fontName, m_fontSize)),
m_hlayout(new NotationHLayout(&doc->getComposition(), m_notePixmapFactory,
- m_properties, TQT_TQOBJECT(this))),
+ m_properties, this)),
m_vlayout(new NotationVLayout(&doc->getComposition(), m_notePixmapFactory,
- m_properties, TQT_TQOBJECT(this))),
+ m_properties, this)),
m_chordNameRuler(0),
m_tempoRuler(0),
m_rawNoteRuler(0),
@@ -450,7 +450,7 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
setBackgroundMode(PaletteBase);
- TQCanvas *tCanvas = new TQCanvas(TQT_TQOBJECT(this));
+ TQCanvas *tCanvas = new TQCanvas(this);
tCanvas->resize(width() * 2, height() * 2);
setCanvasView(new NotationCanvasView(*this, tCanvas, getCentralWidget()));
@@ -674,10 +674,10 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
this, TQT_SLOT (slotHoveredOverAbsoluteTimeChanged(unsigned int)));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(zoomIn()), TQT_TQOBJECT(this), TQT_SLOT(slotZoomIn()));
+ (getCanvasView(), TQT_SIGNAL(zoomIn()), this, TQT_SLOT(slotZoomIn()));
TQObject::connect
- (getCanvasView(), TQT_SIGNAL(zoomOut()), TQT_TQOBJECT(this), TQT_SLOT(slotZoomOut()));
+ (getCanvasView(), TQT_SIGNAL(zoomOut()), this, TQT_SLOT(slotZoomOut()));
TQObject::connect
(m_pannerDialog->scrollbox(), TQT_SIGNAL(valueChanged(const TQPoint &)),
@@ -816,9 +816,9 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
m_leftGutter(0),
m_notePixmapFactory(new NotePixmapFactory(m_fontName, m_fontSize)),
m_hlayout(new NotationHLayout(&doc->getComposition(), m_notePixmapFactory,
- m_properties, TQT_TQOBJECT(this))),
+ m_properties, this)),
m_vlayout(new NotationVLayout(&doc->getComposition(), m_notePixmapFactory,
- m_properties, TQT_TQOBJECT(this))),
+ m_properties, this)),
m_chordNameRuler(0),
m_tempoRuler(0),
m_rawNoteRuler(0),
@@ -887,7 +887,7 @@ NotationView::NotationView(RosegardenGUIDoc *doc,
setBackgroundMode(PaletteBase);
m_config->setGroup(NotationViewConfigGroup);
- TQCanvas *tCanvas = new TQCanvas(TQT_TQOBJECT(this));
+ TQCanvas *tCanvas = new TQCanvas(this);
tCanvas->resize(width() * 2, height() * 2); //!!!
setCanvasView(new NotationCanvasView(*this, tCanvas, getCentralWidget()));
@@ -1491,15 +1491,15 @@ void NotationView::readOptions()
void NotationView::setupActions()
{
- KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
- KStdAction::printPreview(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrintPreview()),
+ KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
+ KStdAction::printPreview(this, TQT_SLOT(slotFilePrintPreview()),
actionCollection());
- new TDEAction(i18n("Print &with LilyPond..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Print &with LilyPond..."), 0, 0, this,
TQT_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond");
- new TDEAction(i18n("Preview with Lil&yPond..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Preview with Lil&yPond..."), 0, 0, this,
TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond");
@@ -1511,7 +1511,7 @@ void NotationView::setupActions()
// View menu stuff
TDEActionMenu *fontActionMenu =
- new TDEActionMenu(i18n("Note &Font"), TQT_TQOBJECT(this), "note_font_actionmenu");
+ new TDEActionMenu(i18n("Note &Font"), this, "note_font_actionmenu");
std::set
<std::string> fs(NoteFontFactory::getFontNames());
@@ -1524,7 +1524,7 @@ void NotationView::setupActions()
TDEToggleAction *fontAction =
new TDEToggleAction
- (fontTQName, 0, TQT_TQOBJECT(this), TQT_SLOT(slotChangeFontFromAction()),
+ (fontTQName, 0, this, TQT_SLOT(slotChangeFontFromAction()),
actionCollection(), TQString("note_font_" + fontTQName).ascii());
fontAction->setChecked(*i == m_fontName);
@@ -1534,18 +1534,18 @@ void NotationView::setupActions()
actionCollection()->insert(fontActionMenu);
m_fontSizeActionMenu =
- new TDEActionMenu(i18n("Si&ze"), TQT_TQOBJECT(this), "note_font_size_actionmenu");
+ new TDEActionMenu(i18n("Si&ze"), this, "note_font_size_actionmenu");
setupFontSizeMenu();
actionCollection()->insert(m_fontSizeActionMenu);
m_showHeadersMenuEntry
- = new TDEAction(i18n("Show Track Headers"), 0, TQT_TQOBJECT(this),
+ = new TDEAction(i18n("Show Track Headers"), 0, this,
TQT_SLOT(slotShowHeadersGroup()),
actionCollection(), "show_track_headers");
TDEActionMenu *spacingActionMenu =
- new TDEActionMenu(i18n("S&pacing"), TQT_TQOBJECT(this), "stretch_actionmenu");
+ new TDEActionMenu(i18n("S&pacing"), this, "stretch_actionmenu");
int defaultSpacing = m_hlayout->getSpacing();
std::vector<int> spacings = NotationHLayout::getAvailableSpacings();
@@ -1555,7 +1555,7 @@ void NotationView::setupActions()
TDEToggleAction *spacingAction =
new TDEToggleAction
- (TQString("%1%").arg(*i), 0, TQT_TQOBJECT(this),
+ (TQString("%1%").arg(*i), 0, this,
TQT_SLOT(slotChangeSpacingFromAction()),
actionCollection(), TQString("spacing_%1").arg(*i).ascii());
@@ -1567,7 +1567,7 @@ void NotationView::setupActions()
actionCollection()->insert(spacingActionMenu);
TDEActionMenu *proportionActionMenu =
- new TDEActionMenu(i18n("Du&ration Factor"), TQT_TQOBJECT(this), "proportion_actionmenu");
+ new TDEActionMenu(i18n("Du&ration Factor"), this, "proportion_actionmenu");
int defaultProportion = m_hlayout->getProportion();
std::vector<int> proportions = NotationHLayout::getAvailableProportions();
@@ -1581,7 +1581,7 @@ void NotationView::setupActions()
TDEToggleAction *proportionAction =
new TDEToggleAction
- (name, 0, TQT_TQOBJECT(this),
+ (name, 0, this,
TQT_SLOT(slotChangeProportionFromAction()),
actionCollection(), TQString("proportion_%1").arg(*i).ascii());
@@ -1593,7 +1593,7 @@ void NotationView::setupActions()
actionCollection()->insert(proportionActionMenu);
TDEActionMenu *styleActionMenu =
- new TDEActionMenu(i18n("Note &Style"), TQT_TQOBJECT(this), "note_style_actionmenu");
+ new TDEActionMenu(i18n("Note &Style"), this, "note_style_actionmenu");
std::vector<NoteStyleName> styles
(NoteStyleFactory::getAvailableStyleNames());
@@ -1605,7 +1605,7 @@ void NotationView::setupActions()
TDEAction *styleAction =
new TDEAction
- (styleTQName, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSetStyleFromAction()),
+ (styleTQName, 0, this, TQT_SLOT(slotSetStyleFromAction()),
actionCollection(), TQString("style_" + styleTQName).ascii());
styleActionMenu->insert(styleAction);
@@ -1614,21 +1614,21 @@ void NotationView::setupActions()
actionCollection()->insert(styleActionMenu);
TDEActionMenu *ornamentActionMenu =
- new TDEActionMenu(i18n("Use Ornament"), TQT_TQOBJECT(this), "ornament_actionmenu");
+ new TDEActionMenu(i18n("Use Ornament"), this, "ornament_actionmenu");
new TDEAction
- (i18n("Insert Rest"), Key_P, TQT_TQOBJECT(this), TQT_SLOT(slotInsertRest()),
+ (i18n("Insert Rest"), Key_P, this, TQT_SLOT(slotInsertRest()),
actionCollection(), TQString("insert_rest").ascii());
new TDEAction
- (i18n("Switch from Note to Rest"), Key_T, TQT_TQOBJECT(this),
+ (i18n("Switch from Note to Rest"), Key_T, this,
TQT_SLOT(slotSwitchFromNoteToRest()),
actionCollection(), TQString("switch_from_note_to_rest").ascii());
new TDEAction
- (i18n("Switch from Rest to Note"), Key_Y, TQT_TQOBJECT(this),
+ (i18n("Switch from Rest to Note"), Key_Y, this,
TQT_SLOT(slotSwitchFromRestToNote()),
actionCollection(), TQString("switch_from_rest_to_note").ascii());
@@ -1648,7 +1648,7 @@ void NotationView::setupActions()
noteAction = new TDERadioAction(noteActionData.title,
icon,
noteActionData.keycode,
- TQT_TQOBJECT(this),
+ this,
TQT_SLOT(slotNoteAction()),
actionCollection(),
noteActionData.actionName.ascii());
@@ -1674,7 +1674,7 @@ void NotationView::setupActions()
TDEAction *action = new TDEAction(data.title,
icon,
data.keycode,
- TQT_TQOBJECT(this),
+ this,
TQT_SLOT(slotNoteChangeAction()),
actionCollection(),
data.actionName.ascii());
@@ -1699,7 +1699,7 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
(actionsAccidental[i][3].ascii())));
- noteAction = new TDERadioAction(actionsAccidental[i][0], icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(actionsAccidental[i][0], icon, 0, this,
actionsAccidental[i][1].ascii(),
actionCollection(), actionsAccidental[i][2].ascii());
noteAction->setExclusiveGroup("accidentals");
@@ -1712,47 +1712,47 @@ void NotationView::setupActions()
// Treble
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-treble")));
- noteAction = new TDERadioAction(i18n("&Treble Clef"), icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Treble Clef"), icon, 0, this,
TQT_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, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Alto Clef"), icon, 0, this,
TQT_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, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("Te&nor Clef"), icon, 0, this,
TQT_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, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Bass Clef"), icon, 0, this,
TQT_SLOT(slotBassClef()),
actionCollection(), "bass_clef");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("text")));
- noteAction = new TDERadioAction(i18n("&Text"), icon, Key_F8, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Text"), icon, Key_F8, this,
TQT_SLOT(slotText()),
actionCollection(), "text");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("guitarchord")));
- noteAction = new TDERadioAction(i18n("&Guitar Chord"), icon, Key_F9, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Guitar Chord"), icon, Key_F9, this,
TQT_SLOT(slotGuitarChord()),
actionCollection(), "guitarchord");
noteAction->setExclusiveGroup("notes");
/* icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("lilypond")));
- noteAction = new TDERadioAction(i18n("Lil&ypond Directive"), icon, Key_F9, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("Lil&ypond Directive"), icon, Key_F9, this,
TQT_SLOT(slotLilyPondDirective()),
actionCollection(), "lilypond_directive");
noteAction->setExclusiveGroup("notes"); */
@@ -1762,52 +1762,52 @@ void NotationView::setupActions()
// Edition tools (eraser, selector...)
//
noteAction = new TDERadioAction(i18n("&Erase"), "eraser", Key_F4,
- TQT_TQOBJECT(this), TQT_SLOT(slotEraseSelected()),
+ this, TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("select")));
noteAction = new TDERadioAction(i18n("&Select and Edit"), icon, Key_F2,
- TQT_TQOBJECT(this), TQT_SLOT(slotSelectSelected()),
+ this, TQT_SLOT(slotSelectSelected()),
actionCollection(), "select");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("step_by_step")));
- new TDEToggleAction(i18n("Ste&p Recording"), icon, 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Ste&p Recording"), icon, 0, this,
TQT_SLOT(slotToggleStepByStep()), actionCollection(),
"toggle_step_by_step");
// Edit menu
- new TDEAction(i18n("Select from Sta&rt"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select from Sta&rt"), 0, this,
TQT_SLOT(slotEditSelectFromStart()), actionCollection(),
"select_from_start");
- new TDEAction(i18n("Select to &End"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select to &End"), 0, this,
TQT_SLOT(slotEditSelectToEnd()), actionCollection(),
"select_to_end");
- new TDEAction(i18n("Select Whole St&aff"), Key_A + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select Whole St&aff"), Key_A + CTRL, this,
TQT_SLOT(slotEditSelectWholeStaff()), actionCollection(),
"select_whole_staff");
- new TDEAction(i18n("C&ut and Close"), CTRL + SHIFT + Key_X, TQT_TQOBJECT(this),
+ new TDEAction(i18n("C&ut and Close"), CTRL + SHIFT + Key_X, this,
TQT_SLOT(slotEditCutAndClose()), actionCollection(),
"cut_and_close");
- new TDEAction(i18n("Pa&ste..."), CTRL + SHIFT + Key_V, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Pa&ste..."), CTRL + SHIFT + Key_V, this,
TQT_SLOT(slotEditGeneralPaste()), actionCollection(),
"general_paste");
- new TDEAction(i18n("De&lete"), Key_Delete, TQT_TQOBJECT(this),
+ new TDEAction(i18n("De&lete"), Key_Delete, this,
TQT_SLOT(slotEditDelete()), actionCollection(),
"delete");
- new TDEAction(i18n("Move to Staff Above"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Move to Staff Above"), 0, this,
TQT_SLOT(slotMoveEventsUpStaff()), actionCollection(),
"move_events_up_staff");
- new TDEAction(i18n("Move to Staff Below"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Move to Staff Below"), 0, this,
TQT_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, TQT_TQOBJECT(this), TQT_SLOT(slotLinearMode()),
+ (i18n("&Linear Layout"), icon, 0, this, TQT_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, TQT_TQOBJECT(this), TQT_SLOT(slotContinuousPageMode()),
+ (i18n("&Continuous Page Layout"), icon, 0, this, TQT_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, TQT_TQOBJECT(this), TQT_SLOT(slotMultiPageMode()),
+ (i18n("&Multiple Page Layout"), icon, 0, this, TQT_SLOT(slotMultiPageMode()),
actionCollection(), "multi_page_mode");
multiPageModeAction->setExclusiveGroup("layoutMode");
if (layoutMode == 2)
multiPageModeAction->setChecked(true);
- new TDEToggleAction(i18n("Show Ch&ord Name Ruler"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show Ch&ord Name Ruler"), 0, this,
TQT_SLOT(slotToggleChordsRuler()),
actionCollection(), "show_chords_ruler");
- new TDEToggleAction(i18n("Show Ra&w Note Ruler"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show Ra&w Note Ruler"), 0, this,
TQT_SLOT(slotToggleRawNoteRuler()),
actionCollection(), "show_raw_note_ruler");
- new TDEToggleAction(i18n("Show &Tempo Ruler"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show &Tempo Ruler"), 0, this,
TQT_SLOT(slotToggleTempoRuler()),
actionCollection(), "show_tempo_ruler");
- new TDEToggleAction(i18n("Show &Annotations"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show &Annotations"), 0, this,
TQT_SLOT(slotToggleAnnotations()),
actionCollection(), "show_annotations");
- new TDEToggleAction(i18n("Show Lily&Pond Directives"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show Lily&Pond Directives"), 0, this,
TQT_SLOT(slotToggleLilyPondDirectives()),
actionCollection(), "show_lilypond_directives");
- new TDEAction(i18n("Open L&yric Editor"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditLyrics()),
+ new TDEAction(i18n("Open L&yric Editor"), 0, this, TQT_SLOT(slotEditLyrics()),
actionCollection(), "lyric_editor");
//
@@ -1875,54 +1875,54 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-beam")));
- new TDEAction(BeamCommand::getGlobalName(), icon, Key_B + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(BeamCommand::getGlobalName(), icon, Key_B + CTRL, this,
TQT_SLOT(slotGroupBeam()), actionCollection(), "beam");
- new TDEAction(AutoBeamCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(AutoBeamCommand::getGlobalName(), 0, this,
TQT_SLOT(slotGroupAutoBeam()), actionCollection(), "auto_beam");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-unbeam")));
- new TDEAction(BreakCommand::getGlobalName(), icon, Key_U + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(BreakCommand::getGlobalName(), icon, Key_U + CTRL, this,
TQT_SLOT(slotGroupBreak()), actionCollection(), "break_group");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-simple-tuplet")));
- new TDEAction(TupletCommand::getGlobalName(true), icon, Key_R + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(TupletCommand::getGlobalName(true), icon, Key_R + CTRL, this,
TQT_SLOT(slotGroupSimpleTuplet()), actionCollection(), "simple_tuplet");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-tuplet")));
- new TDEAction(TupletCommand::getGlobalName(false), icon, Key_T + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(TupletCommand::getGlobalName(false), icon, Key_T + CTRL, this,
TQT_SLOT(slotGroupGeneralTuplet()), actionCollection(), "tuplet");
- new TDEAction(UnTupletCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(UnTupletCommand::getGlobalName(), 0, this,
TQT_SLOT(slotGroupUnTuplet()), actionCollection(), "break_tuplets");
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("triplet")));
(new TDEToggleAction(i18n("Trip&let Insert Mode"), icon, Key_G,
- TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()),
+ this, TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "triplet_mode"))->
setChecked(false);
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("chord")));
(new TDEToggleAction(i18n("C&hord Insert Mode"), icon, Key_H,
- TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()),
+ this, TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "chord_mode"))->
setChecked(false);
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("group-grace")));
(new TDEToggleAction(i18n("Grace Insert Mode"), icon, 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()),
+ this, TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "grace_mode"))->
setChecked(false);
/*!!!
@@ -1930,10 +1930,10 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-grace")));
- new TDEAction(GraceCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(GraceCommand::getGlobalName(), icon, 0, this,
TQT_SLOT(slotGroupGrace()), actionCollection(), "grace");
- new TDEAction(UnGraceCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(UnGraceCommand::getGlobalName(), 0, this,
TQT_SLOT(slotGroupUnGrace()), actionCollection(), "ungrace");
*/
icon = TQIconSet
@@ -1941,11 +1941,11 @@ void NotationView::setupActions()
("group-slur")));
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::Slur), icon, Key_ParenRight, TQT_TQOBJECT(this),
+ (Indication::Slur), icon, Key_ParenRight, this,
TQT_SLOT(slotGroupSlur()), actionCollection(), "slur");
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::PhrasingSlur), 0, Key_ParenRight + CTRL, TQT_TQOBJECT(this),
+ (Indication::PhrasingSlur), 0, Key_ParenRight + CTRL, this,
TQT_SLOT(slotGroupPhrasingSlur()), actionCollection(), "phrasing_slur");
icon = TQIconSet
@@ -1953,7 +1953,7 @@ void NotationView::setupActions()
("group-glissando")));
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::Glissando), icon, 0, TQT_TQOBJECT(this),
+ (Indication::Glissando), icon, 0, this,
TQT_SLOT(slotGroupGlissando()), actionCollection(), "glissando");
icon = TQIconSet
@@ -1961,7 +1961,7 @@ void NotationView::setupActions()
("group-crescendo")));
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::Crescendo), icon, Key_Less, TQT_TQOBJECT(this),
+ (Indication::Crescendo), icon, Key_Less, this,
TQT_SLOT(slotGroupCrescendo()), actionCollection(), "crescendo");
icon = TQIconSet
@@ -1969,11 +1969,11 @@ void NotationView::setupActions()
("group-decrescendo")));
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::Decrescendo), icon, Key_Greater, TQT_TQOBJECT(this),
+ (Indication::Decrescendo), icon, Key_Greater, this,
TQT_SLOT(slotGroupDecrescendo()), actionCollection(), "decrescendo");
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::QuindicesimaUp), 0, 0, TQT_TQOBJECT(this),
+ (Indication::QuindicesimaUp), 0, 0, this,
TQT_SLOT(slotGroupOctave2Up()), actionCollection(), "octave_2up");
icon = TQIconSet
@@ -1981,33 +1981,33 @@ void NotationView::setupActions()
("group-ottava")));
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::OttavaUp), icon, 0, TQT_TQOBJECT(this),
+ (Indication::OttavaUp), icon, 0, this,
TQT_SLOT(slotGroupOctaveUp()), actionCollection(), "octave_up");
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::OttavaDown), 0, 0, TQT_TQOBJECT(this),
+ (Indication::OttavaDown), 0, 0, this,
TQT_SLOT(slotGroupOctaveDown()), actionCollection(), "octave_down");
new TDEAction(AddIndicationCommand::getGlobalName
- (Indication::QuindicesimaDown), 0, 0, TQT_TQOBJECT(this),
+ (Indication::QuindicesimaDown), 0, 0, this,
TQT_SLOT(slotGroupOctave2Down()), actionCollection(), "octave_2down");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-chord")));
- new TDEAction(MakeChordCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(MakeChordCommand::getGlobalName(), icon, 0, this,
TQT_SLOT(slotGroupMakeChord()), actionCollection(), "make_chord");
// setup Transforms menu
- new TDEAction(NormalizeRestsCommand::getGlobalName(), Key_N + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(NormalizeRestsCommand::getGlobalName(), Key_N + CTRL, this,
TQT_SLOT(slotTransformsNormalizeRests()), actionCollection(),
"normalize_rests");
- new TDEAction(CollapseRestsCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(CollapseRestsCommand::getGlobalName(), 0, this,
TQT_SLOT(slotTransformsCollapseRests()), actionCollection(),
"collapse_rests_aggressively");
- new TDEAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, this,
TQT_SLOT(slotTransformsCollapseNotes()), actionCollection(),
"collapse_notes");
@@ -2015,15 +2015,15 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transforms-tie")));
- new TDEAction(TieNotesCommand::getGlobalName(), icon, Key_AsciiTilde, TQT_TQOBJECT(this),
+ new TDEAction(TieNotesCommand::getGlobalName(), icon, Key_AsciiTilde, this,
TQT_SLOT(slotTransformsTieNotes()), actionCollection(),
"tie_notes");
- new TDEAction(UntieNotesCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(UntieNotesCommand::getGlobalName(), 0, this,
TQT_SLOT(slotTransformsUntieNotes()), actionCollection(),
"untie_notes");
- new TDEAction(MakeNotesViableCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(MakeNotesViableCommand::getGlobalName(), 0, this,
TQT_SLOT(slotTransformsMakeNotesViable()), actionCollection(),
"make_notes_viable");
@@ -2031,49 +2031,49 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transforms-decounterpoint")));
- new TDEAction(DeCounterpointCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(DeCounterpointCommand::getGlobalName(), icon, 0, this,
TQT_SLOT(slotTransformsDeCounterpoint()), actionCollection(),
"de_counterpoint");
new TDEAction(ChangeStemsCommand::getGlobalName(true),
- 0, Key_PageUp + CTRL, TQT_TQOBJECT(this),
+ 0, Key_PageUp + CTRL, this,
TQT_SLOT(slotTransformsStemsUp()), actionCollection(),
"stems_up");
new TDEAction(ChangeStemsCommand::getGlobalName(false),
- 0, Key_PageDown + CTRL, TQT_TQOBJECT(this),
+ 0, Key_PageDown + CTRL, this,
TQT_SLOT(slotTransformsStemsDown()), actionCollection(),
"stems_down");
- new TDEAction(RestoreStemsCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RestoreStemsCommand::getGlobalName(), 0, this,
TQT_SLOT(slotTransformsRestoreStems()), actionCollection(),
"restore_stems");
new TDEAction(ChangeSlurPositionCommand::getGlobalName(true),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotTransformsSlursAbove()), actionCollection(),
"slurs_above");
new TDEAction(ChangeSlurPositionCommand::getGlobalName(false),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotTransformsSlursBelow()), actionCollection(),
"slurs_below");
- new TDEAction(RestoreSlursCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RestoreSlursCommand::getGlobalName(), 0, this,
TQT_SLOT(slotTransformsRestoreSlurs()), actionCollection(),
"restore_slurs");
new TDEAction(ChangeTiePositionCommand::getGlobalName(true),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotTransformsTiesAbove()), actionCollection(),
"ties_above");
new TDEAction(ChangeTiePositionCommand::getGlobalName(false),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotTransformsTiesBelow()), actionCollection(),
"ties_below");
- new TDEAction(RestoreTiesCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RestoreTiesCommand::getGlobalName(), 0, this,
TQT_SLOT(slotTransformsRestoreTies()), actionCollection(),
"restore_ties");
@@ -2083,7 +2083,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::DoubleFlat),
- icon, 0, TQT_TQOBJECT(this),
+ icon, 0, this,
TQT_SLOT(slotRespellDoubleFlat()), actionCollection(),
"respell_doubleflat");
@@ -2093,7 +2093,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Flat),
- icon, 0, TQT_TQOBJECT(this),
+ icon, 0, this,
TQT_SLOT(slotRespellFlat()), actionCollection(),
"respell_flat");
@@ -2103,7 +2103,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Natural),
- icon, 0, TQT_TQOBJECT(this),
+ icon, 0, this,
TQT_SLOT(slotRespellNatural()), actionCollection(),
"respell_natural");
@@ -2113,7 +2113,7 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Sharp),
- icon, 0, TQT_TQOBJECT(this),
+ icon, 0, this,
TQT_SLOT(slotRespellSharp()), actionCollection(),
"respell_sharp");
@@ -2123,35 +2123,35 @@ void NotationView::setupActions()
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::DoubleSharp),
- icon, 0, TQT_TQOBJECT(this),
+ icon, 0, this,
TQT_SLOT(slotRespellDoubleSharp()), actionCollection(),
"respell_doublesharp");
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Up, Accidentals::NoAccidental),
- Key_Up + CTRL + SHIFT, TQT_TQOBJECT(this),
+ Key_Up + CTRL + SHIFT, this,
TQT_SLOT(slotRespellUp()), actionCollection(),
"respell_up");
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Down, Accidentals::NoAccidental),
- Key_Down + CTRL + SHIFT, TQT_TQOBJECT(this),
+ Key_Down + CTRL + SHIFT, this,
TQT_SLOT(slotRespellDown()), actionCollection(),
"respell_down");
new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Restore, Accidentals::NoAccidental),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotRespellRestore()), actionCollection(),
"respell_restore");
new TDEAction(MakeAccidentalsCautionaryCommand::getGlobalName(true),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotShowCautionary()), actionCollection(),
"show_cautionary");
new TDEAction(MakeAccidentalsCautionaryCommand::getGlobalName(false),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotCancelCautionary()), actionCollection(),
"cancel_cautionary");
@@ -2159,23 +2159,23 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("quantize")));
- new TDEAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, TQT_TQOBJECT(this),
+ new TDEAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, this,
TQT_SLOT(slotTransformsQuantize()), actionCollection(),
"quantize");
new TDEAction(FixNotationQuantizeCommand::getGlobalName(), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotTransformsFixQuantization()), actionCollection(),
+ this, TQT_SLOT(slotTransformsFixQuantization()), actionCollection(),
"fix_quantization");
new TDEAction(RemoveNotationQuantizeCommand::getGlobalName(), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotTransformsRemoveQuantization()), actionCollection(),
+ this, TQT_SLOT(slotTransformsRemoveQuantization()), actionCollection(),
"remove_quantization");
new TDEAction(InterpretCommand::getGlobalName(), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotTransformsInterpret()), actionCollection(),
+ this, TQT_SLOT(slotTransformsInterpret()), actionCollection(),
"interpret");
- new TDEAction(i18n("&Dump selected events to stderr"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Dump selected events to stderr"), 0, this,
TQT_SLOT(slotDebugDump()), actionCollection(), "debug_dump");
for (MarkActionDataMap::Iterator i = m_markActionDataMap->begin();
@@ -2189,7 +2189,7 @@ void NotationView::setupActions()
new TDEAction(markActionData.title,
icon,
markActionData.keycode,
- TQT_TQOBJECT(this),
+ this,
TQT_SLOT(slotAddMark()),
actionCollection(),
markActionData.actionName.ascii());
@@ -2199,59 +2199,59 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("text-mark")));
- new TDEAction(AddTextMarkCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(AddTextMarkCommand::getGlobalName(), icon, 0, this,
TQT_SLOT(slotMarksAddTextMark()), actionCollection(),
"add_text_mark");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("0"), 0, Key_0 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("0"), 0, Key_0 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_0");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("1"), 0, Key_1 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("1"), 0, Key_1 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_1");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("2"), 0, Key_2 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("2"), 0, Key_2 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_2");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("3"), 0, Key_3 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("3"), 0, Key_3 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_3");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("4"), 0, Key_4 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("4"), 0, Key_4 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_4");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("5"), 0, Key_5 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("5"), 0, Key_5 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_5");
- new TDEAction(AddFingeringMarkCommand::getGlobalName("+"), 0, Key_9 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("+"), 0, Key_9 + ALT, this,
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_plus");
- new TDEAction(AddFingeringMarkCommand::getGlobalName(), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName(), 0, 0, this,
TQT_SLOT(slotMarksAddFingeringMark()), actionCollection(),
"add_fingering_mark");
- new TDEAction(RemoveMarksCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RemoveMarksCommand::getGlobalName(), 0, this,
TQT_SLOT(slotMarksRemoveMarks()), actionCollection(),
"remove_marks");
- new TDEAction(RemoveFingeringMarksCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RemoveFingeringMarksCommand::getGlobalName(), 0, this,
TQT_SLOT(slotMarksRemoveFingeringMarks()), actionCollection(),
"remove_fingering_marks");
- new TDEAction(i18n("Ma&ke Ornament..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Ma&ke Ornament..."), 0, this,
TQT_SLOT(slotMakeOrnament()), actionCollection(),
"make_ornament");
- new TDEAction(i18n("Trigger &Ornament..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Trigger &Ornament..."), 0, this,
TQT_SLOT(slotUseOrnament()), actionCollection(),
"use_ornament");
- new TDEAction(i18n("Remove Ornament..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Remove Ornament..."), 0, this,
TQT_SLOT(slotRemoveOrnament()), actionCollection(),
"remove_ornament");
@@ -2259,32 +2259,32 @@ void NotationView::setupActions()
i18n("&None"), "&1", "&2", "&3", "&4", "&5"
};
for (int i = 0; i <= 5; ++i) {
- new TDEAction(slashTitles[i], 0, TQT_TQOBJECT(this),
+ new TDEAction(slashTitles[i], 0, this,
TQT_SLOT(slotAddSlashes()), actionCollection(),
TQString("slashes_%1").arg(i).ascii());
}
- new TDEAction(ClefInsertionCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(ClefInsertionCommand::getGlobalName(), 0, this,
TQT_SLOT(slotEditAddClef()), actionCollection(),
"add_clef");
- new TDEAction(KeyInsertionCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(KeyInsertionCommand::getGlobalName(), 0, this,
TQT_SLOT(slotEditAddKeySignature()), actionCollection(),
"add_key_signature");
- new TDEAction(SustainInsertionCommand::getGlobalName(true), 0, TQT_TQOBJECT(this),
+ new TDEAction(SustainInsertionCommand::getGlobalName(true), 0, this,
TQT_SLOT(slotEditAddSustainDown()), actionCollection(),
"add_sustain_down");
- new TDEAction(SustainInsertionCommand::getGlobalName(false), 0, TQT_TQOBJECT(this),
+ new TDEAction(SustainInsertionCommand::getGlobalName(false), 0, this,
TQT_SLOT(slotEditAddSustainUp()), actionCollection(),
"add_sustain_up");
- new TDEAction(TransposeCommand::getDiatonicGlobalName(false), 0, TQT_TQOBJECT(this),
+ new TDEAction(TransposeCommand::getDiatonicGlobalName(false), 0, this,
TQT_SLOT(slotEditTranspose()), actionCollection(),
"transpose_segment");
- new TDEAction(i18n("Convert Notation For..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Convert Notation For..."), 0, this,
TQT_SLOT(slotEditSwitchPreset()), actionCollection(),
"switch_preset");
@@ -2316,83 +2316,83 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap(actionsToolbars[i][3].ascii())));
new TDEToggleAction(actionsToolbars[i][0], icon, 0,
- TQT_TQOBJECT(this), actionsToolbars[i][1].ascii(),
+ this, actionsToolbars[i][1].ascii(),
actionCollection(), actionsToolbars[i][2].ascii());
}
- new TDEAction(i18n("Cursor &Back"), 0, Key_Left, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor &Back"), 0, Key_Left, this,
TQT_SLOT(slotStepBackward()), actionCollection(),
"cursor_back");
- new TDEAction(i18n("Cursor &Forward"), 0, Key_Right, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor &Forward"), 0, Key_Right, this,
TQT_SLOT(slotStepForward()), actionCollection(),
"cursor_forward");
- new TDEAction(i18n("Cursor Ba&ck Bar"), 0, Key_Left + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Ba&ck Bar"), 0, Key_Left + CTRL, this,
TQT_SLOT(slotJumpBackward()), actionCollection(),
"cursor_back_bar");
- new TDEAction(i18n("Cursor For&ward Bar"), 0, Key_Right + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor For&ward Bar"), 0, Key_Right + CTRL, this,
TQT_SLOT(slotJumpForward()), actionCollection(),
"cursor_forward_bar");
- new TDEAction(i18n("Cursor Back and Se&lect"), SHIFT + Key_Left, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Back and Se&lect"), SHIFT + Key_Left, this,
TQT_SLOT(slotExtendSelectionBackward()), actionCollection(),
"extend_selection_backward");
- new TDEAction(i18n("Cursor Forward and &Select"), SHIFT + Key_Right, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Forward and &Select"), SHIFT + Key_Right, this,
TQT_SLOT(slotExtendSelectionForward()), actionCollection(),
"extend_selection_forward");
- new TDEAction(i18n("Cursor Back Bar and Select"), SHIFT + CTRL + Key_Left, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Back Bar and Select"), SHIFT + CTRL + Key_Left, this,
TQT_SLOT(slotExtendSelectionBackwardBar()), actionCollection(),
"extend_selection_backward_bar");
- new TDEAction(i18n("Cursor Forward Bar and Select"), SHIFT + CTRL + Key_Right, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Forward Bar and Select"), SHIFT + CTRL + Key_Right, this,
TQT_SLOT(slotExtendSelectionForwardBar()), actionCollection(),
"extend_selection_forward_bar");
/*!!! not here yet
- new TDEAction(i18n("Move Selection Left"), Key_Minus, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Move Selection Left"), Key_Minus, this,
TQT_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, */ TQT_TQOBJECT(this),
+ Key_A + CTRL, */ this,
TQT_SLOT(slotJumpToStart()), actionCollection(),
"cursor_start");
- new TDEAction(i18n("Cursor to &End"), 0, Key_E + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor to &End"), 0, Key_E + CTRL, this,
TQT_SLOT(slotJumpToEnd()), actionCollection(),
"cursor_end");
- new TDEAction(i18n("Cursor &Up Staff"), 0, Key_Up + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor &Up Staff"), 0, Key_Up + SHIFT, this,
TQT_SLOT(slotCurrentStaffUp()), actionCollection(),
"cursor_up_staff");
- new TDEAction(i18n("Cursor &Down Staff"), 0, Key_Down + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor &Down Staff"), 0, Key_Down + SHIFT, this,
TQT_SLOT(slotCurrentStaffDown()), actionCollection(),
"cursor_down_staff");
- new TDEAction(i18n("Cursor Pre&vious Segment"), 0, Key_Prior + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Pre&vious Segment"), 0, Key_Prior + ALT, this,
TQT_SLOT(slotCurrentSegmentPrior()), actionCollection(),
"cursor_prior_segment");
- new TDEAction(i18n("Cursor Ne&xt Segment"), 0, Key_Next + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Ne&xt Segment"), 0, Key_Next + ALT, this,
TQT_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, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor to &Playback Pointer"), icon, 0, this,
TQT_SLOT(slotJumpCursorToPlayback()), actionCollection(),
"cursor_to_playback_pointer");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play")));
- TDEAction *play = new TDEAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
+ TDEAction *play = new TDEAction(i18n("&Play"), icon, Key_Enter, this,
TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play
TDEShortcut playShortcut = play->shortcut();
@@ -2401,112 +2401,112 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop")));
- new TDEAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Stop"), icon, Key_Insert, this,
TQT_SIGNAL(stop()), actionCollection(), "stop");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind")));
- new TDEAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Re&wind"), icon, Key_End, this,
TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd")));
- new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown, this,
TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end")));
- new TDEAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Rewind to &Beginning"), icon, 0, this,
TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end")));
- new TDEAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Fast Forward to &End"), icon, 0, this,
TQT_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, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Playback Pointer to &Cursor"), icon, 0, this,
TQT_SLOT(slotJumpPlaybackToCursor()), actionCollection(),
"playback_pointer_to_cursor");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-solo")));
- new TDEToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("&Solo"), icon, 0, this,
TQT_SLOT(slotToggleSolo()), actionCollection(),
"toggle_solo");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-tracking")));
- (new TDEToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, TQT_TQOBJECT(this),
+ (new TDEToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, this,
TQT_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, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Panic"), icon, Key_P + CTRL + ALT, this,
TQT_SIGNAL(panic()), actionCollection(), "panic");
- new TDEAction(i18n("Set Loop to Selection"), Key_Semicolon + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Set Loop to Selection"), Key_Semicolon + CTRL, this,
TQT_SLOT(slotPreviewSelection()), actionCollection(),
"preview_selection");
- new TDEAction(i18n("Clear L&oop"), Key_Colon + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Clear L&oop"), Key_Colon + CTRL, this,
TQT_SLOT(slotClearLoop()), actionCollection(),
"clear_loop");
- new TDEAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Clear Selection"), Key_Escape, this,
TQT_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, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Filter Selection"), "filter", Key_F + CTRL, this,
TQT_SLOT(slotFilterSelection()), actionCollection(),
"filter_selection");
- new TDEAction(i18n("Push &Left"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Left"), 0, this,
TQT_SLOT(slotFinePositionLeft()), actionCollection(),
"fine_position_left");
- new TDEAction(i18n("Push &Right"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Right"), 0, this,
TQT_SLOT(slotFinePositionRight()), actionCollection(),
"fine_position_right");
- new TDEAction(i18n("Push &Up"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Up"), 0, this,
TQT_SLOT(slotFinePositionUp()), actionCollection(),
"fine_position_up");
- new TDEAction(i18n("Push &Down"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Down"), 0, this,
TQT_SLOT(slotFinePositionDown()), actionCollection(),
"fine_position_down");
- new TDEAction(i18n("&Restore Positions"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Restore Positions"), 0, this,
TQT_SLOT(slotFinePositionRestore()), actionCollection(),
"fine_position_restore");
- new TDEAction(i18n("Make &Invisible"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Make &Invisible"), 0, this,
TQT_SLOT(slotMakeInvisible()), actionCollection(),
"make_invisible");
- new TDEAction(i18n("Make &Visible"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Make &Visible"), 0, this,
TQT_SLOT(slotMakeVisible()), actionCollection(),
"make_visible");
- new TDEAction(i18n("Toggle Dot"), Key_Period, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Toggle Dot"), Key_Period, this,
TQT_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot");
- new TDEAction(i18n("Add Dot"), Key_Period + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Add Dot"), Key_Period + CTRL, this,
TQT_SLOT(slotAddDot()), actionCollection(),
"add_dot");
- new TDEAction(i18n("Add Dot"), Key_Period + CTRL + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Add Dot"), Key_Period + CTRL + ALT, this,
TQT_SLOT(slotAddDotNotationOnly()), actionCollection(),
"add_notation_dot");
@@ -2566,7 +2566,7 @@ NotationView::setupFontSizeMenu(std::string oldFontName)
if (!sizeAction) {
sizeAction =
new TDEToggleAction(i18n("1 pixel", "%n pixels", sizes[i]),
- 0, TQT_TQOBJECT(this),
+ 0, this,
TQT_SLOT(slotChangeFontSizeFromAction()),
actionCollection(), actionName.ascii());
}
@@ -7093,7 +7093,7 @@ void NotationView::slotNonNotationItemPressed(TQMouseEvent *e, TQCanvasItem *it)
getTrackById(staff->getSegment().getTrack())->getLabel();
bool ok = false;
- TQRegExpValidator validator(TQRegExp(".*"), TQT_TQOBJECT(this)); // empty is OK
+ TQRegExpValidator validator(TQRegExp(".*"), this); // empty is OK
TQString newText = KLineEditDlg::getText(TQString("Change staff name"),
TQString("Enter new staff name"),
@@ -7359,7 +7359,7 @@ NotationView::slotToggleStepByStep()
return ;
}
if (action->isChecked()) { // after toggling, that is
- emit stepByStepTargetRequested(TQT_TQOBJECT(this));
+ emit stepByStepTargetRequested(this);
} else {
emit stepByStepTargetRequested(0);
}