summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix/MatrixMover.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/matrix/MatrixMover.cpp')
-rw-r--r--src/gui/editors/matrix/MatrixMover.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/gui/editors/matrix/MatrixMover.cpp b/src/gui/editors/matrix/MatrixMover.cpp
index d725f16..adf558d 100644
--- a/src/gui/editors/matrix/MatrixMover.cpp
+++ b/src/gui/editors/matrix/MatrixMover.cpp
@@ -45,9 +45,9 @@
#include "MatrixVLayout.h"
#include <kaction.h>
#include <kglobal.h>
-#include <qiconset.h>
-#include <qpoint.h>
-#include <qstring.h>
+#include <tqiconset.h>
+#include <tqpoint.h>
+#include <tqstring.h>
#include "misc/Debug.h"
@@ -60,26 +60,26 @@ MatrixMover::MatrixMover(MatrixView* parent) :
m_currentStaff(0),
m_lastPlayedPitch(-1)
{
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
- QIconSet icon = QIconSet(pixmap);
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
+ TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Select Tool"), icon, 0, this,
- SLOT(slotSelectSelected()), actionCollection(),
+ TQT_SLOT(slotSelectSelected()), actionCollection(),
"select");
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
- SLOT(slotDrawSelected()), actionCollection(),
+ TQT_SLOT(slotDrawSelected()), actionCollection(),
"draw");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
- SLOT(slotEraseSelected()), actionCollection(),
+ TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Resize Tool"), icon, 0, this,
- SLOT(slotResizeSelected()), actionCollection(),
+ TQT_SLOT(slotResizeSelected()), actionCollection(),
"resize");
createMenu("matrixmover.rc");
@@ -95,7 +95,7 @@ void MatrixMover::handleEventRemoved(Event *event)
void MatrixMover::handleLeftButtonPress(timeT time,
int pitch,
int staffNo,
- QMouseEvent* e,
+ TQMouseEvent* e,
ViewElement* el)
{
MATRIX_DEBUG << "MatrixMover::handleLeftButtonPress() : time = " << time << ", el = " << el << endl;
@@ -177,7 +177,7 @@ void MatrixMover::handleLeftButtonPress(timeT time,
}
timeT
-MatrixMover::getDragTime(QMouseEvent *e, timeT candidate)
+MatrixMover::getDragTime(TQMouseEvent *e, timeT candidate)
{
int x = m_mParentView->inverseMapPoint(e->pos()).x();
int xdiff = x - m_clickX;
@@ -201,7 +201,7 @@ MatrixMover::getDragTime(QMouseEvent *e, timeT candidate)
int MatrixMover::handleMouseMove(timeT newTime,
int newPitch,
- QMouseEvent *e)
+ TQMouseEvent *e)
{
MATRIX_DEBUG << "MatrixMover::handleMouseMove() time = "
<< newTime << endl;
@@ -280,7 +280,7 @@ int MatrixMover::handleMouseMove(timeT newTime,
void MatrixMover::handleMouseRelease(timeT newTime,
int newPitch,
- QMouseEvent *e)
+ TQMouseEvent *e)
{
MATRIX_DEBUG << "MatrixMover::handleMouseRelease() - newPitch = "
<< newPitch << endl;
@@ -322,7 +322,7 @@ void MatrixMover::handleMouseRelease(timeT newTime,
m_lastPlayedPitch = newPitch;
}
- QString commandLabel;
+ TQString commandLabel;
if (m_quickCopy) {
if (selection->getAddedEvents() < 2) {
commandLabel = i18n("Copy and Move Event");
@@ -420,20 +420,20 @@ void MatrixMover::handleMouseRelease(timeT newTime,
void MatrixMover::ready()
{
- connect(m_parentView->getCanvasView(), SIGNAL(contentsMoving (int, int)),
- this, SLOT(slotMatrixScrolled(int, int)));
- connect(this, SIGNAL(hoveredOverNoteChanged(int, bool, timeT)),
- m_mParentView, SLOT(slotHoveredOverNoteChanged(int, bool, timeT)));
+ connect(m_parentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
+ this, TQT_SLOT(slotMatrixScrolled(int, int)));
+ connect(this, TQT_SIGNAL(hoveredOverNoteChanged(int, bool, timeT)),
+ m_mParentView, TQT_SLOT(slotHoveredOverNoteChanged(int, bool, timeT)));
m_mParentView->setCanvasCursor(Qt::sizeAllCursor);
setBasicContextHelp();
}
void MatrixMover::stow()
{
- disconnect(m_parentView->getCanvasView(), SIGNAL(contentsMoving (int, int)),
- this, SLOT(slotMatrixScrolled(int, int)));
- disconnect(this, SIGNAL(hoveredOverNoteChanged(int, bool, timeT)),
- m_mParentView, SLOT(slotHoveredOverNoteChanged(int, bool, timeT)));
+ disconnect(m_parentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
+ this, TQT_SLOT(slotMatrixScrolled(int, int)));
+ disconnect(this, TQT_SIGNAL(hoveredOverNoteChanged(int, bool, timeT)),
+ m_mParentView, TQT_SLOT(slotHoveredOverNoteChanged(int, bool, timeT)));
}
void MatrixMover::slotMatrixScrolled(int newX, int newY)
@@ -441,14 +441,14 @@ void MatrixMover::slotMatrixScrolled(int newX, int newY)
if (!m_currentElement)
return ;
- QPoint newP1(newX, newY), oldP1(m_parentView->getCanvasView()->contentsX(),
+ TQPoint newP1(newX, newY), oldP1(m_parentView->getCanvasView()->contentsX(),
m_parentView->getCanvasView()->contentsY());
- QPoint offset = newP1 - oldP1;
+ TQPoint offset = newP1 - oldP1;
offset = m_mParentView->inverseMapPoint(offset);
- QPoint p(m_currentElement->getCanvasX(), m_currentElement->getCanvasY());
+ TQPoint p(m_currentElement->getCanvasX(), m_currentElement->getCanvasY());
p += offset;
timeT newTime = getSnapGrid().snapX(p.x());
@@ -475,7 +475,7 @@ void MatrixMover::setBasicContextHelp(bool ctrlPressed)
}
}
-const QString MatrixMover::ToolName = "mover";
+const TQString MatrixMover::ToolName = "mover";
}
#include "MatrixMover.moc"