summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/segment/segmentcanvas')
-rw-r--r--src/gui/editors/segment/segmentcanvas/CompositionModelImpl.cpp4
-rw-r--r--src/gui/editors/segment/segmentcanvas/CompositionView.cpp70
-rw-r--r--src/gui/editors/segment/segmentcanvas/SegmentMover.cpp8
-rw-r--r--src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp8
-rw-r--r--src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp16
-rw-r--r--src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp4
6 files changed, 55 insertions, 55 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/CompositionModelImpl.cpp b/src/gui/editors/segment/segmentcanvas/CompositionModelImpl.cpp
index a30f33d..f85c45e 100644
--- a/src/gui/editors/segment/segmentcanvas/CompositionModelImpl.cpp
+++ b/src/gui/editors/segment/segmentcanvas/CompositionModelImpl.cpp
@@ -449,8 +449,8 @@ void CompositionModelImpl::updatePreviewCacheForAudioSegment(const Segment* segm
AudioPreviewUpdater *updater = new AudioPreviewUpdater
(*m_audioPreviewThread, m_composition, segment, segRect, this);
- connect(updater, TQT_SIGNAL(audioPreviewComplete(AudioPreviewUpdater*)),
- this, TQT_SLOT(slotAudioPreviewComplete(AudioPreviewUpdater*)));
+ connect(updater, TQ_SIGNAL(audioPreviewComplete(AudioPreviewUpdater*)),
+ this, TQ_SLOT(slotAudioPreviewComplete(AudioPreviewUpdater*)));
m_audioPreviewUpdaterMap[segment] = updater;
diff --git a/src/gui/editors/segment/segmentcanvas/CompositionView.cpp b/src/gui/editors/segment/segmentcanvas/CompositionView.cpp
index 445fc33..0e055a2 100644
--- a/src/gui/editors/segment/segmentcanvas/CompositionView.cpp
+++ b/src/gui/editors/segment/segmentcanvas/CompositionView.cpp
@@ -130,8 +130,8 @@ CompositionView::CompositionView(RosegardenGUIDoc* doc,
if (doc) {
m_toolBox = new SegmentToolBox(this, doc);
- connect(m_toolBox, TQT_SIGNAL(showContextHelp(const TQString &)),
- this, TQT_SLOT(slotToolHelpChanged(const TQString &)));
+ connect(m_toolBox, TQ_SIGNAL(showContextHelp(const TQString &)),
+ this, TQ_SLOT(slotToolHelpChanged(const TQString &)));
}
setDragAutoScroll(true);
@@ -144,43 +144,43 @@ CompositionView::CompositionView(RosegardenGUIDoc* doc,
TQScrollBar* hsb = horizontalScrollBar();
// dynamically adjust content size when scrolling past current composition's end
- connect(hsb, TQT_SIGNAL(nextLine()),
- this, TQT_SLOT(scrollRight()));
- connect(hsb, TQT_SIGNAL(prevLine()),
- this, TQT_SLOT(scrollLeft()));
-
- // connect(this, TQT_SIGNAL(contentsMoving(int, int)),
- // this, TQT_SLOT(slotAllDrawBuffersNeedRefresh()));
-
- // connect(this, TQT_SIGNAL(contentsMoving(int, int)),
- // this, TQT_SLOT(slotContentsMoving(int, int)));
-
- connect(model, TQT_SIGNAL(needContentUpdate()),
- this, TQT_SLOT(slotUpdateSegmentsDrawBuffer()));
- connect(model, TQT_SIGNAL(needContentUpdate(const TQRect&)),
- this, TQT_SLOT(slotUpdateSegmentsDrawBuffer(const TQRect&)));
- connect(model, TQT_SIGNAL(needArtifactsUpdate()),
- this, TQT_SLOT(slotArtifactsDrawBufferNeedsRefresh()));
- connect(model, TQT_SIGNAL(needSizeUpdate()),
- this, TQT_SLOT(slotUpdateSize()));
+ connect(hsb, TQ_SIGNAL(nextLine()),
+ this, TQ_SLOT(scrollRight()));
+ connect(hsb, TQ_SIGNAL(prevLine()),
+ this, TQ_SLOT(scrollLeft()));
+
+ // connect(this, TQ_SIGNAL(contentsMoving(int, int)),
+ // this, TQ_SLOT(slotAllDrawBuffersNeedRefresh()));
+
+ // connect(this, TQ_SIGNAL(contentsMoving(int, int)),
+ // this, TQ_SLOT(slotContentsMoving(int, int)));
+
+ connect(model, TQ_SIGNAL(needContentUpdate()),
+ this, TQ_SLOT(slotUpdateSegmentsDrawBuffer()));
+ connect(model, TQ_SIGNAL(needContentUpdate(const TQRect&)),
+ this, TQ_SLOT(slotUpdateSegmentsDrawBuffer(const TQRect&)));
+ connect(model, TQ_SIGNAL(needArtifactsUpdate()),
+ this, TQ_SLOT(slotArtifactsDrawBufferNeedsRefresh()));
+ connect(model, TQ_SIGNAL(needSizeUpdate()),
+ this, TQ_SLOT(slotUpdateSize()));
if (doc) {
- connect(doc, TQT_SIGNAL(docColoursChanged()),
- this, TQT_SLOT(slotRefreshColourCache()));
+ connect(doc, TQ_SIGNAL(docColoursChanged()),
+ this, TQ_SLOT(slotRefreshColourCache()));
// recording-related signals
- connect(doc, TQT_SIGNAL(newMIDIRecordingSegment(Segment*)),
- this, TQT_SLOT(slotNewMIDIRecordingSegment(Segment*)));
- connect(doc, TQT_SIGNAL(newAudioRecordingSegment(Segment*)),
- this, TQT_SLOT(slotNewAudioRecordingSegment(Segment*)));
- // connect(doc, TQT_SIGNAL(recordMIDISegmentUpdated(Segment*, timeT)),
- // this, TQT_SLOT(slotRecordMIDISegmentUpdated(Segment*, timeT)));
- connect(doc, TQT_SIGNAL(stoppedAudioRecording()),
- this, TQT_SLOT(slotStoppedRecording()));
- connect(doc, TQT_SIGNAL(stoppedMIDIRecording()),
- this, TQT_SLOT(slotStoppedRecording()));
- connect(doc, TQT_SIGNAL(audioFileFinalized(Segment*)),
- getModel(), TQT_SLOT(slotAudioFileFinalized(Segment*)));
+ connect(doc, TQ_SIGNAL(newMIDIRecordingSegment(Segment*)),
+ this, TQ_SLOT(slotNewMIDIRecordingSegment(Segment*)));
+ connect(doc, TQ_SIGNAL(newAudioRecordingSegment(Segment*)),
+ this, TQ_SLOT(slotNewAudioRecordingSegment(Segment*)));
+ // connect(doc, TQ_SIGNAL(recordMIDISegmentUpdated(Segment*, timeT)),
+ // this, TQ_SLOT(slotRecordMIDISegmentUpdated(Segment*, timeT)));
+ connect(doc, TQ_SIGNAL(stoppedAudioRecording()),
+ this, TQ_SLOT(slotStoppedRecording()));
+ connect(doc, TQ_SIGNAL(stoppedMIDIRecording()),
+ this, TQ_SLOT(slotStoppedRecording()));
+ connect(doc, TQ_SIGNAL(audioFileFinalized(Segment*)),
+ getModel(), TQ_SLOT(slotAudioFileFinalized(Segment*)));
}
CompositionModelImpl* cmi = dynamic_cast<CompositionModelImpl*>(model);
diff --git a/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp b/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp
index ae2c2aa..0ea6a03 100644
--- a/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp
+++ b/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp
@@ -61,15 +61,15 @@ SegmentMover::SegmentMover(CompositionView *c, RosegardenGUIDoc *d)
void SegmentMover::ready()
{
m_canvas->viewport()->setCursor(TQt::sizeAllCursor);
- connect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ connect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
setBasicContextHelp();
}
void SegmentMover::stow()
{
- disconnect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ disconnect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
}
void SegmentMover::slotCanvasScrolled(int newX, int newY)
diff --git a/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp b/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp
index 38bdf31..6eb58bc 100644
--- a/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp
+++ b/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp
@@ -63,15 +63,15 @@ SegmentPencil::SegmentPencil(CompositionView *c, RosegardenGUIDoc *d)
void SegmentPencil::ready()
{
m_canvas->viewport()->setCursor(TQt::ibeamCursor);
- connect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ connect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
setContextHelpFor(TQPoint(0, 0));
}
void SegmentPencil::stow()
{
- disconnect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ disconnect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
}
void SegmentPencil::slotCanvasScrolled(int newX, int newY)
diff --git a/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp b/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp
index 505ce3e..4b3406f 100644
--- a/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp
+++ b/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp
@@ -68,15 +68,15 @@ SegmentResizer::SegmentResizer(CompositionView *c, RosegardenGUIDoc *d,
void SegmentResizer::ready()
{
m_canvas->viewport()->setCursor(TQt::sizeHorCursor);
- connect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ connect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
setBasicContextHelp(false);
}
void SegmentResizer::stow()
{
- disconnect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ disconnect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
}
void SegmentResizer::slotCanvasScrolled(int newX, int newY)
@@ -177,10 +177,10 @@ void SegmentResizer::handleMouseButtonRelease(TQMouseEvent *e)
progressDlg.setLabel(i18n("Generating audio preview..."));
command->disconnectProgressDialog(&progressDlg);
- connect(&m_doc->getAudioFileManager(), TQT_SIGNAL(setProgress(int)),
- progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&progressDlg, TQT_SIGNAL(cancelClicked()),
- &m_doc->getAudioFileManager(), TQT_SLOT(slotStopPreview()));
+ connect(&m_doc->getAudioFileManager(), TQ_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQ_SLOT(setValue(int)));
+ connect(&progressDlg, TQ_SIGNAL(cancelClicked()),
+ &m_doc->getAudioFileManager(), TQ_SLOT(slotStopPreview()));
int fid = command->getNewAudioFileId();
if (fid >= 0) {
diff --git a/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp b/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp
index cb20975..a15a6c9 100644
--- a/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp
+++ b/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp
@@ -74,8 +74,8 @@ SegmentSelector::~SegmentSelector()
void SegmentSelector::ready()
{
m_canvas->viewport()->setCursor(TQt::arrowCursor);
- connect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)),
- this, TQT_SLOT(slotCanvasScrolled(int, int)));
+ connect(m_canvas, TQ_SIGNAL(contentsMoving (int, int)),
+ this, TQ_SLOT(slotCanvasScrolled(int, int)));
setContextHelp(i18n("Click and drag to select segments"));
}