|
|
@ -553,82 +553,82 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
KStdAction::print (TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
|
|
|
|
KStdAction::print (TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
|
|
|
|
KStdAction::printPreview (TQT_TQOBJECT(this), TQT_SLOT(slotFilePrintPreview()), 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(),
|
|
|
|
TQT_SLOT(slotImportProject()), actionCollection(),
|
|
|
|
"file_import_project");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotImportMIDI()), actionCollection(),
|
|
|
|
"file_import_midi");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotImportRG21()), actionCollection(),
|
|
|
|
"file_import_rg21");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotImportHydrogen()), actionCollection(),
|
|
|
|
"file_import_hydrogen");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotMerge()), actionCollection(),
|
|
|
|
"file_merge");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotMergeMIDI()), actionCollection(),
|
|
|
|
"file_merge_midi");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotMergeRG21()), actionCollection(),
|
|
|
|
"file_merge_rg21");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotMergeHydrogen()), actionCollection(),
|
|
|
|
"file_merge_hydrogen");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotExportProject()), actionCollection(),
|
|
|
|
"file_export_project");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotExportMIDI()), actionCollection(),
|
|
|
|
"file_export_midi");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotExportLilyPond()), actionCollection(),
|
|
|
|
"file_export_lilypond");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotExportMusicXml()), actionCollection(),
|
|
|
|
"file_export_musicxml");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotExportCsound()), actionCollection(),
|
|
|
|
"file_export_csound");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotExportMup()), actionCollection(),
|
|
|
|
"file_export_mup");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotPrintLilyPond()), actionCollection(),
|
|
|
|
"file_print_lilypond");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
|
|
|
|
"file_preview_lilypond");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotPlayList()), actionCollection(),
|
|
|
|
"file_show_playlist");
|
|
|
|
"file_show_playlist");
|
|
|
|
|
|
|
|
|
|
|
|
KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), actionCollection());
|
|
|
|
KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), actionCollection());
|
|
|
|
|
|
|
|
|
|
|
|
// help menu
|
|
|
|
// 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(),
|
|
|
|
TQT_SLOT(slotTutorial()), actionCollection(),
|
|
|
|
"tutorial");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotBugGuidelines()), actionCollection(),
|
|
|
|
"guidelines");
|
|
|
|
"guidelines");
|
|
|
|
|
|
|
|
|
|
|
@ -642,15 +642,15 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
// slots later on, when the current document is set up - see
|
|
|
|
// slots later on, when the current document is set up - see
|
|
|
|
// MultiViewCommandHistory::attachView
|
|
|
|
// MultiViewCommandHistory::attachView
|
|
|
|
//
|
|
|
|
//
|
|
|
|
new KToolBarPopupAction(i18n("Und&o"),
|
|
|
|
new TDEToolBarPopupAction(i18n("Und&o"),
|
|
|
|
"undo",
|
|
|
|
"undo",
|
|
|
|
KStdAccel::shortcut(KStdAccel::Undo),
|
|
|
|
TDEStdAccel::shortcut(TDEStdAccel::Undo),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
KStdAction::stdName(KStdAction::Undo));
|
|
|
|
KStdAction::stdName(KStdAction::Undo));
|
|
|
|
|
|
|
|
|
|
|
|
new KToolBarPopupAction(i18n("Re&do"),
|
|
|
|
new TDEToolBarPopupAction(i18n("Re&do"),
|
|
|
|
"redo",
|
|
|
|
"redo",
|
|
|
|
KStdAccel::shortcut(KStdAccel::Redo),
|
|
|
|
TDEStdAccel::shortcut(TDEStdAccel::Redo),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
KStdAction::stdName(KStdAction::Redo));
|
|
|
|
KStdAction::stdName(KStdAction::Redo));
|
|
|
|
/////
|
|
|
|
/////
|
|
|
@ -662,61 +662,61 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
m_viewToolBar = KStdAction::showToolbar (TQT_TQOBJECT(this), TQT_SLOT(slotToggleToolBar()), actionCollection(),
|
|
|
|
m_viewToolBar = KStdAction::showToolbar (TQT_TQOBJECT(this), TQT_SLOT(slotToggleToolBar()), actionCollection(),
|
|
|
|
"show_stock_toolbar");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotToggleToolsToolBar()), actionCollection(),
|
|
|
|
"show_tools_toolbar");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotToggleTracksToolBar()), actionCollection(),
|
|
|
|
"show_tracks_toolbar");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotToggleEditorsToolBar()), actionCollection(),
|
|
|
|
"show_editors_toolbar");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotToggleTransportToolBar()), actionCollection(),
|
|
|
|
"show_transport_toolbar");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotToggleZoomToolBar()), actionCollection(),
|
|
|
|
"show_zoom_toolbar");
|
|
|
|
"show_zoom_toolbar");
|
|
|
|
|
|
|
|
|
|
|
|
m_viewStatusBar = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(slotToggleStatusBar()),
|
|
|
|
m_viewStatusBar = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(slotToggleStatusBar()),
|
|
|
|
actionCollection(), "show_status_bar");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotToggleTransport()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_transport");
|
|
|
|
"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()),
|
|
|
|
TQT_SLOT(slotToggleTrackLabels()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_tracklabels");
|
|
|
|
"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()),
|
|
|
|
TQT_SLOT(slotToggleRulers()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_rulers");
|
|
|
|
"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()),
|
|
|
|
TQT_SLOT(slotToggleTempoRuler()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_tempo_ruler");
|
|
|
|
"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()),
|
|
|
|
TQT_SLOT(slotToggleChordNameRuler()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_chord_name_ruler");
|
|
|
|
"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()),
|
|
|
|
TQT_SLOT(slotTogglePreviews()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_previews");
|
|
|
|
"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()),
|
|
|
|
TQT_SLOT(slotDockParametersBack()),
|
|
|
|
actionCollection(),
|
|
|
|
actionCollection(),
|
|
|
|
"show_inst_segment_parameters");
|
|
|
|
"show_inst_segment_parameters");
|
|
|
@ -741,7 +741,7 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
TQT_SLOT(slotEditToolbars()),
|
|
|
|
TQT_SLOT(slotEditToolbars()),
|
|
|
|
actionCollection());
|
|
|
|
actionCollection());
|
|
|
|
|
|
|
|
|
|
|
|
KRadioAction *action = 0;
|
|
|
|
TDERadioAction *action = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// Create the select icon
|
|
|
|
// Create the select icon
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -750,110 +750,110 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
TQIconSet icon = TQIconSet(pixmap);
|
|
|
|
TQIconSet icon = TQIconSet(pixmap);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO : add some shortcuts here
|
|
|
|
// 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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotPointerSelected()),
|
|
|
|
actionCollection(), "select");
|
|
|
|
actionCollection(), "select");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotDrawSelected()),
|
|
|
|
actionCollection(), "draw");
|
|
|
|
actionCollection(), "draw");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotEraseSelected()),
|
|
|
|
actionCollection(), "erase");
|
|
|
|
actionCollection(), "erase");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotMoveSelected()),
|
|
|
|
actionCollection(), "move");
|
|
|
|
actionCollection(), "move");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotResizeSelected()),
|
|
|
|
actionCollection(), "resize");
|
|
|
|
actionCollection(), "resize");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/split.xpm");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/split.xpm");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotSplitSelected()),
|
|
|
|
actionCollection(), "split");
|
|
|
|
actionCollection(), "split");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/join.xpm");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/join.xpm");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
action = new KRadioAction(i18n("&Join"), icon, 0,
|
|
|
|
action = new TDERadioAction(i18n("&Join"), icon, 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotJoinSelected()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotJoinSelected()),
|
|
|
|
actionCollection(), "join");
|
|
|
|
actionCollection(), "join");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
action->setExclusiveGroup("segmenttools");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("&Harmonize"), 0, TQT_TQOBJECT(this),
|
|
|
|
new TDEAction(i18n("&Harmonize"), 0, TQT_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotHarmonizeSelection()), actionCollection(),
|
|
|
|
TQT_SLOT(slotHarmonizeSelection()), actionCollection(),
|
|
|
|
"harmonize_selection");
|
|
|
|
"harmonize_selection");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/event-insert-timesig.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/event-insert-timesig.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
new KAction(AddTimeSignatureCommand::getGlobalName(),
|
|
|
|
new TDEAction(AddTimeSignatureCommand::getGlobalName(),
|
|
|
|
icon, 0,
|
|
|
|
icon, 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotEditTimeSignature()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotEditTimeSignature()),
|
|
|
|
actionCollection(), "add_time_signature");
|
|
|
|
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");
|
|
|
|
TQT_SLOT(slotEditTempos()), actionCollection(), "edit_tempos");
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Edit menu
|
|
|
|
// 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(),
|
|
|
|
TQT_SLOT(slotCutRange()), actionCollection(),
|
|
|
|
"cut_range");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotCopyRange()), actionCollection(),
|
|
|
|
"copy_range");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotPasteRange()), actionCollection(),
|
|
|
|
"paste_range");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotDeleteRange()), actionCollection(),
|
|
|
|
"delete_range");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotInsertRange()), actionCollection(),
|
|
|
|
"insert_range");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotDeleteSelectedSegments()), actionCollection(),
|
|
|
|
"delete");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotSelectAll()), actionCollection(),
|
|
|
|
"select_all");
|
|
|
|
"select_all");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/event-insert-tempo.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/event-insert-tempo.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
new KAction(AddTempoChangeCommand::getGlobalName(),
|
|
|
|
new TDEAction(AddTempoChangeCommand::getGlobalName(),
|
|
|
|
icon, 0,
|
|
|
|
icon, 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotEditTempo()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotEditTempo()),
|
|
|
|
actionCollection(), "add_tempo");
|
|
|
|
actionCollection(), "add_tempo");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(ChangeCompositionLengthCommand::getGlobalName(),
|
|
|
|
new TDEAction(ChangeCompositionLengthCommand::getGlobalName(),
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotChangeCompositionLength()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotChangeCompositionLength()),
|
|
|
|
actionCollection(), "change_composition_length");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotEditMarkers()),
|
|
|
|
actionCollection(), "edit_markers");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotEditDocumentProperties()),
|
|
|
|
actionCollection(), "edit_doc_properties");
|
|
|
|
actionCollection(), "edit_doc_properties");
|
|
|
|
|
|
|
|
|
|
|
@ -861,120 +861,120 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Segments menu
|
|
|
|
// 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(),
|
|
|
|
TQT_SLOT(slotEdit()), actionCollection(),
|
|
|
|
"edit_default");
|
|
|
|
"edit_default");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/matrix.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/matrix.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotEditInMatrix()), actionCollection(),
|
|
|
|
"edit_matrix");
|
|
|
|
"edit_matrix");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/matrix-percussion.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/matrix-percussion.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotEditInPercussionMatrix()), actionCollection(),
|
|
|
|
"edit_percussion_matrix");
|
|
|
|
"edit_percussion_matrix");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/notation.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/notation.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotEditAsNotation()), actionCollection(),
|
|
|
|
"edit_notation");
|
|
|
|
"edit_notation");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/eventlist.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/eventlist.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotEditInEventList()), actionCollection(),
|
|
|
|
"edit_event_list");
|
|
|
|
"edit_event_list");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/quantize.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/quantize.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotQuantizeSelection()), actionCollection(),
|
|
|
|
"quantize_selection");
|
|
|
|
"quantize_selection");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentLabelCommand::getGlobalName(),
|
|
|
|
new TDEAction(SegmentLabelCommand::getGlobalName(),
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRelabelSegments()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRelabelSegments()),
|
|
|
|
actionCollection(), "relabel_segment");
|
|
|
|
actionCollection(), "relabel_segment");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentTransposeCommand::getGlobalName(),
|
|
|
|
new TDEAction(SegmentTransposeCommand::getGlobalName(),
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotTransposeSegments()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotTransposeSegments()),
|
|
|
|
actionCollection(), "transpose");
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotRepeatQuantizeSelection()), actionCollection(),
|
|
|
|
"repeat_quantize");
|
|
|
|
"repeat_quantize");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentRescaleCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
new TDEAction(SegmentRescaleCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotRescaleSelection()), actionCollection(),
|
|
|
|
TQT_SLOT(slotRescaleSelection()), actionCollection(),
|
|
|
|
"rescale");
|
|
|
|
"rescale");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentAutoSplitCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
new TDEAction(SegmentAutoSplitCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotAutoSplitSelection()), actionCollection(),
|
|
|
|
TQT_SLOT(slotAutoSplitSelection()), actionCollection(),
|
|
|
|
"auto_split");
|
|
|
|
"auto_split");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentSplitByPitchCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
new TDEAction(SegmentSplitByPitchCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(),
|
|
|
|
TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(),
|
|
|
|
"split_by_pitch");
|
|
|
|
"split_by_pitch");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
new TDEAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
|
|
|
|
TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
|
|
|
|
"split_by_recording");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotSplitSelectionAtTime()), actionCollection(),
|
|
|
|
"split_at_time");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotJogLeft()), actionCollection(),
|
|
|
|
"jog_left");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotJogRight()), actionCollection(),
|
|
|
|
"jog_right");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotSetSegmentStartTimes()), actionCollection(),
|
|
|
|
"set_segment_start");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotSetSegmentDurations()), actionCollection(),
|
|
|
|
"set_segment_duration");
|
|
|
|
"set_segment_duration");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(SegmentJoinCommand::getGlobalName(),
|
|
|
|
new TDEAction(SegmentJoinCommand::getGlobalName(),
|
|
|
|
Key_J + CTRL,
|
|
|
|
Key_J + CTRL,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotJoinSegments()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotJoinSegments()),
|
|
|
|
actionCollection(), "join_segments");
|
|
|
|
actionCollection(), "join_segments");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Turn Re&peats into Copies"),
|
|
|
|
new TDEAction(i18n("Turn Re&peats into Copies"),
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRepeatingSegments()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRepeatingSegments()),
|
|
|
|
actionCollection(), "repeats_to_real_copies");
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotManageTriggerSegments()),
|
|
|
|
actionCollection(), "manage_trigger_segments");
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotGrooveQuantize()), actionCollection(),
|
|
|
|
"groove_quantize");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotTempoToSegmentLength()), actionCollection(),
|
|
|
|
"set_tempo_to_segment_length");
|
|
|
|
"set_tempo_to_segment_length");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/manage-audio-segments.xpm");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/manage-audio-segments.xpm");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
new KAction(i18n("Manage A&udio Files"), icon,
|
|
|
|
new TDEAction(i18n("Manage A&udio Files"), icon,
|
|
|
|
Key_U + CTRL,
|
|
|
|
Key_U + CTRL,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotAudioManager()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotAudioManager()),
|
|
|
|
actionCollection(), "audio_manager");
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotToggleSegmentLabels()), actionCollection(),
|
|
|
|
"show_segment_labels");
|
|
|
|
"show_segment_labels");
|
|
|
|
|
|
|
|
|
|
|
@ -983,65 +983,65 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/add_tracks.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/add_tracks.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotAddTrack()),
|
|
|
|
actionCollection(), "add_track");
|
|
|
|
actionCollection(), "add_track");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("&Add Tracks..."), 0,
|
|
|
|
new TDEAction(i18n("&Add Tracks..."), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotAddTracks()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotAddTracks()),
|
|
|
|
actionCollection(), "add_tracks");
|
|
|
|
actionCollection(), "add_tracks");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/delete_track.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/delete_track.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotDeleteTrack()),
|
|
|
|
actionCollection(), "delete_track");
|
|
|
|
actionCollection(), "delete_track");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/move_track_down.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/move_track_down.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotMoveTrackDown()),
|
|
|
|
actionCollection(), "move_track_down");
|
|
|
|
actionCollection(), "move_track_down");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/move_track_up.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/move_track_up.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotMoveTrackUp()),
|
|
|
|
actionCollection(), "move_track_up");
|
|
|
|
actionCollection(), "move_track_up");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Select &Next Track"),
|
|
|
|
new TDEAction(i18n("Select &Next Track"),
|
|
|
|
Key_Down,
|
|
|
|
Key_Down,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotTrackDown()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotTrackDown()),
|
|
|
|
actionCollection(), "select_next_track");
|
|
|
|
actionCollection(), "select_next_track");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Select &Previous Track"),
|
|
|
|
new TDEAction(i18n("Select &Previous Track"),
|
|
|
|
Key_Up,
|
|
|
|
Key_Up,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotTrackUp()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotTrackUp()),
|
|
|
|
actionCollection(), "select_previous_track");
|
|
|
|
actionCollection(), "select_previous_track");
|
|
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Mute or Unmute Track"),
|
|
|
|
new TDEAction(i18n("Mute or Unmute Track"),
|
|
|
|
Key_U,
|
|
|
|
Key_U,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotToggleMutedCurrentTrack()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotToggleMutedCurrentTrack()),
|
|
|
|
actionCollection(), "toggle_mute_track");
|
|
|
|
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,
|
|
|
|
Key_R,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotToggleRecordCurrentTrack()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotToggleRecordCurrentTrack()),
|
|
|
|
actionCollection(), "toggle_arm_track");
|
|
|
|
actionCollection(), "toggle_arm_track");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/mute-all.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/mute-all.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotMuteAllTracks()),
|
|
|
|
actionCollection(), "mute_all_tracks");
|
|
|
|
actionCollection(), "mute_all_tracks");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/un-mute-all.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/un-mute-all.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotUnmuteAllTracks()),
|
|
|
|
actionCollection(), "unmute_all_tracks");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotRemapInstruments()),
|
|
|
|
actionCollection(), "remap_instruments");
|
|
|
|
actionCollection(), "remap_instruments");
|
|
|
|
|
|
|
|
|
|
|
@ -1050,78 +1050,78 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/mixer.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/mixer.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotOpenAudioMixer()),
|
|
|
|
actionCollection(), "audio_mixer");
|
|
|
|
actionCollection(), "audio_mixer");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/midimixer.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/midimixer.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotOpenMidiMixer()),
|
|
|
|
actionCollection(), "midi_mixer");
|
|
|
|
actionCollection(), "midi_mixer");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/manage-midi-devices.xpm");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/manage-midi-devices.xpm");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotManageMIDIDevices()),
|
|
|
|
actionCollection(), "manage_devices");
|
|
|
|
actionCollection(), "manage_devices");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/manage-synth-plugins.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/manage-synth-plugins.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotManageSynths()),
|
|
|
|
actionCollection(), "manage_synths");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotModifyMIDIFilters()),
|
|
|
|
actionCollection(), "modify_midi_filters");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotEnableMIDIThruRouting()),
|
|
|
|
actionCollection(), "enable_midi_routing");
|
|
|
|
actionCollection(), "enable_midi_routing");
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
new KAction(i18n("Manage &Metronome"), 0, TQT_TQOBJECT(this),
|
|
|
|
new TDEAction(i18n("Manage &Metronome"), 0, TQT_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotManageMetronome()),
|
|
|
|
TQT_SLOT(slotManageMetronome()),
|
|
|
|
actionCollection(), "manage_metronome");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotSaveDefaultStudio()),
|
|
|
|
actionCollection(), "save_default_studio");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotImportDefaultStudio()),
|
|
|
|
actionCollection(), "load_default_studio");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotImportStudio()),
|
|
|
|
actionCollection(), "load_studio");
|
|
|
|
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()),
|
|
|
|
TQT_SLOT(slotResetMidiNetwork()),
|
|
|
|
actionCollection(), "reset_midi_network");
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotSetQuickMarker()), actionCollection(),
|
|
|
|
"set_quick_marker");
|
|
|
|
"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(),
|
|
|
|
TQT_SLOT(slotJumpToQuickMarker()), actionCollection(),
|
|
|
|
"jump_to_quick_marker");
|
|
|
|
"jump_to_quick_marker");
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Marker Ruler popup menu
|
|
|
|
// 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(),
|
|
|
|
// TQT_SLOT(slotInsertMarkerHere()), actionCollection(),
|
|
|
|
// "insert_marker_here");
|
|
|
|
// "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(),
|
|
|
|
// TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(),
|
|
|
|
// "insert_marker_at_pointer");
|
|
|
|
// "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(),
|
|
|
|
// TQT_SLOT(slotDeleteMarker()), actionCollection(),
|
|
|
|
// "delete_marker");
|
|
|
|
// "delete_marker");
|
|
|
|
|
|
|
|
|
|
|
@ -1139,25 +1139,25 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
//
|
|
|
|
//
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-play.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-play.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotPlay()), actionCollection(),
|
|
|
|
"play");
|
|
|
|
"play");
|
|
|
|
// Alternative shortcut for Play
|
|
|
|
// Alternative shortcut for Play
|
|
|
|
KShortcut playShortcut = m_playTransport->shortcut();
|
|
|
|
TDEShortcut playShortcut = m_playTransport->shortcut();
|
|
|
|
playShortcut.append( KKey(Key_Return + CTRL) );
|
|
|
|
playShortcut.append( KKey(Key_Return + CTRL) );
|
|
|
|
m_playTransport->setShortcut(playShortcut);
|
|
|
|
m_playTransport->setShortcut(playShortcut);
|
|
|
|
m_playTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_playTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-stop.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-stop.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotStop()), actionCollection(),
|
|
|
|
"stop");
|
|
|
|
"stop");
|
|
|
|
m_stopTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_stopTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-ffwd.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-ffwd.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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_TQOBJECT(this),
|
|
|
|
TQT_SLOT(slotFastforward()), actionCollection(),
|
|
|
|
TQT_SLOT(slotFastforward()), actionCollection(),
|
|
|
|
"fast_forward");
|
|
|
|
"fast_forward");
|
|
|
@ -1165,52 +1165,52 @@ void RosegardenGUIApp::setupActions()
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-rewind.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-rewind.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotRewind()), actionCollection(),
|
|
|
|
"rewind");
|
|
|
|
"rewind");
|
|
|
|
m_rewindTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_rewindTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotToggleRecord()), actionCollection(),
|
|
|
|
"recordtoggle");
|
|
|
|
"recordtoggle");
|
|
|
|
m_recordTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_recordTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotRecord()), actionCollection(),
|
|
|
|
"record");
|
|
|
|
"record");
|
|
|
|
m_recordTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_recordTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-rewind-end.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-rewind-end.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotRewindToBeginning()), actionCollection(),
|
|
|
|
"rewindtobeginning");
|
|
|
|
"rewindtobeginning");
|
|
|
|
m_rewindEndTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_rewindEndTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-ffwd-end.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-ffwd-end.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotFastForwardToEnd()), actionCollection(),
|
|
|
|
"fastforwardtoend");
|
|
|
|
"fastforwardtoend");
|
|
|
|
m_ffwdEndTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
m_ffwdEndTransport->setGroup(TransportDialogConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-tracking.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-tracking.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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(),
|
|
|
|
TQT_SLOT(slotToggleTracking()), actionCollection(),
|
|
|
|
"toggle_tracking"))->setChecked(true);
|
|
|
|
"toggle_tracking"))->setChecked(true);
|
|
|
|
|
|
|
|
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-panic.png");
|
|
|
|
pixmap.load(pixmapDir + "/toolbar/transport-panic.png");
|
|
|
|
icon = TQIconSet(pixmap);
|
|
|
|
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");
|
|
|
|
actionCollection(), "panic");
|
|
|
|
|
|
|
|
|
|
|
|
// DEBUG FACILITY
|
|
|
|
// 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(),
|
|
|
|
TQT_SLOT(slotDebugDump()), actionCollection(),
|
|
|
|
"debug_dump_segments");
|
|
|
|
"debug_dump_segments");
|
|
|
|
|
|
|
|
|
|
|
@ -1273,7 +1273,7 @@ void RosegardenGUIApp::setRewFFwdToAutoRepeat()
|
|
|
|
|
|
|
|
|
|
|
|
void RosegardenGUIApp::initZoomToolbar()
|
|
|
|
void RosegardenGUIApp::initZoomToolbar()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KToolBar *zoomToolbar = toolBar("Zoom Toolbar");
|
|
|
|
TDEToolBar *zoomToolbar = toolBar("Zoom Toolbar");
|
|
|
|
if (!zoomToolbar) {
|
|
|
|
if (!zoomToolbar) {
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::initZoomToolbar() : "
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::initZoomToolbar() : "
|
|
|
|
<< "zoom toolbar not found" << endl;
|
|
|
|
<< "zoom toolbar not found" << endl;
|
|
|
@ -1481,7 +1481,7 @@ void RosegardenGUIApp::initView()
|
|
|
|
m_view->slotSelectTrackSegments(comp.getSelectedTrack());
|
|
|
|
m_view->slotSelectTrackSegments(comp.getSelectedTrack());
|
|
|
|
|
|
|
|
|
|
|
|
// play tracking on in the editor by default: turn off if need be
|
|
|
|
// 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"));
|
|
|
|
(actionCollection()->action("toggle_tracking"));
|
|
|
|
if (trackingAction && !trackingAction->isChecked()) {
|
|
|
|
if (trackingAction && !trackingAction->isChecked()) {
|
|
|
|
m_view->getTrackEditor()->slotToggleTracking();
|
|
|
|
m_view->getTrackEditor()->slotToggleTracking();
|
|
|
@ -1873,7 +1873,7 @@ void RosegardenGUIApp::slotSaveOptions()
|
|
|
|
|
|
|
|
|
|
|
|
m_fileRecent->saveEntries(kapp->config());
|
|
|
|
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();
|
|
|
|
kapp->config()->sync();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2053,7 +2053,7 @@ void RosegardenGUIApp::showEvent(TQShowEvent* e)
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::showEvent()\n";
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::showEvent()\n";
|
|
|
|
|
|
|
|
|
|
|
|
getTransport()->raise();
|
|
|
|
getTransport()->raise();
|
|
|
|
KMainWindow::showEvent(e);
|
|
|
|
TDEMainWindow::showEvent(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool RosegardenGUIApp::queryClose()
|
|
|
|
bool RosegardenGUIApp::queryClose()
|
|
|
@ -2443,7 +2443,7 @@ void RosegardenGUIApp::slotQuit()
|
|
|
|
|
|
|
|
|
|
|
|
// close the first window, the list makes the next one the first again.
|
|
|
|
// 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
|
|
|
|
// This ensures that queryClose() is called on each window to ask for closing
|
|
|
|
KMainWindow* w;
|
|
|
|
TDEMainWindow* w;
|
|
|
|
if (memberList) {
|
|
|
|
if (memberList) {
|
|
|
|
|
|
|
|
|
|
|
|
for (w = memberList->first(); w != 0; w = memberList->next()) {
|
|
|
|
for (w = memberList->first(); w != 0; w = memberList->next()) {
|
|
|
@ -3193,7 +3193,7 @@ void RosegardenGUIApp::slotTempoToSegmentLength(TQWidget* parent)
|
|
|
|
|
|
|
|
|
|
|
|
void RosegardenGUIApp::slotToggleSegmentLabels()
|
|
|
|
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) {
|
|
|
|
if (act) {
|
|
|
|
m_view->slotShowSegmentLabels(act->isChecked());
|
|
|
|
m_view->slotShowSegmentLabels(act->isChecked());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -6119,8 +6119,8 @@ RosegardenGUIApp::setCursor(const TQCursor& cursor)
|
|
|
|
|
|
|
|
|
|
|
|
// toolbars...
|
|
|
|
// toolbars...
|
|
|
|
//
|
|
|
|
//
|
|
|
|
TQPtrListIterator<KToolBar> tbIter = toolBarIterator();
|
|
|
|
TQPtrListIterator<TDEToolBar> tbIter = toolBarIterator();
|
|
|
|
KToolBar* tb = 0;
|
|
|
|
TDEToolBar* tb = 0;
|
|
|
|
while ((tb = tbIter.current()) != 0) {
|
|
|
|
while ((tb = tbIter.current()) != 0) {
|
|
|
|
tb->setCursor(cursor);
|
|
|
|
tb->setCursor(cursor);
|
|
|
|
++tbIter;
|
|
|
|
++tbIter;
|
|
|
|