summaryrefslogtreecommitdiffstats
path: root/src/gui/editors
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:05:43 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:05:43 -0600
commitfb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca (patch)
tree5785d2ccbdfbe2f44d02fec75b4a51f5079a4b62 /src/gui/editors
parentacf699af8244896500e654cccdc8aae7e5b545db (diff)
downloadrosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.tar.gz
rosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/gui/editors')
-rw-r--r--src/gui/editors/eventlist/EventView.cpp26
-rw-r--r--src/gui/editors/eventlist/EventView.h4
-rw-r--r--src/gui/editors/eventlist/EventViewItem.h16
-rw-r--r--src/gui/editors/matrix/MatrixEraser.cpp8
-rw-r--r--src/gui/editors/matrix/MatrixMover.cpp8
-rw-r--r--src/gui/editors/matrix/MatrixPainter.cpp8
-rw-r--r--src/gui/editors/matrix/MatrixResizer.cpp8
-rw-r--r--src/gui/editors/matrix/MatrixSelector.cpp8
-rw-r--r--src/gui/editors/matrix/MatrixView.cpp120
-rw-r--r--src/gui/editors/notation/ClefInserter.cpp6
-rw-r--r--src/gui/editors/notation/GuitarChordInserter.cpp6
-rw-r--r--src/gui/editors/notation/NotationEraser.cpp6
-rw-r--r--src/gui/editors/notation/NotationSelector.cpp26
-rw-r--r--src/gui/editors/notation/NotationView.cpp386
-rw-r--r--src/gui/editors/notation/NotationView.h10
-rw-r--r--src/gui/editors/notation/NoteFontViewer.cpp2
-rw-r--r--src/gui/editors/notation/NoteInserter.cpp20
-rw-r--r--src/gui/editors/notation/RestInserter.cpp10
-rw-r--r--src/gui/editors/notation/TextInserter.cpp6
-rw-r--r--src/gui/editors/segment/ControlEditorDialog.cpp16
-rw-r--r--src/gui/editors/segment/ControlEditorDialog.h6
-rw-r--r--src/gui/editors/segment/ControlParameterItem.h4
-rw-r--r--src/gui/editors/segment/MarkerEditor.cpp24
-rw-r--r--src/gui/editors/segment/MarkerEditor.h6
-rw-r--r--src/gui/editors/segment/MarkerEditorViewItem.cpp4
-rw-r--r--src/gui/editors/segment/MarkerEditorViewItem.h4
-rw-r--r--src/gui/editors/segment/PlayListView.cpp4
-rw-r--r--src/gui/editors/segment/PlayListView.h2
-rw-r--r--src/gui/editors/segment/PlayListViewItem.cpp8
-rw-r--r--src/gui/editors/segment/PlayListViewItem.h6
-rw-r--r--src/gui/editors/segment/TriggerSegmentManager.cpp26
-rw-r--r--src/gui/editors/segment/TriggerSegmentManager.h6
-rw-r--r--src/gui/editors/segment/segmentcanvas/SegmentTool.cpp2
-rw-r--r--src/gui/editors/tempo/TempoListItem.h6
-rw-r--r--src/gui/editors/tempo/TempoView.cpp22
-rw-r--r--src/gui/editors/tempo/TempoView.h4
36 files changed, 417 insertions, 417 deletions
diff --git a/src/gui/editors/eventlist/EventView.cpp b/src/gui/editors/eventlist/EventView.cpp
index b804d17..ab32181 100644
--- a/src/gui/editors/eventlist/EventView.cpp
+++ b/src/gui/editors/eventlist/EventView.cpp
@@ -146,7 +146,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
connect(m_filterGroup, TQT_SIGNAL(released(int)),
TQT_SLOT(slotModifyFilter(int)));
- m_eventList = new KListView(getCentralWidget());
+ m_eventList = new TDEListView(getCentralWidget());
m_eventList->setItemsRenameable(true);
m_grid->addWidget(m_eventList, 2, 1);
@@ -1120,53 +1120,53 @@ EventView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
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(),
"insert");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-delete.png");
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(),
"delete");
pixmap.load(pixmapDir + "/toolbar/event-edit.png");
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(),
"edit_simple");
pixmap.load(pixmapDir + "/toolbar/event-edit-advanced.png");
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(),
"edit_advanced");
// 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(),
"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(),
"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(),
"clear_selection");
m_config->setGroup(EventViewConfigGroup);
int timeMode = m_config->readNumEntry("timemode", 0);
- KRadioAction *action;
+ TDERadioAction *action;
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
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()),
actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode");
@@ -1176,7 +1176,7 @@ EventView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png");
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()),
actionCollection(), "time_real");
action->setExclusiveGroup("timeMode");
@@ -1186,7 +1186,7 @@ EventView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png");
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()),
actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode");
@@ -1194,7 +1194,7 @@ EventView::setupActions()
action->setChecked(true);
if (m_isTriggerSegment) {
- KAction *action = actionCollection()->action("open_in_matrix");
+ TDEAction *action = actionCollection()->action("open_in_matrix");
if (action)
delete action;
action = actionCollection()->action("open_in_notation");
diff --git a/src/gui/editors/eventlist/EventView.h b/src/gui/editors/eventlist/EventView.h
index fb25502..a54b30d 100644
--- a/src/gui/editors/eventlist/EventView.h
+++ b/src/gui/editors/eventlist/EventView.h
@@ -44,7 +44,7 @@ class TQListViewItem;
class TQLabel;
class TQCheckBox;
class TQButtonGroup;
-class KListView;
+class TDEListView;
namespace Rosegarden
@@ -175,7 +175,7 @@ protected:
TQLabel *m_triggerPitch;
TQLabel *m_triggerVelocity;
- KListView *m_eventList;
+ TDEListView *m_eventList;
int m_eventFilter;
static int m_lastSetEventFilter;
diff --git a/src/gui/editors/eventlist/EventViewItem.h b/src/gui/editors/eventlist/EventViewItem.h
index b46f8b2..e86544f 100644
--- a/src/gui/editors/eventlist/EventViewItem.h
+++ b/src/gui/editors/eventlist/EventViewItem.h
@@ -36,20 +36,20 @@ class Event;
// EventView specialisation of a TQListViewItem with the
// addition of a segment pointer
//
-class EventViewItem : public KListViewItem
+class EventViewItem : public TDEListViewItem
{
public:
EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event,
- KListView *parent) :
- KListViewItem(parent),
+ TDEListView *parent) :
+ TDEListViewItem(parent),
m_segment(segment),
m_event(event) {;}
EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event,
- KListViewItem *parent) :
- KListViewItem(parent),
+ TDEListViewItem *parent) :
+ TDEListViewItem(parent),
m_segment(segment),
m_event(event) {;}
@@ -63,14 +63,14 @@ public:
TQString label6 = TQString(),
TQString label7 = TQString(),
TQString label8 = TQString()) :
- KListViewItem(parent, label1, label2, label3, label4,
+ TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8),
m_segment(segment),
m_event(event) {;}
EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event,
- KListViewItem *parent, TQString label1,
+ TDEListViewItem *parent, TQString label1,
TQString label2 = TQString(),
TQString label3 = TQString(),
TQString label4 = TQString(),
@@ -78,7 +78,7 @@ public:
TQString label6 = TQString(),
TQString label7 = TQString(),
TQString label8 = TQString()) :
- KListViewItem(parent, label1, label2, label3, label4,
+ TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8),
m_segment(segment),
m_event(event) {;}
diff --git a/src/gui/editors/matrix/MatrixEraser.cpp b/src/gui/editors/matrix/MatrixEraser.cpp
index 7edddfc..7665066 100644
--- a/src/gui/editors/matrix/MatrixEraser.cpp
+++ b/src/gui/editors/matrix/MatrixEraser.cpp
@@ -51,21 +51,21 @@ MatrixEraser::MatrixEraser(MatrixView* parent)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
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(),
"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(),
"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(),
"move");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
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(),
"resize");
diff --git a/src/gui/editors/matrix/MatrixMover.cpp b/src/gui/editors/matrix/MatrixMover.cpp
index 4366ab3..d2955fe 100644
--- a/src/gui/editors/matrix/MatrixMover.cpp
+++ b/src/gui/editors/matrix/MatrixMover.cpp
@@ -64,21 +64,21 @@ MatrixMover::MatrixMover(MatrixView* parent) :
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
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(),
"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(),
"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(),
"erase");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
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(),
"resize");
diff --git a/src/gui/editors/matrix/MatrixPainter.cpp b/src/gui/editors/matrix/MatrixPainter.cpp
index 18a4822..a6b0a15 100644
--- a/src/gui/editors/matrix/MatrixPainter.cpp
+++ b/src/gui/editors/matrix/MatrixPainter.cpp
@@ -62,21 +62,21 @@ MatrixPainter::MatrixPainter(MatrixView* parent)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
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(),
"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(),
"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(),
"move");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
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(),
"resize");
diff --git a/src/gui/editors/matrix/MatrixResizer.cpp b/src/gui/editors/matrix/MatrixResizer.cpp
index 2335cd7..ff7760a 100644
--- a/src/gui/editors/matrix/MatrixResizer.cpp
+++ b/src/gui/editors/matrix/MatrixResizer.cpp
@@ -60,19 +60,19 @@ MatrixResizer::MatrixResizer(MatrixView* parent)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
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(),
"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(),
"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(),
"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(),
"move");
diff --git a/src/gui/editors/matrix/MatrixSelector.cpp b/src/gui/editors/matrix/MatrixSelector.cpp
index c9c3b32..72060af 100644
--- a/src/gui/editors/matrix/MatrixSelector.cpp
+++ b/src/gui/editors/matrix/MatrixSelector.cpp
@@ -74,15 +74,15 @@ MatrixSelector::MatrixSelector(MatrixView* view)
connect(m_parentView, TQT_SIGNAL(usedSelection()),
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(),
"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(),
"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(),
"move");
@@ -90,7 +90,7 @@ MatrixSelector::MatrixSelector(MatrixView* view)
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm");
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(),
"resize");
diff --git a/src/gui/editors/matrix/MatrixView.cpp b/src/gui/editors/matrix/MatrixView.cpp
index f7665c9..099ef06 100644
--- a/src/gui/editors/matrix/MatrixView.cpp
+++ b/src/gui/editors/matrix/MatrixView.cpp
@@ -633,225 +633,225 @@ void MatrixView::setupActions()
//
// Edition tools (eraser, selector...)
//
- KRadioAction* toolAction = 0;
+ TDERadioAction* toolAction = 0;
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
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()),
actionCollection(), "select");
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()),
actionCollection(), "draw");
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()),
actionCollection(), "erase");
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()),
actionCollection(), "move");
toolAction->setExclusiveGroup("tools");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm");
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()),
actionCollection(), "resize");
toolAction->setExclusiveGroup("tools");
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()),
actionCollection(), "chord_mode"))->
setChecked(false);
pixmap.load(pixmapDir + "/toolbar/step_by_step.xpm");
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(),
"toggle_step_by_step");
pixmap.load(pixmapDir + "/toolbar/quantize.png");
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(),
"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(),
"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(),
"collapse_notes");
- new KAction(i18n("&Legato"), Key_Minus, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Legato"), Key_Minus, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsLegato()), actionCollection(),
"legatoize");
- new KAction(ChangeVelocityCommand::getGlobalName(10), 0,
+ new TDEAction(ChangeVelocityCommand::getGlobalName(10), 0,
Key_Up + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotVelocityUp()), actionCollection(),
"velocity_up");
- new KAction(ChangeVelocityCommand::getGlobalName( -10), 0,
+ new TDEAction(ChangeVelocityCommand::getGlobalName( -10), 0,
Key_Down + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotVelocityDown()), actionCollection(),
"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(),
"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(),
"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(),
"trigger_segment");
- new KAction(i18n("Remove Triggers..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Remove Triggers..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveTriggers()), actionCollection(),
"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(),
"select_all");
- new KAction(i18n("&Delete"), Key_Delete, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Delete"), Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDelete()), actionCollection(),
"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(),
"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(),
"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(),
"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(),
"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(),
"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(),
"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(),
"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(),
"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
Key_A + CTRL, */ TQT_TQOBJECT(this),
TQT_SLOT(slotJumpToStart()), actionCollection(),
"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(),
"cursor_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"cursor_to_playback_pointer");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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");
// Alternative shortcut for Play
- KShortcut playShortcut = play->shortcut();
+ TDEShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_to_cursor");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-solo")));
- new KToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSolo()), actionCollection(),
"toggle_solo");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"toggle_tracking"))->setChecked(m_playTracking);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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");
- 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(),
"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(),
"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(),
"clear_selection");
// 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(),
"filter_selection");
@@ -876,16 +876,16 @@ void MatrixView::setupActions()
timeT d = m_snapValues[i];
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()),
actionCollection(), "snap_none");
} else if (d == SnapGrid::SnapToUnit) {
} 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()),
actionCollection(), "snap_beat");
} 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()),
actionCollection(), "snap_bar");
} else {
@@ -895,7 +895,7 @@ void MatrixView::setupActions()
TQPixmap pixmap = NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeNoteMenuPixmap(d, err));
- KShortcut cut = 0;
+ TDEShortcut cut = 0;
if (d == crotchetDuration / 16) cut = Key_0;
else if (d == crotchetDuration / 8) cut = Key_3;
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));
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(),
actionName.ascii());
}
@@ -914,16 +914,16 @@ void MatrixView::setupActions()
//
// 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()),
actionCollection(),
"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()),
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()),
actionCollection(), "show_tempo_ruler");
@@ -938,7 +938,7 @@ void MatrixView::setupActions()
bool
MatrixView::isInChordMode()
{
- return ((KToggleAction *)actionCollection()->action("chord_mode"))->
+ return ((TDEToggleAction *)actionCollection()->action("chord_mode"))->
isChecked();
}
@@ -2107,7 +2107,7 @@ MatrixView::initActionsToolbar()
{
MATRIX_DEBUG << "MatrixView::initActionsToolbar" << endl;
- KToolBar *actionsToolbar = toolBar("Actions Toolbar");
+ TDEToolBar *actionsToolbar = toolBar("Actions Toolbar");
if (!actionsToolbar) {
MATRIX_DEBUG << "MatrixView::initActionsToolbar - "
@@ -2192,7 +2192,7 @@ MatrixView::initZoomToolbar()
{
MATRIX_DEBUG << "MatrixView::initZoomToolbar" << endl;
- KToolBar *zoomToolbar = toolBar("Zoom Toolbar");
+ TDEToolBar *zoomToolbar = toolBar("Zoom Toolbar");
if (!zoomToolbar) {
MATRIX_DEBUG << "MatrixView::initZoomToolbar - "
@@ -2828,7 +2828,7 @@ MatrixView::slotInsertableNoteEventReceived(int pitch, int velocity, bool noteOn
return ;
}
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
if (!action) {
MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
@@ -2914,7 +2914,7 @@ MatrixView::slotInsertableNoteOffReceived(int pitch, int velocity)
void
MatrixView::slotToggleStepByStep()
{
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
if (!action) {
MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
@@ -2942,7 +2942,7 @@ MatrixView::slotUpdateInsertModeStatus()
void
MatrixView::slotStepByStepTargetRequested(TQObject *obj)
{
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
if (!action) {
MATRIX_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
diff --git a/src/gui/editors/notation/ClefInserter.cpp b/src/gui/editors/notation/ClefInserter.cpp
index eba4e7d..097fc5e 100644
--- a/src/gui/editors/notation/ClefInserter.cpp
+++ b/src/gui/editors/notation/ClefInserter.cpp
@@ -50,18 +50,18 @@ ClefInserter::ClefInserter(NotationView* view)
{
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"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(),
"erase");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"notes");
diff --git a/src/gui/editors/notation/GuitarChordInserter.cpp b/src/gui/editors/notation/GuitarChordInserter.cpp
index 5c44420..b730dd3 100644
--- a/src/gui/editors/notation/GuitarChordInserter.cpp
+++ b/src/gui/editors/notation/GuitarChordInserter.cpp
@@ -56,11 +56,11 @@ GuitarChordInserter::GuitarChordInserter(NotationView* view)
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"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(),
"erase");
@@ -68,7 +68,7 @@ GuitarChordInserter::GuitarChordInserter(NotationView* view)
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"notes");
diff --git a/src/gui/editors/notation/NotationEraser.cpp b/src/gui/editors/notation/NotationEraser.cpp
index c12d87a..198943e 100644
--- a/src/gui/editors/notation/NotationEraser.cpp
+++ b/src/gui/editors/notation/NotationEraser.cpp
@@ -51,20 +51,20 @@ NotationEraser::NotationEraser(NotationView* view)
config->setGroup(NotationViewConfigGroup);
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(),
"toggle_rest_collapse");
TQIconSet icon
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"insert");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"select");
diff --git a/src/gui/editors/notation/NotationSelector.cpp b/src/gui/editors/notation/NotationSelector.cpp
index 26114fe..549b2a5 100644
--- a/src/gui/editors/notation/NotationSelector.cpp
+++ b/src/gui/editors/notation/NotationSelector.cpp
@@ -80,58 +80,58 @@ NotationSelector::NotationSelector(NotationView* view)
TQIconSet icon
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"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(),
"erase");
// (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
// fooling with it.) (DMM)
- // new KAction(i18n("Normalize Rests"), 0, 0, this,
+ // new TDEAction(i18n("Normalize Rests"), 0, 0, this,
// TQT_SLOT(slotCollapseRests()), actionCollection(),
// "collapse_rests");
- new KAction(i18n("Collapse Rests"), 0, 0, this,
+ new TDEAction(i18n("Collapse Rests"), 0, 0, this,
TQT_SLOT(slotCollapseRestsHard()), actionCollection(),
"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(),
"respell_flat");
- new KAction(i18n("Respell as Sharp"), 0, 0, this,
+ new TDEAction(i18n("Respell as Sharp"), 0, 0, this,
TQT_SLOT(slotRespellSharp()), actionCollection(),
"respell_sharp");
- new KAction(i18n("Respell as Natural"), 0, 0, this,
+ new TDEAction(i18n("Respell as Natural"), 0, 0, this,
TQT_SLOT(slotRespellNatural()), actionCollection(),
"respell_natural");
- new KAction(i18n("Collapse Notes"), 0, 0, this,
+ new TDEAction(i18n("Collapse Notes"), 0, 0, this,
TQT_SLOT(slotCollapseNotes()), actionCollection(),
"collapse_notes");
- new KAction(i18n("Interpret"), 0, 0, this,
+ new TDEAction(i18n("Interpret"), 0, 0, this,
TQT_SLOT(slotInterpret()), actionCollection(),
"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(),
"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(),
"move_events_down_staff");
- new KAction(i18n("Make Invisible"), 0, 0, this,
+ new TDEAction(i18n("Make Invisible"), 0, 0, this,
TQT_SLOT(slotMakeInvisible()), actionCollection(),
"make_invisible");
- new KAction(i18n("Make Visible"), 0, 0, this,
+ new TDEAction(i18n("Make Visible"), 0, 0, this,
TQT_SLOT(slotMakeVisible()), actionCollection(),
"make_visible");
diff --git a/src/gui/editors/notation/NotationView.cpp b/src/gui/editors/notation/NotationView.cpp
index 02b8539..f77bb36 100644
--- a/src/gui/editors/notation/NotationView.cpp
+++ b/src/gui/editors/notation/NotationView.cpp
@@ -1435,7 +1435,7 @@ void NotationView::slotSaveOptions()
void NotationView::setOneToolbar(const char *actionName,
const char *toolbarName)
{
- KToggleAction *action = getToggleAction(actionName);
+ TDEToggleAction *action = getToggleAction(actionName);
if (!action) {
std::cerr << "WARNING: No such action as " << actionName << std::endl;
return ;
@@ -1497,23 +1497,23 @@ void NotationView::setupActions()
KStdAction::printPreview(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrintPreview()),
actionCollection());
- new KAction(i18n("Print &with LilyPond..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Print &with LilyPond..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond");
- new KAction(i18n("Preview with Lil&yPond..."), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Preview with Lil&yPond..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond");
EditViewBase::setupActions("notation.rc");
EditView::setupActions();
- KRadioAction* noteAction = 0;
+ TDERadioAction* noteAction = 0;
// View menu stuff
- KActionMenu *fontActionMenu =
- new KActionMenu(i18n("Note &Font"), TQT_TQOBJECT(this), "note_font_actionmenu");
+ TDEActionMenu *fontActionMenu =
+ new TDEActionMenu(i18n("Note &Font"), TQT_TQOBJECT(this), "note_font_actionmenu");
std::set
<std::string> fs(NoteFontFactory::getFontNames());
@@ -1524,8 +1524,8 @@ void NotationView::setupActions()
TQString fontTQName(strtoqstr(*i));
- KToggleAction *fontAction =
- new KToggleAction
+ TDEToggleAction *fontAction =
+ new TDEToggleAction
(fontTQName, 0, TQT_TQOBJECT(this), TQT_SLOT(slotChangeFontFromAction()),
actionCollection(), TQString("note_font_" + fontTQName).ascii());
@@ -1536,18 +1536,18 @@ void NotationView::setupActions()
actionCollection()->insert(fontActionMenu);
m_fontSizeActionMenu =
- new KActionMenu(i18n("Si&ze"), TQT_TQOBJECT(this), "note_font_size_actionmenu");
+ new TDEActionMenu(i18n("Si&ze"), TQT_TQOBJECT(this), "note_font_size_actionmenu");
setupFontSizeMenu();
actionCollection()->insert(m_fontSizeActionMenu);
m_showHeadersMenuEntry
- = new KAction(i18n("Show Track Headers"), 0, TQT_TQOBJECT(this),
+ = new TDEAction(i18n("Show Track Headers"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotShowHeadersGroup()),
actionCollection(), "show_track_headers");
- KActionMenu *spacingActionMenu =
- new KActionMenu(i18n("S&pacing"), TQT_TQOBJECT(this), "stretch_actionmenu");
+ TDEActionMenu *spacingActionMenu =
+ new TDEActionMenu(i18n("S&pacing"), TQT_TQOBJECT(this), "stretch_actionmenu");
int defaultSpacing = m_hlayout->getSpacing();
std::vector<int> spacings = NotationHLayout::getAvailableSpacings();
@@ -1555,8 +1555,8 @@ void NotationView::setupActions()
for (std::vector<int>::iterator i = spacings.begin();
i != spacings.end(); ++i) {
- KToggleAction *spacingAction =
- new KToggleAction
+ TDEToggleAction *spacingAction =
+ new TDEToggleAction
(TQString("%1%").arg(*i), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotChangeSpacingFromAction()),
actionCollection(), TQString("spacing_%1").arg(*i).ascii());
@@ -1568,8 +1568,8 @@ void NotationView::setupActions()
actionCollection()->insert(spacingActionMenu);
- KActionMenu *proportionActionMenu =
- new KActionMenu(i18n("Du&ration Factor"), TQT_TQOBJECT(this), "proportion_actionmenu");
+ TDEActionMenu *proportionActionMenu =
+ new TDEActionMenu(i18n("Du&ration Factor"), TQT_TQOBJECT(this), "proportion_actionmenu");
int defaultProportion = m_hlayout->getProportion();
std::vector<int> proportions = NotationHLayout::getAvailableProportions();
@@ -1581,8 +1581,8 @@ void NotationView::setupActions()
if (*i == 0)
name = i18n("None");
- KToggleAction *proportionAction =
- new KToggleAction
+ TDEToggleAction *proportionAction =
+ new TDEToggleAction
(name, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotChangeProportionFromAction()),
actionCollection(), TQString("proportion_%1").arg(*i).ascii());
@@ -1594,8 +1594,8 @@ void NotationView::setupActions()
actionCollection()->insert(proportionActionMenu);
- KActionMenu *styleActionMenu =
- new KActionMenu(i18n("Note &Style"), TQT_TQOBJECT(this), "note_style_actionmenu");
+ TDEActionMenu *styleActionMenu =
+ new TDEActionMenu(i18n("Note &Style"), TQT_TQOBJECT(this), "note_style_actionmenu");
std::vector<NoteStyleName> styles
(NoteStyleFactory::getAvailableStyleNames());
@@ -1605,8 +1605,8 @@ void NotationView::setupActions()
TQString styleTQName(strtoqstr(*i));
- KAction *styleAction =
- new KAction
+ TDEAction *styleAction =
+ new TDEAction
(styleTQName, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSetStyleFromAction()),
actionCollection(), TQString("style_" + styleTQName).ascii());
@@ -1615,21 +1615,21 @@ void NotationView::setupActions()
actionCollection()->insert(styleActionMenu);
- KActionMenu *ornamentActionMenu =
- new KActionMenu(i18n("Use Ornament"), TQT_TQOBJECT(this), "ornament_actionmenu");
+ TDEActionMenu *ornamentActionMenu =
+ new TDEActionMenu(i18n("Use Ornament"), TQT_TQOBJECT(this), "ornament_actionmenu");
- new KAction
+ new TDEAction
(i18n("Insert Rest"), Key_P, TQT_TQOBJECT(this), TQT_SLOT(slotInsertRest()),
actionCollection(), TQString("insert_rest").ascii());
- new KAction
+ new TDEAction
(i18n("Switch from Note to Rest"), Key_T, TQT_TQOBJECT(this),
TQT_SLOT(slotSwitchFromNoteToRest()),
actionCollection(), TQString("switch_from_note_to_rest").ascii());
- new KAction
+ new TDEAction
(i18n("Switch from Rest to Note"), Key_Y, TQT_TQOBJECT(this),
TQT_SLOT(slotSwitchFromRestToNote()),
actionCollection(), TQString("switch_from_rest_to_note").ascii());
@@ -1647,7 +1647,7 @@ void NotationView::setupActions()
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
(noteActionData.pixmapName.ascii())));
- noteAction = new KRadioAction(noteActionData.title,
+ noteAction = new TDERadioAction(noteActionData.title,
icon,
noteActionData.keycode,
TQT_TQOBJECT(this),
@@ -1673,7 +1673,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
(data.pixmapName.ascii())));
- KAction *action = new KAction(data.title,
+ TDEAction *action = new TDEAction(data.title,
icon,
data.keycode,
TQT_TQOBJECT(this),
@@ -1701,7 +1701,7 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
(actionsAccidental[i][3].ascii())));
- noteAction = new KRadioAction(actionsAccidental[i][0], icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(actionsAccidental[i][0], icon, 0, TQT_TQOBJECT(this),
actionsAccidental[i][1].ascii(),
actionCollection(), actionsAccidental[i][2].ascii());
noteAction->setExclusiveGroup("accidentals");
@@ -1714,47 +1714,47 @@ void NotationView::setupActions()
// Treble
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-treble")));
- noteAction = new KRadioAction(i18n("&Treble Clef"), icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Treble Clef"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTrebleClef()),
actionCollection(), "treble_clef");
noteAction->setExclusiveGroup("notes");
// Alto
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-alto")));
- noteAction = new KRadioAction(i18n("&Alto Clef"), icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Alto Clef"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAltoClef()),
actionCollection(), "alto_clef");
noteAction->setExclusiveGroup("notes");
// Tenor
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-tenor")));
- noteAction = new KRadioAction(i18n("Te&nor Clef"), icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("Te&nor Clef"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTenorClef()),
actionCollection(), "tenor_clef");
noteAction->setExclusiveGroup("notes");
// Bass
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("clef-bass")));
- noteAction = new KRadioAction(i18n("&Bass Clef"), icon, 0, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Bass Clef"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotBassClef()),
actionCollection(), "bass_clef");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("text")));
- noteAction = new KRadioAction(i18n("&Text"), icon, Key_F8, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Text"), icon, Key_F8, TQT_TQOBJECT(this),
TQT_SLOT(slotText()),
actionCollection(), "text");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("guitarchord")));
- noteAction = new KRadioAction(i18n("&Guitar Chord"), icon, Key_F9, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("&Guitar Chord"), icon, Key_F9, TQT_TQOBJECT(this),
TQT_SLOT(slotGuitarChord()),
actionCollection(), "guitarchord");
noteAction->setExclusiveGroup("notes");
/* icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("lilypond")));
- noteAction = new KRadioAction(i18n("Lil&ypond Directive"), icon, Key_F9, TQT_TQOBJECT(this),
+ noteAction = new TDERadioAction(i18n("Lil&ypond Directive"), icon, Key_F9, TQT_TQOBJECT(this),
TQT_SLOT(slotLilyPondDirective()),
actionCollection(), "lilypond_directive");
noteAction->setExclusiveGroup("notes"); */
@@ -1763,53 +1763,53 @@ void NotationView::setupActions()
//
// Edition tools (eraser, selector...)
//
- noteAction = new KRadioAction(i18n("&Erase"), "eraser", Key_F4,
+ noteAction = new TDERadioAction(i18n("&Erase"), "eraser", Key_F4,
TQT_TQOBJECT(this), TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("select")));
- noteAction = new KRadioAction(i18n("&Select and Edit"), icon, Key_F2,
+ noteAction = new TDERadioAction(i18n("&Select and Edit"), icon, Key_F2,
TQT_TQOBJECT(this), TQT_SLOT(slotSelectSelected()),
actionCollection(), "select");
noteAction->setExclusiveGroup("notes");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap("step_by_step")));
- 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(),
"toggle_step_by_step");
// Edit menu
- new KAction(i18n("Select from Sta&rt"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select from Sta&rt"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditSelectFromStart()), actionCollection(),
"select_from_start");
- new KAction(i18n("Select to &End"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select to &End"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditSelectToEnd()), actionCollection(),
"select_to_end");
- new KAction(i18n("Select Whole St&aff"), Key_A + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select Whole St&aff"), Key_A + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotEditSelectWholeStaff()), actionCollection(),
"select_whole_staff");
- new KAction(i18n("C&ut and Close"), CTRL + SHIFT + Key_X, TQT_TQOBJECT(this),
+ new TDEAction(i18n("C&ut and Close"), CTRL + SHIFT + Key_X, TQT_TQOBJECT(this),
TQT_SLOT(slotEditCutAndClose()), actionCollection(),
"cut_and_close");
- new KAction(i18n("Pa&ste..."), CTRL + SHIFT + Key_V, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Pa&ste..."), CTRL + SHIFT + Key_V, TQT_TQOBJECT(this),
TQT_SLOT(slotEditGeneralPaste()), actionCollection(),
"general_paste");
- new KAction(i18n("De&lete"), Key_Delete, TQT_TQOBJECT(this),
+ new TDEAction(i18n("De&lete"), Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDelete()), actionCollection(),
"delete");
- new KAction(i18n("Move to Staff Above"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Move to Staff Above"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMoveEventsUpStaff()), actionCollection(),
"move_events_up_staff");
- new KAction(i18n("Move to Staff Below"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Move to Staff Below"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMoveEventsDownStaff()), actionCollection(),
"move_events_down_staff");
@@ -1822,7 +1822,7 @@ void NotationView::setupActions()
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/linear-layout.xpm");
icon = TQIconSet(pixmap);
- KRadioAction *linearModeAction = new KRadioAction
+ TDERadioAction *linearModeAction = new TDERadioAction
(i18n("&Linear Layout"), icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotLinearMode()),
actionCollection(), "linear_mode");
linearModeAction->setExclusiveGroup("layoutMode");
@@ -1831,7 +1831,7 @@ void NotationView::setupActions()
pixmap.load(pixmapDir + "/toolbar/continuous-page-mode.xpm");
icon = TQIconSet(pixmap);
- KRadioAction *continuousPageModeAction = new KRadioAction
+ TDERadioAction *continuousPageModeAction = new TDERadioAction
(i18n("&Continuous Page Layout"), icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotContinuousPageMode()),
actionCollection(), "continuous_page_mode");
continuousPageModeAction->setExclusiveGroup("layoutMode");
@@ -1840,34 +1840,34 @@ void NotationView::setupActions()
pixmap.load(pixmapDir + "/toolbar/multi-page-mode.xpm");
icon = TQIconSet(pixmap);
- KRadioAction *multiPageModeAction = new KRadioAction
+ TDERadioAction *multiPageModeAction = new TDERadioAction
(i18n("&Multiple Page Layout"), icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotMultiPageMode()),
actionCollection(), "multi_page_mode");
multiPageModeAction->setExclusiveGroup("layoutMode");
if (layoutMode == 2)
multiPageModeAction->setChecked(true);
- 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()),
actionCollection(), "show_chords_ruler");
- new KToggleAction(i18n("Show Ra&w Note Ruler"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show Ra&w Note Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleRawNoteRuler()),
actionCollection(), "show_raw_note_ruler");
- new KToggleAction(i18n("Show &Tempo Ruler"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show &Tempo Ruler"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleTempoRuler()),
actionCollection(), "show_tempo_ruler");
- new KToggleAction(i18n("Show &Annotations"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show &Annotations"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleAnnotations()),
actionCollection(), "show_annotations");
- new KToggleAction(i18n("Show Lily&Pond Directives"), 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("Show Lily&Pond Directives"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleLilyPondDirectives()),
actionCollection(), "show_lilypond_directives");
- new KAction(i18n("Open L&yric Editor"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditLyrics()),
+ new TDEAction(i18n("Open L&yric Editor"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditLyrics()),
actionCollection(), "lyric_editor");
//
@@ -1877,53 +1877,53 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-beam")));
- new KAction(BeamCommand::getGlobalName(), icon, Key_B + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(BeamCommand::getGlobalName(), icon, Key_B + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupBeam()), actionCollection(), "beam");
- new KAction(AutoBeamCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(AutoBeamCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupAutoBeam()), actionCollection(), "auto_beam");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-unbeam")));
- new KAction(BreakCommand::getGlobalName(), icon, Key_U + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(BreakCommand::getGlobalName(), icon, Key_U + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupBreak()), actionCollection(), "break_group");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-simple-tuplet")));
- new KAction(TupletCommand::getGlobalName(true), icon, Key_R + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(TupletCommand::getGlobalName(true), icon, Key_R + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupSimpleTuplet()), actionCollection(), "simple_tuplet");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-tuplet")));
- new KAction(TupletCommand::getGlobalName(false), icon, Key_T + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(TupletCommand::getGlobalName(false), icon, Key_T + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupGeneralTuplet()), actionCollection(), "tuplet");
- new KAction(UnTupletCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(UnTupletCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupUnTuplet()), actionCollection(), "break_tuplets");
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("triplet")));
- (new KToggleAction(i18n("Trip&let Insert Mode"), icon, Key_G,
+ (new TDEToggleAction(i18n("Trip&let Insert Mode"), icon, Key_G,
TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "triplet_mode"))->
setChecked(false);
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()),
actionCollection(), "chord_mode"))->
setChecked(false);
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeToolbarPixmap("group-grace")));
- (new KToggleAction(i18n("Grace Insert Mode"), icon, 0,
+ (new TDEToggleAction(i18n("Grace Insert Mode"), icon, 0,
TQT_TQOBJECT(this), TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "grace_mode"))->
setChecked(false);
@@ -1932,21 +1932,21 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-grace")));
- new KAction(GraceCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(GraceCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupGrace()), actionCollection(), "grace");
- new KAction(UnGraceCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(UnGraceCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupUnGrace()), actionCollection(), "ungrace");
*/
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-slur")));
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Slur), icon, Key_ParenRight, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupSlur()), actionCollection(), "slur");
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::PhrasingSlur), 0, Key_ParenRight + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupPhrasingSlur()), actionCollection(), "phrasing_slur");
@@ -1954,7 +1954,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-glissando")));
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Glissando), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupGlissando()), actionCollection(), "glissando");
@@ -1962,7 +1962,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-crescendo")));
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Crescendo), icon, Key_Less, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupCrescendo()), actionCollection(), "crescendo");
@@ -1970,11 +1970,11 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-decrescendo")));
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::Decrescendo), icon, Key_Greater, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupDecrescendo()), actionCollection(), "decrescendo");
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::QuindicesimaUp), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupOctave2Up()), actionCollection(), "octave_2up");
@@ -1982,34 +1982,34 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-ottava")));
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::OttavaUp), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupOctaveUp()), actionCollection(), "octave_up");
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::OttavaDown), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupOctaveDown()), actionCollection(), "octave_down");
- new KAction(AddIndicationCommand::getGlobalName
+ new TDEAction(AddIndicationCommand::getGlobalName
(Indication::QuindicesimaDown), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupOctave2Down()), actionCollection(), "octave_2down");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("group-chord")));
- new KAction(MakeChordCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(MakeChordCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGroupMakeChord()), actionCollection(), "make_chord");
// setup Transforms menu
- new KAction(NormalizeRestsCommand::getGlobalName(), Key_N + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(NormalizeRestsCommand::getGlobalName(), Key_N + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsNormalizeRests()), actionCollection(),
"normalize_rests");
- new KAction(CollapseRestsCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(CollapseRestsCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsCollapseRests()), actionCollection(),
"collapse_rests_aggressively");
- new KAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsCollapseNotes()), actionCollection(),
"collapse_notes");
@@ -2017,15 +2017,15 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transforms-tie")));
- new KAction(TieNotesCommand::getGlobalName(), icon, Key_AsciiTilde, TQT_TQOBJECT(this),
+ new TDEAction(TieNotesCommand::getGlobalName(), icon, Key_AsciiTilde, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsTieNotes()), actionCollection(),
"tie_notes");
- new KAction(UntieNotesCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(UntieNotesCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsUntieNotes()), actionCollection(),
"untie_notes");
- new KAction(MakeNotesViableCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(MakeNotesViableCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsMakeNotesViable()), actionCollection(),
"make_notes_viable");
@@ -2033,49 +2033,49 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transforms-decounterpoint")));
- new KAction(DeCounterpointCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(DeCounterpointCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsDeCounterpoint()), actionCollection(),
"de_counterpoint");
- new KAction(ChangeStemsCommand::getGlobalName(true),
+ new TDEAction(ChangeStemsCommand::getGlobalName(true),
0, Key_PageUp + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsStemsUp()), actionCollection(),
"stems_up");
- new KAction(ChangeStemsCommand::getGlobalName(false),
+ new TDEAction(ChangeStemsCommand::getGlobalName(false),
0, Key_PageDown + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsStemsDown()), actionCollection(),
"stems_down");
- new KAction(RestoreStemsCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RestoreStemsCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsRestoreStems()), actionCollection(),
"restore_stems");
- new KAction(ChangeSlurPositionCommand::getGlobalName(true),
+ new TDEAction(ChangeSlurPositionCommand::getGlobalName(true),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsSlursAbove()), actionCollection(),
"slurs_above");
- new KAction(ChangeSlurPositionCommand::getGlobalName(false),
+ new TDEAction(ChangeSlurPositionCommand::getGlobalName(false),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsSlursBelow()), actionCollection(),
"slurs_below");
- new KAction(RestoreSlursCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RestoreSlursCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsRestoreSlurs()), actionCollection(),
"restore_slurs");
- new KAction(ChangeTiePositionCommand::getGlobalName(true),
+ new TDEAction(ChangeTiePositionCommand::getGlobalName(true),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsTiesAbove()), actionCollection(),
"ties_above");
- new KAction(ChangeTiePositionCommand::getGlobalName(false),
+ new TDEAction(ChangeTiePositionCommand::getGlobalName(false),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsTiesBelow()), actionCollection(),
"ties_below");
- new KAction(RestoreTiesCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RestoreTiesCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsRestoreTies()), actionCollection(),
"restore_ties");
@@ -2083,7 +2083,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("accmenu-doubleflat")));
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::DoubleFlat),
icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellDoubleFlat()), actionCollection(),
@@ -2093,7 +2093,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("accmenu-flat")));
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Flat),
icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellFlat()), actionCollection(),
@@ -2103,7 +2103,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("accmenu-natural")));
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Natural),
icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellNatural()), actionCollection(),
@@ -2113,7 +2113,7 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("accmenu-sharp")));
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::Sharp),
icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellSharp()), actionCollection(),
@@ -2123,36 +2123,36 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("accmenu-doublesharp")));
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Set, Accidentals::DoubleSharp),
icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellDoubleSharp()), actionCollection(),
"respell_doublesharp");
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Up, Accidentals::NoAccidental),
Key_Up + CTRL + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellUp()), actionCollection(),
"respell_up");
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Down, Accidentals::NoAccidental),
Key_Down + CTRL + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellDown()), actionCollection(),
"respell_down");
- new KAction(RespellCommand::getGlobalName
+ new TDEAction(RespellCommand::getGlobalName
(RespellCommand::Restore, Accidentals::NoAccidental),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotRespellRestore()), actionCollection(),
"respell_restore");
- new KAction(MakeAccidentalsCautionaryCommand::getGlobalName(true),
+ new TDEAction(MakeAccidentalsCautionaryCommand::getGlobalName(true),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotShowCautionary()), actionCollection(),
"show_cautionary");
- new KAction(MakeAccidentalsCautionaryCommand::getGlobalName(false),
+ new TDEAction(MakeAccidentalsCautionaryCommand::getGlobalName(false),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotCancelCautionary()), actionCollection(),
"cancel_cautionary");
@@ -2161,23 +2161,23 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("quantize")));
- new KAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, TQT_TQOBJECT(this),
+ new TDEAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, TQT_TQOBJECT(this),
TQT_SLOT(slotTransformsQuantize()), actionCollection(),
"quantize");
- new KAction(FixNotationQuantizeCommand::getGlobalName(), 0,
+ new TDEAction(FixNotationQuantizeCommand::getGlobalName(), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotTransformsFixQuantization()), actionCollection(),
"fix_quantization");
- new KAction(RemoveNotationQuantizeCommand::getGlobalName(), 0,
+ new TDEAction(RemoveNotationQuantizeCommand::getGlobalName(), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotTransformsRemoveQuantization()), actionCollection(),
"remove_quantization");
- new KAction(InterpretCommand::getGlobalName(), 0,
+ new TDEAction(InterpretCommand::getGlobalName(), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotTransformsInterpret()), actionCollection(),
"interpret");
- new KAction(i18n("&Dump selected events to stderr"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Dump selected events to stderr"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDebugDump()), actionCollection(), "debug_dump");
for (MarkActionDataMap::Iterator i = m_markActionDataMap->begin();
@@ -2188,7 +2188,7 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap
(NotePixmapFactory::makeMarkMenuPixmap(markActionData.mark)));
- new KAction(markActionData.title,
+ new TDEAction(markActionData.title,
icon,
markActionData.keycode,
TQT_TQOBJECT(this),
@@ -2201,59 +2201,59 @@ void NotationView::setupActions()
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("text-mark")));
- new KAction(AddTextMarkCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
+ new TDEAction(AddTextMarkCommand::getGlobalName(), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddTextMark()), actionCollection(),
"add_text_mark");
- new KAction(AddFingeringMarkCommand::getGlobalName("0"), 0, Key_0 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("0"), 0, Key_0 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_0");
- new KAction(AddFingeringMarkCommand::getGlobalName("1"), 0, Key_1 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("1"), 0, Key_1 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_1");
- new KAction(AddFingeringMarkCommand::getGlobalName("2"), 0, Key_2 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("2"), 0, Key_2 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_2");
- new KAction(AddFingeringMarkCommand::getGlobalName("3"), 0, Key_3 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("3"), 0, Key_3 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_3");
- new KAction(AddFingeringMarkCommand::getGlobalName("4"), 0, Key_4 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("4"), 0, Key_4 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_4");
- new KAction(AddFingeringMarkCommand::getGlobalName("5"), 0, Key_5 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("5"), 0, Key_5 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_5");
- new KAction(AddFingeringMarkCommand::getGlobalName("+"), 0, Key_9 + ALT, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName("+"), 0, Key_9 + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMarkFromAction()), actionCollection(),
"add_fingering_plus");
- new KAction(AddFingeringMarkCommand::getGlobalName(), 0, 0, TQT_TQOBJECT(this),
+ new TDEAction(AddFingeringMarkCommand::getGlobalName(), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksAddFingeringMark()), actionCollection(),
"add_fingering_mark");
- new KAction(RemoveMarksCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RemoveMarksCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksRemoveMarks()), actionCollection(),
"remove_marks");
- new KAction(RemoveFingeringMarksCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(RemoveFingeringMarksCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMarksRemoveFingeringMarks()), actionCollection(),
"remove_fingering_marks");
- new KAction(i18n("Ma&ke Ornament..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Ma&ke Ornament..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMakeOrnament()), actionCollection(),
"make_ornament");
- new KAction(i18n("Trigger &Ornament..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Trigger &Ornament..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotUseOrnament()), actionCollection(),
"use_ornament");
- new KAction(i18n("Remove Ornament..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Remove Ornament..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveOrnament()), actionCollection(),
"remove_ornament");
@@ -2261,32 +2261,32 @@ void NotationView::setupActions()
i18n("&None"), "&1", "&2", "&3", "&4", "&5"
};
for (int i = 0; i <= 5; ++i) {
- new KAction(slashTitles[i], 0, TQT_TQOBJECT(this),
+ new TDEAction(slashTitles[i], 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAddSlashes()), actionCollection(),
TQString("slashes_%1").arg(i).ascii());
}
- new KAction(ClefInsertionCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(ClefInsertionCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditAddClef()), actionCollection(),
"add_clef");
- new KAction(KeyInsertionCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
+ new TDEAction(KeyInsertionCommand::getGlobalName(), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditAddKeySignature()), actionCollection(),
"add_key_signature");
- new KAction(SustainInsertionCommand::getGlobalName(true), 0, TQT_TQOBJECT(this),
+ new TDEAction(SustainInsertionCommand::getGlobalName(true), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditAddSustainDown()), actionCollection(),
"add_sustain_down");
- new KAction(SustainInsertionCommand::getGlobalName(false), 0, TQT_TQOBJECT(this),
+ new TDEAction(SustainInsertionCommand::getGlobalName(false), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditAddSustainUp()), actionCollection(),
"add_sustain_up");
- new KAction(TransposeCommand::getDiatonicGlobalName(false), 0, TQT_TQOBJECT(this),
+ new TDEAction(TransposeCommand::getDiatonicGlobalName(false), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditTranspose()), actionCollection(),
"transpose_segment");
- new KAction(i18n("Convert Notation For..."), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Convert Notation For..."), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditSwitchPreset()), actionCollection(),
"switch_preset");
@@ -2317,198 +2317,198 @@ void NotationView::setupActions()
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap(actionsToolbars[i][3].ascii())));
- new KToggleAction(actionsToolbars[i][0], icon, 0,
+ new TDEToggleAction(actionsToolbars[i][0], icon, 0,
TQT_TQOBJECT(this), actionsToolbars[i][1].ascii(),
actionCollection(), actionsToolbars[i][2].ascii());
}
- 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(),
"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(),
"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(),
"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(),
"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(),
"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(),
"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(),
"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(),
"extend_selection_forward_bar");
/*!!! not here yet
- new KAction(i18n("Move Selection Left"), Key_Minus, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Move Selection Left"), Key_Minus, TQT_TQOBJECT(this),
TQT_SLOT(slotMoveSelectionLeft()), actionCollection(),
"move_selection_left");
*/
- 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
Key_A + CTRL, */ TQT_TQOBJECT(this),
TQT_SLOT(slotJumpToStart()), actionCollection(),
"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(),
"cursor_end");
- new KAction(i18n("Cursor &Up Staff"), 0, Key_Up + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor &Up Staff"), 0, Key_Up + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotCurrentStaffUp()), actionCollection(),
"cursor_up_staff");
- new KAction(i18n("Cursor &Down Staff"), 0, Key_Down + SHIFT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor &Down Staff"), 0, Key_Down + SHIFT, TQT_TQOBJECT(this),
TQT_SLOT(slotCurrentStaffDown()), actionCollection(),
"cursor_down_staff");
- new KAction(i18n("Cursor Pre&vious Segment"), 0, Key_Prior + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Pre&vious Segment"), 0, Key_Prior + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotCurrentSegmentPrior()), actionCollection(),
"cursor_prior_segment");
- new KAction(i18n("Cursor Ne&xt Segment"), 0, Key_Next + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Cursor Ne&xt Segment"), 0, Key_Next + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotCurrentSegmentNext()), actionCollection(),
"cursor_next_segment");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"cursor_to_playback_pointer");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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");
// Alternative shortcut for Play
- KShortcut playShortcut = play->shortcut();
+ TDEShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_back_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_forward_bar");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_start");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_end");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"playback_pointer_to_cursor");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-solo")));
- new KToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this),
+ new TDEToggleAction(i18n("&Solo"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSolo()), actionCollection(),
"toggle_solo");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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(),
"toggle_tracking"))->setChecked(m_playTracking);
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("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");
- 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(),
"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(),
"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(),
"clear_selection");
// TQString pixmapDir =
// TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
// 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(),
"filter_selection");
- new KAction(i18n("Push &Left"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Left"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotFinePositionLeft()), actionCollection(),
"fine_position_left");
- new KAction(i18n("Push &Right"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Right"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotFinePositionRight()), actionCollection(),
"fine_position_right");
- new KAction(i18n("Push &Up"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Up"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotFinePositionUp()), actionCollection(),
"fine_position_up");
- new KAction(i18n("Push &Down"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Push &Down"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotFinePositionDown()), actionCollection(),
"fine_position_down");
- new KAction(i18n("&Restore Positions"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Restore Positions"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotFinePositionRestore()), actionCollection(),
"fine_position_restore");
- new KAction(i18n("Make &Invisible"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Make &Invisible"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMakeInvisible()), actionCollection(),
"make_invisible");
- new KAction(i18n("Make &Visible"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Make &Visible"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMakeVisible()), actionCollection(),
"make_visible");
- new KAction(i18n("Toggle Dot"), Key_Period, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Toggle Dot"), Key_Period, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot");
- new KAction(i18n("Add Dot"), Key_Period + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Add Dot"), Key_Period + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotAddDot()), actionCollection(),
"add_dot");
- new KAction(i18n("Add Dot"), Key_Period + CTRL + ALT, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Add Dot"), Key_Period + CTRL + ALT, TQT_TQOBJECT(this),
TQT_SLOT(slotAddDotNotationOnly()), actionCollection(),
"add_notation_dot");
@@ -2518,21 +2518,21 @@ void NotationView::setupActions()
bool
NotationView::isInChordMode()
{
- return ((KToggleAction *)actionCollection()->action("chord_mode"))->
+ return ((TDEToggleAction *)actionCollection()->action("chord_mode"))->
isChecked();
}
bool
NotationView::isInTripletMode()
{
- return ((KToggleAction *)actionCollection()->action("triplet_mode"))->
+ return ((TDEToggleAction *)actionCollection()->action("triplet_mode"))->
isChecked();
}
bool
NotationView::isInGraceMode()
{
- return ((KToggleAction *)actionCollection()->action("grace_mode"))->
+ return ((TDEToggleAction *)actionCollection()->action("grace_mode"))->
isChecked();
}
@@ -2544,7 +2544,7 @@ NotationView::setupFontSizeMenu(std::string oldFontName)
std::vector<int> sizes = NoteFontFactory::getScreenSizes(oldFontName);
for (unsigned int i = 0; i < sizes.size(); ++i) {
- KAction *action =
+ TDEAction *action =
actionCollection()->action
(TQString("note_font_size_%1").arg(sizes[i]).ascii());
m_fontSizeActionMenu->remove
@@ -2562,12 +2562,12 @@ NotationView::setupFontSizeMenu(std::string oldFontName)
TQString actionName = TQString("note_font_size_%1").arg(sizes[i]);
- KToggleAction *sizeAction = dynamic_cast<KToggleAction *>
+ TDEToggleAction *sizeAction = dynamic_cast<TDEToggleAction *>
(actionCollection()->action(actionName.ascii()));
if (!sizeAction) {
sizeAction =
- new KToggleAction(i18n("1 pixel", "%n pixels", sizes[i]),
+ new TDEToggleAction(i18n("1 pixel", "%n pixels", sizes[i]),
0, TQT_TQOBJECT(this),
TQT_SLOT(slotChangeFontSizeFromAction()),
actionCollection(), actionName.ascii());
@@ -2607,7 +2607,7 @@ bool NotationView::isCurrentStaff(int i)
void NotationView::initLayoutToolbar()
{
- KToolBar *layoutToolbar = toolBar("Layout Toolbar");
+ TDEToolBar *layoutToolbar = toolBar("Layout Toolbar");
if (!layoutToolbar) {
std::cerr
@@ -3969,7 +3969,7 @@ void NotationView::slotNoteAction()
void NotationView::slotLastNoteAction()
{
- KAction *action = actionCollection()->action(m_lastNoteAction.ascii());
+ TDEAction *action = actionCollection()->action(m_lastNoteAction.ascii());
if (!action)
action = actionCollection()->action("crotchet");
@@ -4331,14 +4331,14 @@ NotationView::slotChangeSpacing(int spacing)
// m_spacingSlider->setSize(spacing);
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action(TQString("spacing_%1").arg(spacing).ascii()));
if (action)
action->setChecked(true);
else {
std::cerr
<< "WARNING: Expected action \"spacing_" << spacing
- << "\" to be a KToggleAction, but it isn't (or doesn't exist)"
+ << "\" to be a TDEToggleAction, but it isn't (or doesn't exist)"
<< std::endl;
}
@@ -4389,14 +4389,14 @@ NotationView::slotChangeProportion(int proportion)
// m_proportionSlider->setSize(proportion);
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action(TQString("proportion_%1").arg(proportion).ascii()));
if (action)
action->setChecked(true);
else {
std::cerr
<< "WARNING: Expected action \"proportion_" << proportion
- << "\" to be a KToggleAction, but it isn't (or doesn't exist)"
+ << "\" to be a TDEToggleAction, but it isn't (or doesn't exist)"
<< std::endl;
}
@@ -4543,7 +4543,7 @@ NotationView::slotChangeFont(std::string newName, int newSize)
bool thisOne = (f[i] == m_fontName);
if (thisOne)
m_fontCombo->setCurrentItem(i);
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action(TQString("note_font_" + strtoqstr(f[i])).ascii()));
NOTATION_DEBUG << "inspecting " << f[i] << (action ? ", have action" : ", no action") << endl;
if (action)
@@ -4551,7 +4551,7 @@ NotationView::slotChangeFont(std::string newName, int newSize)
else {
std::cerr
<< "WARNING: Expected action \"note_font_" << f[i]
- << "\" to be a KToggleAction, but it isn't (or doesn't exist)"
+ << "\" to be a TDEToggleAction, but it isn't (or doesn't exist)"
<< std::endl;
}
}
@@ -5146,7 +5146,7 @@ void NotationView::slotToggleTransportToolBar()
void NotationView::toggleNamedToolBar(const TQString& toolBarName, bool* force)
{
- KToolBar *namedToolBar = toolBar(toolBarName.ascii());
+ TDEToolBar *namedToolBar = toolBar(toolBarName.ascii());
if (!namedToolBar) {
NOTATION_DEBUG << "NotationView::toggleNamedToolBar() : toolBar "
@@ -5660,7 +5660,7 @@ void NotationView::slotSwitchFromRestToNote()
TQString actionName = NotationStrings::getReferenceName(note, false);
actionName = actionName.replace("-", "_");
- KRadioAction *action = dynamic_cast<KRadioAction *>
+ TDERadioAction *action = dynamic_cast<TDERadioAction *>
(actionCollection()->action(actionName.ascii()));
if (!action) {
@@ -5695,7 +5695,7 @@ void NotationView::slotSwitchFromNoteToRest()
TQString actionName = NotationStrings::getReferenceName(note, true);
actionName = actionName.replace("-", "_");
- KRadioAction *action = dynamic_cast<KRadioAction *>
+ TDERadioAction *action = dynamic_cast<TDERadioAction *>
(actionCollection()->action(actionName.ascii()));
if (!action) {
@@ -7224,7 +7224,7 @@ NotationView::slotInsertableNoteEventReceived(int pitch, int velocity, bool note
//or mixer, etc) is active, and we'll only allow insertion into
//the most recently activated. How about that?
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
if (!action) {
NOTATION_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
@@ -7354,7 +7354,7 @@ NotationView::slotInsertableTimerElapsed()
void
NotationView::slotToggleStepByStep()
{
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
if (!action) {
NOTATION_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
@@ -7370,7 +7370,7 @@ NotationView::slotToggleStepByStep()
void
NotationView::slotStepByStepTargetRequested(TQObject *obj)
{
- KToggleAction *action = dynamic_cast<KToggleAction *>
+ TDEToggleAction *action = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
if (!action) {
NOTATION_DEBUG << "WARNING: No toggle_step_by_step action" << endl;
diff --git a/src/gui/editors/notation/NotationView.h b/src/gui/editors/notation/NotationView.h
index 56b39ae..352e5e9 100644
--- a/src/gui/editors/notation/NotationView.h
+++ b/src/gui/editors/notation/NotationView.h
@@ -54,8 +54,8 @@ class TQCanvasItem;
class TQCanvas;
class KProgress;
class KComboBox;
-class KActionMenu;
-class KAction;
+class TDEActionMenu;
+class TDEAction;
namespace Rosegarden
@@ -1083,7 +1083,7 @@ protected:
bool m_annotationsVisible;
bool m_lilyPondDirectivesVisible;
- KAction* m_selectDefaultNote;
+ TDEAction* m_selectDefaultNote;
typedef TQMap<TQString, NoteActionData *> NoteActionDataMap;
static NoteActionDataMap* m_noteActionDataMap;
@@ -1097,7 +1097,7 @@ protected:
KComboBox *m_fontCombo;
KComboBox *m_fontSizeCombo;
KComboBox *m_spacingCombo;
- KActionMenu *m_fontSizeActionMenu;
+ TDEActionMenu *m_fontSizeActionMenu;
ScrollBoxDialog *m_pannerDialog;
TQTimer *m_renderTimer;
@@ -1122,7 +1122,7 @@ protected:
HeadersGroup * m_headersGroup;
TQFrame * m_headersTopFrame;
- KAction * m_showHeadersMenuEntry;
+ TDEAction * m_showHeadersMenuEntry;
};
diff --git a/src/gui/editors/notation/NoteFontViewer.cpp b/src/gui/editors/notation/NoteFontViewer.cpp
index d3dc2a3..709041e 100644
--- a/src/gui/editors/notation/NoteFontViewer.cpp
+++ b/src/gui/editors/notation/NoteFontViewer.cpp
@@ -87,7 +87,7 @@ NoteFontViewer::NoteFontViewer(TQWidget *parent, TQString noteFontName,
i18n("Note Font Viewer: %1").arg(noteFontName), Close)
{
TQVBox *box = makeVBoxMainWidget();
- KToolBar* controls = new KToolBar(box);
+ TDEToolBar* controls = new TDEToolBar(box);
controls->setMargin(3);
(void) new TQLabel(i18n(" Component: "), controls);
diff --git a/src/gui/editors/notation/NoteInserter.cpp b/src/gui/editors/notation/NoteInserter.cpp
index 3db308f..932b2cf 100644
--- a/src/gui/editors/notation/NoteInserter.cpp
+++ b/src/gui/editors/notation/NoteInserter.cpp
@@ -78,8 +78,8 @@ NoteInserter::NoteInserter(NotationView* view)
m_defaultStyle = qstrtostr(config->readEntry
("style", strtoqstr(NoteStyleFactory::DefaultStyle)));
- KToggleAction *autoBeamAction =
- new KToggleAction(i18n("Auto-Beam when appropriate"), 0, this,
+ TDEToggleAction *autoBeamAction =
+ new TDEToggleAction(i18n("Auto-Beam when appropriate"), 0, this,
TQT_SLOT(slotToggleAutoBeam()), actionCollection(),
"toggle_auto_beam");
autoBeamAction->setChecked(m_autoBeam);
@@ -89,7 +89,7 @@ NoteInserter::NoteInserter(NotationView* view)
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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,
m_actionsAccidental[i][1],
actionCollection(),
@@ -100,24 +100,24 @@ NoteInserter::NoteInserter(NotationView* view)
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("dotted-crotchet")));
- new KToggleAction(i18n("Dotted note"), icon, 0, this,
+ new TDEToggleAction(i18n("Dotted note"), icon, 0, this,
TQT_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"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(),
"erase");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"rests");
@@ -606,7 +606,7 @@ void NoteInserter::slotSetDots(unsigned int dots)
{
m_noteDots = dots;
- KToggleAction *dotsAction = dynamic_cast<KToggleAction *>
+ TDEToggleAction *dotsAction = dynamic_cast<TDEToggleAction *>
(actionCollection()->action("toggle_dot"));
if (dotsAction)
dotsAction->setChecked(dots > 0);
@@ -662,7 +662,7 @@ void NoteInserter::slotToggleDot()
Note note(m_noteType, m_noteDots);
TQString actionName(NotationStrings::getReferenceName(note));
actionName.replace(TQRegExp("-"), "_");
- KAction *action = m_parentView->actionCollection()->action(actionName.ascii());
+ TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii());
if (!action) {
std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl;
} else {
@@ -690,7 +690,7 @@ void NoteInserter::slotRestsSelected()
Note note(m_noteType, m_noteDots);
TQString actionName(NotationStrings::getReferenceName(note, true));
actionName.replace(TQRegExp("-"), "_");
- KAction *action = m_parentView->actionCollection()->action(actionName.ascii());
+ TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii());
if (!action) {
std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl;
} else {
diff --git a/src/gui/editors/notation/RestInserter.cpp b/src/gui/editors/notation/RestInserter.cpp
index d55dd3e..674ce60 100644
--- a/src/gui/editors/notation/RestInserter.cpp
+++ b/src/gui/editors/notation/RestInserter.cpp
@@ -59,24 +59,24 @@ RestInserter::RestInserter(NotationView* view)
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
makeToolbarPixmap("dotted-rest-crotchet")));
- new KToggleAction(i18n("Dotted rest"), icon, 0, this,
+ new TDEToggleAction(i18n("Dotted rest"), icon, 0, this,
TQT_SLOT(slotToggleDot()), actionCollection(),
"toggle_dot");
icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"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(),
"erase");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"notes");
@@ -128,7 +128,7 @@ void RestInserter::slotToggleDot()
Note note(m_noteType, m_noteDots);
TQString actionName(NotationStrings::getReferenceName(note, true));
actionName.replace(TQRegExp("-"), "_");
- KAction *action = m_parentView->actionCollection()->action(actionName.ascii());
+ TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii());
if (!action) {
std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl;
} else {
diff --git a/src/gui/editors/notation/TextInserter.cpp b/src/gui/editors/notation/TextInserter.cpp
index b3709f1..90674fb 100644
--- a/src/gui/editors/notation/TextInserter.cpp
+++ b/src/gui/editors/notation/TextInserter.cpp
@@ -54,18 +54,18 @@ TextInserter::TextInserter(NotationView* view)
{
TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"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(),
"erase");
icon = TQIconSet
(NotePixmapFactory::toTQPixmap(NotePixmapFactory::
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(),
"notes");
diff --git a/src/gui/editors/segment/ControlEditorDialog.cpp b/src/gui/editors/segment/ControlEditorDialog.cpp
index 7818efd..8a10ace 100644
--- a/src/gui/editors/segment/ControlEditorDialog.cpp
+++ b/src/gui/editors/segment/ControlEditorDialog.cpp
@@ -75,7 +75,7 @@ const TQString notShowing(i18n("<not showing>"));
ControlEditorDialog::ControlEditorDialog(TQWidget *parent,
RosegardenGUIDoc *doc,
DeviceId device):
- KMainWindow(parent, "controleditordialog"),
+ TDEMainWindow(parent, "controleditordialog"),
m_studio(&doc->getStudio()),
m_doc(doc),
m_device(device),
@@ -100,7 +100,7 @@ ControlEditorDialog::ControlEditorDialog(TQWidget *parent,
arg(device), 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 type "));
m_listView->addColumn(i18n("Control Event value "));
@@ -337,7 +337,7 @@ ControlEditorDialog::slotClose()
void
ControlEditorDialog::setupActions()
{
- KAction* close = KStdAction::close(TQT_TQOBJECT(this),
+ TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()),
actionCollection());
@@ -345,15 +345,15 @@ ControlEditorDialog::setupActions()
connect(m_closeButton, TQT_SIGNAL(released()), this, TQT_SLOT(slotClose()));
// some adjustments
- new KToolBarPopupAction(i18n("Und&o"),
+ new TDEToolBarPopupAction(i18n("Und&o"),
"undo",
- KStdAccel::key(KStdAccel::Undo),
+ TDEStdAccel::key(TDEStdAccel::Undo),
actionCollection(),
KStdAction::stdName(KStdAction::Undo));
- new KToolBarPopupAction(i18n("Re&do"),
+ new TDEToolBarPopupAction(i18n("Re&do"),
"redo",
- KStdAccel::key(KStdAccel::Redo),
+ TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(),
KStdAction::stdName(KStdAction::Redo));
@@ -428,7 +428,7 @@ void
ControlEditorDialog::closeEvent(TQCloseEvent *e)
{
emit closing();
- KMainWindow::closeEvent(e);
+ TDEMainWindow::closeEvent(e);
}
void
diff --git a/src/gui/editors/segment/ControlEditorDialog.h b/src/gui/editors/segment/ControlEditorDialog.h
index f606210..7b7b0b6 100644
--- a/src/gui/editors/segment/ControlEditorDialog.h
+++ b/src/gui/editors/segment/ControlEditorDialog.h
@@ -35,7 +35,7 @@ class TQWidget;
class TQPushButton;
class TQListViewItem;
class TQCloseEvent;
-class KListView;
+class TDEListView;
class KCommand;
@@ -47,7 +47,7 @@ class RosegardenGUIDoc;
class MultiViewCommandHistory;
-class ControlEditorDialog : public KMainWindow
+class ControlEditorDialog : public TDEMainWindow
{
Q_OBJECT
@@ -109,7 +109,7 @@ protected:
TQPushButton *m_addButton;
TQPushButton *m_deleteButton;
- KListView *m_listView;
+ TDEListView *m_listView;
bool m_modified;
diff --git a/src/gui/editors/segment/ControlParameterItem.h b/src/gui/editors/segment/ControlParameterItem.h
index 7be91b3..2a354d3 100644
--- a/src/gui/editors/segment/ControlParameterItem.h
+++ b/src/gui/editors/segment/ControlParameterItem.h
@@ -34,7 +34,7 @@ namespace Rosegarden
{
-class ControlParameterItem : public KListViewItem
+class ControlParameterItem : public TDEListViewItem
{
public:
ControlParameterItem(int id,
@@ -48,7 +48,7 @@ public:
TQString str7,
TQString str8,
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); }
int getId() const { return m_id; }
diff --git a/src/gui/editors/segment/MarkerEditor.cpp b/src/gui/editors/segment/MarkerEditor.cpp
index c6c2dd8..2a62a4a 100644
--- a/src/gui/editors/segment/MarkerEditor.cpp
+++ b/src/gui/editors/segment/MarkerEditor.cpp
@@ -73,7 +73,7 @@ namespace Rosegarden
MarkerEditor::MarkerEditor(TQWidget *parent,
RosegardenGUIDoc *doc):
- KMainWindow(parent, "markereditordialog"),
+ TDEMainWindow(parent, "markereditordialog"),
m_doc(doc),
m_modified(false)
{
@@ -82,7 +82,7 @@ MarkerEditor::MarkerEditor(TQWidget *parent,
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 text "));
m_listView->addColumn(i18n("Marker description "));
@@ -367,7 +367,7 @@ MarkerEditor::slotClose()
void
MarkerEditor::setupActions()
{
- KAction* close = KStdAction::close(TQT_TQOBJECT(this),
+ TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()),
actionCollection());
@@ -375,15 +375,15 @@ MarkerEditor::setupActions()
connect(m_closeButton, TQT_SIGNAL(released()), this, TQT_SLOT(slotClose()));
// some adjustments
- new KToolBarPopupAction(i18n("Und&o"),
+ new TDEToolBarPopupAction(i18n("Und&o"),
"undo",
- KStdAccel::key(KStdAccel::Undo),
+ TDEStdAccel::key(TDEStdAccel::Undo),
actionCollection(),
KStdAction::stdName(KStdAction::Undo));
- new KToolBarPopupAction(i18n("Re&do"),
+ new TDEToolBarPopupAction(i18n("Re&do"),
"redo",
- KStdAccel::key(KStdAccel::Redo),
+ TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(),
KStdAction::stdName(KStdAction::Redo));
@@ -391,12 +391,12 @@ MarkerEditor::setupActions()
kapp->config()->setGroup(MarkerEditorConfigGroup);
int timeMode = kapp->config()->readNumEntry("timemode", 0);
- KRadioAction *action;
+ TDERadioAction *action;
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/time-musical.png");
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()),
actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode");
@@ -406,7 +406,7 @@ MarkerEditor::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png");
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()),
actionCollection(), "time_real");
action->setExclusiveGroup("timeMode");
@@ -416,7 +416,7 @@ MarkerEditor::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png");
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()),
actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode");
@@ -502,7 +502,7 @@ void
MarkerEditor::closeEvent(TQCloseEvent *e)
{
emit closing();
- KMainWindow::closeEvent(e);
+ TDEMainWindow::closeEvent(e);
}
void
diff --git a/src/gui/editors/segment/MarkerEditor.h b/src/gui/editors/segment/MarkerEditor.h
index 3a03af8..71d998f 100644
--- a/src/gui/editors/segment/MarkerEditor.h
+++ b/src/gui/editors/segment/MarkerEditor.h
@@ -37,7 +37,7 @@ class TQListViewItem;
class TQLabel;
class TQCloseEvent;
class TQAccel;
-class KListView;
+class TDEListView;
class KCommand;
@@ -48,7 +48,7 @@ class RosegardenGUIDoc;
class MultiViewCommandHistory;
-class MarkerEditor : public KMainWindow
+class MarkerEditor : public TDEMainWindow
{
Q_OBJECT
@@ -112,7 +112,7 @@ protected:
TQPushButton *m_deleteButton;
TQPushButton *m_deleteAllButton;
- KListView *m_listView;
+ TDEListView *m_listView;
bool m_modified;
diff --git a/src/gui/editors/segment/MarkerEditorViewItem.cpp b/src/gui/editors/segment/MarkerEditorViewItem.cpp
index 004f9d9..1cc4a0e 100644
--- a/src/gui/editors/segment/MarkerEditorViewItem.cpp
+++ b/src/gui/editors/segment/MarkerEditorViewItem.cpp
@@ -32,7 +32,7 @@ MarkerEditorViewItem::compare(TQListViewItem * i, int col, bool ascending) const
MarkerEditorViewItem *ei =
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
//
@@ -43,7 +43,7 @@ MarkerEditorViewItem::compare(TQListViewItem * i, int col, bool ascending) const
else return 0;
} else {
- return KListViewItem::compare(i, col, ascending);
+ return TDEListViewItem::compare(i, col, ascending);
}
}
diff --git a/src/gui/editors/segment/MarkerEditorViewItem.h b/src/gui/editors/segment/MarkerEditorViewItem.h
index 1a835c0..ac15b65 100644
--- a/src/gui/editors/segment/MarkerEditorViewItem.h
+++ b/src/gui/editors/segment/MarkerEditorViewItem.h
@@ -32,7 +32,7 @@
namespace Rosegarden {
-class MarkerEditorViewItem : public KListViewItem
+class MarkerEditorViewItem : public TDEListViewItem
{
public:
MarkerEditorViewItem(TQListView * parent, int id,
@@ -44,7 +44,7 @@ public:
TQString label6 = TQString(),
TQString label7 = TQString(),
TQString label8 = TQString()):
- KListViewItem(parent, label1, label2, label3, label4,
+ TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8),
m_rawTime(0), m_fake(false), m_id(id) { ; }
diff --git a/src/gui/editors/segment/PlayListView.cpp b/src/gui/editors/segment/PlayListView.cpp
index ff4d1c8..bbaa4b3 100644
--- a/src/gui/editors/segment/PlayListView.cpp
+++ b/src/gui/editors/segment/PlayListView.cpp
@@ -30,7 +30,7 @@
namespace Rosegarden {
PlayListView::PlayListView(TQWidget *parent, const char *name)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{
addColumn(i18n("Title"));
addColumn(i18n("File name"));
@@ -48,7 +48,7 @@ PlayListView::PlayListView(TQWidget *parent, const char *name)
bool PlayListView::acceptDrag(TQDropEvent* e) const
{
- return TQUriDrag::canDecode(e) || KListView::acceptDrag(e);
+ return TQUriDrag::canDecode(e) || TDEListView::acceptDrag(e);
}
diff --git a/src/gui/editors/segment/PlayListView.h b/src/gui/editors/segment/PlayListView.h
index 43390d0..c4e6aa3 100644
--- a/src/gui/editors/segment/PlayListView.h
+++ b/src/gui/editors/segment/PlayListView.h
@@ -29,7 +29,7 @@
namespace Rosegarden {
-class PlayListView : public KListView
+class PlayListView : public TDEListView
{
public:
PlayListView(TQWidget *parent=0, const char *name=0);
diff --git a/src/gui/editors/segment/PlayListViewItem.cpp b/src/gui/editors/segment/PlayListViewItem.cpp
index ab0c25c..9bcd974 100644
--- a/src/gui/editors/segment/PlayListViewItem.cpp
+++ b/src/gui/editors/segment/PlayListViewItem.cpp
@@ -26,14 +26,14 @@
namespace Rosegarden {
-PlayListViewItem::PlayListViewItem(KListView* parent, KURL kurl)
- : KListViewItem(parent, kurl.fileName(), kurl.prettyURL()),
+PlayListViewItem::PlayListViewItem(TDEListView* parent, KURL kurl)
+ : TDEListViewItem(parent, kurl.fileName(), kurl.prettyURL()),
m_kurl(kurl)
{
}
-PlayListViewItem::PlayListViewItem(KListView* parent, TQListViewItem* after, KURL kurl)
- : KListViewItem(parent, after, kurl.fileName(), kurl.prettyURL()),
+PlayListViewItem::PlayListViewItem(TDEListView* parent, TQListViewItem* after, KURL kurl)
+ : TDEListViewItem(parent, after, kurl.fileName(), kurl.prettyURL()),
m_kurl(kurl)
{
}
diff --git a/src/gui/editors/segment/PlayListViewItem.h b/src/gui/editors/segment/PlayListViewItem.h
index a622682..ad6c476 100644
--- a/src/gui/editors/segment/PlayListViewItem.h
+++ b/src/gui/editors/segment/PlayListViewItem.h
@@ -30,11 +30,11 @@
namespace Rosegarden {
-class PlayListViewItem : public KListViewItem
+class PlayListViewItem : public TDEListViewItem
{
public:
- PlayListViewItem(KListView* parent, KURL);
- PlayListViewItem(KListView* parent, TQListViewItem*, KURL);
+ PlayListViewItem(TDEListView* parent, KURL);
+ PlayListViewItem(TDEListView* parent, TQListViewItem*, KURL);
const KURL& getURL() { return m_kurl; }
diff --git a/src/gui/editors/segment/TriggerSegmentManager.cpp b/src/gui/editors/segment/TriggerSegmentManager.cpp
index 8bfb621..ca05d84 100644
--- a/src/gui/editors/segment/TriggerSegmentManager.cpp
+++ b/src/gui/editors/segment/TriggerSegmentManager.cpp
@@ -75,7 +75,7 @@ namespace Rosegarden
TriggerSegmentManager::TriggerSegmentManager(TQWidget *parent,
RosegardenGUIDoc *doc):
- KMainWindow(parent, "triggereditordialog"),
+ TDEMainWindow(parent, "triggereditordialog"),
m_doc(doc),
m_modified(false)
{
@@ -84,7 +84,7 @@ TriggerSegmentManager::TriggerSegmentManager(TQWidget *parent,
setCaption(i18n("Manage Triggered Segments"));
- m_listView = new KListView(mainFrame);
+ m_listView = new TDEListView(mainFrame);
m_listView->addColumn("Index");
m_listView->addColumn(i18n("ID"));
m_listView->addColumn(i18n("Label"));
@@ -375,7 +375,7 @@ TriggerSegmentManager::slotClose()
void
TriggerSegmentManager::setupActions()
{
- KAction* close = KStdAction::close(TQT_TQOBJECT(this),
+ TDEAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()),
actionCollection());
@@ -385,31 +385,31 @@ TriggerSegmentManager::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
// some adjustments
- new KToolBarPopupAction(i18n("Und&o"),
+ new TDEToolBarPopupAction(i18n("Und&o"),
"undo",
- KStdAccel::key(KStdAccel::Undo),
+ TDEStdAccel::key(TDEStdAccel::Undo),
actionCollection(),
KStdAction::stdName(KStdAction::Undo));
- new KToolBarPopupAction(i18n("Re&do"),
+ new TDEToolBarPopupAction(i18n("Re&do"),
"redo",
- KStdAccel::key(KStdAccel::Redo),
+ TDEStdAccel::key(TDEStdAccel::Redo),
actionCollection(),
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(),
"paste_to_trigger_segment");
kapp->config()->setGroup(TriggerManagerConfigGroup);
int timeMode = kapp->config()->readNumEntry("timemode", 0);
- KRadioAction *action;
+ TDERadioAction *action;
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/time-musical.png");
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()),
actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode");
@@ -419,7 +419,7 @@ TriggerSegmentManager::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png");
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()),
actionCollection(), "time_real");
action->setExclusiveGroup("timeMode");
@@ -429,7 +429,7 @@ TriggerSegmentManager::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png");
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()),
actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode");
@@ -490,7 +490,7 @@ void
TriggerSegmentManager::closeEvent(TQCloseEvent *e)
{
emit closing();
- KMainWindow::closeEvent(e);
+ TDEMainWindow::closeEvent(e);
}
void
diff --git a/src/gui/editors/segment/TriggerSegmentManager.h b/src/gui/editors/segment/TriggerSegmentManager.h
index 0ec42bd..35fd847 100644
--- a/src/gui/editors/segment/TriggerSegmentManager.h
+++ b/src/gui/editors/segment/TriggerSegmentManager.h
@@ -36,7 +36,7 @@ class TQPushButton;
class TQListViewItem;
class TQCloseEvent;
class TQAccel;
-class KListView;
+class TDEListView;
class KCommand;
@@ -47,7 +47,7 @@ class RosegardenGUIDoc;
class MultiViewCommandHistory;
-class TriggerSegmentManager : public KMainWindow
+class TriggerSegmentManager : public TDEMainWindow
{
Q_OBJECT
@@ -104,7 +104,7 @@ protected:
TQPushButton *m_deleteButton;
TQPushButton *m_deleteAllButton;
- KListView *m_listView;
+ TDEListView *m_listView;
bool m_modified;
diff --git a/src/gui/editors/segment/segmentcanvas/SegmentTool.cpp b/src/gui/editors/segment/segmentcanvas/SegmentTool.cpp
index 85800b2..9565553 100644
--- a/src/gui/editors/segment/segmentcanvas/SegmentTool.cpp
+++ b/src/gui/editors/segment/segmentcanvas/SegmentTool.cpp
@@ -42,7 +42,7 @@ namespace Rosegarden
{
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_doc(doc),
m_changeMade(false)
diff --git a/src/gui/editors/tempo/TempoListItem.h b/src/gui/editors/tempo/TempoListItem.h
index 4d62ab0..7f81f27 100644
--- a/src/gui/editors/tempo/TempoListItem.h
+++ b/src/gui/editors/tempo/TempoListItem.h
@@ -33,7 +33,7 @@ namespace Rosegarden {
class Composition;
-class TempoListItem : public KListViewItem
+class TempoListItem : public TDEListViewItem
{
public:
enum Type { TimeSignature, Tempo };
@@ -42,12 +42,12 @@ public:
Type type,
timeT time,
int index,
- KListView *parent,
+ TDEListView *parent,
TQString label1,
TQString label2,
TQString label3,
TQString label4 = TQString()) :
- KListViewItem(parent, label1, label2, label3, label4),
+ TDEListViewItem(parent, label1, label2, label3, label4),
m_composition(composition),
m_type(type),
m_time(time),
diff --git a/src/gui/editors/tempo/TempoView.cpp b/src/gui/editors/tempo/TempoView.cpp
index 4386cb2..d5c4013 100644
--- a/src/gui/editors/tempo/TempoView.cpp
+++ b/src/gui/editors/tempo/TempoView.cpp
@@ -97,7 +97,7 @@ TempoView::TempoView(RosegardenGUIDoc *doc, TQWidget *parent, timeT openTime):
connect(m_filterGroup, TQT_SIGNAL(released(int)),
TQT_SLOT(slotModifyFilter(int)));
- m_list = new KListView(getCentralWidget());
+ m_list = new TDEListView(getCentralWidget());
m_list->setItemsRenameable(true);
m_grid->addWidget(m_list, 2, 1);
@@ -578,48 +578,48 @@ TempoView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
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(),
"insert_tempo");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-insert-timesig.png");
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(),
"insert_timesig");
pixmap.load(pixmapDir + "/toolbar/event-delete.png");
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(),
"delete");
pixmap.load(pixmapDir + "/toolbar/event-edit.png");
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(),
"edit");
- new KAction(i18n("Select &All"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select &All"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAll()), actionCollection(),
"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(),
"clear_selection");
m_config->setGroup(TempoViewConfigGroup);
int timeMode = m_config->readNumEntry("timemode", 0);
- KRadioAction *action;
+ TDERadioAction *action;
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
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()),
actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode");
@@ -629,7 +629,7 @@ TempoView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png");
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()),
actionCollection(), "time_real");
action->setExclusiveGroup("timeMode");
@@ -639,7 +639,7 @@ TempoView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png");
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()),
actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode");
diff --git a/src/gui/editors/tempo/TempoView.h b/src/gui/editors/tempo/TempoView.h
index 8f9bdca..b3e944f 100644
--- a/src/gui/editors/tempo/TempoView.h
+++ b/src/gui/editors/tempo/TempoView.h
@@ -41,7 +41,7 @@ class TQListViewItem;
class TQCloseEvent;
class TQCheckBox;
class TQButtonGroup;
-class KListView;
+class TDEListView;
namespace Rosegarden
@@ -152,7 +152,7 @@ protected:
virtual void closeEvent(TQCloseEvent *);
//--------------- Data members ---------------------------------
- KListView *m_list;
+ TDEListView *m_list;
int m_filter;
static int m_lastSetFilter;