summaryrefslogtreecommitdiffstats
path: root/src/gui/application/RosegardenGUIApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/application/RosegardenGUIApp.cpp')
-rw-r--r--src/gui/application/RosegardenGUIApp.cpp260
1 files changed, 130 insertions, 130 deletions
diff --git a/src/gui/application/RosegardenGUIApp.cpp b/src/gui/application/RosegardenGUIApp.cpp
index 9afa803..6bb154a 100644
--- a/src/gui/application/RosegardenGUIApp.cpp
+++ b/src/gui/application/RosegardenGUIApp.cpp
@@ -553,82 +553,82 @@ void RosegardenGUIApp::setupActions()
KStdAction::print (TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
KStdAction::printPreview (TQT_TQOBJECT(this), TQT_SLOT(slotFilePrintPreview()), actionCollection());
- new KAction(i18n("Import Rosegarden &Project file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Import Rosegarden &Project file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotImportProject()), actionCollection(),
"file_import_project");
- new KAction(i18n("Import &MIDI file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Import &MIDI file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotImportMIDI()), actionCollection(),
"file_import_midi");
- new KAction(i18n("Import &Rosegarden 2.1 file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Import &Rosegarden 2.1 file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotImportRG21()), actionCollection(),
"file_import_rg21");
- new KAction(i18n("Import &Hydrogen file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Import &Hydrogen file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotImportHydrogen()), actionCollection(),
"file_import_hydrogen");
- new KAction(i18n("Merge &File..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Merge &File..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMerge()), actionCollection(),
"file_merge");
- new KAction(i18n("Merge &MIDI file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Merge &MIDI file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMergeMIDI()), actionCollection(),
"file_merge_midi");
- new KAction(i18n("Merge &Rosegarden 2.1 file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Merge &Rosegarden 2.1 file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMergeRG21()), actionCollection(),
"file_merge_rg21");
- new KAction(i18n("Merge &Hydrogen file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Merge &Hydrogen file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMergeHydrogen()), actionCollection(),
"file_merge_hydrogen");
- new KAction(i18n("Export Rosegarden &Project file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Export Rosegarden &Project file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportProject()), actionCollection(),
"file_export_project");
- new KAction(i18n("Export &MIDI file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Export &MIDI file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportMIDI()), actionCollection(),
"file_export_midi");
- new KAction(i18n("Export &LilyPond file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Export &LilyPond file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportLilyPond()), actionCollection(),
"file_export_lilypond");
- new KAction(i18n("Export Music&XML file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Export Music&XML file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportMusicXml()), actionCollection(),
"file_export_musicxml");
- new KAction(i18n("Export &Csound score file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Export &Csound score file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportCsound()), actionCollection(),
"file_export_csound");
- new KAction(i18n("Export M&up file..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Export M&up file..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportMup()), actionCollection(),
"file_export_mup");
- new KAction(i18n("Print &with LilyPond..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Print &with LilyPond..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond");
- new KAction(i18n("Preview with Lil&yPond..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Preview with Lil&yPond..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond");
- new KAction(i18n("Play&list"), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Play&list"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPlayList()), actionCollection(),
"file_show_playlist");
KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), actionCollection());
// help menu
- new KAction(i18n("Rosegarden &Tutorial"), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Rosegarden &Tutorial"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTutorial()), actionCollection(),
"tutorial");
- new KAction(i18n("&Bug Reporting Guidelines"), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Bug Reporting Guidelines"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotBugGuidelines()), actionCollection(),
"guidelines");
@@ -642,15 +642,15 @@ void RosegardenGUIApp::setupActions()
// slots later on, when the current document is set up - see
// MultiViewCommandHistory::attachView
//
- new KToolBarPopupAction(i18n("Und&o"),
+ new TDEToolBarPopupAction(i18n("Und&o"),
"undo",
- KStdAccel::shortcut(KStdAccel::Undo),
+ TDEStdAccel::shortcut(TDEStdAccel::Undo),
actionCollection(),
KStdAction::stdName(KStdAction::Undo));
- new KToolBarPopupAction(i18n("Re&do"),
+ new TDEToolBarPopupAction(i18n("Re&do"),
"redo",
- KStdAccel::shortcut(KStdAccel::Redo),
+ TDEStdAccel::shortcut(TDEStdAccel::Redo),
actionCollection(),
KStdAction::stdName(KStdAction::Redo));
/////
@@ -662,61 +662,61 @@ void RosegardenGUIApp::setupActions()
m_viewToolBar = KStdAction::showToolbar (TQT_TQOBJECT(this), TQT_SLOT(slotToggleToolBar()), actionCollection(),
"show_stock_toolbar");
- m_viewToolsToolBar = new KToggleAction(i18n("Show T&ools Toolbar"), 0, TQT_TQOBJECT(this),
+ m_viewToolsToolBar = new TDEToggleAction(i18n("Show T&ools Toolbar"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleToolsToolBar()), actionCollection(),
"show_tools_toolbar");
- m_viewTracksToolBar = new KToggleAction(i18n("Show Trac&ks Toolbar"), 0, TQT_TQOBJECT(this),
+ m_viewTracksToolBar = new TDEToggleAction(i18n("Show Trac&ks Toolbar"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTracksToolBar()), actionCollection(),
"show_tracks_toolbar");
- m_viewEditorsToolBar = new KToggleAction(i18n("Show &Editors Toolbar"), 0, TQT_TQOBJECT(this),
+ m_viewEditorsToolBar = new TDEToggleAction(i18n("Show &Editors Toolbar"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleEditorsToolBar()), actionCollection(),
"show_editors_toolbar");
- m_viewTransportToolBar = new KToggleAction(i18n("Show Trans&port Toolbar"), 0, TQT_TQOBJECT(this),
+ m_viewTransportToolBar = new TDEToggleAction(i18n("Show Trans&port Toolbar"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTransportToolBar()), actionCollection(),
"show_transport_toolbar");
- m_viewZoomToolBar = new KToggleAction(i18n("Show &Zoom Toolbar"), 0, TQT_TQOBJECT(this),
+ m_viewZoomToolBar = new TDEToggleAction(i18n("Show &Zoom Toolbar"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleZoomToolBar()), actionCollection(),
"show_zoom_toolbar");
m_viewStatusBar = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(slotToggleStatusBar()),
actionCollection(), "show_status_bar");
- m_viewTransport = new KToggleAction(i18n("Show Tra&nsport"), Key_T, TQT_TQOBJECT(this),
+ m_viewTransport = new TDEToggleAction(i18n("Show Tra&nsport"), Key_T, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTransport()),
actionCollection(),
"show_transport");
- m_viewTrackLabels = new KToggleAction(i18n("Show Track &Labels"), 0, TQT_TQOBJECT(this),
+ m_viewTrackLabels = new TDEToggleAction(i18n("Show Track &Labels"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTrackLabels()),
actionCollection(),
"show_tracklabels");
- m_viewRulers = new KToggleAction(i18n("Show Playback Position R&uler"), 0, TQT_TQOBJECT(this),
+ m_viewRulers = new TDEToggleAction(i18n("Show Playback Position R&uler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleRulers()),
actionCollection(),
"show_rulers");
- m_viewTempoRuler = new KToggleAction(i18n("Show Te&mpo Ruler"), 0, TQT_TQOBJECT(this),
+ m_viewTempoRuler = new TDEToggleAction(i18n("Show Te&mpo Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTempoRuler()),
actionCollection(),
"show_tempo_ruler");
- m_viewChordNameRuler = new KToggleAction(i18n("Show Cho&rd Name Ruler"), 0, TQT_TQOBJECT(this),
+ m_viewChordNameRuler = new TDEToggleAction(i18n("Show Cho&rd Name Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleChordNameRuler()),
actionCollection(),
"show_chord_name_ruler");
- m_viewPreviews = new KToggleAction(i18n("Show Segment Pre&views"), 0, TQT_TQOBJECT(this),
+ m_viewPreviews = new TDEToggleAction(i18n("Show Segment Pre&views"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTogglePreviews()),
actionCollection(),
"show_previews");
- new KAction(i18n("Show Special &Parameters"), Key_P, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Show Special &Parameters"), Key_P, TQT_TQOBJECT(this),
TQT_SLOT(slotDockParametersBack()),
actionCollection(),
"show_inst_segment_parameters");
@@ -741,7 +741,7 @@ void RosegardenGUIApp::setupActions()
TQT_SLOT(slotEditToolbars()),
actionCollection());
- KRadioAction *action = 0;
+ TDERadioAction *action = 0;
// Create the select icon
//
@@ -750,110 +750,110 @@ void RosegardenGUIApp::setupActions()
TQIconSet icon = TQIconSet(pixmap);
// TODO : add some shortcuts here
- action = new KRadioAction(i18n("&Select and Edit"), icon, Key_F2,
+ action = new TDERadioAction(i18n("&Select and Edit"), icon, Key_F2,
TQT_TQOBJECT(this), TQT_SLOT(slotPointerSelected()),
actionCollection(), "select");
action->setExclusiveGroup("segmenttools");
- action = new KRadioAction(i18n("&Draw"), "pencil", Key_F3,
+ action = new TDERadioAction(i18n("&Draw"), "pencil", Key_F3,
TQT_TQOBJECT(this), TQT_SLOT(slotDrawSelected()),
actionCollection(), "draw");
action->setExclusiveGroup("segmenttools");
- action = new KRadioAction(i18n("&Erase"), "eraser", Key_F4,
+ action = new TDERadioAction(i18n("&Erase"), "eraser", Key_F4,
TQT_TQOBJECT(this), TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase");
action->setExclusiveGroup("segmenttools");
- action = new KRadioAction(i18n("&Move"), "move", Key_F5,
+ action = new TDERadioAction(i18n("&Move"), "move", Key_F5,
TQT_TQOBJECT(this), TQT_SLOT(slotMoveSelected()),
actionCollection(), "move");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
icon = TQIconSet(pixmap);
- action = new KRadioAction(i18n("&Resize"), icon, Key_F6,
+ action = new TDERadioAction(i18n("&Resize"), icon, Key_F6,
TQT_TQOBJECT(this), TQT_SLOT(slotResizeSelected()),
actionCollection(), "resize");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/split.xpm");
icon = TQIconSet(pixmap);
- action = new KRadioAction(i18n("&Split"), icon, Key_F7,
+ action = new TDERadioAction(i18n("&Split"), icon, Key_F7,
TQT_TQOBJECT(this), TQT_SLOT(slotSplitSelected()),
actionCollection(), "split");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/join.xpm");
icon = TQIconSet(pixmap);
- action = new KRadioAction(i18n("&Join"), icon, 0,
+ action = new TDERadioAction(i18n("&Join"), icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotJoinSelected()),
actionCollection(), "join");
action->setExclusiveGroup("segmenttools");
- new KAction(i18n("&Harmonize"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Harmonize"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotHarmonizeSelection()), actionCollection(),
"harmonize_selection");
pixmap.load(pixmapDir + "/toolbar/event-insert-timesig.png");
icon = TQIconSet(pixmap);
- new KAction(AddTimeSignatureCommand::getGlobalName(),
+ new TDEAction(AddTimeSignatureCommand::getGlobalName(),
icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotEditTimeSignature()),
actionCollection(), "add_time_signature");
- new KAction(i18n("Open Tempo and Time Signature Editor"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Open Tempo and Time Signature Editor"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditTempos()), actionCollection(), "edit_tempos");
//
// Edit menu
//
- new KAction(i18n("Cut Range"), Key_X + CTRL + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cut Range"), Key_X + CTRL + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotCutRange()), actionCollection(),
"cut_range");
- new KAction(i18n("Copy Range"), Key_C + CTRL + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Copy Range"), Key_C + CTRL + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotCopyRange()), actionCollection(),
"copy_range");
- new KAction(i18n("Paste Range"), Key_V + CTRL + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Paste Range"), Key_V + CTRL + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotPasteRange()), actionCollection(),
"paste_range");
/*
- new KAction(i18n("Delete Range"), Key_Delete + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Delete Range"), Key_Delete + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteRange()), actionCollection(),
"delete_range");
*/
- new KAction(i18n("Insert Range..."), Key_Insert + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Insert Range..."), Key_Insert + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotInsertRange()), actionCollection(),
"insert_range");
- new KAction(i18n("De&lete"), Key_Delete, TQT_TQOBJECT(this),
+ new TDEAction(i18n("De&lete"), Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteSelectedSegments()), actionCollection(),
"delete");
- new KAction(i18n("Select &All Segments"), Key_A + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select &All Segments"), Key_A + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all");
pixmap.load(pixmapDir + "/toolbar/event-insert-tempo.png");
icon = TQIconSet(pixmap);
- new KAction(AddTempoChangeCommand::getGlobalName(),
+ new TDEAction(AddTempoChangeCommand::getGlobalName(),
icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotEditTempo()),
actionCollection(), "add_tempo");
- new KAction(ChangeCompositionLengthCommand::getGlobalName(),
+ new TDEAction(ChangeCompositionLengthCommand::getGlobalName(),
0,
TQT_TQOBJECT(this), TQT_SLOT(slotChangeCompositionLength()),
actionCollection(), "change_composition_length");
- new KAction(i18n("Edit Mar&kers..."), Key_K + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Edit Mar&kers..."), Key_K + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotEditMarkers()),
actionCollection(), "edit_markers");
- new KAction(i18n("Edit Document P&roperties..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Edit Document P&roperties..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDocumentProperties()),
actionCollection(), "edit_doc_properties");
@@ -861,120 +861,120 @@ void RosegardenGUIApp::setupActions()
//
// Segments menu
//
- new KAction(i18n("Open in &Default Editor"), Key_Return, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Open in &Default Editor"), Key_Return, TQT_TQOBJECT(this),
TQT_SLOT(slotEdit()), actionCollection(),
"edit_default");
pixmap.load(pixmapDir + "/toolbar/matrix.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Open in Matri&x Editor"), icon, Key_M, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Open in Matri&x Editor"), icon, Key_M, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInMatrix()), actionCollection(),
"edit_matrix");
pixmap.load(pixmapDir + "/toolbar/matrix-percussion.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Open in &Percussion Matrix Editor"), icon, Key_D, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Open in &Percussion Matrix Editor"), icon, Key_D, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInPercussionMatrix()), actionCollection(),
"edit_percussion_matrix");
pixmap.load(pixmapDir + "/toolbar/notation.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Open in &Notation Editor"), icon, Key_N, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Open in &Notation Editor"), icon, Key_N, TQT_TQOBJECT(this),
TQT_SLOT(slotEditAsNotation()), actionCollection(),
"edit_notation");
pixmap.load(pixmapDir + "/toolbar/eventlist.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Open in &Event List Editor"), icon, Key_E, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Open in &Event List Editor"), icon, Key_E, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInEventList()), actionCollection(),
"edit_event_list");
pixmap.load(pixmapDir + "/toolbar/quantize.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Quantize..."), icon, Key_Equal, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Quantize..."), icon, Key_Equal, TQT_TQOBJECT(this),
TQT_SLOT(slotQuantizeSelection()), actionCollection(),
"quantize_selection");
- new KAction(SegmentLabelCommand::getGlobalName(),
+ new TDEAction(SegmentLabelCommand::getGlobalName(),
0,
TQT_TQOBJECT(this), TQT_SLOT(slotRelabelSegments()),
actionCollection(), "relabel_segment");
- new KAction(SegmentTransposeCommand::getGlobalName(),
+ new TDEAction(SegmentTransposeCommand::getGlobalName(),
0,
TQT_TQOBJECT(this), TQT_SLOT(slotTransposeSegments()),
actionCollection(), "transpose");
- new KAction(i18n("Repeat Last Quantize"), Key_Plus, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Repeat Last Quantize"), Key_Plus, TQT_TQOBJECT(this),
TQT_SLOT(slotRepeatQuantizeSelection()), actionCollection(),
"repeat_quantize");
- new KAction(SegmentRescaleCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(SegmentRescaleCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRescaleSelection()), actionCollection(),
"rescale");
- new KAction(SegmentAutoSplitCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(SegmentAutoSplitCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAutoSplitSelection()), actionCollection(),
"auto_split");
- new KAction(SegmentSplitByPitchCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(SegmentSplitByPitchCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(),
"split_by_pitch");
- new KAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
"split_by_recording");
- new KAction(i18n("Split at Time..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Split at Time..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSplitSelectionAtTime()), actionCollection(),
"split_at_time");
- new KAction(i18n("Jog &Left"), Key_Left + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Jog &Left"), Key_Left + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotJogLeft()), actionCollection(),
"jog_left");
- new KAction(i18n("Jog &Right"), Key_Right + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Jog &Right"), Key_Right + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotJogRight()), actionCollection(),
"jog_right");
- new KAction(i18n("Set Start Time..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Set Start Time..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSegmentStartTimes()), actionCollection(),
"set_segment_start");
- new KAction(i18n("Set Duration..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Set Duration..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSegmentDurations()), actionCollection(),
"set_segment_duration");
- new KAction(SegmentJoinCommand::getGlobalName(),
+ new TDEAction(SegmentJoinCommand::getGlobalName(),
Key_J + CTRL,
TQT_TQOBJECT(this), TQT_SLOT(slotJoinSegments()),
actionCollection(), "join_segments");
- new KAction(i18n("Turn Re&peats into Copies"),
+ new TDEAction(i18n("Turn Re&peats into Copies"),
0,
TQT_TQOBJECT(this), TQT_SLOT(slotRepeatingSegments()),
actionCollection(), "repeats_to_real_copies");
- new KAction(i18n("Manage Tri&ggered Segments"), 0,
+ new TDEAction(i18n("Manage Tri&ggered Segments"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotManageTriggerSegments()),
actionCollection(), "manage_trigger_segments");
- new KAction(i18n("Set Tempos from &Beat Segment"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Set Tempos from &Beat Segment"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGrooveQuantize()), actionCollection(),
"groove_quantize");
- new KAction(i18n("Set &Tempo to Audio Segment Duration"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Set &Tempo to Audio Segment Duration"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTempoToSegmentLength()), actionCollection(),
"set_tempo_to_segment_length");
pixmap.load(pixmapDir + "/toolbar/manage-audio-segments.xpm");
icon = TQIconSet(pixmap);
- new KAction(i18n("Manage A&udio Files"), icon,
+ new TDEAction(i18n("Manage A&udio Files"), icon,
Key_U + CTRL,
TQT_TQOBJECT(this), TQT_SLOT(slotAudioManager()),
actionCollection(), "audio_manager");
- m_viewSegmentLabels = new KToggleAction(i18n("Show Segment Labels"), 0, TQT_TQOBJECT(this),
+ m_viewSegmentLabels = new TDEToggleAction(i18n("Show Segment Labels"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSegmentLabels()), actionCollection(),
"show_segment_labels");
@@ -983,65 +983,65 @@ void RosegardenGUIApp::setupActions()
//
pixmap.load(pixmapDir + "/toolbar/add_tracks.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Add &Track"), icon, CTRL + Key_T,
+ new TDEAction(i18n("Add &Track"), icon, CTRL + Key_T,
TQT_TQOBJECT(this), TQT_SLOT(slotAddTrack()),
actionCollection(), "add_track");
- new KAction(i18n("&Add Tracks..."), 0,
+ new TDEAction(i18n("&Add Tracks..."), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotAddTracks()),
actionCollection(), "add_tracks");
pixmap.load(pixmapDir + "/toolbar/delete_track.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("D&elete Track"), icon, CTRL + Key_D,
+ new TDEAction(i18n("D&elete Track"), icon, CTRL + Key_D,
TQT_TQOBJECT(this), TQT_SLOT(slotDeleteTrack()),
actionCollection(), "delete_track");
pixmap.load(pixmapDir + "/toolbar/move_track_down.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Move Track &Down"), icon, SHIFT + Key_Down,
+ new TDEAction(i18n("Move Track &Down"), icon, SHIFT + Key_Down,
TQT_TQOBJECT(this), TQT_SLOT(slotMoveTrackDown()),
actionCollection(), "move_track_down");
pixmap.load(pixmapDir + "/toolbar/move_track_up.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Move Track &Up"), icon, SHIFT + Key_Up,
+ new TDEAction(i18n("Move Track &Up"), icon, SHIFT + Key_Up,
TQT_TQOBJECT(this), TQT_SLOT(slotMoveTrackUp()),
actionCollection(), "move_track_up");
- new KAction(i18n("Select &Next Track"),
+ new TDEAction(i18n("Select &Next Track"),
Key_Down,
TQT_TQOBJECT(this), TQT_SLOT(slotTrackDown()),
actionCollection(), "select_next_track");
- new KAction(i18n("Select &Previous Track"),
+ new TDEAction(i18n("Select &Previous Track"),
Key_Up,
TQT_TQOBJECT(this), TQT_SLOT(slotTrackUp()),
actionCollection(), "select_previous_track");
- new KAction(i18n("Mute or Unmute Track"),
+ new TDEAction(i18n("Mute or Unmute Track"),
Key_U,
TQT_TQOBJECT(this), TQT_SLOT(slotToggleMutedCurrentTrack()),
actionCollection(), "toggle_mute_track");
- new KAction(i18n("Arm or Un-arm Track for Record"),
+ new TDEAction(i18n("Arm or Un-arm Track for Record"),
Key_R,
TQT_TQOBJECT(this), TQT_SLOT(slotToggleRecordCurrentTrack()),
actionCollection(), "toggle_arm_track");
pixmap.load(pixmapDir + "/toolbar/mute-all.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Mute all Tracks"), icon, 0,
+ new TDEAction(i18n("&Mute all Tracks"), icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotMuteAllTracks()),
actionCollection(), "mute_all_tracks");
pixmap.load(pixmapDir + "/toolbar/un-mute-all.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Unmute all Tracks"), icon, 0,
+ new TDEAction(i18n("&Unmute all Tracks"), icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotUnmuteAllTracks()),
actionCollection(), "unmute_all_tracks");
- new KAction(i18n("&Remap Instruments..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Remap Instruments..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemapInstruments()),
actionCollection(), "remap_instruments");
@@ -1050,78 +1050,78 @@ void RosegardenGUIApp::setupActions()
//
pixmap.load(pixmapDir + "/toolbar/mixer.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Audio Mixer"), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Audio Mixer"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenAudioMixer()),
actionCollection(), "audio_mixer");
pixmap.load(pixmapDir + "/toolbar/midimixer.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Midi Mi&xer"), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Midi Mi&xer"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenMidiMixer()),
actionCollection(), "midi_mixer");
pixmap.load(pixmapDir + "/toolbar/manage-midi-devices.xpm");
icon = TQIconSet(pixmap);
- new KAction(i18n("Manage MIDI &Devices"), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Manage MIDI &Devices"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotManageMIDIDevices()),
actionCollection(), "manage_devices");
pixmap.load(pixmapDir + "/toolbar/manage-synth-plugins.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Manage S&ynth Plugins"), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Manage S&ynth Plugins"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotManageSynths()),
actionCollection(), "manage_synths");
- new KAction(i18n("Modify MIDI &Filters"), "filter", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Modify MIDI &Filters"), "filter", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotModifyMIDIFilters()),
actionCollection(), "modify_midi_filters");
- m_enableMIDIrouting = new KToggleAction(i18n("MIDI Thru Routing"), 0, TQT_TQOBJECT(this),
+ m_enableMIDIrouting = new TDEToggleAction(i18n("MIDI Thru Routing"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEnableMIDIThruRouting()),
actionCollection(), "enable_midi_routing");
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("Manage &Metronome"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Manage &Metronome"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotManageMetronome()),
actionCollection(), "manage_metronome");
- new KAction(i18n("&Save Current Document as Default Studio"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Save Current Document as Default Studio"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSaveDefaultStudio()),
actionCollection(), "save_default_studio");
- new KAction(i18n("&Import Default Studio"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Import Default Studio"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotImportDefaultStudio()),
actionCollection(), "load_default_studio");
- new KAction(i18n("Im&port Studio from File..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Im&port Studio from File..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotImportStudio()),
actionCollection(), "load_studio");
- new KAction(i18n("&Reset MIDI Network"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Reset MIDI Network"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotResetMidiNetwork()),
actionCollection(), "reset_midi_network");
- m_setQuickMarkerAction = new KAction(i18n("Set Quick Marker at Playback Position"), 0, CTRL + Key_1, TQT_TQOBJECT(this),
+ m_setQuickMarkerAction = new TDEAction(i18n("Set Quick Marker at Playback Position"), 0, CTRL + Key_1, TQT_TQOBJECT(this),
TQT_SLOT(slotSetQuickMarker()), actionCollection(),
"set_quick_marker");
- m_jumpToQuickMarkerAction = new KAction(i18n("Jump to Quick Marker"), 0, Key_1, TQT_TQOBJECT(this),
+ m_jumpToQuickMarkerAction = new TDEAction(i18n("Jump to Quick Marker"), 0, Key_1, TQT_TQOBJECT(this),
TQT_SLOT(slotJumpToQuickMarker()), actionCollection(),
"jump_to_quick_marker");
//
// Marker Ruler popup menu
//
-// new KAction(i18n("Insert Marker"), 0, 0, TQT_TQOBJECT(this),
+// new TDEAction(i18n("Insert Marker"), 0, 0, TQT_TQOBJECT(this),
// TQT_SLOT(slotInsertMarkerHere()), actionCollection(),
// "insert_marker_here");
//
-// new KAction(i18n("Insert Marker at Playback Position"), 0, 0, TQT_TQOBJECT(this),
+// new TDEAction(i18n("Insert Marker at Playback Position"), 0, 0, TQT_TQOBJECT(this),
// TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(),
// "insert_marker_at_pointer");
//
-// new KAction(i18n("Delete Marker"), 0, 0, TQT_TQOBJECT(this),
+// new TDEAction(i18n("Delete Marker"), 0, 0, TQT_TQOBJECT(this),
// TQT_SLOT(slotDeleteMarker()), actionCollection(),
// "delete_marker");
@@ -1139,25 +1139,25 @@ void RosegardenGUIApp::setupActions()
//
pixmap.load(pixmapDir + "/toolbar/transport-play.png");
icon = TQIconSet(pixmap);
- m_playTransport = new KAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
+ m_playTransport = new TDEAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
TQT_SLOT(slotPlay()), actionCollection(),
"play");
// Alternative shortcut for Play
- KShortcut playShortcut = m_playTransport->shortcut();
+ TDEShortcut playShortcut = m_playTransport->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
m_playTransport->setShortcut(playShortcut);
m_playTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-stop.png");
icon = TQIconSet(pixmap);
- m_stopTransport = new KAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
+ m_stopTransport = new TDEAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
TQT_SLOT(slotStop()), actionCollection(),
"stop");
m_stopTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-ffwd.png");
icon = TQIconSet(pixmap);
- m_ffwdTransport = new KAction(i18n("&Fast Forward"), icon, Key_PageDown,
+ m_ffwdTransport = new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown,
TQT_TQOBJECT(this),
TQT_SLOT(slotFastforward()), actionCollection(),
"fast_forward");
@@ -1165,52 +1165,52 @@ void RosegardenGUIApp::setupActions()
pixmap.load(pixmapDir + "/toolbar/transport-rewind.png");
icon = TQIconSet(pixmap);
- m_rewindTransport = new KAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
+ m_rewindTransport = new TDEAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
TQT_SLOT(slotRewind()), actionCollection(),
"rewind");
m_rewindTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
icon = TQIconSet(pixmap);
- m_recordTransport = new KAction(i18n("P&unch in Record"), icon, Key_Space, TQT_TQOBJECT(this),
+ m_recordTransport = new TDEAction(i18n("P&unch in Record"), icon, Key_Space, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleRecord()), actionCollection(),
"recordtoggle");
m_recordTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
icon = TQIconSet(pixmap);
- m_recordTransport = new KAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this),
+ m_recordTransport = new TDEAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRecord()), actionCollection(),
"record");
m_recordTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-rewind-end.png");
icon = TQIconSet(pixmap);
- m_rewindEndTransport = new KAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
+ m_rewindEndTransport = new TDEAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRewindToBeginning()), actionCollection(),
"rewindtobeginning");
m_rewindEndTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-ffwd-end.png");
icon = TQIconSet(pixmap);
- m_ffwdEndTransport = new KAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
+ m_ffwdEndTransport = new TDEAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotFastForwardToEnd()), actionCollection(),
"fastforwardtoend");
m_ffwdEndTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-tracking.png");
icon = TQIconSet(pixmap);
- (new KToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, TQT_TQOBJECT(this),
+ (new TDEToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTracking()), actionCollection(),
"toggle_tracking"))->setChecked(true);
pixmap.load(pixmapDir + "/toolbar/transport-panic.png");
icon = TQIconSet(pixmap);
- new KAction( i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this), TQT_SLOT(slotPanic()),
+ new TDEAction( i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this), TQT_SLOT(slotPanic()),
actionCollection(), "panic");
// DEBUG FACILITY
- new KAction(i18n("Segment Debug Dump "), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Segment Debug Dump "), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDebugDump()), actionCollection(),
"debug_dump_segments");
@@ -1273,7 +1273,7 @@ void RosegardenGUIApp::setRewFFwdToAutoRepeat()
void RosegardenGUIApp::initZoomToolbar()
{
- KToolBar *zoomToolbar = toolBar("Zoom Toolbar");
+ TDEToolBar *zoomToolbar = toolBar("Zoom Toolbar");
if (!zoomToolbar) {
RG_DEBUG << "RosegardenGUIApp::initZoomToolbar() : "
<< "zoom toolbar not found" << endl;
@@ -1481,7 +1481,7 @@ void RosegardenGUIApp::initView()
m_view->slotSelectTrackSegments(comp.getSelectedTrack());
// play tracking on in the editor by default: turn off if need be
- KToggleAction *trackingAction = dynamic_cast<KToggleAction *>
+ TDEToggleAction *trackingAction = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_tracking"));
if (trackingAction && !trackingAction->isChecked()) {
m_view->getTrackEditor()->slotToggleTracking();
@@ -1873,7 +1873,7 @@ void RosegardenGUIApp::slotSaveOptions()
m_fileRecent->saveEntries(kapp->config());
- // saveMainWindowSettings(kapp->config(), RosegardenGUIApp::MainWindowConfigGroup); - no need to, done by KMainWindow
+ // saveMainWindowSettings(kapp->config(), RosegardenGUIApp::MainWindowConfigGroup); - no need to, done by TDEMainWindow
kapp->config()->sync();
}
@@ -2053,7 +2053,7 @@ void RosegardenGUIApp::showEvent(TQShowEvent* e)
RG_DEBUG << "RosegardenGUIApp::showEvent()\n";
getTransport()->raise();
- KMainWindow::showEvent(e);
+ TDEMainWindow::showEvent(e);
}
bool RosegardenGUIApp::queryClose()
@@ -2443,7 +2443,7 @@ void RosegardenGUIApp::slotQuit()
// close the first window, the list makes the next one the first again.
// This ensures that queryClose() is called on each window to ask for closing
- KMainWindow* w;
+ TDEMainWindow* w;
if (memberList) {
for (w = memberList->first(); w != 0; w = memberList->next()) {
@@ -3193,7 +3193,7 @@ void RosegardenGUIApp::slotTempoToSegmentLength(TQWidget* parent)
void RosegardenGUIApp::slotToggleSegmentLabels()
{
- KToggleAction* act = dynamic_cast<KToggleAction*>(actionCollection()->action("show_segment_labels"));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction*>(actionCollection()->action("show_segment_labels"));
if (act) {
m_view->slotShowSegmentLabels(act->isChecked());
}
@@ -6119,8 +6119,8 @@ RosegardenGUIApp::setCursor(const TQCursor& cursor)
// toolbars...
//
- TQPtrListIterator<KToolBar> tbIter = toolBarIterator();
- KToolBar* tb = 0;
+ TQPtrListIterator<TDEToolBar> tbIter = toolBarIterator();
+ TDEToolBar* tb = 0;
while ((tb = tbIter.current()) != 0) {
tb->setCursor(cursor);
++tbIter;