summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NotationSelector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/notation/NotationSelector.cpp')
-rw-r--r--src/gui/editors/notation/NotationSelector.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/gui/editors/notation/NotationSelector.cpp b/src/gui/editors/notation/NotationSelector.cpp
index 221fbe3..2a28545 100644
--- a/src/gui/editors/notation/NotationSelector.cpp
+++ b/src/gui/editors/notation/NotationSelector.cpp
@@ -49,11 +49,11 @@
#include "NotationView.h"
#include "NotePixmapFactory.h"
#include <kaction.h>
-#include <qapplication.h>
-#include <qiconset.h>
-#include <qrect.h>
-#include <qstring.h>
-#include <qtimer.h>
+#include <tqapplication.h>
+#include <tqiconset.h>
+#include <tqrect.h>
+#include <tqstring.h>
+#include <tqtimer.h>
namespace Rosegarden
@@ -71,68 +71,68 @@ NotationSelector::NotationSelector(NotationView* view)
m_justSelectedBar(false),
m_wholeStaffSelectionComplete(false)
{
- connect(m_parentView, SIGNAL(usedSelection()),
- this, SLOT(slotHideSelection()));
+ connect(m_parentView, TQT_SIGNAL(usedSelection()),
+ this, TQT_SLOT(slotHideSelection()));
- connect(this, SIGNAL(editElement(NotationStaff *, NotationElement *, bool)),
- m_parentView, SLOT(slotEditElement(NotationStaff *, NotationElement *, bool)));
+ connect(this, TQT_SIGNAL(editElement(NotationStaff *, NotationElement *, bool)),
+ m_parentView, TQT_SLOT(slotEditElement(NotationStaff *, NotationElement *, bool)));
- QIconSet icon
+ TQIconSet icon
(NotePixmapFactory::toQPixmap(NotePixmapFactory::
makeToolbarPixmap("crotchet")));
new KToggleAction(i18n("Switch to Insert Tool"), icon, 0, this,
- SLOT(slotInsertSelected()), actionCollection(),
+ TQT_SLOT(slotInsertSelected()), actionCollection(),
"insert");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
- SLOT(slotEraseSelected()), actionCollection(),
+ 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,
- // SLOT(slotCollapseRests()), actionCollection(),
+ // TQT_SLOT(slotCollapseRests()), actionCollection(),
// "collapse_rests");
new KAction(i18n("Collapse Rests"), 0, 0, this,
- SLOT(slotCollapseRestsHard()), actionCollection(),
+ TQT_SLOT(slotCollapseRestsHard()), actionCollection(),
"collapse_rests_aggressively");
new KAction(i18n("Respell as Flat"), 0, 0, this,
- SLOT(slotRespellFlat()), actionCollection(),
+ TQT_SLOT(slotRespellFlat()), actionCollection(),
"respell_flat");
new KAction(i18n("Respell as Sharp"), 0, 0, this,
- SLOT(slotRespellSharp()), actionCollection(),
+ TQT_SLOT(slotRespellSharp()), actionCollection(),
"respell_sharp");
new KAction(i18n("Respell as Natural"), 0, 0, this,
- SLOT(slotRespellNatural()), actionCollection(),
+ TQT_SLOT(slotRespellNatural()), actionCollection(),
"respell_natural");
new KAction(i18n("Collapse Notes"), 0, 0, this,
- SLOT(slotCollapseNotes()), actionCollection(),
+ TQT_SLOT(slotCollapseNotes()), actionCollection(),
"collapse_notes");
new KAction(i18n("Interpret"), 0, 0, this,
- SLOT(slotInterpret()), actionCollection(),
+ TQT_SLOT(slotInterpret()), actionCollection(),
"interpret");
new KAction(i18n("Move to Staff Above"), 0, 0, this,
- SLOT(slotStaffAbove()), actionCollection(),
+ TQT_SLOT(slotStaffAbove()), actionCollection(),
"move_events_up_staff");
new KAction(i18n("Move to Staff Below"), 0, 0, this,
- SLOT(slotStaffBelow()), actionCollection(),
+ TQT_SLOT(slotStaffBelow()), actionCollection(),
"move_events_down_staff");
new KAction(i18n("Make Invisible"), 0, 0, this,
- SLOT(slotMakeInvisible()), actionCollection(),
+ TQT_SLOT(slotMakeInvisible()), actionCollection(),
"make_invisible");
new KAction(i18n("Make Visible"), 0, 0, this,
- SLOT(slotMakeVisible()), actionCollection(),
+ TQT_SLOT(slotMakeVisible()), actionCollection(),
"make_visible");
createMenu("notationselector.rc");
@@ -146,7 +146,7 @@ NotationSelector::~NotationSelector()
void NotationSelector::handleLeftButtonPress(timeT t,
int height,
int staffNo,
- QMouseEvent* e,
+ TQMouseEvent* e,
ViewElement *element)
{
std::cerr << "NotationSelector::handleMousePress: time is " << t << ", staffNo is "
@@ -194,7 +194,7 @@ void NotationSelector::handleLeftButtonPress(timeT t,
void NotationSelector::handleRightButtonPress(timeT t,
int height,
int staffNo,
- QMouseEvent* e,
+ TQMouseEvent* e,
ViewElement *element)
{
std::cerr << "NotationSelector::handleRightButtonPress" << std::endl;
@@ -228,7 +228,7 @@ void NotationSelector::slotClickTimeout()
void NotationSelector::handleMouseDoubleClick(timeT,
int,
int staffNo,
- QMouseEvent* e,
+ TQMouseEvent* e,
ViewElement *element)
{
NOTATION_DEBUG << "NotationSelector::handleMouseDoubleClick" << endl;
@@ -247,7 +247,7 @@ void NotationSelector::handleMouseDoubleClick(timeT,
} else {
- QRect rect = staff->getBarExtents(e->x(), e->y());
+ TQRect rect = staff->getBarExtents(e->x(), e->y());
m_selectionRect->setX(rect.x() + 1);
m_selectionRect->setY(rect.y());
@@ -257,8 +257,8 @@ void NotationSelector::handleMouseDoubleClick(timeT,
m_updateRect = false;
m_justSelectedBar = true;
- QTimer::singleShot(QApplication::doubleClickInterval(), this,
- SLOT(slotClickTimeout()));
+ TQTimer::singleShot(TQApplication::doubleClickInterval(), this,
+ TQT_SLOT(slotClickTimeout()));
}
return ;
@@ -267,7 +267,7 @@ void NotationSelector::handleMouseDoubleClick(timeT,
void NotationSelector::handleMouseTripleClick(timeT t,
int height,
int staffNo,
- QMouseEvent* e,
+ TQMouseEvent* e,
ViewElement *element)
{
if (!m_justSelectedBar)
@@ -305,7 +305,7 @@ void NotationSelector::handleMouseTripleClick(timeT t,
}
int NotationSelector::handleMouseMove(timeT, int,
- QMouseEvent* e)
+ TQMouseEvent* e)
{
if (!m_updateRect)
return RosegardenCanvasView::NoFollow;
@@ -345,7 +345,7 @@ int NotationSelector::handleMouseMove(timeT, int,
return RosegardenCanvasView::FollowHorizontal | RosegardenCanvasView::FollowVertical;
}
-void NotationSelector::handleMouseRelease(timeT, int, QMouseEvent *e)
+void NotationSelector::handleMouseRelease(timeT, int, TQMouseEvent *e)
{
NOTATION_DEBUG << "NotationSelector::handleMouseRelease" << endl;
m_updateRect = false;
@@ -706,7 +706,7 @@ void NotationSelector::dragFine(int x, int y, bool final)
void NotationSelector::ready()
{
- m_selectionRect = new QCanvasRectangle(m_nParentView->canvas());
+ m_selectionRect = new TQCanvasRectangle(m_nParentView->canvas());
m_selectionRect->hide();
m_selectionRect->setPen(GUIPalette::getColour(GUIPalette::SelectionRectangle));
@@ -834,10 +834,10 @@ EventSelection* NotationSelector::getSelection()
m_selectionRect->height() > -3 &&
m_selectionRect->height() < 3) return 0;
- QCanvasItemList itemList = m_selectionRect->collisions(false);
- QCanvasItemList::Iterator it;
+ TQCanvasItemList itemList = m_selectionRect->collisions(false);
+ TQCanvasItemList::Iterator it;
- QRect rect = m_selectionRect->rect().normalize();
+ TQRect rect = m_selectionRect->rect().normalize();
QCanvasNotationSprite *sprite = 0;
if (!m_selectedStaff) {
@@ -951,7 +951,7 @@ EventSelection* NotationSelector::getSelection()
}
}
-const QString NotationSelector::ToolName = "notationselector";
+const TQString NotationSelector::ToolName = "notationselector";
}
#include "NotationSelector.moc"