summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix/MatrixView.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/matrix/MatrixView.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/editors/matrix/MatrixView.cpp')
-rw-r--r--src/gui/editors/matrix/MatrixView.cpp538
1 files changed, 269 insertions, 269 deletions
diff --git a/src/gui/editors/matrix/MatrixView.cpp b/src/gui/editors/matrix/MatrixView.cpp
index 38abe20..66c1b0d 100644
--- a/src/gui/editors/matrix/MatrixView.cpp
+++ b/src/gui/editors/matrix/MatrixView.cpp
@@ -113,20 +113,20 @@
#include <kstatusbar.h>
#include <ktoolbar.h>
#include <kxmlguiclient.h>
-#include <qcanvas.h>
-#include <qcursor.h>
-#include <qdialog.h>
-#include <qlayout.h>
-#include <qiconset.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qpoint.h>
-#include <qscrollview.h>
-#include <qsize.h>
-#include <qslider.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qwmatrix.h>
+#include <tqcanvas.h>
+#include <tqcursor.h>
+#include <tqdialog.h>
+#include <tqlayout.h>
+#include <tqiconset.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
+#include <tqscrollview.h>
+#include <tqsize.h>
+#include <tqslider.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqwmatrix.h>
namespace Rosegarden
@@ -137,7 +137,7 @@ static double xorigin = 0.0;
MatrixView::MatrixView(RosegardenGUIDoc *doc,
std::vector<Segment *> segments,
- QWidget *parent,
+ TQWidget *parent,
bool drumMode)
: EditView(doc, segments, 3, parent, "matrixview"),
m_hlayout(&doc->getComposition()),
@@ -166,8 +166,8 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
{
RG_DEBUG << "MatrixView ctor: drumMode " << drumMode << "\n";
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/toolbar");
- QPixmap matrixPixmap(pixmapDir + "/matrix.xpm");
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/toolbar");
+ TQPixmap matrixPixmap(pixmapDir + "/matrix.xpm");
m_dockLeft = createDockWidget("params dock", matrixPixmap, 0L,
i18n("Instrument Parameters"));
@@ -175,14 +175,14 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
KDockWidget::DockLeft, // dock site
20); // relation target/this (in percent)
- connect(m_dockLeft, SIGNAL(iMBeingClosed()),
- this, SLOT(slotParametersClosed()));
- connect(m_dockLeft, SIGNAL(hasUndocked()),
- this, SLOT(slotParametersClosed()));
+ connect(m_dockLeft, TQT_SIGNAL(iMBeingClosed()),
+ this, TQT_SLOT(slotParametersClosed()));
+ connect(m_dockLeft, TQT_SIGNAL(hasUndocked()),
+ this, TQT_SLOT(slotParametersClosed()));
// Apparently, hasUndocked() is emitted when the dock widget's
// 'close' button on the dock handle is clicked.
- connect(m_mainDockWidget, SIGNAL(docking(KDockWidget*, KDockWidget::DockPosition)),
- this, SLOT(slotParametersDockedBack(KDockWidget*, KDockWidget::DockPosition)));
+ connect(m_mainDockWidget, TQT_SIGNAL(docking(KDockWidget*, KDockWidget::DockPosition)),
+ this, TQT_SLOT(slotParametersDockedBack(KDockWidget*, KDockWidget::DockPosition)));
Composition &comp = doc->getComposition();
@@ -190,20 +190,20 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
initStatusBar();
- connect(m_toolBox, SIGNAL(showContextHelp(const QString &)),
- this, SLOT(slotToolHelpChanged(const QString &)));
+ connect(m_toolBox, TQT_SIGNAL(showContextHelp(const TQString &)),
+ this, TQT_SLOT(slotToolHelpChanged(const TQString &)));
- QCanvas *tCanvas = new QCanvas(this);
+ TQCanvas *tCanvas = new TQCanvas(this);
m_config->setGroup(MatrixViewConfigGroup);
if (m_config->readBoolEntry("backgroundtextures-1.6-plus", true)) {
- QPixmap background;
- QString pixmapDir =
+ TQPixmap background;
+ TQString pixmapDir =
KGlobal::dirs()->findResource("appdata", "pixmaps/");
// We now use a lined background for the non-percussion matrix,
// suggested and supplied by Alessandro Preziosi
- QString backgroundPixmap = isDrumMode() ? "bg-paper-white.xpm" : "bg-matrix-lines.xpm";
- if (background.load(QString("%1/misc/%2").
+ TQString backgroundPixmap = isDrumMode() ? "bg-paper-white.xpm" : "bg-matrix-lines.xpm";
+ if (background.load(TQString("%1/misc/%2").
arg(pixmapDir, backgroundPixmap))) {
tCanvas->setBackgroundPixmap(background);
}
@@ -255,7 +255,7 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
m_pianoView = new QDeferScrollView(getCentralWidget());
- QWidget* vport = m_pianoView->viewport();
+ TQWidget* vport = m_pianoView->viewport();
if (isDrumMode() && mapping &&
!m_localMapping->getMap().empty()) {
@@ -266,8 +266,8 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
m_pitchRuler = new PianoKeyboard(vport);
}
- m_pianoView->setVScrollBarMode(QScrollView::AlwaysOff);
- m_pianoView->setHScrollBarMode(QScrollView::AlwaysOff);
+ m_pianoView->setVScrollBarMode(TQScrollView::AlwaysOff);
+ m_pianoView->setHScrollBarMode(TQScrollView::AlwaysOff);
m_pianoView->addChild(m_pitchRuler);
m_pianoView->setFixedWidth(m_pianoView->contentsWidth());
@@ -278,33 +278,33 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
RosegardenGUIApp *app = RosegardenGUIApp::self();
connect(app,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_parameterBox,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(app,
- SIGNAL(pluginBypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(pluginBypassed(InstrumentId, int, bool)),
m_parameterBox,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
connect(app,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_parameterBox,
- SLOT(slotInstrumentParametersChanged(InstrumentId)));
+ TQT_SLOT(slotInstrumentParametersChanged(InstrumentId)));
connect(m_parameterBox,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
app,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(m_parameterBox,
- SIGNAL(selectPlugin(QWidget *, InstrumentId, int)),
+ TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)),
app,
- SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(m_parameterBox,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
app,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
connect(parent, // RosegardenGUIView
- SIGNAL(checkTrackAssignments()),
+ TQT_SIGNAL(checkTrackAssignments()),
this,
- SLOT(slotCheckTrackAssignments()));
+ TQT_SLOT(slotCheckTrackAssignments()));
// Assign the instrument
//
@@ -312,9 +312,9 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
if (m_drumMode) {
connect(m_parameterBox,
- SIGNAL(instrumentPercussionSetChanged(Instrument *)),
+ TQT_SIGNAL(instrumentPercussionSetChanged(Instrument *)),
this,
- SLOT(slotPercussionSetChanged(Instrument *)));
+ TQT_SLOT(slotPercussionSetChanged(Instrument *)));
}
// Set the snap grid from the stored size in the segment
@@ -352,83 +352,83 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
// Connect vertical scrollbars between matrix and piano
//
- connect(m_canvasView->verticalScrollBar(), SIGNAL(valueChanged(int)),
- this, SLOT(slotVerticalScrollPianoKeyboard(int)));
+ connect(m_canvasView->verticalScrollBar(), TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotVerticalScrollPianoKeyboard(int)));
- connect(m_canvasView->verticalScrollBar(), SIGNAL(sliderMoved(int)),
- this, SLOT(slotVerticalScrollPianoKeyboard(int)));
+ connect(m_canvasView->verticalScrollBar(), TQT_SIGNAL(sliderMoved(int)),
+ this, TQT_SLOT(slotVerticalScrollPianoKeyboard(int)));
- connect(m_canvasView, SIGNAL(zoomIn()), this, SLOT(slotZoomIn()));
- connect(m_canvasView, SIGNAL(zoomOut()), this, SLOT(slotZoomOut()));
+ connect(m_canvasView, TQT_SIGNAL(zoomIn()), this, TQT_SLOT(slotZoomIn()));
+ connect(m_canvasView, TQT_SIGNAL(zoomOut()), this, TQT_SLOT(slotZoomOut()));
- connect(m_pianoView, SIGNAL(gotWheelEvent(QWheelEvent*)),
- m_canvasView, SLOT(slotExternalWheelEvent(QWheelEvent*)));
+ connect(m_pianoView, TQT_SIGNAL(gotWheelEvent(TQWheelEvent*)),
+ m_canvasView, TQT_SLOT(slotExternalWheelEvent(TQWheelEvent*)));
// ensure the piano keyb keeps the right margins when the user toggles
// the canvas view rulers
//
- connect(m_canvasView, SIGNAL(bottomWidgetHeightChanged(int)),
- this, SLOT(slotCanvasBottomWidgetHeightChanged(int)));
+ connect(m_canvasView, TQT_SIGNAL(bottomWidgetHeightChanged(int)),
+ this, TQT_SLOT(slotCanvasBottomWidgetHeightChanged(int)));
- connect(m_canvasView, SIGNAL(mouseEntered()),
- this, SLOT(slotMouseEnteredCanvasView()));
+ connect(m_canvasView, TQT_SIGNAL(mouseEntered()),
+ this, TQT_SLOT(slotMouseEnteredCanvasView()));
- connect(m_canvasView, SIGNAL(mouseLeft()),
- this, SLOT(slotMouseLeftCanvasView()));
+ connect(m_canvasView, TQT_SIGNAL(mouseLeft()),
+ this, TQT_SLOT(slotMouseLeftCanvasView()));
/*
- QObject::connect
- (getCanvasView(), SIGNAL(activeItemPressed(QMouseEvent*, QCanvasItem*)),
- this, SLOT (activeItemPressed(QMouseEvent*, QCanvasItem*)));
+ TQObject::connect
+ (getCanvasView(), TQT_SIGNAL(activeItemPressed(TQMouseEvent*, TQCanvasItem*)),
+ this, TQT_SLOT (activeItemPressed(TQMouseEvent*, TQCanvasItem*)));
*/
- QObject::connect
+ TQObject::connect
(getCanvasView(),
- SIGNAL(mousePressed(timeT,
- int, QMouseEvent*, MatrixElement*)),
+ TQT_SIGNAL(mousePressed(timeT,
+ int, TQMouseEvent*, MatrixElement*)),
this,
- SLOT(slotMousePressed(timeT,
- int, QMouseEvent*, MatrixElement*)));
+ TQT_SLOT(slotMousePressed(timeT,
+ int, TQMouseEvent*, MatrixElement*)));
- QObject::connect
+ TQObject::connect
(getCanvasView(),
- SIGNAL(mouseMoved(timeT, int, QMouseEvent*)),
+ TQT_SIGNAL(mouseMoved(timeT, int, TQMouseEvent*)),
this,
- SLOT(slotMouseMoved(timeT, int, QMouseEvent*)));
+ TQT_SLOT(slotMouseMoved(timeT, int, TQMouseEvent*)));
- QObject::connect
+ TQObject::connect
(getCanvasView(),
- SIGNAL(mouseReleased(timeT, int, QMouseEvent*)),
+ TQT_SIGNAL(mouseReleased(timeT, int, TQMouseEvent*)),
this,
- SLOT(slotMouseReleased(timeT, int, QMouseEvent*)));
+ TQT_SLOT(slotMouseReleased(timeT, int, TQMouseEvent*)));
- QObject::connect
- (getCanvasView(), SIGNAL(hoveredOverNoteChanged(int, bool, timeT)),
- this, SLOT(slotHoveredOverNoteChanged(int, bool, timeT)));
+ TQObject::connect
+ (getCanvasView(), TQT_SIGNAL(hoveredOverNoteChanged(int, bool, timeT)),
+ this, TQT_SLOT(slotHoveredOverNoteChanged(int, bool, timeT)));
- QObject::connect
- (m_pitchRuler, SIGNAL(hoveredOverKeyChanged(unsigned int)),
- this, SLOT (slotHoveredOverKeyChanged(unsigned int)));
+ TQObject::connect
+ (m_pitchRuler, TQT_SIGNAL(hoveredOverKeyChanged(unsigned int)),
+ this, TQT_SLOT (slotHoveredOverKeyChanged(unsigned int)));
- QObject::connect
- (m_pitchRuler, SIGNAL(keyPressed(unsigned int, bool)),
- this, SLOT (slotKeyPressed(unsigned int, bool)));
+ TQObject::connect
+ (m_pitchRuler, TQT_SIGNAL(keyPressed(unsigned int, bool)),
+ this, TQT_SLOT (slotKeyPressed(unsigned int, bool)));
- QObject::connect
- (m_pitchRuler, SIGNAL(keySelected(unsigned int, bool)),
- this, SLOT (slotKeySelected(unsigned int, bool)));
+ TQObject::connect
+ (m_pitchRuler, TQT_SIGNAL(keySelected(unsigned int, bool)),
+ this, TQT_SLOT (slotKeySelected(unsigned int, bool)));
- QObject::connect
- (m_pitchRuler, SIGNAL(keyReleased(unsigned int, bool)),
- this, SLOT (slotKeyReleased(unsigned int, bool)));
+ TQObject::connect
+ (m_pitchRuler, TQT_SIGNAL(keyReleased(unsigned int, bool)),
+ this, TQT_SLOT (slotKeyReleased(unsigned int, bool)));
- QObject::connect
- (getCanvasView(), SIGNAL(hoveredOverAbsoluteTimeChanged(unsigned int)),
- this, SLOT (slotHoveredOverAbsoluteTimeChanged(unsigned int)));
+ TQObject::connect
+ (getCanvasView(), TQT_SIGNAL(hoveredOverAbsoluteTimeChanged(unsigned int)),
+ this, TQT_SLOT (slotHoveredOverAbsoluteTimeChanged(unsigned int)));
- QObject::connect
- (doc, SIGNAL(pointerPositionChanged(timeT)),
- this, SLOT(slotSetPointerPosition(timeT)));
+ TQObject::connect
+ (doc, TQT_SIGNAL(pointerPositionChanged(timeT)),
+ this, TQT_SLOT(slotSetPointerPosition(timeT)));
MATRIX_DEBUG << "MatrixView : applying layout\n";
@@ -463,34 +463,34 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
// Disconnect the default connections for this signal from the
// top ruler, and connect our own instead
- QObject::disconnect
+ TQObject::disconnect
(topStandardRuler->getLoopRuler(),
- SIGNAL(setPointerPosition(timeT)), 0, 0);
+ TQT_SIGNAL(setPointerPosition(timeT)), 0, 0);
- QObject::connect
+ TQObject::connect
(topStandardRuler->getLoopRuler(),
- SIGNAL(setPointerPosition(timeT)),
- this, SLOT(slotSetInsertCursorPosition(timeT)));
+ TQT_SIGNAL(setPointerPosition(timeT)),
+ this, TQT_SLOT(slotSetInsertCursorPosition(timeT)));
- QObject::connect
+ TQObject::connect
(topStandardRuler,
- SIGNAL(dragPointerToPosition(timeT)),
- this, SLOT(slotSetInsertCursorPosition(timeT)));
+ TQT_SIGNAL(dragPointerToPosition(timeT)),
+ this, TQT_SLOT(slotSetInsertCursorPosition(timeT)));
topStandardRuler->getLoopRuler()->setBackgroundColor
(GUIPalette::getColour(GUIPalette::InsertCursorRuler));
- connect(topStandardRuler->getLoopRuler(), SIGNAL(startMouseMove(int)),
- m_canvasView, SLOT(startAutoScroll(int)));
- connect(topStandardRuler->getLoopRuler(), SIGNAL(stopMouseMove()),
- m_canvasView, SLOT(stopAutoScroll()));
+ connect(topStandardRuler->getLoopRuler(), TQT_SIGNAL(startMouseMove(int)),
+ m_canvasView, TQT_SLOT(startAutoScroll(int)));
+ connect(topStandardRuler->getLoopRuler(), TQT_SIGNAL(stopMouseMove()),
+ m_canvasView, TQT_SLOT(stopAutoScroll()));
- connect(bottomStandardRuler->getLoopRuler(), SIGNAL(startMouseMove(int)),
- m_canvasView, SLOT(startAutoScroll(int)));
- connect(bottomStandardRuler->getLoopRuler(), SIGNAL(stopMouseMove()),
- m_canvasView, SLOT(stopAutoScroll()));
- connect(m_bottomStandardRuler, SIGNAL(dragPointerToPosition(timeT)),
- this, SLOT(slotSetPointerPosition(timeT)));
+ connect(bottomStandardRuler->getLoopRuler(), TQT_SIGNAL(startMouseMove(int)),
+ m_canvasView, TQT_SLOT(startAutoScroll(int)));
+ connect(bottomStandardRuler->getLoopRuler(), TQT_SIGNAL(stopMouseMove()),
+ m_canvasView, TQT_SLOT(stopAutoScroll()));
+ connect(m_bottomStandardRuler, TQT_SIGNAL(dragPointerToPosition(timeT)),
+ this, TQT_SLOT(slotSetPointerPosition(timeT)));
// Force height for the moment
//
@@ -568,9 +568,9 @@ MatrixView::~MatrixView()
// This looks silly but the reason is that on destruction of the
// MatrixCanvasView, setCanvas() is called (this is in
- // ~QCanvasView so we can't do anything about it). This calls
- // QCanvasView::updateContentsSize(), which in turn updates the
- // view's scrollbars, hence calling QScrollBar::setValue(), and
+ // ~TQCanvasView so we can't do anything about it). This calls
+ // TQCanvasView::updateContentsSize(), which in turn updates the
+ // view's scrollbars, hence calling TQScrollBar::setValue(), and
// sending the QSCrollbar::valueChanged() signal. But we have a
// slot connected to that signal
// (MatrixView::slotVerticalScrollPianoKeyboard), which scrolls
@@ -635,224 +635,224 @@ void MatrixView::setupActions()
//
KRadioAction* toolAction = 0;
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QIconSet icon(QPixmap(pixmapDir + "/toolbar/select.xpm"));
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/select.xpm"));
toolAction = new KRadioAction(i18n("&Select and Edit"), icon, Key_F2,
- this, SLOT(slotSelectSelected()),
+ this, TQT_SLOT(slotSelectSelected()),
actionCollection(), "select");
toolAction->setExclusiveGroup("tools");
toolAction = new KRadioAction(i18n("&Draw"), "pencil", Key_F3,
- this, SLOT(slotPaintSelected()),
+ this, TQT_SLOT(slotPaintSelected()),
actionCollection(), "draw");
toolAction->setExclusiveGroup("tools");
toolAction = new KRadioAction(i18n("&Erase"), "eraser", Key_F4,
- this, SLOT(slotEraseSelected()),
+ this, TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase");
toolAction->setExclusiveGroup("tools");
toolAction = new KRadioAction(i18n("&Move"), "move", Key_F5,
- this, SLOT(slotMoveSelected()),
+ this, TQT_SLOT(slotMoveSelected()),
actionCollection(), "move");
toolAction->setExclusiveGroup("tools");
- QCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm");
- icon = QIconSet(pixmap);
+ TQCanvasPixmap pixmap(pixmapDir + "/toolbar/resize.xpm");
+ icon = TQIconSet(pixmap);
toolAction = new KRadioAction(i18n("Resi&ze"), icon, Key_F6,
- this, SLOT(slotResizeSelected()),
+ this, TQT_SLOT(slotResizeSelected()),
actionCollection(), "resize");
toolAction->setExclusiveGroup("tools");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("chord")));
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("chord")));
(new KToggleAction(i18n("C&hord Insert Mode"), icon, Key_H,
- this, SLOT(slotUpdateInsertModeStatus()),
+ this, TQT_SLOT(slotUpdateInsertModeStatus()),
actionCollection(), "chord_mode"))->
setChecked(false);
pixmap.load(pixmapDir + "/toolbar/step_by_step.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KToggleAction(i18n("Ste&p Recording"), icon, 0, this,
- SLOT(slotToggleStepByStep()), actionCollection(),
+ TQT_SLOT(slotToggleStepByStep()), actionCollection(),
"toggle_step_by_step");
pixmap.load(pixmapDir + "/toolbar/quantize.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(EventQuantizeCommand::getGlobalName(), icon, Key_Equal, this,
- SLOT(slotTransformsQuantize()), actionCollection(),
+ TQT_SLOT(slotTransformsQuantize()), actionCollection(),
"quantize");
new KAction(i18n("Repeat Last Quantize"), Key_Plus, this,
- SLOT(slotTransformsRepeatQuantize()), actionCollection(),
+ TQT_SLOT(slotTransformsRepeatQuantize()), actionCollection(),
"repeat_quantize");
new KAction(CollapseNotesCommand::getGlobalName(), Key_Equal + CTRL, this,
- SLOT(slotTransformsCollapseNotes()), actionCollection(),
+ TQT_SLOT(slotTransformsCollapseNotes()), actionCollection(),
"collapse_notes");
new KAction(i18n("&Legato"), Key_Minus, this,
- SLOT(slotTransformsLegato()), actionCollection(),
+ TQT_SLOT(slotTransformsLegato()), actionCollection(),
"legatoize");
new KAction(ChangeVelocityCommand::getGlobalName(10), 0,
Key_Up + SHIFT, this,
- SLOT(slotVelocityUp()), actionCollection(),
+ TQT_SLOT(slotVelocityUp()), actionCollection(),
"velocity_up");
new KAction(ChangeVelocityCommand::getGlobalName( -10), 0,
Key_Down + SHIFT, this,
- SLOT(slotVelocityDown()), actionCollection(),
+ TQT_SLOT(slotVelocityDown()), actionCollection(),
"velocity_down");
new KAction(i18n("Set to Current Velocity"), 0, this,
- SLOT(slotSetVelocitiesToCurrent()), actionCollection(),
+ TQT_SLOT(slotSetVelocitiesToCurrent()), actionCollection(),
"set_to_current_velocity");
new KAction(i18n("Set Event &Velocities..."), 0, this,
- SLOT(slotSetVelocities()), actionCollection(),
+ TQT_SLOT(slotSetVelocities()), actionCollection(),
"set_velocities");
new KAction(i18n("Trigger Se&gment..."), 0, this,
- SLOT(slotTriggerSegment()), actionCollection(),
+ TQT_SLOT(slotTriggerSegment()), actionCollection(),
"trigger_segment");
new KAction(i18n("Remove Triggers..."), 0, this,
- SLOT(slotRemoveTriggers()), actionCollection(),
+ TQT_SLOT(slotRemoveTriggers()), actionCollection(),
"remove_trigger");
new KAction(i18n("Select &All"), Key_A + CTRL, this,
- SLOT(slotSelectAll()), actionCollection(),
+ TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all");
new KAction(i18n("&Delete"), Key_Delete, this,
- SLOT(slotEditDelete()), actionCollection(),
+ TQT_SLOT(slotEditDelete()), actionCollection(),
"delete");
new KAction(i18n("Cursor &Back"), 0, Key_Left, this,
- SLOT(slotStepBackward()), actionCollection(),
+ TQT_SLOT(slotStepBackward()), actionCollection(),
"cursor_back");
new KAction(i18n("Cursor &Forward"), 0, Key_Right, this,
- SLOT(slotStepForward()), actionCollection(),
+ TQT_SLOT(slotStepForward()), actionCollection(),
"cursor_forward");
new KAction(i18n("Cursor Ba&ck Bar"), 0, Key_Left + CTRL, this,
- SLOT(slotJumpBackward()), actionCollection(),
+ TQT_SLOT(slotJumpBackward()), actionCollection(),
"cursor_back_bar");
new KAction(i18n("Cursor For&ward Bar"), 0, Key_Right + CTRL, this,
- SLOT(slotJumpForward()), actionCollection(),
+ TQT_SLOT(slotJumpForward()), actionCollection(),
"cursor_forward_bar");
new KAction(i18n("Cursor Back and Se&lect"), SHIFT + Key_Left, this,
- SLOT(slotExtendSelectionBackward()), actionCollection(),
+ TQT_SLOT(slotExtendSelectionBackward()), actionCollection(),
"extend_selection_backward");
new KAction(i18n("Cursor Forward and &Select"), SHIFT + Key_Right, this,
- SLOT(slotExtendSelectionForward()), actionCollection(),
+ TQT_SLOT(slotExtendSelectionForward()), actionCollection(),
"extend_selection_forward");
new KAction(i18n("Cursor Back Bar and Select"), SHIFT + CTRL + Key_Left, this,
- SLOT(slotExtendSelectionBackwardBar()), actionCollection(),
+ TQT_SLOT(slotExtendSelectionBackwardBar()), actionCollection(),
"extend_selection_backward_bar");
new KAction(i18n("Cursor Forward Bar and Select"), SHIFT + CTRL + Key_Right, this,
- SLOT(slotExtendSelectionForwardBar()), actionCollection(),
+ TQT_SLOT(slotExtendSelectionForwardBar()), actionCollection(),
"extend_selection_forward_bar");
new KAction(i18n("Cursor to St&art"), 0,
/* #1025717: conflicting meanings for ctrl+a - dupe with Select All
Key_A + CTRL, */ this,
- SLOT(slotJumpToStart()), actionCollection(),
+ TQT_SLOT(slotJumpToStart()), actionCollection(),
"cursor_start");
new KAction(i18n("Cursor to &End"), 0, Key_E + CTRL, this,
- SLOT(slotJumpToEnd()), actionCollection(),
+ TQT_SLOT(slotJumpToEnd()), actionCollection(),
"cursor_end");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-cursor-to-pointer")));
new KAction(i18n("Cursor to &Playback Pointer"), icon, 0, this,
- SLOT(slotJumpCursorToPlayback()), actionCollection(),
+ TQT_SLOT(slotJumpCursorToPlayback()), actionCollection(),
"cursor_to_playback_pointer");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play")));
KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, this,
- SIGNAL(play()), actionCollection(), "play");
+ TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play
KShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut);
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop")));
new KAction(i18n("&Stop"), icon, Key_Insert, this,
- SIGNAL(stop()), actionCollection(), "stop");
+ TQT_SIGNAL(stop()), actionCollection(), "stop");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind")));
new KAction(i18n("Re&wind"), icon, Key_End, this,
- SIGNAL(rewindPlayback()), actionCollection(),
+ TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd")));
new KAction(i18n("&Fast Forward"), icon, Key_PageDown, this,
- SIGNAL(fastForwardPlayback()), actionCollection(),
+ TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end")));
new KAction(i18n("Rewind to &Beginning"), icon, 0, this,
- SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
+ TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end")));
new KAction(i18n("Fast Forward to &End"), icon, 0, this,
- SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
+ TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-pointer-to-cursor")));
new KAction(i18n("Playback Pointer to &Cursor"), icon, 0, this,
- SLOT(slotJumpPlaybackToCursor()), actionCollection(),
+ TQT_SLOT(slotJumpPlaybackToCursor()), actionCollection(),
"playback_pointer_to_cursor");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-solo")));
new KToggleAction(i18n("&Solo"), icon, 0, this,
- SLOT(slotToggleSolo()), actionCollection(),
+ TQT_SLOT(slotToggleSolo()), actionCollection(),
"toggle_solo");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-tracking")));
(new KToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, this,
- SLOT(slotToggleTracking()), actionCollection(),
+ TQT_SLOT(slotToggleTracking()), actionCollection(),
"toggle_tracking"))->setChecked(m_playTracking);
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic")));
new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, this,
- SIGNAL(panic()), actionCollection(), "panic");
+ TQT_SIGNAL(panic()), actionCollection(), "panic");
new KAction(i18n("Set Loop to Selection"), Key_Semicolon + CTRL, this,
- SLOT(slotPreviewSelection()), actionCollection(),
+ TQT_SLOT(slotPreviewSelection()), actionCollection(),
"preview_selection");
new KAction(i18n("Clear L&oop"), Key_Colon + CTRL, this,
- SLOT(slotClearLoop()), actionCollection(),
+ TQT_SLOT(slotClearLoop()), actionCollection(),
"clear_loop");
new KAction(i18n("Clear Selection"), Key_Escape, this,
- SLOT(slotClearSelection()), actionCollection(),
+ TQT_SLOT(slotClearSelection()), actionCollection(),
"clear_selection");
- // icon = QIconSet(QCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
+ // icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
new KAction(i18n("&Filter Selection"), "filter", Key_F + CTRL, this,
- SLOT(slotFilterSelection()), actionCollection(),
+ TQT_SLOT(slotFilterSelection()), actionCollection(),
"filter_selection");
timeT crotchetDuration = Note(Note::Crotchet).getDuration();
@@ -877,22 +877,22 @@ void MatrixView::setupActions()
if (d == SnapGrid::NoSnap) {
new KAction(i18n("&No Snap"), 0, this,
- SLOT(slotSetSnapFromAction()),
+ 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, this,
- SLOT(slotSetSnapFromAction()),
+ TQT_SLOT(slotSetSnapFromAction()),
actionCollection(), "snap_beat");
} else if (d == SnapGrid::SnapToBar) {
new KAction(i18n("Snap to &Bar"), Key_5, this,
- SLOT(slotSetSnapFromAction()),
+ TQT_SLOT(slotSetSnapFromAction()),
actionCollection(), "snap_bar");
} else {
timeT err = 0;
- QString label = NotationStrings::makeNoteMenuLabel(d, true, err);
- QPixmap pixmap = NotePixmapFactory::toQPixmap
+ TQString label = NotationStrings::makeNoteMenuLabel(d, true, err);
+ TQPixmap pixmap = NotePixmapFactory::toQPixmap
(NotePixmapFactory::makeNoteMenuPixmap(d, err));
KShortcut cut = 0;
@@ -903,10 +903,10 @@ void MatrixView::setupActions()
else if (d == crotchetDuration) cut = Key_4;
else if (d == crotchetDuration * 2) cut = Key_2;
- QString actionName = QString("snap_%1").arg(int((crotchetDuration * 4) / d));
+ TQString actionName = TQString("snap_%1").arg(int((crotchetDuration * 4) / d));
if (d == (crotchetDuration * 3) / 2) actionName = "snap_3";
new KAction(i18n("Snap to %1").arg(label), pixmap, cut, this,
- SLOT(slotSetSnapFromAction()), actionCollection(),
+ TQT_SLOT(slotSetSnapFromAction()), actionCollection(),
actionName);
}
}
@@ -915,16 +915,16 @@ void MatrixView::setupActions()
// Settings menu
//
new KAction(i18n("Show Instrument Parameters"), 0, this,
- SLOT(slotDockParametersBack()),
+ TQT_SLOT(slotDockParametersBack()),
actionCollection(),
"show_inst_parameters");
new KToggleAction(i18n("Show Ch&ord Name Ruler"), 0, this,
- SLOT(slotToggleChordsRuler()),
+ TQT_SLOT(slotToggleChordsRuler()),
actionCollection(), "show_chords_ruler");
new KToggleAction(i18n("Show &Tempo Ruler"), 0, this,
- SLOT(slotToggleTempoRuler()),
+ TQT_SLOT(slotToggleTempoRuler()),
actionCollection(), "show_tempo_ruler");
createGUI(getRCFileName(), false);
@@ -977,8 +977,8 @@ void MatrixView::initStatusBar()
{
KStatusBar* sb = statusBar();
- m_hoveredOverAbsoluteTime = new QLabel(sb);
- m_hoveredOverNoteName = new QLabel(sb);
+ m_hoveredOverAbsoluteTime = new TQLabel(sb);
+ m_hoveredOverNoteName = new TQLabel(sb);
m_hoveredOverAbsoluteTime->setMinimumWidth(175);
m_hoveredOverNoteName->setMinimumWidth(65);
@@ -986,7 +986,7 @@ void MatrixView::initStatusBar()
sb->addWidget(m_hoveredOverAbsoluteTime);
sb->addWidget(m_hoveredOverNoteName);
- m_insertModeLabel = new QLabel(sb);
+ m_insertModeLabel = new TQLabel(sb);
m_insertModeLabel->setMinimumWidth(20);
sb->addWidget(m_insertModeLabel);
@@ -995,13 +995,13 @@ void MatrixView::initStatusBar()
sb->setItemAlignment(KTmpStatusMsg::getDefaultId(),
AlignLeft | AlignVCenter);
- m_selectionCounter = new QLabel(sb);
+ m_selectionCounter = new TQLabel(sb);
sb->addWidget(m_selectionCounter);
}
-void MatrixView::slotToolHelpChanged(const QString &s)
+void MatrixView::slotToolHelpChanged(const TQString &s)
{
- QString msg = " " + s;
+ TQString msg = " " + s;
if (m_toolContextHelp == msg) return;
m_toolContextHelp = msg;
@@ -1081,12 +1081,12 @@ void MatrixView::refreshSegment(Segment *segment,
repaintRulers();
}
-QSize MatrixView::getViewSize()
+TQSize MatrixView::getViewSize()
{
return canvas()->size();
}
-void MatrixView::setViewSize(QSize s)
+void MatrixView::setViewSize(TQSize s)
{
MATRIX_DEBUG << "MatrixView::setViewSize() w = " << s.width() << endl;
@@ -1314,11 +1314,11 @@ void MatrixView::slotSelectSelected()
{
EditTool* selector = m_toolBox->getTool(MatrixSelector::ToolName);
- connect(selector, SIGNAL(gotSelection()),
- this, SLOT(slotNewSelection()));
+ connect(selector, TQT_SIGNAL(gotSelection()),
+ this, TQT_SLOT(slotNewSelection()));
- connect(selector, SIGNAL(editTriggerSegment(int)),
- this, SIGNAL(editTriggerSegment(int)));
+ connect(selector, TQT_SIGNAL(editTriggerSegment(int)),
+ this, TQT_SIGNAL(editTriggerSegment(int)));
setTool(selector);
}
@@ -1344,7 +1344,7 @@ void MatrixView::slotTransformsQuantize()
QuantizeDialog dialog(this);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
KTmpStatusMsg msg(i18n("Quantizing..."), this);
addCommandToHistory(new EventQuantizeCommand
(*m_currentEventSelection,
@@ -1385,7 +1385,7 @@ void MatrixView::slotTransformsLegato()
}
void MatrixView::slotMousePressed(timeT time, int pitch,
- QMouseEvent* e, MatrixElement* el)
+ TQMouseEvent* e, MatrixElement* el)
{
MATRIX_DEBUG << "MatrixView::mousePressed at pitch "
<< pitch << ", time " << time << endl;
@@ -1406,7 +1406,7 @@ void MatrixView::slotMousePressed(timeT time, int pitch,
//playPreview(pitch);
}
-void MatrixView::slotMouseMoved(timeT time, int pitch, QMouseEvent* e)
+void MatrixView::slotMouseMoved(timeT time, int pitch, TQMouseEvent* e)
{
// Don't allow moving/insertion before the beginning of the
// segment
@@ -1434,7 +1434,7 @@ void MatrixView::slotMouseMoved(timeT time, int pitch, QMouseEvent* e)
}
-void MatrixView::slotMouseReleased(timeT time, int pitch, QMouseEvent* e)
+void MatrixView::slotMouseReleased(timeT time, int pitch, TQMouseEvent* e)
{
// Don't allow moving/insertion before the beginning of the
// segment
@@ -1473,14 +1473,14 @@ MatrixView::slotHoveredOverNoteChanged(int evPitch,
getDocument()->getComposition().getElapsedRealTime(evTime);
long ms = rt.msec();
- QString msg = i18n("Note: %1 (%2.%3s)")
- .arg(QString("%1-%2-%3-%4")
- .arg(QString("%1").arg(bar + 1).rightJustify(3, '0'))
- .arg(QString("%1").arg(beat).rightJustify(2, '0'))
- .arg(QString("%1").arg(fraction).rightJustify(2, '0'))
- .arg(QString("%1").arg(remainder).rightJustify(2, '0')))
+ TQString msg = i18n("Note: %1 (%2.%3s)")
+ .arg(TQString("%1-%2-%3-%4")
+ .arg(TQString("%1").arg(bar + 1).rightJustify(3, '0'))
+ .arg(TQString("%1").arg(beat).rightJustify(2, '0'))
+ .arg(TQString("%1").arg(fraction).rightJustify(2, '0'))
+ .arg(TQString("%1").arg(remainder).rightJustify(2, '0')))
.arg(rt.sec)
- .arg(QString("%1").arg(ms).rightJustify(3, '0'));
+ .arg(TQString("%1").arg(ms).rightJustify(3, '0'));
m_hoveredOverAbsoluteTime->setText(msg);
}
@@ -1503,7 +1503,7 @@ MatrixView::slotHoveredOverKeyChanged(unsigned int y)
if (evPitch != m_previousEvPitch) {
MidiPitchLabel label(evPitch);
- m_hoveredOverNoteName->setText(QString("%1 (%2)").
+ m_hoveredOverNoteName->setText(TQString("%1 (%2)").
arg(label.getQString()).arg(evPitch));
m_previousEvPitch = evPitch;
}
@@ -1524,18 +1524,18 @@ MatrixView::slotHoveredOverAbsoluteTimeChanged(unsigned int time)
getDocument()->getComposition().getElapsedRealTime(t);
long ms = rt.msec();
- // At the advice of doc.trolltech.com/3.0/qstring.html#sprintf
- // we replaced this QString format("%ld (%ld.%03lds)");
+ // At the advice of doc.trolltech.com/3.0/tqstring.html#sprintf
+ // we replaced this TQString format("%ld (%ld.%03lds)");
// to support Unicode
- QString message = i18n("Time: %1 (%2.%3s)")
- .arg(QString("%1-%2-%3-%4")
- .arg(QString("%1").arg(bar + 1).rightJustify(3, '0'))
- .arg(QString("%1").arg(beat).rightJustify(2, '0'))
- .arg(QString("%1").arg(fraction).rightJustify(2, '0'))
- .arg(QString("%1").arg(remainder).rightJustify(2, '0')))
+ TQString message = i18n("Time: %1 (%2.%3s)")
+ .arg(TQString("%1-%2-%3-%4")
+ .arg(TQString("%1").arg(bar + 1).rightJustify(3, '0'))
+ .arg(TQString("%1").arg(beat).rightJustify(2, '0'))
+ .arg(TQString("%1").arg(fraction).rightJustify(2, '0'))
+ .arg(TQString("%1").arg(remainder).rightJustify(2, '0')))
.arg(rt.sec)
- .arg(QString("%1").arg(ms).rightJustify(3, '0'));
+ .arg(TQString("%1").arg(ms).rightJustify(3, '0'));
m_hoveredOverAbsoluteTime->setText(message);
}
@@ -1810,8 +1810,8 @@ void MatrixView::slotVerticalScrollPianoKeyboard(int y)
void MatrixView::slotInsertNoteFromAction()
{
- const QObject *s = sender();
- QString name = s->name();
+ const TQObject *s = sender();
+ TQString name = s->name();
Segment &segment = *getCurrentSegment();
int pitch = 0;
@@ -2017,8 +2017,8 @@ MatrixView::slotSetSnapFromIndex(int s)
void
MatrixView::slotSetSnapFromAction()
{
- const QObject *s = sender();
- QString name = s->name();
+ const TQObject *s = sender();
+ TQString name = s->name();
if (name.left(5) == "snap_") {
int snap = name.right(name.length() - 5).toInt();
@@ -2117,10 +2117,10 @@ MatrixView::initActionsToolbar()
// The SnapGrid combo and Snap To... menu items
//
- QLabel *sLabel = new QLabel(i18n(" Grid: "), actionsToolbar, "kde toolbar widget");
+ TQLabel *sLabel = new TQLabel(i18n(" Grid: "), actionsToolbar, "kde toolbar widget");
sLabel->setIndent(10);
- QPixmap noMap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("menu-no-note"));
+ TQPixmap noMap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("menu-no-note"));
m_snapGridCombo = new KComboBox(actionsToolbar);
@@ -2138,8 +2138,8 @@ MatrixView::initActionsToolbar()
m_snapGridCombo->insertItem(i18n("Bar"));
} else {
timeT err = 0;
- QString label = NotationStrings::makeNoteMenuLabel(d, true, err);
- QPixmap pixmap = NotePixmapFactory::toQPixmap
+ TQString label = NotationStrings::makeNoteMenuLabel(d, true, err);
+ TQPixmap pixmap = NotePixmapFactory::toQPixmap
(NotePixmapFactory::makeNoteMenuPixmap(d, err));
m_snapGridCombo->insertItem((err ? noMap : pixmap), label);
}
@@ -2149,25 +2149,25 @@ MatrixView::initActionsToolbar()
}
}
- connect(m_snapGridCombo, SIGNAL(activated(int)),
- this, SLOT(slotSetSnapFromIndex(int)));
+ connect(m_snapGridCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSetSnapFromIndex(int)));
// Velocity combo. Not a spin box, because the spin box is too
// slow to use unless we make it typeable into, and then it takes
// focus away from our more important widgets
- QLabel *vlabel = new QLabel(i18n(" Velocity: "), actionsToolbar, "kde toolbar widget");
+ TQLabel *vlabel = new TQLabel(i18n(" Velocity: "), actionsToolbar, "kde toolbar widget");
vlabel->setIndent(10);
m_velocityCombo = new KComboBox(actionsToolbar);
for (int i = 0; i <= 127; ++i) {
- m_velocityCombo->insertItem(QString("%1").arg(i));
+ m_velocityCombo->insertItem(TQString("%1").arg(i));
}
m_velocityCombo->setCurrentItem(100); //!!! associate with segment
// Quantize combo
//
- QLabel *qLabel = new QLabel(i18n(" Quantize: "), actionsToolbar, "kde toolbar widget");
+ TQLabel *qLabel = new TQLabel(i18n(" Quantize: "), actionsToolbar, "kde toolbar widget");
qLabel->setIndent(10);
m_quantizeCombo = new KComboBox(actionsToolbar);
@@ -2176,15 +2176,15 @@ MatrixView::initActionsToolbar()
timeT time = m_quantizations[i];
timeT error = 0;
- QString label = NotationStrings::makeNoteMenuLabel(time, true, error);
- QPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
+ TQString label = NotationStrings::makeNoteMenuLabel(time, true, error);
+ TQPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
m_quantizeCombo->insertItem(error ? noMap : pmap, label);
}
m_quantizeCombo->insertItem(noMap, i18n("Off"));
- connect(m_quantizeCombo, SIGNAL(activated(int)),
- this, SLOT(slotQuantizeSelection(int)));
+ connect(m_quantizeCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotQuantizeSelection(int)));
}
void
@@ -2217,17 +2217,17 @@ MatrixView::initZoomToolbar()
}
m_hZoomSlider = new ZoomSlider<double>
- (zoomSizes, -1, QSlider::Horizontal, zoomToolbar, "kde toolbar widget");
+ (zoomSizes, -1, TQSlider::Horizontal, zoomToolbar, "kde toolbar widget");
m_hZoomSlider->setTracking(true);
- m_hZoomSlider->setFocusPolicy(QWidget::NoFocus);
+ m_hZoomSlider->setFocusPolicy(TQWidget::NoFocus);
- m_zoomLabel = new QLabel(zoomToolbar, "kde toolbar widget");
+ m_zoomLabel = new TQLabel(zoomToolbar, "kde toolbar widget");
m_zoomLabel->setIndent(10);
m_zoomLabel->setFixedWidth(80);
connect(m_hZoomSlider,
- SIGNAL(valueChanged(int)),
- SLOT(slotChangeHorizontalZoom(int)));
+ TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotChangeHorizontalZoom(int)));
}
@@ -2251,7 +2251,7 @@ MatrixView::slotChangeHorizontalZoom(int)
// Set zoom matrix
//
- QWMatrix zoomMatrix;
+ TQWMatrix zoomMatrix;
zoomMatrix.scale(zoomValue, 1.0);
m_canvasView->setWorldMatrix(zoomMatrix);
@@ -2521,7 +2521,7 @@ void MatrixView::slotFilterSelection()
return ;
EventFilterDialog dialog(this);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotFilterSelection- accepted" << endl;
bool haveEvent = false;
@@ -2572,7 +2572,7 @@ MatrixView::readjustCanvasSize()
int newWidth = computePostLayoutWidth();
// now get the EditView to do the biz
- readjustViewSize(QSize(newWidth, maxHeight), true);
+ readjustViewSize(TQSize(newWidth, maxHeight), true);
repaintRulers();
}
@@ -2612,7 +2612,7 @@ MatrixView::slotSetVelocities()
BaseProperties::VELOCITY,
getCurrentVelocity());
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
KTmpStatusMsg msg(i18n("Setting Velocities..."), this);
addCommandToHistory(new SelectionPropertyCommand
(m_currentEventSelection,
@@ -2643,7 +2643,7 @@ MatrixView::slotTriggerSegment()
return ;
TriggerSegmentDialog dialog(this, &getDocument()->getComposition());
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
addCommandToHistory(new SetTriggerCommand(*m_currentEventSelection,
@@ -2678,7 +2678,7 @@ MatrixView::slotToggleTempoRuler()
}
void
-MatrixView::paintEvent(QPaintEvent* e)
+MatrixView::paintEvent(TQPaintEvent* e)
{
//!!! There's a lot of code shared between matrix and notation for
// dealing with step recording (the insertable note event stuff).
@@ -2706,7 +2706,7 @@ MatrixView::updateViewCaption()
{
// Set client label
//
- QString view = i18n("Matrix");
+ TQString view = i18n("Matrix");
if (isDrumMode())
view = i18n("Percussion");
@@ -2930,7 +2930,7 @@ MatrixView::slotToggleStepByStep()
void
MatrixView::slotUpdateInsertModeStatus()
{
- QString message;
+ TQString message;
if (isInChordMode()) {
message = i18n(" Chord ");
} else {
@@ -2940,7 +2940,7 @@ MatrixView::slotUpdateInsertModeStatus()
}
void
-MatrixView::slotStepByStepTargetRequested(QObject *obj)
+MatrixView::slotStepByStepTargetRequested(TQObject *obj)
{
KToggleAction *action = dynamic_cast<KToggleAction *>
(actionCollection()->action("toggle_step_by_step"));
@@ -3010,7 +3010,7 @@ MatrixView::slotPercussionSetChanged(Instrument * newInstr)
delete m_pitchRuler;
- QWidget *vport = m_pianoView->viewport();
+ TQWidget *vport = m_pianoView->viewport();
// Create a new pitchruler widget
PitchRuler *pitchRuler;
@@ -3024,21 +3024,21 @@ MatrixView::slotPercussionSetChanged(Instrument * newInstr)
}
- QObject::connect
- (pitchRuler, SIGNAL(hoveredOverKeyChanged(unsigned int)),
- this, SLOT (slotHoveredOverKeyChanged(unsigned int)));
+ TQObject::connect
+ (pitchRuler, TQT_SIGNAL(hoveredOverKeyChanged(unsigned int)),
+ this, TQT_SLOT (slotHoveredOverKeyChanged(unsigned int)));
- QObject::connect
- (pitchRuler, SIGNAL(keyPressed(unsigned int, bool)),
- this, SLOT (slotKeyPressed(unsigned int, bool)));
+ TQObject::connect
+ (pitchRuler, TQT_SIGNAL(keyPressed(unsigned int, bool)),
+ this, TQT_SLOT (slotKeyPressed(unsigned int, bool)));
- QObject::connect
- (pitchRuler, SIGNAL(keySelected(unsigned int, bool)),
- this, SLOT (slotKeySelected(unsigned int, bool)));
+ TQObject::connect
+ (pitchRuler, TQT_SIGNAL(keySelected(unsigned int, bool)),
+ this, TQT_SLOT (slotKeySelected(unsigned int, bool)));
- QObject::connect
- (pitchRuler, SIGNAL(keyReleased(unsigned int, bool)),
- this, SLOT (slotKeyReleased(unsigned int, bool)));
+ TQObject::connect
+ (pitchRuler, TQT_SIGNAL(keyReleased(unsigned int, bool)),
+ this, TQT_SLOT (slotKeyReleased(unsigned int, bool)));
// Replace the old pitchruler widget
m_pitchRuler = pitchRuler;