Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent acf699af82
commit fb3718a55f

@ -65,14 +65,14 @@ MultiViewCommandHistory::clear()
} }
void void
MultiViewCommandHistory::attachView(KActionCollection *collection) MultiViewCommandHistory::attachView(TDEActionCollection *collection)
{ {
if (m_views.find(collection) != m_views.end()) if (m_views.find(collection) != m_views.end())
return ; return ;
RG_DEBUG << "MultiViewCommandHistory::attachView() : setting up undo/redo actions\n"; RG_DEBUG << "MultiViewCommandHistory::attachView() : setting up undo/redo actions\n";
KToolBarPopupAction *undo = dynamic_cast<KToolBarPopupAction*>(collection->action(KStdAction::stdName(KStdAction::Undo))); TDEToolBarPopupAction *undo = dynamic_cast<TDEToolBarPopupAction*>(collection->action(KStdAction::stdName(KStdAction::Undo)));
if (undo) { if (undo) {
connect(undo, TQT_SIGNAL(activated()), connect(undo, TQT_SIGNAL(activated()),
@ -91,7 +91,7 @@ MultiViewCommandHistory::attachView(KActionCollection *collection)
TQT_SLOT(slotUndoActivated(int))); TQT_SLOT(slotUndoActivated(int)));
} }
KToolBarPopupAction *redo = dynamic_cast<KToolBarPopupAction*>(collection->action(KStdAction::stdName(KStdAction::Redo))); TDEToolBarPopupAction *redo = dynamic_cast<TDEToolBarPopupAction*>(collection->action(KStdAction::stdName(KStdAction::Redo)));
if (redo) { if (redo) {
@ -117,7 +117,7 @@ MultiViewCommandHistory::attachView(KActionCollection *collection)
} }
void void
MultiViewCommandHistory::detachView(KActionCollection *collection) MultiViewCommandHistory::detachView(TDEActionCollection *collection)
{ {
ViewSet::iterator i = m_views.find(collection); ViewSet::iterator i = m_views.find(collection);
if (i != m_views.end()) if (i != m_views.end())
@ -307,7 +307,7 @@ MultiViewCommandHistory::updateButton(bool undo,
{ {
for (ViewSet::iterator i = m_views.begin(); i != m_views.end(); ++i) { for (ViewSet::iterator i = m_views.begin(); i != m_views.end(); ++i) {
KAction *action = (*i)->action(name.ascii()); TDEAction *action = (*i)->action(name.ascii());
if (!action) if (!action)
continue; continue;
TQString text; TQString text;
@ -340,12 +340,12 @@ MultiViewCommandHistory::updateMenu(bool undo,
{ {
for (ViewSet::iterator i = m_views.begin(); i != m_views.end(); ++i) { for (ViewSet::iterator i = m_views.begin(); i != m_views.end(); ++i) {
KAction *action = (*i)->action(name.ascii()); TDEAction *action = (*i)->action(name.ascii());
if (!action) if (!action)
continue; continue;
KToolBarPopupAction *popupAction = TDEToolBarPopupAction *popupAction =
dynamic_cast<KToolBarPopupAction *>(action); dynamic_cast<TDEToolBarPopupAction *>(action);
if (!popupAction) if (!popupAction)
continue; continue;

@ -33,7 +33,7 @@
class TQString; class TQString;
class KCommand; class KCommand;
class KActionCollection; class TDEActionCollection;
namespace Rosegarden namespace Rosegarden
@ -64,8 +64,8 @@ public:
void clear(); void clear();
void attachView(KActionCollection *collection); void attachView(TDEActionCollection *collection);
void detachView(KActionCollection *collection); void detachView(TDEActionCollection *collection);
void addCommand(KCommand *command, bool execute = true); void addCommand(KCommand *command, bool execute = true);
@ -126,7 +126,7 @@ signals:
private: private:
//--------------- Data members --------------------------------- //--------------- Data members ---------------------------------
typedef std::set<KActionCollection *> ViewSet; typedef std::set<TDEActionCollection *> ViewSet;
ViewSet m_views; ViewSet m_views;
typedef std::stack<KCommand *> CommandStack; typedef std::stack<KCommand *> CommandStack;

@ -110,7 +110,7 @@ void RosegardenApplication::sfxLoadExited(TDEProcess *proc)
void RosegardenApplication::slotSetStatusMessage(TQString msg) void RosegardenApplication::slotSetStatusMessage(TQString msg)
{ {
KMainWindow* mainWindow = dynamic_cast<KMainWindow*>(mainWidget()); TDEMainWindow* mainWindow = dynamic_cast<TDEMainWindow*>(mainWidget());
if (mainWindow) { if (mainWindow) {
if (msg.isEmpty()) if (msg.isEmpty())
msg = KTmpStatusMsg::getDefaultMsg(); msg = KTmpStatusMsg::getDefaultMsg();

@ -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;

@ -553,82 +553,82 @@ void RosegardenGUIApp::setupActions()
KStdAction::print (this, TQT_SLOT(slotFilePrint()), actionCollection()); KStdAction::print (this, TQT_SLOT(slotFilePrint()), actionCollection());
KStdAction::printPreview (this, TQT_SLOT(slotFilePrintPreview()), actionCollection()); KStdAction::printPreview (this, TQT_SLOT(slotFilePrintPreview()), actionCollection());
new KAction(i18n("Import Rosegarden &Project file..."), 0, 0, this, new TDEAction(i18n("Import Rosegarden &Project file..."), 0, 0, this,
TQT_SLOT(slotImportProject()), actionCollection(), TQT_SLOT(slotImportProject()), actionCollection(),
"file_import_project"); "file_import_project");
new KAction(i18n("Import &MIDI file..."), 0, 0, this, new TDEAction(i18n("Import &MIDI file..."), 0, 0, 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, this, new TDEAction(i18n("Import &Rosegarden 2.1 file..."), 0, 0, this,
TQT_SLOT(slotImportRG21()), actionCollection(), TQT_SLOT(slotImportRG21()), actionCollection(),
"file_import_rg21"); "file_import_rg21");
new KAction(i18n("Import &Hydrogen file..."), 0, 0, this, new TDEAction(i18n("Import &Hydrogen file..."), 0, 0, this,
TQT_SLOT(slotImportHydrogen()), actionCollection(), TQT_SLOT(slotImportHydrogen()), actionCollection(),
"file_import_hydrogen"); "file_import_hydrogen");
new KAction(i18n("Merge &File..."), 0, 0, this, new TDEAction(i18n("Merge &File..."), 0, 0, this,
TQT_SLOT(slotMerge()), actionCollection(), TQT_SLOT(slotMerge()), actionCollection(),
"file_merge"); "file_merge");
new KAction(i18n("Merge &MIDI file..."), 0, 0, this, new TDEAction(i18n("Merge &MIDI file..."), 0, 0, 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, this, new TDEAction(i18n("Merge &Rosegarden 2.1 file..."), 0, 0, this,
TQT_SLOT(slotMergeRG21()), actionCollection(), TQT_SLOT(slotMergeRG21()), actionCollection(),
"file_merge_rg21"); "file_merge_rg21");
new KAction(i18n("Merge &Hydrogen file..."), 0, 0, this, new TDEAction(i18n("Merge &Hydrogen file..."), 0, 0, this,
TQT_SLOT(slotMergeHydrogen()), actionCollection(), TQT_SLOT(slotMergeHydrogen()), actionCollection(),
"file_merge_hydrogen"); "file_merge_hydrogen");
new KAction(i18n("Export Rosegarden &Project file..."), 0, 0, this, new TDEAction(i18n("Export Rosegarden &Project file..."), 0, 0, this,
TQT_SLOT(slotExportProject()), actionCollection(), TQT_SLOT(slotExportProject()), actionCollection(),
"file_export_project"); "file_export_project");
new KAction(i18n("Export &MIDI file..."), 0, 0, this, new TDEAction(i18n("Export &MIDI file..."), 0, 0, this,
TQT_SLOT(slotExportMIDI()), actionCollection(), TQT_SLOT(slotExportMIDI()), actionCollection(),
"file_export_midi"); "file_export_midi");
new KAction(i18n("Export &LilyPond file..."), 0, 0, this, new TDEAction(i18n("Export &LilyPond file..."), 0, 0, this,
TQT_SLOT(slotExportLilyPond()), actionCollection(), TQT_SLOT(slotExportLilyPond()), actionCollection(),
"file_export_lilypond"); "file_export_lilypond");
new KAction(i18n("Export Music&XML file..."), 0, 0, this, new TDEAction(i18n("Export Music&XML file..."), 0, 0, this,
TQT_SLOT(slotExportMusicXml()), actionCollection(), TQT_SLOT(slotExportMusicXml()), actionCollection(),
"file_export_musicxml"); "file_export_musicxml");
new KAction(i18n("Export &Csound score file..."), 0, 0, this, new TDEAction(i18n("Export &Csound score file..."), 0, 0, this,
TQT_SLOT(slotExportCsound()), actionCollection(), TQT_SLOT(slotExportCsound()), actionCollection(),
"file_export_csound"); "file_export_csound");
new KAction(i18n("Export M&up file..."), 0, 0, this, new TDEAction(i18n("Export M&up file..."), 0, 0, this,
TQT_SLOT(slotExportMup()), actionCollection(), TQT_SLOT(slotExportMup()), actionCollection(),
"file_export_mup"); "file_export_mup");
new KAction(i18n("Print &with LilyPond..."), 0, 0, this, new TDEAction(i18n("Print &with LilyPond..."), 0, 0, this,
TQT_SLOT(slotPrintLilyPond()), actionCollection(), TQT_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond"); "file_print_lilypond");
new KAction(i18n("Preview with Lil&yPond..."), 0, 0, this, new TDEAction(i18n("Preview with Lil&yPond..."), 0, 0, this,
TQT_SLOT(slotPreviewLilyPond()), actionCollection(), TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond"); "file_preview_lilypond");
new KAction(i18n("Play&list"), 0, 0, this, new TDEAction(i18n("Play&list"), 0, 0, this,
TQT_SLOT(slotPlayList()), actionCollection(), TQT_SLOT(slotPlayList()), actionCollection(),
"file_show_playlist"); "file_show_playlist");
KStdAction::quit (this, TQT_SLOT(slotQuit()), actionCollection()); KStdAction::quit (this, TQT_SLOT(slotQuit()), actionCollection());
// help menu // help menu
new KAction(i18n("Rosegarden &Tutorial"), 0, 0, this, new TDEAction(i18n("Rosegarden &Tutorial"), 0, 0, this,
TQT_SLOT(slotTutorial()), actionCollection(), TQT_SLOT(slotTutorial()), actionCollection(),
"tutorial"); "tutorial");
new KAction(i18n("&Bug Reporting Guidelines"), 0, 0, this, new TDEAction(i18n("&Bug Reporting Guidelines"), 0, 0, 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 (this, TQT_SLOT(slotToggleToolBar()), actionCollection(), m_viewToolBar = KStdAction::showToolbar (this, TQT_SLOT(slotToggleToolBar()), actionCollection(),
"show_stock_toolbar"); "show_stock_toolbar");
m_viewToolsToolBar = new KToggleAction(i18n("Show T&ools Toolbar"), 0, this, m_viewToolsToolBar = new TDEToggleAction(i18n("Show T&ools Toolbar"), 0, 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, this, m_viewTracksToolBar = new TDEToggleAction(i18n("Show Trac&ks Toolbar"), 0, this,
TQT_SLOT(slotToggleTracksToolBar()), actionCollection(), TQT_SLOT(slotToggleTracksToolBar()), actionCollection(),
"show_tracks_toolbar"); "show_tracks_toolbar");
m_viewEditorsToolBar = new KToggleAction(i18n("Show &Editors Toolbar"), 0, this, m_viewEditorsToolBar = new TDEToggleAction(i18n("Show &Editors Toolbar"), 0, 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, this, m_viewTransportToolBar = new TDEToggleAction(i18n("Show Trans&port Toolbar"), 0, this,
TQT_SLOT(slotToggleTransportToolBar()), actionCollection(), TQT_SLOT(slotToggleTransportToolBar()), actionCollection(),
"show_transport_toolbar"); "show_transport_toolbar");
m_viewZoomToolBar = new KToggleAction(i18n("Show &Zoom Toolbar"), 0, this, m_viewZoomToolBar = new TDEToggleAction(i18n("Show &Zoom Toolbar"), 0, this,
TQT_SLOT(slotToggleZoomToolBar()), actionCollection(), TQT_SLOT(slotToggleZoomToolBar()), actionCollection(),
"show_zoom_toolbar"); "show_zoom_toolbar");
m_viewStatusBar = KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()), m_viewStatusBar = KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()),
actionCollection(), "show_status_bar"); actionCollection(), "show_status_bar");
m_viewTransport = new KToggleAction(i18n("Show Tra&nsport"), Key_T, this, m_viewTransport = new TDEToggleAction(i18n("Show Tra&nsport"), Key_T, this,
TQT_SLOT(slotToggleTransport()), TQT_SLOT(slotToggleTransport()),
actionCollection(), actionCollection(),
"show_transport"); "show_transport");
m_viewTrackLabels = new KToggleAction(i18n("Show Track &Labels"), 0, this, m_viewTrackLabels = new TDEToggleAction(i18n("Show Track &Labels"), 0, this,
TQT_SLOT(slotToggleTrackLabels()), TQT_SLOT(slotToggleTrackLabels()),
actionCollection(), actionCollection(),
"show_tracklabels"); "show_tracklabels");
m_viewRulers = new KToggleAction(i18n("Show Playback Position R&uler"), 0, this, m_viewRulers = new TDEToggleAction(i18n("Show Playback Position R&uler"), 0, this,
TQT_SLOT(slotToggleRulers()), TQT_SLOT(slotToggleRulers()),
actionCollection(), actionCollection(),
"show_rulers"); "show_rulers");
m_viewTempoRuler = new KToggleAction(i18n("Show Te&mpo Ruler"), 0, this, m_viewTempoRuler = new TDEToggleAction(i18n("Show Te&mpo Ruler"), 0, 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, this, m_viewChordNameRuler = new TDEToggleAction(i18n("Show Cho&rd Name Ruler"), 0, 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, this, m_viewPreviews = new TDEToggleAction(i18n("Show Segment Pre&views"), 0, this,
TQT_SLOT(slotTogglePreviews()), TQT_SLOT(slotTogglePreviews()),
actionCollection(), actionCollection(),
"show_previews"); "show_previews");
new KAction(i18n("Show Special &Parameters"), Key_P, this, new TDEAction(i18n("Show Special &Parameters"), Key_P, 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,
this, TQT_SLOT(slotPointerSelected()), 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,
this, TQT_SLOT(slotDrawSelected()), 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,
this, TQT_SLOT(slotEraseSelected()), 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,
this, TQT_SLOT(slotMoveSelected()), 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,
this, TQT_SLOT(slotResizeSelected()), 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,
this, TQT_SLOT(slotSplitSelected()), 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,
this, TQT_SLOT(slotJoinSelected()), this, TQT_SLOT(slotJoinSelected()),
actionCollection(), "join"); actionCollection(), "join");
action->setExclusiveGroup("segmenttools"); action->setExclusiveGroup("segmenttools");
new KAction(i18n("&Harmonize"), 0, this, new TDEAction(i18n("&Harmonize"), 0, 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,
this, TQT_SLOT(slotEditTimeSignature()), this, TQT_SLOT(slotEditTimeSignature()),
actionCollection(), "add_time_signature"); actionCollection(), "add_time_signature");
new KAction(i18n("Open Tempo and Time Signature Editor"), 0, this, new TDEAction(i18n("Open Tempo and Time Signature Editor"), 0, 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, this, new TDEAction(i18n("Cut Range"), Key_X + CTRL + SHIFT, this,
TQT_SLOT(slotCutRange()), actionCollection(), TQT_SLOT(slotCutRange()), actionCollection(),
"cut_range"); "cut_range");
new KAction(i18n("Copy Range"), Key_C + CTRL + SHIFT, this, new TDEAction(i18n("Copy Range"), Key_C + CTRL + SHIFT, this,
TQT_SLOT(slotCopyRange()), actionCollection(), TQT_SLOT(slotCopyRange()), actionCollection(),
"copy_range"); "copy_range");
new KAction(i18n("Paste Range"), Key_V + CTRL + SHIFT, this, new TDEAction(i18n("Paste Range"), Key_V + CTRL + SHIFT, this,
TQT_SLOT(slotPasteRange()), actionCollection(), TQT_SLOT(slotPasteRange()), actionCollection(),
"paste_range"); "paste_range");
/* /*
new KAction(i18n("Delete Range"), Key_Delete + SHIFT, this, new TDEAction(i18n("Delete Range"), Key_Delete + SHIFT, this,
TQT_SLOT(slotDeleteRange()), actionCollection(), TQT_SLOT(slotDeleteRange()), actionCollection(),
"delete_range"); "delete_range");
*/ */
new KAction(i18n("Insert Range..."), Key_Insert + SHIFT, this, new TDEAction(i18n("Insert Range..."), Key_Insert + SHIFT, this,
TQT_SLOT(slotInsertRange()), actionCollection(), TQT_SLOT(slotInsertRange()), actionCollection(),
"insert_range"); "insert_range");
new KAction(i18n("De&lete"), Key_Delete, this, new TDEAction(i18n("De&lete"), Key_Delete, this,
TQT_SLOT(slotDeleteSelectedSegments()), actionCollection(), TQT_SLOT(slotDeleteSelectedSegments()), actionCollection(),
"delete"); "delete");
new KAction(i18n("Select &All Segments"), Key_A + CTRL, this, new TDEAction(i18n("Select &All Segments"), Key_A + CTRL, 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,
this, TQT_SLOT(slotEditTempo()), this, TQT_SLOT(slotEditTempo()),
actionCollection(), "add_tempo"); actionCollection(), "add_tempo");
new KAction(ChangeCompositionLengthCommand::getGlobalName(), new TDEAction(ChangeCompositionLengthCommand::getGlobalName(),
0, 0,
this, TQT_SLOT(slotChangeCompositionLength()), this, TQT_SLOT(slotChangeCompositionLength()),
actionCollection(), "change_composition_length"); actionCollection(), "change_composition_length");
new KAction(i18n("Edit Mar&kers..."), Key_K + CTRL, this, new TDEAction(i18n("Edit Mar&kers..."), Key_K + CTRL, this,
TQT_SLOT(slotEditMarkers()), TQT_SLOT(slotEditMarkers()),
actionCollection(), "edit_markers"); actionCollection(), "edit_markers");
new KAction(i18n("Edit Document P&roperties..."), 0, this, new TDEAction(i18n("Edit Document P&roperties..."), 0, 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, this, new TDEAction(i18n("Open in &Default Editor"), Key_Return, 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, this, new TDEAction(i18n("Open in Matri&x Editor"), icon, Key_M, 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, this, new TDEAction(i18n("Open in &Percussion Matrix Editor"), icon, Key_D, 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, this, new TDEAction(i18n("Open in &Notation Editor"), icon, Key_N, 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, this, new TDEAction(i18n("Open in &Event List Editor"), icon, Key_E, 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, this, new TDEAction(i18n("&Quantize..."), icon, Key_Equal, this,
TQT_SLOT(slotQuantizeSelection()), actionCollection(), TQT_SLOT(slotQuantizeSelection()), actionCollection(),
"quantize_selection"); "quantize_selection");
new KAction(SegmentLabelCommand::getGlobalName(), new TDEAction(SegmentLabelCommand::getGlobalName(),
0, 0,
this, TQT_SLOT(slotRelabelSegments()), this, TQT_SLOT(slotRelabelSegments()),
actionCollection(), "relabel_segment"); actionCollection(), "relabel_segment");
new KAction(SegmentTransposeCommand::getGlobalName(), new TDEAction(SegmentTransposeCommand::getGlobalName(),
0, 0,
this, TQT_SLOT(slotTransposeSegments()), this, TQT_SLOT(slotTransposeSegments()),
actionCollection(), "transpose"); actionCollection(), "transpose");
new KAction(i18n("Repeat Last Quantize"), Key_Plus, this, new TDEAction(i18n("Repeat Last Quantize"), Key_Plus, this,
TQT_SLOT(slotRepeatQuantizeSelection()), actionCollection(), TQT_SLOT(slotRepeatQuantizeSelection()), actionCollection(),
"repeat_quantize"); "repeat_quantize");
new KAction(SegmentRescaleCommand::getGlobalName(), 0, this, new TDEAction(SegmentRescaleCommand::getGlobalName(), 0, this,
TQT_SLOT(slotRescaleSelection()), actionCollection(), TQT_SLOT(slotRescaleSelection()), actionCollection(),
"rescale"); "rescale");
new KAction(SegmentAutoSplitCommand::getGlobalName(), 0, this, new TDEAction(SegmentAutoSplitCommand::getGlobalName(), 0, this,
TQT_SLOT(slotAutoSplitSelection()), actionCollection(), TQT_SLOT(slotAutoSplitSelection()), actionCollection(),
"auto_split"); "auto_split");
new KAction(SegmentSplitByPitchCommand::getGlobalName(), 0, this, new TDEAction(SegmentSplitByPitchCommand::getGlobalName(), 0, this,
TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(), TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(),
"split_by_pitch"); "split_by_pitch");
new KAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, this, new TDEAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, this,
TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(), TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
"split_by_recording"); "split_by_recording");
new KAction(i18n("Split at Time..."), 0, this, new TDEAction(i18n("Split at Time..."), 0, this,
TQT_SLOT(slotSplitSelectionAtTime()), actionCollection(), TQT_SLOT(slotSplitSelectionAtTime()), actionCollection(),
"split_at_time"); "split_at_time");
new KAction(i18n("Jog &Left"), Key_Left + ALT, this, new TDEAction(i18n("Jog &Left"), Key_Left + ALT, this,
TQT_SLOT(slotJogLeft()), actionCollection(), TQT_SLOT(slotJogLeft()), actionCollection(),
"jog_left"); "jog_left");
new KAction(i18n("Jog &Right"), Key_Right + ALT, this, new TDEAction(i18n("Jog &Right"), Key_Right + ALT, this,
TQT_SLOT(slotJogRight()), actionCollection(), TQT_SLOT(slotJogRight()), actionCollection(),
"jog_right"); "jog_right");
new KAction(i18n("Set Start Time..."), 0, this, new TDEAction(i18n("Set Start Time..."), 0, this,
TQT_SLOT(slotSetSegmentStartTimes()), actionCollection(), TQT_SLOT(slotSetSegmentStartTimes()), actionCollection(),
"set_segment_start"); "set_segment_start");
new KAction(i18n("Set Duration..."), 0, this, new TDEAction(i18n("Set Duration..."), 0, 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,
this, TQT_SLOT(slotJoinSegments()), 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,
this, TQT_SLOT(slotRepeatingSegments()), 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,
this, TQT_SLOT(slotManageTriggerSegments()), this, TQT_SLOT(slotManageTriggerSegments()),
actionCollection(), "manage_trigger_segments"); actionCollection(), "manage_trigger_segments");
new KAction(i18n("Set Tempos from &Beat Segment"), 0, this, new TDEAction(i18n("Set Tempos from &Beat Segment"), 0, this,
TQT_SLOT(slotGrooveQuantize()), actionCollection(), TQT_SLOT(slotGrooveQuantize()), actionCollection(),
"groove_quantize"); "groove_quantize");
new KAction(i18n("Set &Tempo to Audio Segment Duration"), 0, this, new TDEAction(i18n("Set &Tempo to Audio Segment Duration"), 0, 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,
this, TQT_SLOT(slotAudioManager()), this, TQT_SLOT(slotAudioManager()),
actionCollection(), "audio_manager"); actionCollection(), "audio_manager");
m_viewSegmentLabels = new KToggleAction(i18n("Show Segment Labels"), 0, this, m_viewSegmentLabels = new TDEToggleAction(i18n("Show Segment Labels"), 0, 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,
this, TQT_SLOT(slotAddTrack()), this, TQT_SLOT(slotAddTrack()),
actionCollection(), "add_track"); actionCollection(), "add_track");
new KAction(i18n("&Add Tracks..."), 0, new TDEAction(i18n("&Add Tracks..."), 0,
this, TQT_SLOT(slotAddTracks()), 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,
this, TQT_SLOT(slotDeleteTrack()), 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,
this, TQT_SLOT(slotMoveTrackDown()), 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,
this, TQT_SLOT(slotMoveTrackUp()), 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,
this, TQT_SLOT(slotTrackDown()), 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,
this, TQT_SLOT(slotTrackUp()), 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,
this, TQT_SLOT(slotToggleMutedCurrentTrack()), 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,
this, TQT_SLOT(slotToggleRecordCurrentTrack()), 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,
this, TQT_SLOT(slotMuteAllTracks()), 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,
this, TQT_SLOT(slotUnmuteAllTracks()), this, TQT_SLOT(slotUnmuteAllTracks()),
actionCollection(), "unmute_all_tracks"); actionCollection(), "unmute_all_tracks");
new KAction(i18n("&Remap Instruments..."), 0, this, new TDEAction(i18n("&Remap Instruments..."), 0, 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, this, new TDEAction(i18n("&Audio Mixer"), icon, 0, 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, this, new TDEAction(i18n("Midi Mi&xer"), icon, 0, 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, this, new TDEAction(i18n("Manage MIDI &Devices"), icon, 0, 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, this, new TDEAction(i18n("Manage S&ynth Plugins"), icon, 0, this,
TQT_SLOT(slotManageSynths()), TQT_SLOT(slotManageSynths()),
actionCollection(), "manage_synths"); actionCollection(), "manage_synths");
new KAction(i18n("Modify MIDI &Filters"), "filter", 0, this, new TDEAction(i18n("Modify MIDI &Filters"), "filter", 0, this,
TQT_SLOT(slotModifyMIDIFilters()), TQT_SLOT(slotModifyMIDIFilters()),
actionCollection(), "modify_midi_filters"); actionCollection(), "modify_midi_filters");
m_enableMIDIrouting = new KToggleAction(i18n("MIDI Thru Routing"), 0, this, m_enableMIDIrouting = new TDEToggleAction(i18n("MIDI Thru Routing"), 0, 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, this, new TDEAction(i18n("Manage &Metronome"), 0, this,
TQT_SLOT(slotManageMetronome()), TQT_SLOT(slotManageMetronome()),
actionCollection(), "manage_metronome"); actionCollection(), "manage_metronome");
new KAction(i18n("&Save Current Document as Default Studio"), 0, this, new TDEAction(i18n("&Save Current Document as Default Studio"), 0, this,
TQT_SLOT(slotSaveDefaultStudio()), TQT_SLOT(slotSaveDefaultStudio()),
actionCollection(), "save_default_studio"); actionCollection(), "save_default_studio");
new KAction(i18n("&Import Default Studio"), 0, this, new TDEAction(i18n("&Import Default Studio"), 0, this,
TQT_SLOT(slotImportDefaultStudio()), TQT_SLOT(slotImportDefaultStudio()),
actionCollection(), "load_default_studio"); actionCollection(), "load_default_studio");
new KAction(i18n("Im&port Studio from File..."), 0, this, new TDEAction(i18n("Im&port Studio from File..."), 0, this,
TQT_SLOT(slotImportStudio()), TQT_SLOT(slotImportStudio()),
actionCollection(), "load_studio"); actionCollection(), "load_studio");
new KAction(i18n("&Reset MIDI Network"), 0, this, new TDEAction(i18n("&Reset MIDI Network"), 0, 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, this, m_setQuickMarkerAction = new TDEAction(i18n("Set Quick Marker at Playback Position"), 0, CTRL + Key_1, 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, this, m_jumpToQuickMarkerAction = new TDEAction(i18n("Jump to Quick Marker"), 0, Key_1, 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, this, // new TDEAction(i18n("Insert Marker"), 0, 0, 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, this, // new TDEAction(i18n("Insert Marker at Playback Position"), 0, 0, this,
// TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(), // TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(),
// "insert_marker_at_pointer"); // "insert_marker_at_pointer");
// //
// new KAction(i18n("Delete Marker"), 0, 0, this, // new TDEAction(i18n("Delete Marker"), 0, 0, 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, this, m_playTransport = new TDEAction(i18n("&Play"), icon, Key_Enter, 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, this, m_stopTransport = new TDEAction(i18n("&Stop"), icon, Key_Insert, 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,
this, 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, this, m_rewindTransport = new TDEAction(i18n("Re&wind"), icon, Key_End, 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, this, m_recordTransport = new TDEAction(i18n("P&unch in Record"), icon, Key_Space, 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, this, m_recordTransport = new TDEAction(i18n("&Record"), icon, 0, 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, this, m_rewindEndTransport = new TDEAction(i18n("Rewind to &Beginning"), icon, 0, 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, this, m_ffwdEndTransport = new TDEAction(i18n("Fast Forward to &End"), icon, 0, 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, this, (new TDEToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, 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, this, TQT_SLOT(slotPanic()), new TDEAction( i18n("Panic"), icon, Key_P + CTRL + ALT, this, TQT_SLOT(slotPanic()),
actionCollection(), "panic"); actionCollection(), "panic");
// DEBUG FACILITY // DEBUG FACILITY
new KAction(i18n("Segment Debug Dump "), 0, this, new TDEAction(i18n("Segment Debug Dump "), 0, 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;

@ -50,11 +50,11 @@ class TQCursor;
class TQAccel; class TQAccel;
class KURL; class KURL;
class KTempFile; class KTempFile;
class KToggleAction; class TDEToggleAction;
class KRecentFilesAction; class TDERecentFilesAction;
class TDEProcess; class TDEProcess;
class TDEConfig; class TDEConfig;
class KAction; class TDEAction;
namespace Rosegarden namespace Rosegarden
@ -98,11 +98,11 @@ class AudioManagerDialog;
* and statusbar. An instance of RosegardenGUIView creates your center view, which is connected * and statusbar. An instance of RosegardenGUIView creates your center view, which is connected
* to the window's Doc object. * to the window's Doc object.
* RosegardenGUIApp reimplements the methods that KTMainWindow provides for main window handling and supports * RosegardenGUIApp reimplements the methods that KTMainWindow provides for main window handling and supports
* full session management as well as keyboard accelerator configuration by using KAccel. * full session management as well as keyboard accelerator configuration by using TDEAccel.
* @see KTMainWindow * @see KTMainWindow
* @see TDEApplication * @see TDEApplication
* @see TDEConfig * @see TDEConfig
* @see KAccel * @see TDEAccel
* *
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 0.4 code generation * @version KDevelop version 0.4 code generation
@ -1319,7 +1319,7 @@ public slots:
* kxmlguiclient.h just for one typedef. * kxmlguiclient.h just for one typedef.
* *
* Hopefully we'll be able to get rid of this eventually, * Hopefully we'll be able to get rid of this eventually,
* I should slip this in KMainWindow for KDE 4. * I should slip this in TDEMainWindow for KDE 4.
*/ */
void slotStateChanged(TQString, bool noReverse); void slotStateChanged(TQString, bool noReverse);
@ -1550,7 +1550,7 @@ private:
bool m_actionsSetup; bool m_actionsSetup;
KRecentFilesAction* m_fileRecent; TDERecentFilesAction* m_fileRecent;
/** /**
* view is the main widget which represents your working area. The * view is the main widget which represents your working area. The
@ -1572,33 +1572,33 @@ private:
RosegardenGUIDoc* m_doc; RosegardenGUIDoc* m_doc;
/** /**
* KAction pointers to enable/disable actions * TDEAction pointers to enable/disable actions
*/ */
KRecentFilesAction* m_fileOpenRecent; TDERecentFilesAction* m_fileOpenRecent;
KToggleAction* m_viewToolBar; TDEToggleAction* m_viewToolBar;
KToggleAction* m_viewToolsToolBar; TDEToggleAction* m_viewToolsToolBar;
KToggleAction* m_viewTracksToolBar; TDEToggleAction* m_viewTracksToolBar;
KToggleAction* m_viewEditorsToolBar; TDEToggleAction* m_viewEditorsToolBar;
KToggleAction* m_viewZoomToolBar; TDEToggleAction* m_viewZoomToolBar;
KToggleAction* m_viewStatusBar; TDEToggleAction* m_viewStatusBar;
KToggleAction* m_viewTransport; TDEToggleAction* m_viewTransport;
KToggleAction* m_viewTransportToolBar; TDEToggleAction* m_viewTransportToolBar;
KToggleAction* m_viewTrackLabels; TDEToggleAction* m_viewTrackLabels;
KToggleAction* m_viewRulers; TDEToggleAction* m_viewRulers;
KToggleAction* m_viewTempoRuler; TDEToggleAction* m_viewTempoRuler;
KToggleAction* m_viewChordNameRuler; TDEToggleAction* m_viewChordNameRuler;
KToggleAction* m_viewPreviews; TDEToggleAction* m_viewPreviews;
KToggleAction* m_viewSegmentLabels; TDEToggleAction* m_viewSegmentLabels;
KToggleAction* m_enableMIDIrouting; TDEToggleAction* m_enableMIDIrouting;
KAction *m_playTransport; TDEAction *m_playTransport;
KAction *m_stopTransport; TDEAction *m_stopTransport;
KAction *m_rewindTransport; TDEAction *m_rewindTransport;
KAction *m_ffwdTransport; TDEAction *m_ffwdTransport;
KAction *m_recordTransport; TDEAction *m_recordTransport;
KAction *m_rewindEndTransport; TDEAction *m_rewindEndTransport;
KAction *m_ffwdEndTransport; TDEAction *m_ffwdEndTransport;
TDEProcess* m_sequencerProcess; TDEProcess* m_sequencerProcess;
bool m_sequencerCheckedIn; bool m_sequencerCheckedIn;
@ -1677,8 +1677,8 @@ private:
RosegardenParameterArea *m_parameterArea; RosegardenParameterArea *m_parameterArea;
KAction *m_setQuickMarkerAction; TDEAction *m_setQuickMarkerAction;
KAction *m_jumpToQuickMarkerAction; TDEAction *m_jumpToQuickMarkerAction;
#ifdef HAVE_LIRC #ifdef HAVE_LIRC
LircClient *m_lircClient; LircClient *m_lircClient;

@ -45,12 +45,12 @@
namespace Rosegarden namespace Rosegarden
{ {
RosegardenIface::RosegardenIface(KMainWindow* mainWindow) RosegardenIface::RosegardenIface(TDEMainWindow* mainWindow)
: DCOPObject(mainWindow->name()), : DCOPObject(mainWindow->name()),
m_dcopActionProxy(0) m_dcopActionProxy(0)
{} {}
void RosegardenIface::iFaceDelayedInit(KMainWindow* mainWindow) void RosegardenIface::iFaceDelayedInit(TDEMainWindow* mainWindow)
{ {
m_dcopActionProxy = new KDCOPActionProxy(mainWindow->actionCollection(), m_dcopActionProxy = new KDCOPActionProxy(mainWindow->actionCollection(),
this); this);
@ -65,9 +65,9 @@ DCOPRef RosegardenIface::action(const TQCString &name)
QCStringList RosegardenIface::actions() QCStringList RosegardenIface::actions()
{ {
QCStringList res; QCStringList res;
TQValueList<KAction *> lst = m_dcopActionProxy->actions(); TQValueList<TDEAction *> lst = m_dcopActionProxy->actions();
TQValueList<KAction *>::ConstIterator it = lst.begin(); TQValueList<TDEAction *>::ConstIterator it = lst.begin();
TQValueList<KAction *>::ConstIterator end = lst.end(); TQValueList<TDEAction *>::ConstIterator end = lst.end();
for (; it != end; ++it ) for (; it != end; ++it )
res.append( (*it)->name() ); res.append( (*it)->name() );

@ -40,7 +40,7 @@
#include "sound/MappedComposition.h" #include "sound/MappedComposition.h"
class TQCString; class TQCString;
class KMainWindow; class TDEMainWindow;
class KDCOPActionProxy; class KDCOPActionProxy;
@ -56,8 +56,8 @@ class RosegardenIface : virtual public DCOPObject
K_DCOP K_DCOP
public: public:
RosegardenIface(KMainWindow*); RosegardenIface(TDEMainWindow*);
void iFaceDelayedInit(KMainWindow*); void iFaceDelayedInit(TDEMainWindow*);
k_dcop: k_dcop:
virtual void openFile(TQString file) = 0; virtual void openFile(TQString file) = 0;

@ -578,7 +578,7 @@ int main(int argc, char *argv[])
// RESTORE(RosegardenGUIApp); // RESTORE(RosegardenGUIApp);
int n = 1; int n = 1;
while (KMainWindow::canBeRestored(n)) { while (TDEMainWindow::canBeRestored(n)) {
// memory leak if more than one can be restored? // memory leak if more than one can be restored?
RG_DEBUG << "Restoring from session - restoring app #" << n << endl; RG_DEBUG << "Restoring from session - restoring app #" << n << endl;
(rosegardengui = new RosegardenGUIApp)->restore(n); (rosegardengui = new RosegardenGUIApp)->restore(n);

@ -32,7 +32,7 @@
class TQWidget; class TQWidget;
class KListView; class TDEListView;
namespace Rosegarden namespace Rosegarden

@ -179,7 +179,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(TQWidget *parent,
TQGridLayout *layoutOtherHeaders = new TQGridLayout(frameOtherHeaders, 2, 2, 10, 5); TQGridLayout *layoutOtherHeaders = new TQGridLayout(frameOtherHeaders, 2, 2, 10, 5);
m_metadata = new KListView(frameOtherHeaders); m_metadata = new TDEListView(frameOtherHeaders);
m_metadata->addColumn(i18n("Name")); m_metadata->addColumn(i18n("Name"));
m_metadata->addColumn(i18n("Value")); m_metadata->addColumn(i18n("Value"));
m_metadata->setFullWidth(true); m_metadata->setFullWidth(true);
@ -202,7 +202,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(TQWidget *parent,
// property names stored in lower case // property names stored in lower case
name = name.left(1).upper() + name.right(name.length() - 1); name = name.left(1).upper() + name.right(name.length() - 1);
new KListViewItem(m_metadata, name, new TDEListViewItem(m_metadata, name,
strtoqstr(metadata.get<String>(names[i]))); strtoqstr(metadata.get<String>(names[i])));
shown.insert(names[i]); shown.insert(names[i]);
@ -240,7 +240,7 @@ HeadersConfigurationPage::slotAddNewProperty()
++i; ++i;
} }
new KListViewItem(m_metadata, propertyName, i18n("{undefined}")); new TDEListViewItem(m_metadata, propertyName, i18n("{undefined}"));
} }
void void

@ -31,7 +31,7 @@
class TQVBox; class TQVBox;
class TQWidget; class TQWidget;
class TQLineEdit; class TQLineEdit;
class KListView; class TDEListView;
namespace Rosegarden namespace Rosegarden
{ {
@ -72,7 +72,7 @@ protected:
TQLineEdit *m_editCopyright; TQLineEdit *m_editCopyright;
TQLineEdit *m_editTagline; TQLineEdit *m_editTagline;
KListView *m_metadata; TDEListView *m_metadata;
}; };

@ -539,7 +539,7 @@ NotationConfigurationPage::NotationConfigurationPage(TDEConfig *cfg,
layout->addWidget layout->addWidget
(new TQLabel(i18n("Text font"), frame), row, 0); (new TQLabel(i18n("Text font"), frame), row, 0);
m_textFont = new KFontRequester(frame); m_textFont = new TDEFontRequester(frame);
TQFont textFont = m_cfg->readFontEntry("textfont", &defaultTextFont); TQFont textFont = m_cfg->readFontEntry("textfont", &defaultTextFont);
m_textFont->setFont(textFont); m_textFont->setFont(textFont);
layout->addMultiCellWidget(m_textFont, row, row, 1, 3); layout->addMultiCellWidget(m_textFont, row, row, 1, 3);
@ -547,7 +547,7 @@ NotationConfigurationPage::NotationConfigurationPage(TDEConfig *cfg,
layout->addWidget layout->addWidget
(new TQLabel(i18n("Sans-serif font"), frame), row, 0); (new TQLabel(i18n("Sans-serif font"), frame), row, 0);
m_sansFont = new KFontRequester(frame); m_sansFont = new TDEFontRequester(frame);
TQFont sansFont = m_cfg->readFontEntry("sansfont", &defaultSansFont); TQFont sansFont = m_cfg->readFontEntry("sansfont", &defaultSansFont);
m_sansFont->setFont(sansFont); m_sansFont->setFont(sansFont);
layout->addMultiCellWidget(m_sansFont, row, row, 1, 3); layout->addMultiCellWidget(m_sansFont, row, row, 1, 3);
@ -559,7 +559,7 @@ NotationConfigurationPage::NotationConfigurationPage(TDEConfig *cfg,
layout->addWidget layout->addWidget
(new TQLabel(i18n("Time Signature font"), frame), row, 0); (new TQLabel(i18n("Time Signature font"), frame), row, 0);
m_timeSigFont = new KFontRequester(frame); m_timeSigFont = new TDEFontRequester(frame);
TQFont timeSigFont = m_cfg->readFontEntry("timesigfont", &defaultTimeSigFont); TQFont timeSigFont = m_cfg->readFontEntry("timesigfont", &defaultTimeSigFont);
m_timeSigFont->setFont(timeSigFont); m_timeSigFont->setFont(timeSigFont);
layout->addMultiCellWidget(m_timeSigFont, row, row, 1, 3); layout->addMultiCellWidget(m_timeSigFont, row, row, 1, 3);

@ -38,7 +38,7 @@ class TQPushButton;
class TQLabel; class TQLabel;
class TQComboBox; class TQComboBox;
class TQCheckBox; class TQCheckBox;
class KFontRequester; class TDEFontRequester;
class TDEConfig; class TDEConfig;
@ -79,9 +79,9 @@ protected:
TQComboBox *m_singleStaffSize; TQComboBox *m_singleStaffSize;
TQComboBox *m_multiStaffSize; TQComboBox *m_multiStaffSize;
TQComboBox *m_printingSize; TQComboBox *m_printingSize;
KFontRequester* m_textFont; TDEFontRequester* m_textFont;
KFontRequester* m_sansFont; TDEFontRequester* m_sansFont;
KFontRequester* m_timeSigFont; TDEFontRequester* m_timeSigFont;
TQPushButton *m_viewButton; TQPushButton *m_viewButton;
TQLabel *m_fontOriginLabel; TQLabel *m_fontOriginLabel;
TQLabel *m_fontCopyrightLabel; TQLabel *m_fontCopyrightLabel;

@ -95,7 +95,7 @@ const char* const AudioManagerDialog::m_listViewLayoutName = "AudioManagerDialog
AudioManagerDialog::AudioManagerDialog(TQWidget *parent, AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
RosegardenGUIDoc *doc): RosegardenGUIDoc *doc):
KMainWindow(parent, "audioManagerDialog"), TDEMainWindow(parent, "audioManagerDialog"),
m_doc(doc), m_doc(doc),
m_playingAudioFile(0), m_playingAudioFile(0),
m_audioPlayingDialog(0), m_audioPlayingDialog(0),
@ -129,46 +129,46 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm")); TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm"));
new KAction(i18n("&Add Audio File..."), "fileopen", 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Add Audio File..."), "fileopen", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAdd()), actionCollection(), "add_audio"); TQT_SLOT(slotAdd()), actionCollection(), "add_audio");
new KAction(i18n("&Unload Audio File"), "editdelete", 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Unload Audio File"), "editdelete", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemove()), TQT_SLOT(slotRemove()),
actionCollection(), "remove_audio"); actionCollection(), "remove_audio");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm"));
new KAction(i18n("&Play Preview"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Play Preview"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPlayPreview()), TQT_SLOT(slotPlayPreview()),
actionCollection(), "preview_audio"); actionCollection(), "preview_audio");
/*!!! Not actually implemented -- this never worked right! /*!!! Not actually implemented -- this never worked right!
new KAction(i18n("Re&label"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Re&label"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRename()), TQT_SLOT(slotRename()),
actionCollection(), "rename_audio"); actionCollection(), "rename_audio");
*/ */
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/insert_audio_into_track.xpm")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/insert_audio_into_track.xpm"));
new KAction(i18n("&Insert into Selected Audio Track"), new TDEAction(i18n("&Insert into Selected Audio Track"),
icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotInsert()), icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotInsert()),
actionCollection(), "insert_audio"); actionCollection(), "insert_audio");
new KAction(i18n("Unload &all Audio Files"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Unload &all Audio Files"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveAll()), TQT_SLOT(slotRemoveAll()),
actionCollection(), "remove_all_audio"); actionCollection(), "remove_all_audio");
new KAction(i18n("Unload all &Unused Audio Files"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Unload all &Unused Audio Files"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveAllUnused()), TQT_SLOT(slotRemoveAllUnused()),
actionCollection(), "remove_all_unused_audio"); actionCollection(), "remove_all_unused_audio");
new KAction(i18n("&Delete Unused Audio Files..."), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Delete Unused Audio Files..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteUnused()), TQT_SLOT(slotDeleteUnused()),
actionCollection(), "delete_unused_audio"); actionCollection(), "delete_unused_audio");
new KAction(i18n("&Export Audio File..."), "fileexport", 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Export Audio File..."), "fileexport", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportAudio()), TQT_SLOT(slotExportAudio()),
actionCollection(), "export_audio"); actionCollection(), "export_audio");
/* /*
new KAction(i18n("Distribute Audio on &MIDI"), new TDEAction(i18n("Distribute Audio on &MIDI"),
0, 0, TQT_TQOBJECT(this), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDistributeOnMidiSegment()), TQT_SLOT(slotDistributeOnMidiSegment()),
actionCollection(), actionCollection(),
@ -1166,7 +1166,7 @@ AudioManagerDialog::closeEvent(TQCloseEvent *e)
{ {
RG_DEBUG << "AudioManagerDialog::closeEvent()\n"; RG_DEBUG << "AudioManagerDialog::closeEvent()\n";
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
void void

@ -40,7 +40,7 @@ class TQDropEvent;
class TQCloseEvent; class TQCloseEvent;
class TQAccel; class TQAccel;
class KURL; class KURL;
class KListView; class TDEListView;
class KCommand; class KCommand;
@ -56,7 +56,7 @@ class AudioPlayingDialog;
class AudioFile; class AudioFile;
class AudioManagerDialog : public KMainWindow class AudioManagerDialog : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -182,7 +182,7 @@ protected:
//--------------- Data members --------------------------------- //--------------- Data members ---------------------------------
KListView *m_fileList; TDEListView *m_fileList;
TQLabel *m_wrongSampleRates; TQLabel *m_wrongSampleRates;
RosegardenGUIDoc *m_doc; RosegardenGUIDoc *m_doc;

@ -48,7 +48,7 @@ UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
new TQLabel(introductoryText, vbox); new TQLabel(introductoryText, vbox);
m_listView = new KListView(vbox); m_listView = new TDEListView(vbox);
m_listView->addColumn(i18n("File name")); m_listView->addColumn(i18n("File name"));
m_listView->addColumn(i18n("File size")); m_listView->addColumn(i18n("File size"));
@ -63,7 +63,7 @@ UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(TQWidget *parent,
fileSize = TQString(" %1 ").arg(info.size()); fileSize = TQString(" %1 ").arg(info.size());
fileDate = TQString(" %1 ").arg(info.lastModified().toString()); fileDate = TQString(" %1 ").arg(info.lastModified().toString());
} }
TQListViewItem *item = new KListViewItem TQListViewItem *item = new TDEListViewItem
(m_listView, fileName, fileSize, fileDate); (m_listView, fileName, fileSize, fileDate);
} }

@ -146,7 +146,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
connect(m_filterGroup, TQT_SIGNAL(released(int)), connect(m_filterGroup, TQT_SIGNAL(released(int)),
TQT_SLOT(slotModifyFilter(int))); TQT_SLOT(slotModifyFilter(int)));
m_eventList = new KListView(getCentralWidget()); m_eventList = new TDEListView(getCentralWidget());
m_eventList->setItemsRenameable(true); m_eventList->setItemsRenameable(true);
m_grid->addWidget(m_eventList, 2, 1); m_grid->addWidget(m_eventList, 2, 1);
@ -1120,53 +1120,53 @@ EventView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/event-insert.png")); TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/event-insert.png"));
new KAction(i18n("&Insert Event"), icon, Key_I, TQT_TQOBJECT(this), new TDEAction(i18n("&Insert Event"), icon, Key_I, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInsert()), actionCollection(), TQT_SLOT(slotEditInsert()), actionCollection(),
"insert"); "insert");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-delete.png"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-delete.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("&Delete Event"), icon, Key_Delete, TQT_TQOBJECT(this), new TDEAction(i18n("&Delete Event"), icon, Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDelete()), actionCollection(), TQT_SLOT(slotEditDelete()), actionCollection(),
"delete"); "delete");
pixmap.load(pixmapDir + "/toolbar/event-edit.png"); pixmap.load(pixmapDir + "/toolbar/event-edit.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("&Edit Event"), icon, Key_E, TQT_TQOBJECT(this), new TDEAction(i18n("&Edit Event"), icon, Key_E, TQT_TQOBJECT(this),
TQT_SLOT(slotEditEvent()), actionCollection(), TQT_SLOT(slotEditEvent()), actionCollection(),
"edit_simple"); "edit_simple");
pixmap.load(pixmapDir + "/toolbar/event-edit-advanced.png"); pixmap.load(pixmapDir + "/toolbar/event-edit-advanced.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("&Advanced Event Editor"), icon, Key_A, TQT_TQOBJECT(this), new TDEAction(i18n("&Advanced Event Editor"), icon, Key_A, TQT_TQOBJECT(this),
TQT_SLOT(slotEditEventAdvanced()), actionCollection(), TQT_SLOT(slotEditEventAdvanced()), actionCollection(),
"edit_advanced"); "edit_advanced");
// icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm")); // icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
new KAction(i18n("&Filter Selection"), "filter", Key_F, TQT_TQOBJECT(this), new TDEAction(i18n("&Filter Selection"), "filter", Key_F, TQT_TQOBJECT(this),
TQT_SLOT(slotFilterSelection()), actionCollection(), TQT_SLOT(slotFilterSelection()), actionCollection(),
"filter_selection"); "filter_selection");
new KAction(i18n("Select &All"), Key_A + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Select &All"), Key_A + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAll()), actionCollection(), TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all"); "select_all");
new KAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this), new TDEAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this),
TQT_SLOT(slotClearSelection()), actionCollection(), TQT_SLOT(slotClearSelection()), actionCollection(),
"clear_selection"); "clear_selection");
m_config->setGroup(EventViewConfigGroup); m_config->setGroup(EventViewConfigGroup);
int timeMode = m_config->readNumEntry("timemode", 0); int timeMode = m_config->readNumEntry("timemode", 0);
KRadioAction *action; TDERadioAction *action;
pixmap.load(pixmapDir + "/toolbar/time-musical.png"); pixmap.load(pixmapDir + "/toolbar/time-musical.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMusicalTime()), TQT_SLOT(slotMusicalTime()),
actionCollection(), "time_musical"); actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -1176,7 +1176,7 @@ EventView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png"); pixmap.load(pixmapDir + "/toolbar/time-real.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRealTime()), TQT_SLOT(slotRealTime()),
actionCollection(), "time_real"); actionCollection(), "time_real");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -1186,7 +1186,7 @@ EventView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png"); pixmap.load(pixmapDir + "/toolbar/time-raw.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRawTime()), TQT_SLOT(slotRawTime()),
actionCollection(), "time_raw"); actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -1194,7 +1194,7 @@ EventView::setupActions()
action->setChecked(true); action->setChecked(true);
if (m_isTriggerSegment) { if (m_isTriggerSegment) {
KAction *action = actionCollection()->action("open_in_matrix"); TDEAction *action = actionCollection()->action("open_in_matrix");
if (action) if (action)
delete action; delete action;
action = actionCollection()->action("open_in_notation"); action = actionCollection()->action("open_in_notation");

@ -44,7 +44,7 @@ class TQListViewItem;
class TQLabel; class TQLabel;
class TQCheckBox; class TQCheckBox;
class TQButtonGroup; class TQButtonGroup;
class KListView; class TDEListView;
namespace Rosegarden namespace Rosegarden
@ -175,7 +175,7 @@ protected:
TQLabel *m_triggerPitch; TQLabel *m_triggerPitch;
TQLabel *m_triggerVelocity; TQLabel *m_triggerVelocity;
KListView *m_eventList; TDEListView *m_eventList;
int m_eventFilter; int m_eventFilter;
static int m_lastSetEventFilter; static int m_lastSetEventFilter;

@ -36,20 +36,20 @@ class Event;
// EventView specialisation of a TQListViewItem with the // EventView specialisation of a TQListViewItem with the
// addition of a segment pointer // addition of a segment pointer
// //
class EventViewItem : public KListViewItem class EventViewItem : public TDEListViewItem
{ {
public: public:
EventViewItem(Rosegarden::Segment *segment, EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event, Rosegarden::Event *event,
KListView *parent) : TDEListView *parent) :
KListViewItem(parent), TDEListViewItem(parent),
m_segment(segment), m_segment(segment),
m_event(event) {;} m_event(event) {;}
EventViewItem(Rosegarden::Segment *segment, EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event, Rosegarden::Event *event,
KListViewItem *parent) : TDEListViewItem *parent) :
KListViewItem(parent), TDEListViewItem(parent),
m_segment(segment), m_segment(segment),
m_event(event) {;} m_event(event) {;}
@ -63,14 +63,14 @@ public:
TQString label6 = TQString(), TQString label6 = TQString(),
TQString label7 = TQString(), TQString label7 = TQString(),
TQString label8 = TQString()) : TQString label8 = TQString()) :
KListViewItem(parent, label1, label2, label3, label4, TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8), label5, label6, label7, label8),
m_segment(segment), m_segment(segment),
m_event(event) {;} m_event(event) {;}
EventViewItem(Rosegarden::Segment *segment, EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event, Rosegarden::Event *event,
KListViewItem *parent, TQString label1, TDEListViewItem *parent, TQString label1,
TQString label2 = TQString(), TQString label2 = TQString(),
TQString label3 = TQString(), TQString label3 = TQString(),
TQString label4 = TQString(), TQString label4 = TQString(),
@ -78,7 +78,7 @@ public:
TQString label6 = TQString(), TQString label6 = TQString(),
TQString label7 = TQString(), TQString label7 = TQString(),
TQString label8 = TQString()) : TQString label8 = TQString()) :
KListViewItem(parent, label1, label2, label3, label4, TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8), label5, label6, label7, label8),
m_segment(segment), m_segment(segment),
m_event(event) {;} m_event(event) {;}

@ -51,21 +51,21 @@ MatrixEraser::MatrixEraser(MatrixView* parent)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this, new TDEAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
TQT_SLOT(slotDrawSelected()), actionCollection(), TQT_SLOT(slotDrawSelected()), actionCollection(),
"draw"); "draw");
new KAction(i18n("Switch to Move Tool"), "move", 0, this, new TDEAction(i18n("Switch to Move Tool"), "move", 0, this,
TQT_SLOT(slotMoveSelected()), actionCollection(), TQT_SLOT(slotMoveSelected()), actionCollection(),
"move"); "move");
pixmap.load(pixmapDir + "/toolbar/resize.xpm"); pixmap.load(pixmapDir + "/toolbar/resize.xpm");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Resize Tool"), icon, 0, this, new TDEAction(i18n("Switch to Resize Tool"), icon, 0, this,
TQT_SLOT(slotResizeSelected()), actionCollection(), TQT_SLOT(slotResizeSelected()), actionCollection(),
"resize"); "resize");

@ -64,21 +64,21 @@ MatrixMover::MatrixMover(MatrixView* parent) :
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this, new TDEAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
TQT_SLOT(slotDrawSelected()), actionCollection(), TQT_SLOT(slotDrawSelected()), actionCollection(),
"draw"); "draw");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
pixmap.load(pixmapDir + "/toolbar/resize.xpm"); pixmap.load(pixmapDir + "/toolbar/resize.xpm");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Resize Tool"), icon, 0, this, new TDEAction(i18n("Switch to Resize Tool"), icon, 0, this,
TQT_SLOT(slotResizeSelected()), actionCollection(), TQT_SLOT(slotResizeSelected()), actionCollection(),
"resize"); "resize");

@ -62,21 +62,21 @@ MatrixPainter::MatrixPainter(MatrixView* parent)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
new KAction(i18n("Switch to Move Tool"), "move", 0, this, new TDEAction(i18n("Switch to Move Tool"), "move", 0, this,
TQT_SLOT(slotMoveSelected()), actionCollection(), TQT_SLOT(slotMoveSelected()), actionCollection(),
"move"); "move");
pixmap.load(pixmapDir + "/toolbar/resize.xpm"); pixmap.load(pixmapDir + "/toolbar/resize.xpm");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Resize Tool"), icon, 0, this, new TDEAction(i18n("Switch to Resize Tool"), icon, 0, this,
TQT_SLOT(slotResizeSelected()), actionCollection(), TQT_SLOT(slotResizeSelected()), actionCollection(),
"resize"); "resize");

@ -60,19 +60,19 @@ MatrixResizer::MatrixResizer(MatrixView* parent)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this, new TDEAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
TQT_SLOT(slotDrawSelected()), actionCollection(), TQT_SLOT(slotDrawSelected()), actionCollection(),
"draw"); "draw");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
new KAction(i18n("Switch to Move Tool"), "move", 0, this, new TDEAction(i18n("Switch to Move Tool"), "move", 0, this,
TQT_SLOT(slotMoveSelected()), actionCollection(), TQT_SLOT(slotMoveSelected()), actionCollection(),
"move"); "move");

@ -74,15 +74,15 @@ MatrixSelector::MatrixSelector(MatrixView* view)
connect(m_parentView, TQT_SIGNAL(usedSelection()), connect(m_parentView, TQT_SIGNAL(usedSelection()),
this, TQT_SLOT(slotHideSelection())); this, TQT_SLOT(slotHideSelection()));
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this, new TDEAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
TQT_SLOT(slotDrawSelected()), actionCollection(), TQT_SLOT(slotDrawSelected()), actionCollection(),
"draw"); "draw");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
new KAction(i18n("Switch to Move Tool"), "move", 0, this, new TDEAction(i18n("Switch to Move Tool"), "move", 0, this,
TQT_SLOT(slotMoveSelected()), actionCollection(), TQT_SLOT(slotMoveSelected()), actionCollection(),
"move"); "move");
@ -90,7 +90,7 @@ MatrixSelector::MatrixSelector(MatrixView* view)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Resize Tool"), icon, 0, this, new TDEAction(i18n("Switch to Resize Tool"), icon, 0, this,
TQT_SLOT(slotResizeSelected()), actionCollection(), TQT_SLOT(slotResizeSelected()), actionCollection(),
"resize"); "resize");

@ -633,225 +633,225 @@ void MatrixView::setupActions()
// //
// Edition tools (eraser, selector...) // Edition tools (eraser, selector...)
// //
KRadioAction* toolAction = 0; TDERadioAction* toolAction = 0;
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/select.xpm")); TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/select.xpm"));
toolAction = new KRadioAction(i18n("&Select and Edit"), icon, Key_F2, toolAction = new TDERadioAction(i18n("&Select and Edit"), icon, Key_F2,
TQT_TQOBJECT(this), TQT_SLOT(slotSelectSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotSelectSelected()),
actionCollection(), "select"); actionCollection(), "select");
toolAction->setExclusiveGroup("tools"); toolAction->setExclusiveGroup("tools");
toolAction = new KRadioAction(i18n("&Draw"), "pencil", Key_F3, toolAction = new TDERadioAction(i18n("&Draw"), "pencil", Key_F3,
TQT_TQOBJECT(this), TQT_SLOT(slotPaintSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotPaintSelected()),
actionCollection(), "draw"); actionCollection(), "draw");
toolAction->setExclusiveGroup("tools"); toolAction->setExclusiveGroup("tools");
toolAction = new KRadioAction(i18n("&Erase"), "eraser", Key_F4, toolAction = new TDERadioAction(i18n("&Erase"), "eraser", Key_F4,
TQT_TQOBJECT(this), TQT_SLOT(slotEraseSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase"); actionCollection(), "erase");
toolAction->setExclusiveGroup("tools"); toolAction->setExclusiveGroup("tools");
toolAction = new KRadioAction(i18n("&Move"), "move", Key_F5, toolAction = new TDERadioAction(i18n("&Move"), "move", Key_F5,
TQT_TQOBJECT(this), TQT_SLOT(slotMoveSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotMoveSelected()),
actionCollection(), "move"); actionCollection(), "move");
toolAction->setExclusiveGroup("tools"); toolAction->setExclusiveGroup("tools");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
toolAction = new KRadioAction(i18n("Resi&ze"), icon, Key_F6, toolAction = new TDERadioAction(i18n("Resi&ze"), icon, Key_F6,
TQT_TQOBJECT(this), TQT_SLOT(slotResizeSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotResizeSelected()),
actionCollection(), "resize"); actionCollection(), "resize");
toolAction->setExclusiveGroup("tools"); toolAction->setExclusiveGroup("tools");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("chord"))); icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("chord")));
(new KToggleAction(i18n("C&hord Insert Mode"), icon, Key_H, (new TDEToggleAction(i18n("C&hord Insert Mode"), icon, Key_H,
TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "chord_mode"))-> actionCollection(), "chord_mode"))->
setChecked(false); setChecked(false);
pixmap.load(pixmapDir + "/toolbar/step_by_step.xpm"); pixmap.load(pixmapDir + "/toolbar/step_by_step.xpm");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KToggleAction(i18n("Ste&p Recording"), icon, 0, TQT_TQOBJECT(this), new TDEToggleAction(i18n("Ste&p Recording"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleStepByStep()), actionCollection(), TQT_SLOT(slotToggleStepByStep()), actionCollection(),
"toggle_step_by_step"); "toggle_step_by_step");
pixmap.load(pixmapDir + "/toolbar/quantize.png"); pixmap.load(pixmapDir + "/toolbar/quantize.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, TQT_TQOBJECT(this), new TDEAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsQuantize()), actionCollection(), TQT_SLOT(slotTransformsQuantize()), actionCollection(),
"quantize"); "quantize");
new KAction(i18n("Repeat Last Quantize"), Key_Plus, TQT_TQOBJECT(this), new TDEAction(i18n("Repeat Last Quantize"), Key_Plus, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsRepeatQuantize()), actionCollection(), TQT_SLOT(slotTransformsRepeatQuantize()), actionCollection(),
"repeat_quantize"); "repeat_quantize");
new KAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, TQT_TQOBJECT(this), new TDEAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsCollapseNotes()), actionCollection(), TQT_SLOT(slotTransformsCollapseNotes()), actionCollection(),
"collapse_notes"); "collapse_notes");
new KAction(i18n("&Legato"), Key_Minus, TQT_TQOBJECT(this), new TDEAction(i18n("&Legato"), Key_Minus, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsLegato()), actionCollection(), TQT_SLOT(slotTransformsLegato()), actionCollection(),
"legatoize"); "legatoize");
new KAction(ChangeVelocityCommand::getGlobalName(10), 0, new TDEAction(ChangeVelocityCommand::getGlobalName(10), 0,
Key_Up + SHIFT, TQT_TQOBJECT(this), Key_Up + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotVelocityUp()), actionCollection(), TQT_SLOT(slotVelocityUp()), actionCollection(),
"velocity_up"); "velocity_up");
new KAction(ChangeVelocityCommand::getGlobalName( -10), 0, new TDEAction(ChangeVelocityCommand::getGlobalName( -10), 0,
Key_Down + SHIFT, TQT_TQOBJECT(this), Key_Down + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotVelocityDown()), actionCollection(), TQT_SLOT(slotVelocityDown()), actionCollection(),
"velocity_down"); "velocity_down");
new KAction(i18n("Set to Current Velocity"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Set to Current Velocity"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetVelocitiesToCurrent()), actionCollection(), TQT_SLOT(slotSetVelocitiesToCurrent()), actionCollection(),
"set_to_current_velocity"); "set_to_current_velocity");
new KAction(i18n("Set Event &Velocities..."), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Set Event &Velocities..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetVelocities()), actionCollection(), TQT_SLOT(slotSetVelocities()), actionCollection(),
"set_velocities"); "set_velocities");
new KAction(i18n("Trigger Se&gment..."), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Trigger Se&gment..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTriggerSegment()), actionCollection(), TQT_SLOT(slotTriggerSegment()), actionCollection(),
"trigger_segment"); "trigger_segment");
new KAction(i18n("Remove Triggers..."), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Remove Triggers..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveTriggers()), actionCollection(), TQT_SLOT(slotRemoveTriggers()), actionCollection(),
"remove_trigger"); "remove_trigger");
new KAction(i18n("Select &All"), Key_A + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Select &All"), Key_A + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAll()), actionCollection(), TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all"); "select_all");
new KAction(i18n("&Delete"), Key_Delete, TQT_TQOBJECT(this), new TDEAction(i18n("&Delete"), Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDelete()), actionCollection(), TQT_SLOT(slotEditDelete()), actionCollection(),
"delete"); "delete");
new KAction(i18n("Cursor &Back"), 0, Key_Left, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor &Back"), 0, Key_Left, TQT_TQOBJECT(this),
TQT_SLOT(slotStepBackward()), actionCollection(), TQT_SLOT(slotStepBackward()), actionCollection(),
"cursor_back"); "cursor_back");
new KAction(i18n("Cursor &Forward"), 0, Key_Right, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor &Forward"), 0, Key_Right, TQT_TQOBJECT(this),
TQT_SLOT(slotStepForward()), actionCollection(), TQT_SLOT(slotStepForward()), actionCollection(),
"cursor_forward"); "cursor_forward");
new KAction(i18n("Cursor Ba&ck Bar"), 0, Key_Left + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor Ba&ck Bar"), 0, Key_Left + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotJumpBackward()), actionCollection(), TQT_SLOT(slotJumpBackward()), actionCollection(),
"cursor_back_bar"); "cursor_back_bar");
new KAction(i18n("Cursor For&ward Bar"), 0, Key_Right + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor For&ward Bar"), 0, Key_Right + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotJumpForward()), actionCollection(), TQT_SLOT(slotJumpForward()), actionCollection(),
"cursor_forward_bar"); "cursor_forward_bar");
new KAction(i18n("Cursor Back and Se&lect"), SHIFT + Key_Left, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor Back and Se&lect"), SHIFT + Key_Left, TQT_TQOBJECT(this),
TQT_SLOT(slotExtendSelectionBackward()), actionCollection(), TQT_SLOT(slotExtendSelectionBackward()), actionCollection(),
"extend_selection_backward"); "extend_selection_backward");
new KAction(i18n("Cursor Forward and &Select"), SHIFT + Key_Right, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor Forward and &Select"), SHIFT + Key_Right, TQT_TQOBJECT(this),
TQT_SLOT(slotExtendSelectionForward()), actionCollection(), TQT_SLOT(slotExtendSelectionForward()), actionCollection(),
"extend_selection_forward"); "extend_selection_forward");
new KAction(i18n("Cursor Back Bar and Select"), SHIFT + CTRL + Key_Left, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor Back Bar and Select"), SHIFT + CTRL + Key_Left, TQT_TQOBJECT(this),
TQT_SLOT(slotExtendSelectionBackwardBar()), actionCollection(), TQT_SLOT(slotExtendSelectionBackwardBar()), actionCollection(),
"extend_selection_backward_bar"); "extend_selection_backward_bar");
new KAction(i18n("Cursor Forward Bar and Select"), SHIFT + CTRL + Key_Right, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor Forward Bar and Select"), SHIFT + CTRL + Key_Right, TQT_TQOBJECT(this),
TQT_SLOT(slotExtendSelectionForwardBar()), actionCollection(), TQT_SLOT(slotExtendSelectionForwardBar()), actionCollection(),
"extend_selection_forward_bar"); "extend_selection_forward_bar");
new KAction(i18n("Cursor to St&art"), 0, new TDEAction(i18n("Cursor to St&art"), 0,
/* #1025717: conflicting meanings for ctrl+a - dupe with Select All /* #1025717: conflicting meanings for ctrl+a - dupe with Select All
Key_A + CTRL, */ TQT_TQOBJECT(this), Key_A + CTRL, */ TQT_TQOBJECT(this),
TQT_SLOT(slotJumpToStart()), actionCollection(), TQT_SLOT(slotJumpToStart()), actionCollection(),
"cursor_start"); "cursor_start");
new KAction(i18n("Cursor to &End"), 0, Key_E + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor to &End"), 0, Key_E + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotJumpToEnd()), actionCollection(), TQT_SLOT(slotJumpToEnd()), actionCollection(),
"cursor_end"); "cursor_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-cursor-to-pointer"))); ("transport-cursor-to-pointer")));
new KAction(i18n("Cursor to &Playback Pointer"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Cursor to &Playback Pointer"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotJumpCursorToPlayback()), actionCollection(), TQT_SLOT(slotJumpCursorToPlayback()), actionCollection(),
"cursor_to_playback_pointer"); "cursor_to_playback_pointer");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play"))); ("transport-play")));
KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this), TDEAction *play = new TDEAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
TQT_SIGNAL(play()), actionCollection(), "play"); TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play // Alternative shortcut for Play
KShortcut playShortcut = play->shortcut(); TDEShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) ); playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut); play->setShortcut(playShortcut);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop"))); ("transport-stop")));
new KAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this), new TDEAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
TQT_SIGNAL(stop()), actionCollection(), "stop"); TQT_SIGNAL(stop()), actionCollection(), "stop");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind"))); ("transport-rewind")));
new KAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this), new TDEAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlayback()), actionCollection(), TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar"); "playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd"))); ("transport-ffwd")));
new KAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this), new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlayback()), actionCollection(), TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar"); "playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end"))); ("transport-rewind-end")));
new KAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(), TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start"); "playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end"))); ("transport-ffwd-end")));
new KAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(), TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end"); "playback_pointer_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-pointer-to-cursor"))); ("transport-pointer-to-cursor")));
new KAction(i18n("Playback Pointer to &Cursor"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Playback Pointer to &Cursor"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotJumpPlaybackToCursor()), actionCollection(), TQT_SLOT(slotJumpPlaybackToCursor()), actionCollection(),
"playback_pointer_to_cursor"); "playback_pointer_to_cursor");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-solo"))); ("transport-solo")));
new KToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this), new TDEToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSolo()), actionCollection(), TQT_SLOT(slotToggleSolo()), actionCollection(),
"toggle_solo"); "toggle_solo");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-tracking"))); ("transport-tracking")));
(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(m_playTracking); "toggle_tracking"))->setChecked(m_playTracking);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic"))); ("transport-panic")));
new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this), new TDEAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this),
TQT_SIGNAL(panic()), actionCollection(), "panic"); TQT_SIGNAL(panic()), actionCollection(), "panic");
new KAction(i18n("Set Loop to Selection"), Key_Semicolon + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Set Loop to Selection"), Key_Semicolon + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotPreviewSelection()), actionCollection(), TQT_SLOT(slotPreviewSelection()), actionCollection(),
"preview_selection"); "preview_selection");
new KAction(i18n("Clear L&oop"), Key_Colon + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("Clear L&oop"), Key_Colon + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotClearLoop()), actionCollection(), TQT_SLOT(slotClearLoop()), actionCollection(),
"clear_loop"); "clear_loop");
new KAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this), new TDEAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this),
TQT_SLOT(slotClearSelection()), actionCollection(), TQT_SLOT(slotClearSelection()), actionCollection(),
"clear_selection"); "clear_selection");
// icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm")); // icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
new KAction(i18n("&Filter Selection"), "filter", Key_F + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("&Filter Selection"), "filter", Key_F + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotFilterSelection()), actionCollection(), TQT_SLOT(slotFilterSelection()), actionCollection(),
"filter_selection"); "filter_selection");
@ -876,16 +876,16 @@ void MatrixView::setupActions()
timeT d = m_snapValues[i]; timeT d = m_snapValues[i];
if (d == SnapGrid::NoSnap) { if (d == SnapGrid::NoSnap) {
new KAction(i18n("&No Snap"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("&No Snap"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSnapFromAction()), TQT_SLOT(slotSetSnapFromAction()),
actionCollection(), "snap_none"); actionCollection(), "snap_none");
} else if (d == SnapGrid::SnapToUnit) { } else if (d == SnapGrid::SnapToUnit) {
} else if (d == SnapGrid::SnapToBeat) { } else if (d == SnapGrid::SnapToBeat) {
new KAction(i18n("Snap to Bea&t"), Key_1, TQT_TQOBJECT(this), new TDEAction(i18n("Snap to Bea&t"), Key_1, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSnapFromAction()), TQT_SLOT(slotSetSnapFromAction()),
actionCollection(), "snap_beat"); actionCollection(), "snap_beat");
} else if (d == SnapGrid::SnapToBar) { } else if (d == SnapGrid::SnapToBar) {
new KAction(i18n("Snap to &Bar"), Key_5, TQT_TQOBJECT(this), new TDEAction(i18n("Snap to &Bar"), Key_5, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSnapFromAction()), TQT_SLOT(slotSetSnapFromAction()),
actionCollection(), "snap_bar"); actionCollection(), "snap_bar");
} else { } else {
@ -895,7 +895,7 @@ void MatrixView::setupActions()
TQPixmap pixmap = NotePixmapFactory::toTQPixmap TQPixmap pixmap = NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeNoteMenuPixmap(d, err)); (NotePixmapFactory::makeNoteMenuPixmap(d, err));
KShortcut cut = 0; TDEShortcut cut = 0;
if (d == crotchetDuration / 16) cut = Key_0; if (d == crotchetDuration / 16) cut = Key_0;
else if (d == crotchetDuration / 8) cut = Key_3; else if (d == crotchetDuration / 8) cut = Key_3;
else if (d == crotchetDuration / 4) cut = Key_6; else if (d == crotchetDuration / 4) cut = Key_6;
@ -905,7 +905,7 @@ void MatrixView::setupActions()
TQString actionName = TQString("snap_%1").arg(int((crotchetDuration * 4) / d)); TQString actionName = TQString("snap_%1").arg(int((crotchetDuration * 4) / d));
if (d == (crotchetDuration * 3) / 2) actionName = "snap_3"; if (d == (crotchetDuration * 3) / 2) actionName = "snap_3";
new KAction(i18n("Snap to %1").arg(label), pixmap, cut, TQT_TQOBJECT(this), new TDEAction(i18n("Snap to %1").arg(label), pixmap, cut, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSnapFromAction()), actionCollection(), TQT_SLOT(slotSetSnapFromAction()), actionCollection(),
actionName.ascii()); actionName.ascii());
} }
@ -914,16 +914,16 @@ void MatrixView::setupActions()
// //
// Settings menu // Settings menu
// //
new KAction(i18n("Show Instrument Parameters"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Show Instrument Parameters"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDockParametersBack()), TQT_SLOT(slotDockParametersBack()),
actionCollection(), actionCollection(),
"show_inst_parameters"); "show_inst_parameters");
new KToggleAction(i18n("Show Ch&ord Name Ruler"), 0, TQT_TQOBJECT(this), new TDEToggleAction(i18n("Show Ch&ord Name Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleChordsRuler()), TQT_SLOT(slotToggleChordsRuler()),
actionCollection(), "show_chords_ruler"); actionCollection(), "show_chords_ruler");
new KToggleAction(i18n("Show &Tempo Ruler"), 0, TQT_TQOBJECT(this), new TDEToggleAction(i18n("Show &Tempo Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTempoRuler()), TQT_SLOT(slotToggleTempoRuler()),
actionCollection(), "show_tempo_ruler"); actionCollection(), "show_tempo_ruler");
@ -938,7 +938,7 @@ void MatrixView::setupActions()
bool bool
MatrixView::isInChordMode() MatrixView::isInChordMode()
{ {
return ((KToggleAction *)actionCollection()->action("chord_mode"))-> return ((TDEToggleAction *)actionCollection()->action("chord_mode"))->
isChecked(); isChecked();
} }
@ -2107,7 +2107,7 @@ MatrixView::initActionsToolbar()
{ {
MATRIX_DEBUG << "MatrixView::initActionsToolbar" << endl; MATRIX_DEBUG << "MatrixView::initActionsToolbar" << endl;
KToolBar *actionsToolbar = toolBar("Actions Toolbar"); TDEToolBar *actionsToolbar = toolBar("Actions Toolbar");
if (!actionsToolbar) { if (!actionsToolbar) {
MATRIX_DEBUG << "MatrixView::initActionsToolbar - " MATRIX_DEBUG << "MatrixView::initActionsToolbar - "
@ -2192,7 +2192,7 @@ MatrixView::initZoomToolbar()
{ {
MATRIX_DEBUG << "MatrixView::initZoomToolbar" << endl; MATRIX_DEBUG << "MatrixView::initZoomToolbar" << endl;
KToolBar *zoomToolbar = toolBar("Zoom Toolbar"); TDEToolBar *zoomToolbar = toolBar("Zoom Toolbar");
if (!zoomToolbar) { if (!zoomToolbar) {
MATRIX_DEBUG << "MatrixView::initZoomToolbar - " MATRIX_DEBUG << "MatrixView::initZoomToolbar - "
@ -2828,7 +2828,7 @@ MatrixView::slotInsertableNoteEventReceived(int pitch, int velocity, bool noteOn
return ; return ;
} }
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step")); (actionCollection()->action("toggle_step_by_step"));
if (!action) { if (!action) {
MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl; MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
@ -2914,7 +2914,7 @@ MatrixView::slotInsertableNoteOffReceived(int pitch, int velocity)
void void
MatrixView::slotToggleStepByStep() MatrixView::slotToggleStepByStep()
{ {
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step")); (actionCollection()->action("toggle_step_by_step"));
if (!action) { if (!action) {
MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl; MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
@ -2942,7 +2942,7 @@ MatrixView::slotUpdateInsertModeStatus()
void void
MatrixView::slotStepByStepTargetRequested(TQObject *obj) MatrixView::slotStepByStepTargetRequested(TQObject *obj)
{ {
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step")); (actionCollection()->action("toggle_step_by_step"));
if (!action) { if (!action) {
MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl; MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl;

@ -50,18 +50,18 @@ ClefInserter::ClefInserter(NotationView* view)
{ {
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("select"))); makeToolbarPixmap("select")));
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet"))); makeToolbarPixmap("crotchet")));
new KAction(i18n("Switch to Inserting Notes"), icon, 0, this, new TDEAction(i18n("Switch to Inserting Notes"), icon, 0, this,
TQT_SLOT(slotNotesSelected()), actionCollection(), TQT_SLOT(slotNotesSelected()), actionCollection(),
"notes"); "notes");

@ -56,11 +56,11 @@ GuitarChordInserter::GuitarChordInserter(NotationView* view)
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("select"))); makeToolbarPixmap("select")));
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
@ -68,7 +68,7 @@ GuitarChordInserter::GuitarChordInserter(NotationView* view)
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet"))); makeToolbarPixmap("crotchet")));
new KAction(i18n("Switch to Inserting Notes"), icon, 0, this, new TDEAction(i18n("Switch to Inserting Notes"), icon, 0, this,
TQT_SLOT(slotNoteSelected()), actionCollection(), TQT_SLOT(slotNoteSelected()), actionCollection(),
"notes"); "notes");

@ -51,20 +51,20 @@ NotationEraser::NotationEraser(NotationView* view)
config->setGroup(NotationViewConfigGroup); config->setGroup(NotationViewConfigGroup);
m_collapseRest = config->readBoolEntry("collapse", false); m_collapseRest = config->readBoolEntry("collapse", false);
new KToggleAction(i18n("Collapse rests after erase"), 0, this, new TDEToggleAction(i18n("Collapse rests after erase"), 0, this,
TQT_SLOT(slotToggleRestCollapse()), actionCollection(), TQT_SLOT(slotToggleRestCollapse()), actionCollection(),
"toggle_rest_collapse"); "toggle_rest_collapse");
TQIconSet icon TQIconSet icon
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet"))); makeToolbarPixmap("crotchet")));
new KAction(i18n("Switch to Insert Tool"), icon, 0, this, new TDEAction(i18n("Switch to Insert Tool"), icon, 0, this,
TQT_SLOT(slotInsertSelected()), actionCollection(), TQT_SLOT(slotInsertSelected()), actionCollection(),
"insert"); "insert");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("select"))); makeToolbarPixmap("select")));
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");

@ -80,58 +80,58 @@ NotationSelector::NotationSelector(NotationView* view)
TQIconSet icon TQIconSet icon
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet"))); makeToolbarPixmap("crotchet")));
new KToggleAction(i18n("Switch to Insert Tool"), icon, 0, this, new TDEToggleAction(i18n("Switch to Insert Tool"), icon, 0, this,
TQT_SLOT(slotInsertSelected()), actionCollection(), TQT_SLOT(slotInsertSelected()), actionCollection(),
"insert"); "insert");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
// (this crashed, and it might be superfluous with ^N anyway, so I'm // (this crashed, and it might be superfluous with ^N anyway, so I'm
// commenting it out, but leaving it here in case I change my mind about // commenting it out, but leaving it here in case I change my mind about
// fooling with it.) (DMM) // fooling with it.) (DMM)
// new KAction(i18n("Normalize Rests"), 0, 0, this, // new TDEAction(i18n("Normalize Rests"), 0, 0, this,
// TQT_SLOT(slotCollapseRests()), actionCollection(), // TQT_SLOT(slotCollapseRests()), actionCollection(),
// "collapse_rests"); // "collapse_rests");
new KAction(i18n("Collapse Rests"), 0, 0, this, new TDEAction(i18n("Collapse Rests"), 0, 0, this,
TQT_SLOT(slotCollapseRestsHard()), actionCollection(), TQT_SLOT(slotCollapseRestsHard()), actionCollection(),
"collapse_rests_aggressively"); "collapse_rests_aggressively");
new KAction(i18n("Respell as Flat"), 0, 0, this, new TDEAction(i18n("Respell as Flat"), 0, 0, this,
TQT_SLOT(slotRespellFlat()), actionCollection(), TQT_SLOT(slotRespellFlat()), actionCollection(),
"respell_flat"); "respell_flat");
new KAction(i18n("Respell as Sharp"), 0, 0, this, new TDEAction(i18n("Respell as Sharp"), 0, 0, this,
TQT_SLOT(slotRespellSharp()), actionCollection(), TQT_SLOT(slotRespellSharp()), actionCollection(),
"respell_sharp"); "respell_sharp");
new KAction(i18n("Respell as Natural"), 0, 0, this, new TDEAction(i18n("Respell as Natural"), 0, 0, this,
TQT_SLOT(slotRespellNatural()), actionCollection(), TQT_SLOT(slotRespellNatural()), actionCollection(),
"respell_natural"); "respell_natural");
new KAction(i18n("Collapse Notes"), 0, 0, this, new TDEAction(i18n("Collapse Notes"), 0, 0, this,
TQT_SLOT(slotCollapseNotes()), actionCollection(), TQT_SLOT(slotCollapseNotes()), actionCollection(),
"collapse_notes"); "collapse_notes");
new KAction(i18n("Interpret"), 0, 0, this, new TDEAction(i18n("Interpret"), 0, 0, this,
TQT_SLOT(slotInterpret()), actionCollection(), TQT_SLOT(slotInterpret()), actionCollection(),
"interpret"); "interpret");
new KAction(i18n("Move to Staff Above"), 0, 0, this, new TDEAction(i18n("Move to Staff Above"), 0, 0, this,
TQT_SLOT(slotStaffAbove()), actionCollection(), TQT_SLOT(slotStaffAbove()), actionCollection(),
"move_events_up_staff"); "move_events_up_staff");
new KAction(i18n("Move to Staff Below"), 0, 0, this, new TDEAction(i18n("Move to Staff Below"), 0, 0, this,
TQT_SLOT(slotStaffBelow()), actionCollection(), TQT_SLOT(slotStaffBelow()), actionCollection(),
"move_events_down_staff"); "move_events_down_staff");
new KAction(i18n("Make Invisible"), 0, 0, this, new TDEAction(i18n("Make Invisible"), 0, 0, this,
TQT_SLOT(slotMakeInvisible()), actionCollection(), TQT_SLOT(slotMakeInvisible()), actionCollection(),
"make_invisible"); "make_invisible");
new KAction(i18n("Make Visible"), 0, 0, this, new TDEAction(i18n("Make Visible"), 0, 0, this,
TQT_SLOT(slotMakeVisible()), actionCollection(), TQT_SLOT(slotMakeVisible()), actionCollection(),
"make_visible"); "make_visible");

File diff suppressed because it is too large Load Diff

@ -54,8 +54,8 @@ class TQCanvasItem;
class TQCanvas; class TQCanvas;
class KProgress; class KProgress;
class KComboBox; class KComboBox;
class KActionMenu; class TDEActionMenu;
class KAction; class TDEAction;
namespace Rosegarden namespace Rosegarden
@ -1083,7 +1083,7 @@ protected:
bool m_annotationsVisible; bool m_annotationsVisible;
bool m_lilyPondDirectivesVisible; bool m_lilyPondDirectivesVisible;
KAction* m_selectDefaultNote; TDEAction* m_selectDefaultNote;
typedef TQMap<TQString, NoteActionData *> NoteActionDataMap; typedef TQMap<TQString, NoteActionData *> NoteActionDataMap;
static NoteActionDataMap* m_noteActionDataMap; static NoteActionDataMap* m_noteActionDataMap;
@ -1097,7 +1097,7 @@ protected:
KComboBox *m_fontCombo; KComboBox *m_fontCombo;
KComboBox *m_fontSizeCombo; KComboBox *m_fontSizeCombo;
KComboBox *m_spacingCombo; KComboBox *m_spacingCombo;
KActionMenu *m_fontSizeActionMenu; TDEActionMenu *m_fontSizeActionMenu;
ScrollBoxDialog *m_pannerDialog; ScrollBoxDialog *m_pannerDialog;
TQTimer *m_renderTimer; TQTimer *m_renderTimer;
@ -1122,7 +1122,7 @@ protected:
HeadersGroup * m_headersGroup; HeadersGroup * m_headersGroup;
TQFrame * m_headersTopFrame; TQFrame * m_headersTopFrame;
KAction * m_showHeadersMenuEntry; TDEAction * m_showHeadersMenuEntry;
}; };

@ -87,7 +87,7 @@ NoteFontViewer::NoteFontViewer(TQWidget *parent, TQString noteFontName,
i18n("Note Font Viewer: %1").arg(noteFontName), Close) i18n("Note Font Viewer: %1").arg(noteFontName), Close)
{ {
TQVBox *box = makeVBoxMainWidget(); TQVBox *box = makeVBoxMainWidget();
KToolBar* controls = new KToolBar(box); TDEToolBar* controls = new TDEToolBar(box);
controls->setMargin(3); controls->setMargin(3);
(void) new TQLabel(i18n(" Component: "), controls); (void) new TQLabel(i18n(" Component: "), controls);

@ -78,8 +78,8 @@ NoteInserter::NoteInserter(NotationView* view)
m_defaultStyle = qstrtostr(config->readEntry m_defaultStyle = qstrtostr(config->readEntry
("style", strtoqstr(NoteStyleFactory::DefaultStyle))); ("style", strtoqstr(NoteStyleFactory::DefaultStyle)));
KToggleAction *autoBeamAction = TDEToggleAction *autoBeamAction =
new KToggleAction(i18n("Auto-Beam when appropriate"), 0, this, new TDEToggleAction(i18n("Auto-Beam when appropriate"), 0, this,
TQT_SLOT(slotToggleAutoBeam()), actionCollection(), TQT_SLOT(slotToggleAutoBeam()), actionCollection(),
"toggle_auto_beam"); "toggle_auto_beam");
autoBeamAction->setChecked(m_autoBeam); autoBeamAction->setChecked(m_autoBeam);
@ -89,7 +89,7 @@ NoteInserter::NoteInserter(NotationView* view)
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap(m_actionsAccidental[i][3]))); makeToolbarPixmap(m_actionsAccidental[i][3])));
KRadioAction* noteAction = new KRadioAction(i18n(m_actionsAccidental[i][0]), TDERadioAction* noteAction = new TDERadioAction(i18n(m_actionsAccidental[i][0]),
icon, 0, this, icon, 0, this,
m_actionsAccidental[i][1], m_actionsAccidental[i][1],
actionCollection(), actionCollection(),
@ -100,24 +100,24 @@ NoteInserter::NoteInserter(NotationView* view)
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("dotted-crotchet"))); makeToolbarPixmap("dotted-crotchet")));
new KToggleAction(i18n("Dotted note"), icon, 0, this, new TDEToggleAction(i18n("Dotted note"), icon, 0, this,
TQT_SLOT(slotToggleDot()), actionCollection(), TQT_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot"); "toggle_dot");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("select"))); makeToolbarPixmap("select")));
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("rest-crotchet"))); makeToolbarPixmap("rest-crotchet")));
new KAction(i18n("Switch to Inserting Rests"), icon, 0, this, new TDEAction(i18n("Switch to Inserting Rests"), icon, 0, this,
TQT_SLOT(slotRestsSelected()), actionCollection(), TQT_SLOT(slotRestsSelected()), actionCollection(),
"rests"); "rests");
@ -606,7 +606,7 @@ void NoteInserter::slotSetDots(unsigned int dots)
{ {
m_noteDots = dots; m_noteDots = dots;
KToggleAction *dotsAction = dynamic_cast<KToggleAction *> TDEToggleAction *dotsAction = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_dot")); (actionCollection()->action("toggle_dot"));
if (dotsAction) if (dotsAction)
dotsAction->setChecked(dots > 0); dotsAction->setChecked(dots > 0);
@ -662,7 +662,7 @@ void NoteInserter::slotToggleDot()
Note note(m_noteType, m_noteDots); Note note(m_noteType, m_noteDots);
TQString actionName(NotationStrings::getReferenceName(note)); TQString actionName(NotationStrings::getReferenceName(note));
actionName.replace(TQRegExp("-"), "_"); actionName.replace(TQRegExp("-"), "_");
KAction *action = m_parentView->actionCollection()->action(actionName.ascii()); TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii());
if (!action) { if (!action) {
std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl; std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl;
} else { } else {
@ -690,7 +690,7 @@ void NoteInserter::slotRestsSelected()
Note note(m_noteType, m_noteDots); Note note(m_noteType, m_noteDots);
TQString actionName(NotationStrings::getReferenceName(note, true)); TQString actionName(NotationStrings::getReferenceName(note, true));
actionName.replace(TQRegExp("-"), "_"); actionName.replace(TQRegExp("-"), "_");
KAction *action = m_parentView->actionCollection()->action(actionName.ascii()); TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii());
if (!action) { if (!action) {
std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl; std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl;
} else { } else {

@ -59,24 +59,24 @@ RestInserter::RestInserter(NotationView* view)
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("dotted-rest-crotchet"))); makeToolbarPixmap("dotted-rest-crotchet")));
new KToggleAction(i18n("Dotted rest"), icon, 0, this, new TDEToggleAction(i18n("Dotted rest"), icon, 0, this,
TQT_SLOT(slotToggleDot()), actionCollection(), TQT_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot"); "toggle_dot");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("select"))); makeToolbarPixmap("select")));
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet"))); makeToolbarPixmap("crotchet")));
new KAction(i18n("Switch to Inserting Notes"), icon, 0, this, new TDEAction(i18n("Switch to Inserting Notes"), icon, 0, this,
TQT_SLOT(slotNotesSelected()), actionCollection(), TQT_SLOT(slotNotesSelected()), actionCollection(),
"notes"); "notes");
@ -128,7 +128,7 @@ void RestInserter::slotToggleDot()
Note note(m_noteType, m_noteDots); Note note(m_noteType, m_noteDots);
TQString actionName(NotationStrings::getReferenceName(note, true)); TQString actionName(NotationStrings::getReferenceName(note, true));
actionName.replace(TQRegExp("-"), "_"); actionName.replace(TQRegExp("-"), "_");
KAction *action = m_parentView->actionCollection()->action(actionName.ascii()); TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii());
if (!action) { if (!action) {
std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl; std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl;
} else { } else {

@ -54,18 +54,18 @@ TextInserter::TextInserter(NotationView* view)
{ {
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("select"))); makeToolbarPixmap("select")));
new KAction(i18n("Switch to Select Tool"), icon, 0, this, new TDEAction(i18n("Switch to Select Tool"), icon, 0, this,
TQT_SLOT(slotSelectSelected()), actionCollection(), TQT_SLOT(slotSelectSelected()), actionCollection(),
"select"); "select");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
TQT_SLOT(slotEraseSelected()), actionCollection(), TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase"); "erase");
icon = TQIconSet icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: (NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet"))); makeToolbarPixmap("crotchet")));
new KAction(i18n("Switch to Inserting Notes"), icon, 0, this, new TDEAction(i18n("Switch to Inserting Notes"), icon, 0, this,
TQT_SLOT(slotNotesSelected()), actionCollection(), TQT_SLOT(slotNotesSelected()), actionCollection(),
"notes"); "notes");

@ -75,7 +75,7 @@ const TQString notShowing(i18n("<not showing>"));
ControlEditorDialog::ControlEditorDialog(TQWidget *parent, ControlEditorDialog::ControlEditorDialog(TQWidget *parent,
RosegardenGUIDoc *doc, RosegardenGUIDoc *doc,
DeviceId device): DeviceId device):
KMainWindow(parent, "controleditordialog"), TDEMainWindow(parent, "controleditordialog"),
m_studio(&doc->getStudio()), m_studio(&doc->getStudio()),
m_doc(doc), m_doc(doc),
m_device(device), m_device(device),
@ -100,7 +100,7 @@ ControlEditorDialog::ControlEditorDialog(TQWidget *parent,
arg(device), mainFrame); arg(device), mainFrame);
new TQLabel("", mainFrame); new TQLabel("", mainFrame);
m_listView = new KListView(mainFrame); m_listView = new TDEListView(mainFrame);
m_listView->addColumn(i18n("Control Event name ")); m_listView->addColumn(i18n("Control Event name "));
m_listView->addColumn(i18n("Control Event type ")); m_listView->addColumn(i18n("Control Event type "));
m_listView->addColumn(i18n("Control Event value ")); m_listView->addColumn(i18n("Control Event value "));
@ -337,7 +337,7 @@ ControlEditorDialog::slotClose()
void void
ControlEditorDialog::setupActions() ControlEditorDialog::setupActions()
{ {
KAction* close = KStdAction::close(TQT_TQOBJECT(this), TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()), TQT_SLOT(slotClose()),
actionCollection()); actionCollection());
@ -345,15 +345,15 @@ ControlEditorDialog::setupActions()
connect(m_closeButton, TQT_SIGNAL(released()), this, TQT_SLOT(slotClose())); connect(m_closeButton, TQT_SIGNAL(released()), this, TQT_SLOT(slotClose()));
// some adjustments // some adjustments
new KToolBarPopupAction(i18n("Und&o"), new TDEToolBarPopupAction(i18n("Und&o"),
"undo", "undo",
KStdAccel::key(KStdAccel::Undo), TDEStdAccel::key(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::key(KStdAccel::Redo), TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(), actionCollection(),
KStdAction::stdName(KStdAction::Redo)); KStdAction::stdName(KStdAction::Redo));
@ -428,7 +428,7 @@ void
ControlEditorDialog::closeEvent(TQCloseEvent *e) ControlEditorDialog::closeEvent(TQCloseEvent *e)
{ {
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
void void

@ -35,7 +35,7 @@ class TQWidget;
class TQPushButton; class TQPushButton;
class TQListViewItem; class TQListViewItem;
class TQCloseEvent; class TQCloseEvent;
class KListView; class TDEListView;
class KCommand; class KCommand;
@ -47,7 +47,7 @@ class RosegardenGUIDoc;
class MultiViewCommandHistory; class MultiViewCommandHistory;
class ControlEditorDialog : public KMainWindow class ControlEditorDialog : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -109,7 +109,7 @@ protected:
TQPushButton *m_addButton; TQPushButton *m_addButton;
TQPushButton *m_deleteButton; TQPushButton *m_deleteButton;
KListView *m_listView; TDEListView *m_listView;
bool m_modified; bool m_modified;

@ -34,7 +34,7 @@ namespace Rosegarden
{ {
class ControlParameterItem : public KListViewItem class ControlParameterItem : public TDEListViewItem
{ {
public: public:
ControlParameterItem(int id, ControlParameterItem(int id,
@ -48,7 +48,7 @@ public:
TQString str7, TQString str7,
TQString str8, TQString str8,
TQString str9): TQString str9):
KListViewItem(parent, str1, str2, str3, str4, str5, str6, str7, str8), TDEListViewItem(parent, str1, str2, str3, str4, str5, str6, str7, str8),
m_id(id) { setText(8, str9); } m_id(id) { setText(8, str9); }
int getId() const { return m_id; } int getId() const { return m_id; }

@ -73,7 +73,7 @@ namespace Rosegarden
MarkerEditor::MarkerEditor(TQWidget *parent, MarkerEditor::MarkerEditor(TQWidget *parent,
RosegardenGUIDoc *doc): RosegardenGUIDoc *doc):
KMainWindow(parent, "markereditordialog"), TDEMainWindow(parent, "markereditordialog"),
m_doc(doc), m_doc(doc),
m_modified(false) m_modified(false)
{ {
@ -82,7 +82,7 @@ MarkerEditor::MarkerEditor(TQWidget *parent,
setCaption(i18n("Manage Markers")); setCaption(i18n("Manage Markers"));
m_listView = new KListView(mainFrame); m_listView = new TDEListView(mainFrame);
m_listView->addColumn(i18n("Marker time ")); m_listView->addColumn(i18n("Marker time "));
m_listView->addColumn(i18n("Marker text ")); m_listView->addColumn(i18n("Marker text "));
m_listView->addColumn(i18n("Marker description ")); m_listView->addColumn(i18n("Marker description "));
@ -367,7 +367,7 @@ MarkerEditor::slotClose()
void void
MarkerEditor::setupActions() MarkerEditor::setupActions()
{ {
KAction* close = KStdAction::close(TQT_TQOBJECT(this), TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()), TQT_SLOT(slotClose()),
actionCollection()); actionCollection());
@ -375,15 +375,15 @@ MarkerEditor::setupActions()
connect(m_closeButton, TQT_SIGNAL(released()), this, TQT_SLOT(slotClose())); connect(m_closeButton, TQT_SIGNAL(released()), this, TQT_SLOT(slotClose()));
// some adjustments // some adjustments
new KToolBarPopupAction(i18n("Und&o"), new TDEToolBarPopupAction(i18n("Und&o"),
"undo", "undo",
KStdAccel::key(KStdAccel::Undo), TDEStdAccel::key(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::key(KStdAccel::Redo), TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(), actionCollection(),
KStdAction::stdName(KStdAction::Redo)); KStdAction::stdName(KStdAction::Redo));
@ -391,12 +391,12 @@ MarkerEditor::setupActions()
kapp->config()->setGroup(MarkerEditorConfigGroup); kapp->config()->setGroup(MarkerEditorConfigGroup);
int timeMode = kapp->config()->readNumEntry("timemode", 0); int timeMode = kapp->config()->readNumEntry("timemode", 0);
KRadioAction *action; TDERadioAction *action;
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/time-musical.png"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/time-musical.png");
TQIconSet icon(pixmap); TQIconSet icon(pixmap);
action = new KRadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMusicalTime()), TQT_SLOT(slotMusicalTime()),
actionCollection(), "time_musical"); actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -406,7 +406,7 @@ MarkerEditor::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png"); pixmap.load(pixmapDir + "/toolbar/time-real.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRealTime()), TQT_SLOT(slotRealTime()),
actionCollection(), "time_real"); actionCollection(), "time_real");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -416,7 +416,7 @@ MarkerEditor::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png"); pixmap.load(pixmapDir + "/toolbar/time-raw.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRawTime()), TQT_SLOT(slotRawTime()),
actionCollection(), "time_raw"); actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -502,7 +502,7 @@ void
MarkerEditor::closeEvent(TQCloseEvent *e) MarkerEditor::closeEvent(TQCloseEvent *e)
{ {
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
void void

@ -37,7 +37,7 @@ class TQListViewItem;
class TQLabel; class TQLabel;
class TQCloseEvent; class TQCloseEvent;
class TQAccel; class TQAccel;
class KListView; class TDEListView;
class KCommand; class KCommand;
@ -48,7 +48,7 @@ class RosegardenGUIDoc;
class MultiViewCommandHistory; class MultiViewCommandHistory;
class MarkerEditor : public KMainWindow class MarkerEditor : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -112,7 +112,7 @@ protected:
TQPushButton *m_deleteButton; TQPushButton *m_deleteButton;
TQPushButton *m_deleteAllButton; TQPushButton *m_deleteAllButton;
KListView *m_listView; TDEListView *m_listView;
bool m_modified; bool m_modified;

@ -32,7 +32,7 @@ MarkerEditorViewItem::compare(TQListViewItem * i, int col, bool ascending) const
MarkerEditorViewItem *ei = MarkerEditorViewItem *ei =
dynamic_cast<MarkerEditorViewItem *>(i); dynamic_cast<MarkerEditorViewItem *>(i);
if (!ei) return KListViewItem::compare(i, col, ascending); if (!ei) return TDEListViewItem::compare(i, col, ascending);
// Raw time sorting on time column // Raw time sorting on time column
// //
@ -43,7 +43,7 @@ MarkerEditorViewItem::compare(TQListViewItem * i, int col, bool ascending) const
else return 0; else return 0;
} else { } else {
return KListViewItem::compare(i, col, ascending); return TDEListViewItem::compare(i, col, ascending);
} }
} }

@ -32,7 +32,7 @@
namespace Rosegarden { namespace Rosegarden {
class MarkerEditorViewItem : public KListViewItem class MarkerEditorViewItem : public TDEListViewItem
{ {
public: public:
MarkerEditorViewItem(TQListView * parent, int id, MarkerEditorViewItem(TQListView * parent, int id,
@ -44,7 +44,7 @@ public:
TQString label6 = TQString(), TQString label6 = TQString(),
TQString label7 = TQString(), TQString label7 = TQString(),
TQString label8 = TQString()): TQString label8 = TQString()):
KListViewItem(parent, label1, label2, label3, label4, TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8), label5, label6, label7, label8),
m_rawTime(0), m_fake(false), m_id(id) { ; } m_rawTime(0), m_fake(false), m_id(id) { ; }

@ -30,7 +30,7 @@
namespace Rosegarden { namespace Rosegarden {
PlayListView::PlayListView(TQWidget *parent, const char *name) PlayListView::PlayListView(TQWidget *parent, const char *name)
: KListView(parent, name) : TDEListView(parent, name)
{ {
addColumn(i18n("Title")); addColumn(i18n("Title"));
addColumn(i18n("File name")); addColumn(i18n("File name"));
@ -48,7 +48,7 @@ PlayListView::PlayListView(TQWidget *parent, const char *name)
bool PlayListView::acceptDrag(TQDropEvent* e) const bool PlayListView::acceptDrag(TQDropEvent* e) const
{ {
return TQUriDrag::canDecode(e) || KListView::acceptDrag(e); return TQUriDrag::canDecode(e) || TDEListView::acceptDrag(e);
} }

@ -29,7 +29,7 @@
namespace Rosegarden { namespace Rosegarden {
class PlayListView : public KListView class PlayListView : public TDEListView
{ {
public: public:
PlayListView(TQWidget *parent=0, const char *name=0); PlayListView(TQWidget *parent=0, const char *name=0);

@ -26,14 +26,14 @@
namespace Rosegarden { namespace Rosegarden {
PlayListViewItem::PlayListViewItem(KListView* parent, KURL kurl) PlayListViewItem::PlayListViewItem(TDEListView* parent, KURL kurl)
: KListViewItem(parent, kurl.fileName(), kurl.prettyURL()), : TDEListViewItem(parent, kurl.fileName(), kurl.prettyURL()),
m_kurl(kurl) m_kurl(kurl)
{ {
} }
PlayListViewItem::PlayListViewItem(KListView* parent, TQListViewItem* after, KURL kurl) PlayListViewItem::PlayListViewItem(TDEListView* parent, TQListViewItem* after, KURL kurl)
: KListViewItem(parent, after, kurl.fileName(), kurl.prettyURL()), : TDEListViewItem(parent, after, kurl.fileName(), kurl.prettyURL()),
m_kurl(kurl) m_kurl(kurl)
{ {
} }

@ -30,11 +30,11 @@
namespace Rosegarden { namespace Rosegarden {
class PlayListViewItem : public KListViewItem class PlayListViewItem : public TDEListViewItem
{ {
public: public:
PlayListViewItem(KListView* parent, KURL); PlayListViewItem(TDEListView* parent, KURL);
PlayListViewItem(KListView* parent, TQListViewItem*, KURL); PlayListViewItem(TDEListView* parent, TQListViewItem*, KURL);
const KURL& getURL() { return m_kurl; } const KURL& getURL() { return m_kurl; }

@ -75,7 +75,7 @@ namespace Rosegarden
TriggerSegmentManager::TriggerSegmentManager(TQWidget *parent, TriggerSegmentManager::TriggerSegmentManager(TQWidget *parent,
RosegardenGUIDoc *doc): RosegardenGUIDoc *doc):
KMainWindow(parent, "triggereditordialog"), TDEMainWindow(parent, "triggereditordialog"),
m_doc(doc), m_doc(doc),
m_modified(false) m_modified(false)
{ {
@ -84,7 +84,7 @@ TriggerSegmentManager::TriggerSegmentManager(TQWidget *parent,
setCaption(i18n("Manage Triggered Segments")); setCaption(i18n("Manage Triggered Segments"));
m_listView = new KListView(mainFrame); m_listView = new TDEListView(mainFrame);
m_listView->addColumn("Index"); m_listView->addColumn("Index");
m_listView->addColumn(i18n("ID")); m_listView->addColumn(i18n("ID"));
m_listView->addColumn(i18n("Label")); m_listView->addColumn(i18n("Label"));
@ -375,7 +375,7 @@ TriggerSegmentManager::slotClose()
void void
TriggerSegmentManager::setupActions() TriggerSegmentManager::setupActions()
{ {
KAction* close = KStdAction::close(TQT_TQOBJECT(this), TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()), TQT_SLOT(slotClose()),
actionCollection()); actionCollection());
@ -385,31 +385,31 @@ TriggerSegmentManager::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
// some adjustments // some adjustments
new KToolBarPopupAction(i18n("Und&o"), new TDEToolBarPopupAction(i18n("Und&o"),
"undo", "undo",
KStdAccel::key(KStdAccel::Undo), TDEStdAccel::key(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::key(KStdAccel::Redo), TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(), actionCollection(),
KStdAction::stdName(KStdAction::Redo)); KStdAction::stdName(KStdAction::Redo));
new KAction(i18n("Pa&ste as New Triggered Segment"), CTRL + SHIFT + Key_V, TQT_TQOBJECT(this), new TDEAction(i18n("Pa&ste as New Triggered Segment"), CTRL + SHIFT + Key_V, TQT_TQOBJECT(this),
TQT_SLOT(slotPasteAsNew()), actionCollection(), TQT_SLOT(slotPasteAsNew()), actionCollection(),
"paste_to_trigger_segment"); "paste_to_trigger_segment");
kapp->config()->setGroup(TriggerManagerConfigGroup); kapp->config()->setGroup(TriggerManagerConfigGroup);
int timeMode = kapp->config()->readNumEntry("timemode", 0); int timeMode = kapp->config()->readNumEntry("timemode", 0);
KRadioAction *action; TDERadioAction *action;
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/time-musical.png"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/time-musical.png");
TQIconSet icon(pixmap); TQIconSet icon(pixmap);
action = new KRadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMusicalTime()), TQT_SLOT(slotMusicalTime()),
actionCollection(), "time_musical"); actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -419,7 +419,7 @@ TriggerSegmentManager::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png"); pixmap.load(pixmapDir + "/toolbar/time-real.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRealTime()), TQT_SLOT(slotRealTime()),
actionCollection(), "time_real"); actionCollection(), "time_real");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -429,7 +429,7 @@ TriggerSegmentManager::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png"); pixmap.load(pixmapDir + "/toolbar/time-raw.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRawTime()), TQT_SLOT(slotRawTime()),
actionCollection(), "time_raw"); actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -490,7 +490,7 @@ void
TriggerSegmentManager::closeEvent(TQCloseEvent *e) TriggerSegmentManager::closeEvent(TQCloseEvent *e)
{ {
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
void void

@ -36,7 +36,7 @@ class TQPushButton;
class TQListViewItem; class TQListViewItem;
class TQCloseEvent; class TQCloseEvent;
class TQAccel; class TQAccel;
class KListView; class TDEListView;
class KCommand; class KCommand;
@ -47,7 +47,7 @@ class RosegardenGUIDoc;
class MultiViewCommandHistory; class MultiViewCommandHistory;
class TriggerSegmentManager : public KMainWindow class TriggerSegmentManager : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -104,7 +104,7 @@ protected:
TQPushButton *m_deleteButton; TQPushButton *m_deleteButton;
TQPushButton *m_deleteAllButton; TQPushButton *m_deleteAllButton;
KListView *m_listView; TDEListView *m_listView;
bool m_modified; bool m_modified;

@ -42,7 +42,7 @@ namespace Rosegarden
{ {
SegmentTool::SegmentTool(CompositionView* canvas, RosegardenGUIDoc *doc) SegmentTool::SegmentTool(CompositionView* canvas, RosegardenGUIDoc *doc)
: BaseTool("segment_tool_menu", dynamic_cast<KMainWindow*>(doc->parent())->factory(), TQT_TQOBJECT(canvas)), : BaseTool("segment_tool_menu", dynamic_cast<TDEMainWindow*>(doc->parent())->factory(), TQT_TQOBJECT(canvas)),
m_canvas(canvas), m_canvas(canvas),
m_doc(doc), m_doc(doc),
m_changeMade(false) m_changeMade(false)

@ -33,7 +33,7 @@ namespace Rosegarden {
class Composition; class Composition;
class TempoListItem : public KListViewItem class TempoListItem : public TDEListViewItem
{ {
public: public:
enum Type { TimeSignature, Tempo }; enum Type { TimeSignature, Tempo };
@ -42,12 +42,12 @@ public:
Type type, Type type,
timeT time, timeT time,
int index, int index,
KListView *parent, TDEListView *parent,
TQString label1, TQString label1,
TQString label2, TQString label2,
TQString label3, TQString label3,
TQString label4 = TQString()) : TQString label4 = TQString()) :
KListViewItem(parent, label1, label2, label3, label4), TDEListViewItem(parent, label1, label2, label3, label4),
m_composition(composition), m_composition(composition),
m_type(type), m_type(type),
m_time(time), m_time(time),

@ -97,7 +97,7 @@ TempoView::TempoView(RosegardenGUIDoc *doc, TQWidget *parent, timeT openTime):
connect(m_filterGroup, TQT_SIGNAL(released(int)), connect(m_filterGroup, TQT_SIGNAL(released(int)),
TQT_SLOT(slotModifyFilter(int))); TQT_SLOT(slotModifyFilter(int)));
m_list = new KListView(getCentralWidget()); m_list = new TDEListView(getCentralWidget());
m_list->setItemsRenameable(true); m_list->setItemsRenameable(true);
m_grid->addWidget(m_list, 2, 1); m_grid->addWidget(m_list, 2, 1);
@ -578,48 +578,48 @@ TempoView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/event-insert-tempo.png")); TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/event-insert-tempo.png"));
new KAction(AddTempoChangeCommand::getGlobalName(), icon, Key_I, TQT_TQOBJECT(this), new TDEAction(AddTempoChangeCommand::getGlobalName(), icon, Key_I, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInsertTempo()), actionCollection(), TQT_SLOT(slotEditInsertTempo()), actionCollection(),
"insert_tempo"); "insert_tempo");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-insert-timesig.png"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-insert-timesig.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(AddTimeSignatureCommand::getGlobalName(), icon, Key_G, TQT_TQOBJECT(this), new TDEAction(AddTimeSignatureCommand::getGlobalName(), icon, Key_G, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInsertTimeSignature()), actionCollection(), TQT_SLOT(slotEditInsertTimeSignature()), actionCollection(),
"insert_timesig"); "insert_timesig");
pixmap.load(pixmapDir + "/toolbar/event-delete.png"); pixmap.load(pixmapDir + "/toolbar/event-delete.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("&Delete"), icon, Key_Delete, TQT_TQOBJECT(this), new TDEAction(i18n("&Delete"), icon, Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDelete()), actionCollection(), TQT_SLOT(slotEditDelete()), actionCollection(),
"delete"); "delete");
pixmap.load(pixmapDir + "/toolbar/event-edit.png"); pixmap.load(pixmapDir + "/toolbar/event-edit.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
new KAction(i18n("&Edit Item"), icon, Key_E, TQT_TQOBJECT(this), new TDEAction(i18n("&Edit Item"), icon, Key_E, TQT_TQOBJECT(this),
TQT_SLOT(slotEdit()), actionCollection(), TQT_SLOT(slotEdit()), actionCollection(),
"edit"); "edit");
new KAction(i18n("Select &All"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Select &All"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAll()), actionCollection(), TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all"); "select_all");
new KAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this), new TDEAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this),
TQT_SLOT(slotClearSelection()), actionCollection(), TQT_SLOT(slotClearSelection()), actionCollection(),
"clear_selection"); "clear_selection");
m_config->setGroup(TempoViewConfigGroup); m_config->setGroup(TempoViewConfigGroup);
int timeMode = m_config->readNumEntry("timemode", 0); int timeMode = m_config->readNumEntry("timemode", 0);
KRadioAction *action; TDERadioAction *action;
pixmap.load(pixmapDir + "/toolbar/time-musical.png"); pixmap.load(pixmapDir + "/toolbar/time-musical.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMusicalTime()), TQT_SLOT(slotMusicalTime()),
actionCollection(), "time_musical"); actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -629,7 +629,7 @@ TempoView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png"); pixmap.load(pixmapDir + "/toolbar/time-real.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRealTime()), TQT_SLOT(slotRealTime()),
actionCollection(), "time_real"); actionCollection(), "time_real");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");
@ -639,7 +639,7 @@ TempoView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png"); pixmap.load(pixmapDir + "/toolbar/time-raw.png");
icon = TQIconSet(pixmap); icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this), action = new TDERadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRawTime()), TQT_SLOT(slotRawTime()),
actionCollection(), "time_raw"); actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode"); action->setExclusiveGroup("timeMode");

@ -41,7 +41,7 @@ class TQListViewItem;
class TQCloseEvent; class TQCloseEvent;
class TQCheckBox; class TQCheckBox;
class TQButtonGroup; class TQButtonGroup;
class KListView; class TDEListView;
namespace Rosegarden namespace Rosegarden
@ -152,7 +152,7 @@ protected:
virtual void closeEvent(TQCloseEvent *); virtual void closeEvent(TQCloseEvent *);
//--------------- Data members --------------------------------- //--------------- Data members ---------------------------------
KListView *m_list; TDEListView *m_list;
int m_filter; int m_filter;
static int m_lastSetFilter; static int m_lastSetFilter;

@ -726,14 +726,14 @@ EditView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-insert-tempo.png"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-insert-tempo.png");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(AddTempoChangeCommand::getGlobalName(), new TDEAction(AddTempoChangeCommand::getGlobalName(),
icon, 0, icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotAddTempo()), TQT_TQOBJECT(this), TQT_SLOT(slotAddTempo()),
actionCollection(), "add_tempo"); actionCollection(), "add_tempo");
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(slotAddTimeSignature()), TQT_TQOBJECT(this), TQT_SLOT(slotAddTimeSignature()),
actionCollection(), "add_time_signature"); actionCollection(), "add_time_signature");
@ -741,118 +741,118 @@ EditView::setupActions()
// //
// Transforms // Transforms
// //
new KAction(i18n("&Halve Durations"), Key_H + CTRL, TQT_TQOBJECT(this), new TDEAction(i18n("&Halve Durations"), Key_H + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotHalveDurations()), actionCollection(), TQT_SLOT(slotHalveDurations()), actionCollection(),
"halve_durations"); "halve_durations");
new KAction(i18n("&Double Durations"), Key_H + CTRL + SHIFT, TQT_TQOBJECT(this), new TDEAction(i18n("&Double Durations"), Key_H + CTRL + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotDoubleDurations()), actionCollection(), TQT_SLOT(slotDoubleDurations()), actionCollection(),
"double_durations"); "double_durations");
new KAction(RescaleCommand::getGlobalName(), 0, TQT_TQOBJECT(this), new TDEAction(RescaleCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRescale()), actionCollection(), TQT_SLOT(slotRescale()), actionCollection(),
"rescale"); "rescale");
new KAction(TransposeCommand::getGlobalName(1), 0, new TDEAction(TransposeCommand::getGlobalName(1), 0,
Key_Up, TQT_TQOBJECT(this), Key_Up, TQT_TQOBJECT(this),
TQT_SLOT(slotTransposeUp()), actionCollection(), TQT_SLOT(slotTransposeUp()), actionCollection(),
"transpose_up"); "transpose_up");
new KAction(TransposeCommand::getGlobalName(12), 0, new TDEAction(TransposeCommand::getGlobalName(12), 0,
Key_Up + CTRL, TQT_TQOBJECT(this), Key_Up + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransposeUpOctave()), actionCollection(), TQT_SLOT(slotTransposeUpOctave()), actionCollection(),
"transpose_up_octave"); "transpose_up_octave");
new KAction(TransposeCommand::getGlobalName( -1), 0, new TDEAction(TransposeCommand::getGlobalName( -1), 0,
Key_Down, TQT_TQOBJECT(this), Key_Down, TQT_TQOBJECT(this),
TQT_SLOT(slotTransposeDown()), actionCollection(), TQT_SLOT(slotTransposeDown()), actionCollection(),
"transpose_down"); "transpose_down");
new KAction(TransposeCommand::getGlobalName( -12), 0, new TDEAction(TransposeCommand::getGlobalName( -12), 0,
Key_Down + CTRL, TQT_TQOBJECT(this), Key_Down + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransposeDownOctave()), actionCollection(), TQT_SLOT(slotTransposeDownOctave()), actionCollection(),
"transpose_down_octave"); "transpose_down_octave");
new KAction(TransposeCommand::getGlobalName(0), 0, TQT_TQOBJECT(this), new TDEAction(TransposeCommand::getGlobalName(0), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTranspose()), actionCollection(), TQT_SLOT(slotTranspose()), actionCollection(),
"general_transpose"); "general_transpose");
new KAction(TransposeCommand::getDiatonicGlobalName(0,0), 0, TQT_TQOBJECT(this), new TDEAction(TransposeCommand::getDiatonicGlobalName(0,0), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDiatonicTranspose()), actionCollection(), TQT_SLOT(slotDiatonicTranspose()), actionCollection(),
"general_diatonic_transpose"); "general_diatonic_transpose");
new KAction(InvertCommand::getGlobalName(0), 0, TQT_TQOBJECT(this), new TDEAction(InvertCommand::getGlobalName(0), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotInvert()), actionCollection(), TQT_SLOT(slotInvert()), actionCollection(),
"invert"); "invert");
new KAction(RetrogradeCommand::getGlobalName(0), 0, TQT_TQOBJECT(this), new TDEAction(RetrogradeCommand::getGlobalName(0), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRetrograde()), actionCollection(), TQT_SLOT(slotRetrograde()), actionCollection(),
"retrograde"); "retrograde");
new KAction(RetrogradeInvertCommand::getGlobalName(0), 0, TQT_TQOBJECT(this), new TDEAction(RetrogradeInvertCommand::getGlobalName(0), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRetrogradeInvert()), actionCollection(), TQT_SLOT(slotRetrogradeInvert()), actionCollection(),
"retrograde_invert"); "retrograde_invert");
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");
// Control rulers // Control rulers
// //
new KAction(i18n("Show Velocity Property Ruler"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Show Velocity Property Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotShowVelocityControlRuler()), actionCollection(), TQT_SLOT(slotShowVelocityControlRuler()), actionCollection(),
"show_velocity_control_ruler"); "show_velocity_control_ruler");
/* /*
new KAction(i18n("Show Controllers Events Ruler"), 0, this, new TDEAction(i18n("Show Controllers Events Ruler"), 0, this,
TQT_SLOT(slotShowControllerEventsRuler()), actionCollection(), TQT_SLOT(slotShowControllerEventsRuler()), actionCollection(),
"show_controller_events_ruler"); "show_controller_events_ruler");
*/ */
// Disabled for now // Disabled for now
// //
// new KAction(i18n("Add Control Ruler..."), 0, this, // new TDEAction(i18n("Add Control Ruler..."), 0, this,
// TQT_SLOT(slotShowPropertyControlRuler()), actionCollection(), // TQT_SLOT(slotShowPropertyControlRuler()), actionCollection(),
// "add_control_ruler"); // "add_control_ruler");
// //
// Control Ruler context menu // Control Ruler context menu
// //
new KAction(i18n("Insert item"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Insert item"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotInsertControlRulerItem()), actionCollection(), TQT_SLOT(slotInsertControlRulerItem()), actionCollection(),
"insert_control_ruler_item"); "insert_control_ruler_item");
// This was on Key_Delete, but that conflicts with existing Delete commands // This was on Key_Delete, but that conflicts with existing Delete commands
// on individual edit views // on individual edit views
new KAction(i18n("Erase selected items"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Erase selected items"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEraseControlRulerItem()), actionCollection(), TQT_SLOT(slotEraseControlRulerItem()), actionCollection(),
"erase_control_ruler_item"); "erase_control_ruler_item");
new KAction(i18n("Clear ruler"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Clear ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotClearControlRulerItem()), actionCollection(), TQT_SLOT(slotClearControlRulerItem()), actionCollection(),
"clear_control_ruler_item"); "clear_control_ruler_item");
new KAction(i18n("Insert line of controllers"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Insert line of controllers"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotStartControlLineItem()), actionCollection(), TQT_SLOT(slotStartControlLineItem()), actionCollection(),
"start_control_line_item"); "start_control_line_item");
new KAction(i18n("Flip forward"), Key_BracketRight, TQT_TQOBJECT(this), new TDEAction(i18n("Flip forward"), Key_BracketRight, TQT_TQOBJECT(this),
TQT_SLOT(slotFlipForwards()), actionCollection(), TQT_SLOT(slotFlipForwards()), actionCollection(),
"flip_control_events_forward"); "flip_control_events_forward");
new KAction(i18n("Flip backwards"), Key_BracketLeft, TQT_TQOBJECT(this), new TDEAction(i18n("Flip backwards"), Key_BracketLeft, TQT_TQOBJECT(this),
TQT_SLOT(slotFlipBackwards()), actionCollection(), TQT_SLOT(slotFlipBackwards()), actionCollection(),
"flip_control_events_back"); "flip_control_events_back");
new KAction(i18n("Draw property line"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Draw property line"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDrawPropertyLine()), actionCollection(), TQT_SLOT(slotDrawPropertyLine()), actionCollection(),
"draw_property_line"); "draw_property_line");
new KAction(i18n("Select all property values"), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Select all property values"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAllProperties()), actionCollection(), TQT_SLOT(slotSelectAllProperties()), actionCollection(),
"select_all_properties"); "select_all_properties");
} }
@ -1081,26 +1081,26 @@ EditView::createInsertPitchActionMenu()
}, },
}; };
KActionMenu *insertPitchActionMenu = TDEActionMenu *insertPitchActionMenu =
new KActionMenu(i18n("&Insert Note"), TQT_TQOBJECT(this), "insert_note_actionmenu"); new TDEActionMenu(i18n("&Insert Note"), TQT_TQOBJECT(this), "insert_note_actionmenu");
for (int octave = 0; octave <= 2; ++octave) { for (int octave = 0; octave <= 2; ++octave) {
KActionMenu *menu = insertPitchActionMenu; TDEActionMenu *menu = insertPitchActionMenu;
if (octave == 1) { if (octave == 1) {
menu = new KActionMenu(i18n("&Upper Octave"), TQT_TQOBJECT(this), menu = new TDEActionMenu(i18n("&Upper Octave"), TQT_TQOBJECT(this),
"insert_note_actionmenu_upper_octave"); "insert_note_actionmenu_upper_octave");
insertPitchActionMenu->insert(new KActionSeparator(TQT_TQOBJECT(this))); insertPitchActionMenu->insert(new TDEActionSeparator(TQT_TQOBJECT(this)));
insertPitchActionMenu->insert(menu); insertPitchActionMenu->insert(menu);
} else if (octave == 2) { } else if (octave == 2) {
menu = new KActionMenu(i18n("&Lower Octave"), TQT_TQOBJECT(this), menu = new TDEActionMenu(i18n("&Lower Octave"), TQT_TQOBJECT(this),
"insert_note_actionmenu_lower_octave"); "insert_note_actionmenu_lower_octave");
insertPitchActionMenu->insert(menu); insertPitchActionMenu->insert(menu);
} }
for (unsigned int i = 0; i < 7; ++i) { for (unsigned int i = 0; i < 7; ++i) {
KAction *insertPitchAction = 0; TDEAction *insertPitchAction = 0;
TQString octaveSuffix; TQString octaveSuffix;
if (octave == 1) if (octave == 1)
@ -1113,7 +1113,7 @@ EditView::createInsertPitchActionMenu()
if (i != 0 && i != 3) { if (i != 0 && i != 3) {
insertPitchAction = insertPitchAction =
new KAction new TDEAction
(flat.arg(notePitchNames[i]), (flat.arg(notePitchNames[i]),
CTRL + SHIFT + notePitchKeys[octave][i], CTRL + SHIFT + notePitchKeys[octave][i],
TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(), TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(),
@ -1123,7 +1123,7 @@ EditView::createInsertPitchActionMenu()
} }
insertPitchAction = insertPitchAction =
new KAction new TDEAction
(notePitchNames[i], (notePitchNames[i],
notePitchKeys[octave][i], notePitchKeys[octave][i],
TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(), TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(),
@ -1136,7 +1136,7 @@ EditView::createInsertPitchActionMenu()
if (i != 2 && i != 6) { if (i != 2 && i != 6) {
insertPitchAction = insertPitchAction =
new KAction new TDEAction
(sharp.arg(notePitchNames[i]), (sharp.arg(notePitchNames[i]),
SHIFT + notePitchKeys[octave][i], SHIFT + notePitchKeys[octave][i],
TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(), TQT_TQOBJECT(this), TQT_SLOT(slotInsertNoteFromAction()), actionCollection(),
@ -1146,7 +1146,7 @@ EditView::createInsertPitchActionMenu()
} }
if (i < 6) if (i < 6)
menu->insert(new KActionSeparator(TQT_TQOBJECT(this))); menu->insert(new TDEActionSeparator(TQT_TQOBJECT(this)));
} }
} }
@ -1350,7 +1350,7 @@ void EditView::slotShowPropertyControlRuler()
KDialogBase propChooserDialog(this, "propertychooserdialog", true, i18n("Select event property"), KDialogBase propChooserDialog(this, "propertychooserdialog", true, i18n("Select event property"),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok); KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok);
KListBox* propList = new KListBox(propChooserDialog.makeVBoxMainWidget()); TDEListBox* propList = new TDEListBox(propChooserDialog.makeVBoxMainWidget());
new TQListBoxRGProperty(propList, BaseProperties::VELOCITY.c_str()); new TQListBoxRGProperty(propList, BaseProperties::VELOCITY.c_str());
int rc = propChooserDialog.exec(); int rc = propChooserDialog.exec();

@ -187,15 +187,15 @@ void EditViewBase::setupActions(TQString rcFileName, bool haveClipboard)
KStdAction::paste (TQT_TQOBJECT(this), TQT_SLOT(slotEditPaste()), actionCollection()); KStdAction::paste (TQT_TQOBJECT(this), TQT_SLOT(slotEditPaste()), actionCollection());
} }
new KToolBarPopupAction(i18n("Und&o"), new TDEToolBarPopupAction(i18n("Und&o"),
"undo", "undo",
KStdAccel::key(KStdAccel::Undo), TDEStdAccel::key(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::key(KStdAccel::Redo), TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(), actionCollection(),
KStdAction::stdName(KStdAction::Redo)); KStdAction::stdName(KStdAction::Redo));
@ -203,33 +203,33 @@ void EditViewBase::setupActions(TQString rcFileName, bool haveClipboard)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/matrix.png"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/matrix.png");
TQIconSet icon = TQIconSet(pixmap); TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Open in Matri&x Editor"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Open in Matri&x Editor"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenInMatrix()), actionCollection(), TQT_SLOT(slotOpenInMatrix()), actionCollection(),
"open_in_matrix"); "open_in_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, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Open in &Percussion Matrix Editor"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenInPercussionMatrix()), actionCollection(), TQT_SLOT(slotOpenInPercussionMatrix()), actionCollection(),
"open_in_percussion_matrix"); "open_in_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, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Open in &Notation Editor"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenInNotation()), actionCollection(), TQT_SLOT(slotOpenInNotation()), actionCollection(),
"open_in_notation"); "open_in_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, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Open in &Event List Editor"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenInEventList()), actionCollection(), TQT_SLOT(slotOpenInEventList()), actionCollection(),
"open_in_event_list"); "open_in_event_list");
new KAction(i18n("Set Segment Start Time..."), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Set Segment Start Time..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSegmentStartTime()), actionCollection(), TQT_SLOT(slotSetSegmentStartTime()), actionCollection(),
"set_segment_start"); "set_segment_start");
new KAction(i18n("Set Segment Duration..."), 0, TQT_TQOBJECT(this), new TDEAction(i18n("Set Segment Duration..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSegmentDuration()), actionCollection(), TQT_SLOT(slotSetSegmentDuration()), actionCollection(),
"set_segment_duration"); "set_segment_duration");
@ -418,7 +418,7 @@ void EditViewBase::paintEvent(TQPaintEvent* e)
} }
if (e) if (e)
KMainWindow::paintEvent(e); TDEMainWindow::paintEvent(e);
// moved this to the end of the method so that things called // moved this to the end of the method so that things called
// from this method can still test whether the composition had // from this method can still test whether the composition had
@ -446,7 +446,7 @@ void EditViewBase::closeEvent(TQCloseEvent* e)
RG_DEBUG << "EditViewBase::closeEvent() : is in ctor, ignoring close event\n"; RG_DEBUG << "EditViewBase::closeEvent() : is in ctor, ignoring close event\n";
e->ignore(); e->ignore();
} else { } else {
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
} }
@ -553,7 +553,7 @@ bool EditViewBase::getSegmentsOnlyRestsAndClefs()
void EditViewBase::toggleWidget(TQWidget* widget, void EditViewBase::toggleWidget(TQWidget* widget,
const TQString& toggleActionName) const TQString& toggleActionName)
{ {
KToggleAction* toggleAction = getToggleAction(toggleActionName); TDEToggleAction* toggleAction = getToggleAction(toggleActionName);
if (!toggleAction) { if (!toggleAction) {
RG_DEBUG << "!!! Unknown toggle action : " << toggleActionName << endl; RG_DEBUG << "!!! Unknown toggle action : " << toggleActionName << endl;
@ -586,7 +586,7 @@ EditViewBase::slotTestClipboard()
void void
EditViewBase::slotToggleSolo() EditViewBase::slotToggleSolo()
{ {
KToggleAction* toggleSoloAction = getToggleAction("toggle_solo"); TDEToggleAction* toggleSoloAction = getToggleAction("toggle_solo");
if (!toggleSoloAction) if (!toggleSoloAction)
return ; return ;
@ -664,7 +664,7 @@ void EditViewBase::slotCompositionStateUpdate()
{ {
// update state of 'solo' toggle // update state of 'solo' toggle
// //
KToggleAction* toggleSolo = getToggleAction("toggle_solo"); TDEToggleAction* toggleSolo = getToggleAction("toggle_solo");
if (!toggleSolo) if (!toggleSolo)
return ; return ;
@ -702,9 +702,9 @@ MultiViewCommandHistory* EditViewBase::getCommandHistory()
return getDocument()->getCommandHistory(); return getDocument()->getCommandHistory();
} }
KToggleAction* EditViewBase::getToggleAction(const TQString& actionName) TDEToggleAction* EditViewBase::getToggleAction(const TQString& actionName)
{ {
return dynamic_cast<KToggleAction*>(actionCollection()->action(actionName.ascii())); return dynamic_cast<TDEToggleAction*>(actionCollection()->action(actionName.ascii()));
} }
} }

@ -39,7 +39,7 @@ class TQGridLayout;
class TQFrame; class TQFrame;
class TQCloseEvent; class TQCloseEvent;
class TQAccel; class TQAccel;
class KToggleAction; class TDEToggleAction;
class TDEConfig; class TDEConfig;
class KCommand; class KCommand;
namespace Rosegarden { class EditViewTimeSigNotifier; } namespace Rosegarden { class EditViewTimeSigNotifier; }
@ -335,11 +335,11 @@ protected:
bool getSegmentsOnlyRestsAndClefs(); bool getSegmentsOnlyRestsAndClefs();
/// Convenience function around actionCollection()->action() /// Convenience function around actionCollection()->action()
KToggleAction* getToggleAction(const TQString& actionName); TDEToggleAction* getToggleAction(const TQString& actionName);
/** /**
* Make a widget visible depending on the state of a * Make a widget visible depending on the state of a
* KToggleAction * TDEToggleAction
*/ */
virtual void toggleWidget(TQWidget* widget, const TQString& toggleActionName); virtual void toggleWidget(TQWidget* widget, const TQString& toggleActionName);

@ -29,7 +29,7 @@
#include "KTmpStatusMsg.h" #include "KTmpStatusMsg.h"
#include "gui/application/RosegardenApplication.h" #include "gui/application/RosegardenApplication.h"
KTmpStatusMsg::KTmpStatusMsg(const TQString& msg, KMainWindow* window, int id) KTmpStatusMsg::KTmpStatusMsg(const TQString& msg, TDEMainWindow* window, int id)
: m_mainWindow(window), : m_mainWindow(window),
m_id(id) m_id(id)
{ {

@ -22,10 +22,10 @@
#ifndef KTMPSTATUSMSG_H #ifndef KTMPSTATUSMSG_H
#define KTMPSTATUSMSG_H #define KTMPSTATUSMSG_H
class KMainWindow; class TDEMainWindow;
/** /**
* A class to create a temporary message on KMainWindow's status bar * A class to create a temporary message on TDEMainWindow's status bar
* *
* Use as follows : * Use as follows :
* { // some block of code starts here * { // some block of code starts here
@ -42,10 +42,10 @@ public:
/** /**
* Creates a new temporary status message on the status bar * Creates a new temporary status message on the status bar
* of the specified KMainWindow. * of the specified TDEMainWindow.
* The id of the text widget in the status bar can be specified * The id of the text widget in the status bar can be specified
*/ */
KTmpStatusMsg(const TQString& msg, KMainWindow*, int id = m_defaultId); KTmpStatusMsg(const TQString& msg, TDEMainWindow*, int id = m_defaultId);
~KTmpStatusMsg(); ~KTmpStatusMsg();
@ -77,7 +77,7 @@ protected:
//--------------- Data members --------------------------------- //--------------- Data members ---------------------------------
KMainWindow* m_mainWindow; TDEMainWindow* m_mainWindow;
int m_id; int m_id;
static int m_defaultId; static int m_defaultId;

@ -58,12 +58,12 @@
* CVS_SILENT: fixincludes * CVS_SILENT: fixincludes
* *
* Revision 1.19 2001/08/08 14:35:12 hausmann * Revision 1.19 2001/08/08 14:35:12 hausmann
* - removed empty KActionCollection::childEvent * - removed empty TDEActionCollection::childEvent
* - added sizeHint() and minimumSizeHint() methods to KLed, as advised by * - added sizeHint() and minimumSizeHint() methods to KLed, as advised by
* Rik in the comment in kled.h * Rik in the comment in kled.h
* - removed unused mousePressEvent, mouseMoveEvent and mouseReleaseEvent * - removed unused mousePressEvent, mouseMoveEvent and mouseReleaseEvent
* handlers from KPassDlg * handlers from KPassDlg
* - merged KToolBar::insertSeparator() and KToolBar::insertLineSeparator() * - merged TDEToolBar::insertSeparator() and TDEToolBar::insertLineSeparator()
* with their overloaded variants * with their overloaded variants
* *
* Revision 1.18 2001/04/16 22:08:43 pfeiffer * Revision 1.18 2001/04/16 22:08:43 pfeiffer

@ -609,7 +609,7 @@ void KlearlookStyle::polish( TQStyleControlElementData ceData, ControlElementFla
|| ::tqqt_cast<TQPopupMenu *>( widget ) ) || ::tqqt_cast<TQPopupMenu *>( widget ) )
widget->setBackgroundMode( TQWidget::PaletteBackground ); widget->setBackgroundMode( TQWidget::PaletteBackground );
else if ( widget->inherits( "KToolBarSeparator" ) ) { else if ( widget->inherits( "TDEToolBarSeparator" ) ) {
widget->setBackgroundMode( TQWidget::NoBackground ); widget->setBackgroundMode( TQWidget::NoBackground );
installObjectEventHandler(ceData, elementFlags, ptr, this); installObjectEventHandler(ceData, elementFlags, ptr, this);
@ -652,7 +652,7 @@ void KlearlookStyle::unPolish( TQStyleControlElementData ceData, ControlElementF
::tqqt_cast<TQPopupMenu *>( widget ) ) ::tqqt_cast<TQPopupMenu *>( widget ) )
widget->setBackgroundMode( TQWidget::PaletteBackground ); widget->setBackgroundMode( TQWidget::PaletteBackground );
else if ( widget->inherits( "KToolBarSeparator" ) ) { else if ( widget->inherits( "TDEToolBarSeparator" ) ) {
widget->setBackgroundMode( PaletteBackground ); widget->setBackgroundMode( PaletteBackground );
removeObjectEventHandler(ceData, elementFlags, ptr, this); removeObjectEventHandler(ceData, elementFlags, ptr, this);
@ -715,7 +715,7 @@ bool KlearlookStyle::objectEventHandler( TQStyleControlElementData ceData, Contr
return false; // Now draw the contents return false; // Now draw the contents
} }
} else if ( object->inherits( "KToolBarSeparator" ) && TQEvent::Paint == event->type() ) { } else if ( object->inherits( "TDEToolBarSeparator" ) && TQEvent::Paint == event->type() ) {
TQFrame * frame = dynamic_cast<TQFrame*>( object ); TQFrame * frame = dynamic_cast<TQFrame*>( object );
if ( frame && TQFrame::NoFrame != frame->frameShape() ) { if ( frame && TQFrame::NoFrame != frame->frameShape() ) {
@ -3128,7 +3128,7 @@ void KlearlookStyle::drawComplexControl(
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( bflags & ( Style_Down | Style_On | Style_Raised ) || onControlButtons ) if ( bflags & ( Style_Down | Style_On | Style_Raised ) || onControlButtons )
#else #else
// CPD: Style_MouseOver obove is *needed* for KDE's KToggleActions... // CPD: Style_MouseOver obove is *needed* for KDE's TDEToggleActions...
if ( bflags & ( Style_Down | Style_On | Style_Raised | Style_MouseOver ) || onControlButtons ) if ( bflags & ( Style_Down | Style_On | Style_Raised | Style_MouseOver ) || onControlButtons )
#endif #endif

@ -393,7 +393,7 @@ void ControlRuler::createMenu()
{ {
RG_DEBUG << "ControlRuler::createMenu()\n"; RG_DEBUG << "ControlRuler::createMenu()\n";
KMainWindow* parentMainWindow = dynamic_cast<KMainWindow*>(topLevelWidget()); TDEMainWindow* parentMainWindow = dynamic_cast<TDEMainWindow*>(topLevelWidget());
if (parentMainWindow && parentMainWindow->factory()) { if (parentMainWindow && parentMainWindow->factory()) {
m_menu = static_cast<TQPopupMenu*>(parentMainWindow->factory()->container(m_menuName, parentMainWindow)); m_menu = static_cast<TQPopupMenu*>(parentMainWindow->factory()->container(m_menuName, parentMainWindow));

@ -73,7 +73,7 @@ MarkerRuler::MarkerRuler(RosegardenGUIDoc *doc,
m_menu(0), m_menu(0),
m_doc(doc), m_doc(doc),
m_rulerScale(rulerScale), m_rulerScale(rulerScale),
m_parentMainWindow(dynamic_cast<KMainWindow*>(doc->parent())) m_parentMainWindow(dynamic_cast<TDEMainWindow*>(doc->parent()))
{ {
// If the parent window has a main window above it, we need to use // If the parent window has a main window above it, we need to use
// that as the parent main window, not the document's parent. // that as the parent main window, not the document's parent.
@ -81,8 +81,8 @@ MarkerRuler::MarkerRuler(RosegardenGUIDoc *doc,
// (document-level) action collection regardless of which window // (document-level) action collection regardless of which window
// we're in. // we're in.
TQObject *probe = TQT_TQOBJECT(parent); TQObject *probe = TQT_TQOBJECT(parent);
while (probe && !dynamic_cast<KMainWindow *>(probe)) probe = probe->parent(); while (probe && !dynamic_cast<TDEMainWindow *>(probe)) probe = probe->parent();
if (probe) m_parentMainWindow = dynamic_cast<KMainWindow *>(probe); if (probe) m_parentMainWindow = dynamic_cast<TDEMainWindow *>(probe);
// m_barFont = new TQFont("helvetica", 12); // m_barFont = new TQFont("helvetica", 12);
// m_barFont->setPixelSize(12); // m_barFont->setPixelSize(12);
@ -97,21 +97,21 @@ MarkerRuler::MarkerRuler(RosegardenGUIDoc *doc,
// don't become more event-specific in future... // don't become more event-specific in future...
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-insert.png")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-insert.png"));
new KAction(i18n("Insert Marker"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Insert Marker"), icon, 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, TQT_TQOBJECT(this), new TDEAction(i18n("Insert Marker at Playback Position"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(), TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(),
"insert_marker_at_pointer"); "insert_marker_at_pointer");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-delete.png")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-delete.png"));
new KAction(i18n("Delete Marker"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Delete Marker"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteMarker()), actionCollection(), TQT_SLOT(slotDeleteMarker()), actionCollection(),
"delete_marker"); "delete_marker");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-edit.png")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-edit.png"));
new KAction(i18n("Edit Marker..."), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Edit Marker..."), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditMarker()), actionCollection(), TQT_SLOT(slotEditMarker()), actionCollection(),
"edit_marker"); "edit_marker");

@ -37,7 +37,7 @@ class TQPaintEvent;
class TQMouseEvent; class TQMouseEvent;
class TQFont; class TQFont;
class TQPopupMenu; class TQPopupMenu;
class KMainWindow; class TDEMainWindow;
namespace Rosegarden namespace Rosegarden
{ {
@ -112,7 +112,7 @@ protected:
RosegardenGUIDoc *m_doc; RosegardenGUIDoc *m_doc;
RulerScale *m_rulerScale; RulerScale *m_rulerScale;
KMainWindow* m_parentMainWindow; TDEMainWindow* m_parentMainWindow;
}; };

@ -66,7 +66,7 @@ namespace Rosegarden
TempoRuler::TempoRuler(RulerScale *rulerScale, TempoRuler::TempoRuler(RulerScale *rulerScale,
RosegardenGUIDoc *doc, RosegardenGUIDoc *doc,
KMainWindow *parentMainWindow, TDEMainWindow *parentMainWindow,
double xorigin, double xorigin,
int height, int height,
bool small, bool small,
@ -124,37 +124,37 @@ TempoRuler::TempoRuler(RulerScale *rulerScale,
TQIconSet icon; TQIconSet icon;
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-insert-tempo.png")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-insert-tempo.png"));
new KAction(i18n("Insert Tempo Change"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Insert Tempo Change"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotInsertTempoHere()), actionCollection(), TQT_SLOT(slotInsertTempoHere()), actionCollection(),
"insert_tempo_here"); "insert_tempo_here");
new KAction(i18n("Insert Tempo Change at Playback Position"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Insert Tempo Change at Playback Position"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotInsertTempoAtPointer()), actionCollection(), TQT_SLOT(slotInsertTempoAtPointer()), actionCollection(),
"insert_tempo_at_pointer"); "insert_tempo_at_pointer");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-delete.png")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-delete.png"));
new KAction(i18n("Delete Tempo Change"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Delete Tempo Change"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteTempoChange()), actionCollection(), TQT_SLOT(slotDeleteTempoChange()), actionCollection(),
"delete_tempo"); "delete_tempo");
new KAction(i18n("Ramp Tempo to Next Tempo"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Ramp Tempo to Next Tempo"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRampToNext()), actionCollection(), TQT_SLOT(slotRampToNext()), actionCollection(),
"ramp_to_next"); "ramp_to_next");
new KAction(i18n("Un-Ramp Tempo"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Un-Ramp Tempo"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotUnramp()), actionCollection(), TQT_SLOT(slotUnramp()), actionCollection(),
"unramp"); "unramp");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-edit.png")); icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/event-edit.png"));
new KAction(i18n("Edit Tempo..."), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Edit Tempo..."), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditTempo()), actionCollection(), TQT_SLOT(slotEditTempo()), actionCollection(),
"edit_tempo"); "edit_tempo");
new KAction(i18n("Edit Time Signature..."), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Edit Time Signature..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditTimeSignature()), actionCollection(), TQT_SLOT(slotEditTimeSignature()), actionCollection(),
"edit_time_signature"); "edit_time_signature");
new KAction(i18n("Open Tempo and Time Signature Editor"), 0, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Open Tempo and Time Signature Editor"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditTempos()), actionCollection(), TQT_SLOT(slotEditTempos()), actionCollection(),
"edit_tempos"); "edit_tempos");

@ -41,7 +41,7 @@ class TQPopupMenu;
class TQPaintEvent; class TQPaintEvent;
class TQMouseEvent; class TQMouseEvent;
class TQEvent; class TQEvent;
class KMainWindow; class TDEMainWindow;
namespace Rosegarden namespace Rosegarden
@ -73,7 +73,7 @@ public:
*/ */
TempoRuler(RulerScale *rulerScale, TempoRuler(RulerScale *rulerScale,
RosegardenGUIDoc *doc, RosegardenGUIDoc *doc,
KMainWindow *parentMainWindow, TDEMainWindow *parentMainWindow,
double xorigin = 0.0, double xorigin = 0.0,
int height = 0, int height = 0,
bool small = false, bool small = false,
@ -167,7 +167,7 @@ private:
RulerScale *m_rulerScale; RulerScale *m_rulerScale;
TextFloat *m_textFloat; TextFloat *m_textFloat;
TQPopupMenu *m_menu; TQPopupMenu *m_menu;
KMainWindow *m_parentMainWindow; TDEMainWindow *m_parentMainWindow;
TQFont m_font; TQFont m_font;
TQFont m_boldFont; TQFont m_boldFont;

@ -102,86 +102,86 @@ AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play"))); ("transport-play")));
KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this), TDEAction *play = new TDEAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
TQT_SIGNAL(play()), actionCollection(), "play"); TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play // Alternative shortcut for Play
KShortcut playShortcut = play->shortcut(); TDEShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) ); playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut); play->setShortcut(playShortcut);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop"))); ("transport-stop")));
new KAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this), new TDEAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
TQT_SIGNAL(stop()), actionCollection(), "stop"); TQT_SIGNAL(stop()), actionCollection(), "stop");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind"))); ("transport-rewind")));
new KAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this), new TDEAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlayback()), actionCollection(), TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar"); "playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd"))); ("transport-ffwd")));
new KAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this), new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlayback()), actionCollection(), TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar"); "playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end"))); ("transport-rewind-end")));
new KAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(), TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start"); "playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end"))); ("transport-ffwd-end")));
new KAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(), TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end"); "playback_pointer_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-record"))); ("transport-record")));
new KAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(record()), actionCollection(), TQT_SIGNAL(record()), actionCollection(),
"record"); "record");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic"))); ("transport-panic")));
new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this), new TDEAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this),
TQT_SIGNAL(panic()), actionCollection(), TQT_SIGNAL(panic()), actionCollection(),
"panic"); "panic");
unsigned int mixerOptions = m_studio->getMixerDisplayOptions(); unsigned int mixerOptions = m_studio->getMixerDisplayOptions();
(new KToggleAction(i18n("Show Audio &Faders"), 0, TQT_TQOBJECT(this), (new TDEToggleAction(i18n("Show Audio &Faders"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleFaders()), actionCollection(), TQT_SLOT(slotToggleFaders()), actionCollection(),
"show_audio_faders"))->setChecked "show_audio_faders"))->setChecked
(!(mixerOptions & MIXER_OMIT_FADERS)); (!(mixerOptions & MIXER_OMIT_FADERS));
(new KToggleAction(i18n("Show Synth &Faders"), 0, TQT_TQOBJECT(this), (new TDEToggleAction(i18n("Show Synth &Faders"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSynthFaders()), actionCollection(), TQT_SLOT(slotToggleSynthFaders()), actionCollection(),
"show_synth_faders"))->setChecked "show_synth_faders"))->setChecked
(!(mixerOptions & MIXER_OMIT_SYNTH_FADERS)); (!(mixerOptions & MIXER_OMIT_SYNTH_FADERS));
(new KToggleAction(i18n("Show &Submasters"), 0, TQT_TQOBJECT(this), (new TDEToggleAction(i18n("Show &Submasters"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSubmasters()), actionCollection(), TQT_SLOT(slotToggleSubmasters()), actionCollection(),
"show_audio_submasters"))->setChecked "show_audio_submasters"))->setChecked
(!(mixerOptions & MIXER_OMIT_SUBMASTERS)); (!(mixerOptions & MIXER_OMIT_SUBMASTERS));
(new KToggleAction(i18n("Show &Plugin Buttons"), 0, TQT_TQOBJECT(this), (new TDEToggleAction(i18n("Show &Plugin Buttons"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTogglePluginButtons()), actionCollection(), TQT_SLOT(slotTogglePluginButtons()), actionCollection(),
"show_plugin_buttons"))->setChecked "show_plugin_buttons"))->setChecked
(!(mixerOptions & MIXER_OMIT_PLUGINS)); (!(mixerOptions & MIXER_OMIT_PLUGINS));
(new KToggleAction(i18n("Show &Unassigned Faders"), 0, TQT_TQOBJECT(this), (new TDEToggleAction(i18n("Show &Unassigned Faders"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleUnassignedFaders()), actionCollection(), TQT_SLOT(slotToggleUnassignedFaders()), actionCollection(),
"show_unassigned_faders"))->setChecked "show_unassigned_faders"))->setChecked
(mixerOptions & MIXER_SHOW_UNASSIGNED_FADERS); (mixerOptions & MIXER_SHOW_UNASSIGNED_FADERS);
KRadioAction *action = 0; TDERadioAction *action = 0;
for (int i = 1; i <= 16; i *= 2) { for (int i = 1; i <= 16; i *= 2) {
action = action =
new KRadioAction(i18n("1 Input", "%n Inputs", i), new TDERadioAction(i18n("1 Input", "%n Inputs", i),
0, TQT_TQOBJECT(this), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetInputCountFromAction()), actionCollection(), TQT_SLOT(slotSetInputCountFromAction()), actionCollection(),
TQString("inputs_%1").arg(i).ascii()); TQString("inputs_%1").arg(i).ascii());
@ -190,7 +190,7 @@ AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
action->setChecked(true); action->setChecked(true);
} }
action = new KRadioAction action = new TDERadioAction
(i18n("No Submasters"), (i18n("No Submasters"),
0, TQT_TQOBJECT(this), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(), TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
@ -199,7 +199,7 @@ AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
action->setChecked(true); action->setChecked(true);
for (int i = 2; i <= 8; i *= 2) { for (int i = 2; i <= 8; i *= 2) {
action = new KRadioAction action = new TDERadioAction
(i18n("1 Submaster", "%n Submasters", i), (i18n("1 Submaster", "%n Submasters", i),
0, TQT_TQOBJECT(this), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(), TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
@ -1584,7 +1584,7 @@ AudioMixerWindow::slotUpdateFaderVisibility()
{ {
bool d = !(m_studio->getMixerDisplayOptions() & MIXER_OMIT_FADERS); bool d = !(m_studio->getMixerDisplayOptions() & MIXER_OMIT_FADERS);
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("show_audio_faders")); (actionCollection()->action("show_audio_faders"));
if (action) { if (action) {
action->setChecked(d); action->setChecked(d);
@ -1616,7 +1616,7 @@ AudioMixerWindow::slotToggleSynthFaders()
void void
AudioMixerWindow::slotUpdateSynthFaderVisibility() AudioMixerWindow::slotUpdateSynthFaderVisibility()
{ {
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("show_synth_faders")); (actionCollection()->action("show_synth_faders"));
if (!action) if (!action)
return ; return ;
@ -1648,7 +1648,7 @@ AudioMixerWindow::slotToggleSubmasters()
void void
AudioMixerWindow::slotUpdateSubmasterVisibility() AudioMixerWindow::slotUpdateSubmasterVisibility()
{ {
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("show_audio_submasters")); (actionCollection()->action("show_audio_submasters"));
if (!action) if (!action)
return ; return ;
@ -1678,7 +1678,7 @@ AudioMixerWindow::slotTogglePluginButtons()
void void
AudioMixerWindow::slotUpdatePluginButtonVisibility() AudioMixerWindow::slotUpdatePluginButtonVisibility()
{ {
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("show_plugin_buttons")); (actionCollection()->action("show_plugin_buttons"));
if (!action) if (!action)
return ; return ;
@ -1697,7 +1697,7 @@ AudioMixerWindow::slotUpdatePluginButtonVisibility()
void void
AudioMixerWindow::slotToggleUnassignedFaders() AudioMixerWindow::slotToggleUnassignedFaders()
{ {
KToggleAction *action = dynamic_cast<KToggleAction *> TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("show_unassigned_faders")); (actionCollection()->action("show_unassigned_faders"));
if (!action) if (!action)
return ; return ;

@ -81,7 +81,7 @@ namespace Rosegarden
BankEditorDialog::BankEditorDialog(TQWidget *parent, BankEditorDialog::BankEditorDialog(TQWidget *parent,
RosegardenGUIDoc *doc, RosegardenGUIDoc *doc,
DeviceId defaultDevice): DeviceId defaultDevice):
KMainWindow(parent, "bankeditordialog"), TDEMainWindow(parent, "bankeditordialog"),
m_studio(&doc->getStudio()), m_studio(&doc->getStudio()),
m_doc(doc), m_doc(doc),
m_copyBank(Device::NO_DEVICE, -1), m_copyBank(Device::NO_DEVICE, -1),
@ -124,7 +124,7 @@ BankEditorDialog::BankEditorDialog(TQWidget *parent,
// Left-side list view // Left-side list view
// //
TQVBox* leftPart = new TQVBox(splitter); TQVBox* leftPart = new TQVBox(splitter);
m_listView = new KListView(leftPart); m_listView = new TDEListView(leftPart);
m_listView->addColumn(i18n("MIDI Device")); m_listView->addColumn(i18n("MIDI Device"));
m_listView->addColumn(i18n("Type")); m_listView->addColumn(i18n("Type"));
m_listView->addColumn(i18n("MSB")); m_listView->addColumn(i18n("MSB"));
@ -303,7 +303,7 @@ BankEditorDialog::~BankEditorDialog()
void void
BankEditorDialog::setupActions() BankEditorDialog::setupActions()
{ {
KAction* close = KStdAction::close (TQT_TQOBJECT(this), TQT_SLOT(slotFileClose()), actionCollection()); TDEAction* close = KStdAction::close (TQT_TQOBJECT(this), TQT_SLOT(slotFileClose()), actionCollection());
m_closeButton->setText(close->text()); m_closeButton->setText(close->text());
connect(m_closeButton, TQT_SIGNAL(clicked()), connect(m_closeButton, TQT_SIGNAL(clicked()),
@ -315,15 +315,15 @@ BankEditorDialog::setupActions()
// some adjustments // some adjustments
new KToolBarPopupAction(i18n("Und&o"), new TDEToolBarPopupAction(i18n("Und&o"),
"undo", "undo",
KStdAccel::key(KStdAccel::Undo), TDEStdAccel::key(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::key(KStdAccel::Redo), TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(), actionCollection(),
KStdAction::stdName(KStdAction::Redo)); KStdAction::stdName(KStdAction::Redo));
@ -1706,7 +1706,7 @@ BankEditorDialog::closeEvent(TQCloseEvent *e)
} }
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
} }

@ -41,7 +41,7 @@ class TQListViewItem;
class TQGroupBox; class TQGroupBox;
class TQCloseEvent; class TQCloseEvent;
class TQCheckBox; class TQCheckBox;
class KListView; class TDEListView;
class KCommand; class KCommand;
class KComboBox; class KComboBox;
@ -58,7 +58,7 @@ class MidiDeviceListViewItem;
class MidiDevice; class MidiDevice;
class BankEditorDialog : public KMainWindow class BankEditorDialog : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -165,7 +165,7 @@ protected:
MidiProgramsEditor *m_programEditor; MidiProgramsEditor *m_programEditor;
MidiKeyMappingEditor *m_keyMappingEditor; MidiKeyMappingEditor *m_keyMappingEditor;
KListView *m_listView; TDEListView *m_listView;
TQGroupBox *m_optionBox; TQGroupBox *m_optionBox;
TQCheckBox *m_variationToggle; TQCheckBox *m_variationToggle;

@ -85,7 +85,7 @@ static const int RECORD_CONNECTION_COL = 2;
DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent, DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
RosegardenGUIDoc *document) : RosegardenGUIDoc *document) :
KMainWindow(parent, "deviceeditordialog"), TDEMainWindow(parent, "deviceeditordialog"),
m_document(document), m_document(document),
m_studio(&document->getStudio()) m_studio(&document->getStudio())
{ {
@ -214,7 +214,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
layout->addWidget(closeButton); layout->addWidget(closeButton);
layout->addSpacing(5); layout->addSpacing(5);
KAction* close = KStdAction::close(TQT_TQOBJECT(this), TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()), TQT_SLOT(slotClose()),
actionCollection()); actionCollection());
@ -224,15 +224,15 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
mainLayout->addWidget(btnBox); mainLayout->addWidget(btnBox);
// some adjustments // some adjustments
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));
@ -456,7 +456,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
DeviceManagerDialog::closeEvent(TQCloseEvent *e) DeviceManagerDialog::closeEvent(TQCloseEvent *e)
{ {
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
DeviceId DeviceId

@ -47,7 +47,7 @@ class RosegardenGUIDoc;
class MidiDevice; class MidiDevice;
class DeviceManagerDialog : public KMainWindow class DeviceManagerDialog : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT

@ -36,7 +36,7 @@ namespace Rosegarden
MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId, MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
TQListView* parent, TQString name) TQListView* parent, TQString name)
: KListViewItem(parent, name), : TDEListViewItem(parent, name),
m_deviceId(deviceId) m_deviceId(deviceId)
{} {}
@ -44,7 +44,7 @@ MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
TQListViewItem* parent, TQString name, TQListViewItem* parent, TQString name,
bool percussion, bool percussion,
int msb, int lsb) int msb, int lsb)
: KListViewItem(parent, name, : TDEListViewItem(parent, name,
TQString(percussion ? i18n("Percussion Bank") : i18n("Bank")), TQString(percussion ? i18n("Percussion Bank") : i18n("Bank")),
TQString().setNum(msb), TQString().setNum(lsb)), TQString().setNum(msb), TQString().setNum(lsb)),
m_deviceId(deviceId) m_deviceId(deviceId)
@ -52,7 +52,7 @@ MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId, MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
TQListViewItem* parent, TQString name) TQListViewItem* parent, TQString name)
: KListViewItem(parent, name, i18n("Key Mapping"), "", ""), : TDEListViewItem(parent, name, i18n("Key Mapping"), "", ""),
m_deviceId(deviceId) m_deviceId(deviceId)
{} {}

@ -36,7 +36,7 @@ namespace Rosegarden
class MidiDeviceListViewItem : public KListViewItem class MidiDeviceListViewItem : public TDEListViewItem
{ {
public: public:
// Device // Device

@ -78,51 +78,51 @@ MidiMixerWindow::MidiMixerWindow(TQWidget *parent,
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play"))); ("transport-play")));
KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this), TDEAction *play = new TDEAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
TQT_SIGNAL(play()), actionCollection(), "play"); TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play // Alternative shortcut for Play
KShortcut playShortcut = play->shortcut(); TDEShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) ); playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut); play->setShortcut(playShortcut);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop"))); ("transport-stop")));
new KAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this), new TDEAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
TQT_SIGNAL(stop()), actionCollection(), "stop"); TQT_SIGNAL(stop()), actionCollection(), "stop");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind"))); ("transport-rewind")));
new KAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this), new TDEAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlayback()), actionCollection(), TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar"); "playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd"))); ("transport-ffwd")));
new KAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this), new TDEAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlayback()), actionCollection(), TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar"); "playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end"))); ("transport-rewind-end")));
new KAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(), TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start"); "playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end"))); ("transport-ffwd-end")));
new KAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(), TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end"); "playback_pointer_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-record"))); ("transport-record")));
new KAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this), new TDEAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(record()), actionCollection(), TQT_SIGNAL(record()), actionCollection(),
"record"); "record");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic"))); ("transport-panic")));
new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this), new TDEAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this),
TQT_SIGNAL(panic()), actionCollection(), TQT_SIGNAL(panic()), actionCollection(),
"panic"); "panic");

@ -39,7 +39,7 @@ namespace Rosegarden
MixerWindow::MixerWindow(TQWidget *parent, MixerWindow::MixerWindow(TQWidget *parent,
RosegardenGUIDoc *document) : RosegardenGUIDoc *document) :
KMainWindow(parent, "mixerwindow"), TDEMainWindow(parent, "mixerwindow"),
m_document(document), m_document(document),
m_studio(&document->getStudio()), m_studio(&document->getStudio()),
m_currentId(0) m_currentId(0)
@ -52,7 +52,7 @@ MixerWindow::closeEvent(TQCloseEvent *e)
{ {
RG_DEBUG << "MixerWindow::closeEvent()\n"; RG_DEBUG << "MixerWindow::closeEvent()\n";
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
void void

@ -42,7 +42,7 @@ class Studio;
class RosegardenGUIDoc; class RosegardenGUIDoc;
class MixerWindow: public KMainWindow class MixerWindow: public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT

@ -60,7 +60,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
, AudioPluginOSCGUIManager *guiManager , AudioPluginOSCGUIManager *guiManager
#endif #endif
) : ) :
KMainWindow(parent, "synthpluginmanagerdialog"), TDEMainWindow(parent, "synthpluginmanagerdialog"),
m_document(doc), m_document(doc),
m_studio(&doc->getStudio()), m_studio(&doc->getStudio()),
m_pluginManager(doc->getPluginManager()) m_pluginManager(doc->getPluginManager())
@ -171,7 +171,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
layout->addWidget(closeButton); layout->addWidget(closeButton);
layout->addSpacing(5); layout->addSpacing(5);
KAction* close = KStdAction::close(TQT_TQOBJECT(this), TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()), TQT_SLOT(slotClose()),
actionCollection()); actionCollection());
@ -227,7 +227,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
SynthPluginManagerDialog::closeEvent(TQCloseEvent *e) SynthPluginManagerDialog::closeEvent(TQCloseEvent *e)
{ {
emit closing(); emit closing();
KMainWindow::closeEvent(e); TDEMainWindow::closeEvent(e);
} }
void void

@ -46,7 +46,7 @@ class AudioPluginOSCGUIManager;
class AudioPluginManager; class AudioPluginManager;
class SynthPluginManagerDialog : public KMainWindow class SynthPluginManagerDialog : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT

@ -35,30 +35,30 @@ class Segment;
// Add an Id to a TQListViewItem // Add an Id to a TQListViewItem
// //
class AudioListItem : public KListViewItem class AudioListItem : public TDEListViewItem
{ {
public: public:
AudioListItem(KListView *parent):KListViewItem(parent), AudioListItem(TDEListView *parent):TDEListViewItem(parent),
m_segment(0) {;} m_segment(0) {;}
AudioListItem(KListViewItem *parent):KListViewItem(parent), AudioListItem(TDEListViewItem *parent):TDEListViewItem(parent),
m_segment(0) {;} m_segment(0) {;}
AudioListItem(KListView *parent, AudioListItem(TDEListView *parent,
TQString label, TQString label,
AudioFileId id): AudioFileId id):
KListViewItem(parent, TDEListViewItem(parent,
label, label,
"", "", "", "", "", "", ""), "", "", "", "", "", "", ""),
m_id(id), m_id(id),
m_segment(0) {;} m_segment(0) {;}
AudioListItem(KListViewItem *parent, AudioListItem(TDEListViewItem *parent,
TQString label, TQString label,
AudioFileId id): AudioFileId id):
KListViewItem(parent, TDEListViewItem(parent,
label, label,
"", "", "", "", "", "", ""), "", "", "", "", "", "", ""),
m_id(id), m_id(id),

@ -32,7 +32,7 @@
namespace Rosegarden { namespace Rosegarden {
AudioListView::AudioListView(TQWidget *parent, const char *name) AudioListView::AudioListView(TQWidget *parent, const char *name)
: KListView(parent, name) : TDEListView(parent, name)
{ {
setDragEnabled(true); setDragEnabled(true);
setAcceptDrops(true); setAcceptDrops(true);
@ -41,7 +41,7 @@ AudioListView::AudioListView(TQWidget *parent, const char *name)
bool AudioListView::acceptDrag(TQDropEvent* e) const bool AudioListView::acceptDrag(TQDropEvent* e) const
{ {
return TQUriDrag::canDecode(e) || KListView::acceptDrag(e); return TQUriDrag::canDecode(e) || TDEListView::acceptDrag(e);
} }
TQDragObject* AudioListView::dragObject() TQDragObject* AudioListView::dragObject()

@ -29,7 +29,7 @@
namespace Rosegarden { namespace Rosegarden {
class AudioListView : public KListView class AudioListView : public TDEListView
{ {
public: public:
AudioListView(TQWidget *parent = 0, const char *name = 0); AudioListView(TQWidget *parent = 0, const char *name = 0);

@ -60,7 +60,7 @@
#include <deque> #include <deque>
class KURL; class KURL;
class KRecentFilesAction; class TDERecentFilesAction;
namespace Rosegarden { namespace Rosegarden {
@ -75,7 +75,7 @@ class SoundDriver;
/** /**
* The sequencer application * The sequencer application
*/ */
class RosegardenSequencerApp : public KMainWindow, class RosegardenSequencerApp : public TDEMainWindow,
virtual public RosegardenSequencerIface, virtual public RosegardenSequencerIface,
public ExternalTransport public ExternalTransport
{ {

Loading…
Cancel
Save