summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/TrackButtons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/segment/TrackButtons.cpp')
-rw-r--r--src/gui/editors/segment/TrackButtons.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/gui/editors/segment/TrackButtons.cpp b/src/gui/editors/segment/TrackButtons.cpp
index 39e19d2..fba7327 100644
--- a/src/gui/editors/segment/TrackButtons.cpp
+++ b/src/gui/editors/segment/TrackButtons.cpp
@@ -72,16 +72,16 @@ TrackButtons::TrackButtons(RosegardenGUIDoc* doc,
unsigned int trackLabelWidth,
bool showTrackLabels,
int overallHeight,
- TQWidget* parent,
+ TQWidget* tqparent,
const char* name,
WFlags f)
- : TQFrame(parent, name, f),
+ : TQFrame(tqparent, name, f),
m_doc(doc),
- m_layout(new TQVBoxLayout(this)),
- m_recordSigMapper(new TQSignalMapper(this)),
- m_muteSigMapper(new TQSignalMapper(this)),
- m_clickedSigMapper(new TQSignalMapper(this)),
- m_instListSigMapper(new TQSignalMapper(this)),
+ m_tqlayout(new TQVBoxLayout(this)),
+ m_recordSigMapper(new TQSignalMapper(TQT_TQOBJECT(this))),
+ m_muteSigMapper(new TQSignalMapper(TQT_TQOBJECT(this))),
+ m_clickedSigMapper(new TQSignalMapper(TQT_TQOBJECT(this))),
+ m_instListSigMapper(new TQSignalMapper(TQT_TQOBJECT(this))),
m_tracks(doc->getComposition().getNbTracks()),
m_offset(4),
m_cellSize(trackCellHeight),
@@ -100,13 +100,13 @@ TrackButtons::TrackButtons(RosegardenGUIDoc* doc,
// Set the spacing between vertical elements
//
- m_layout->setSpacing(m_borderGap);
+ m_tqlayout->setSpacing(m_borderGap);
// Now draw the buttons and labels and meters
//
makeButtons();
- m_layout->addStretch(20);
+ m_tqlayout->addStretch(20);
connect(m_recordSigMapper, TQT_SIGNAL(mapped(int)),
this, TQT_SLOT(slotToggleRecordTrack(int)));
@@ -152,7 +152,7 @@ TrackButtons::makeButtons()
TQFrame *trackHBox = makeButton(track->getId());
if (trackHBox) {
- m_layout->addWidget(trackHBox);
+ m_tqlayout->addWidget(trackHBox);
m_trackHBoxes.push_back(trackHBox);
}
}
@@ -194,7 +194,7 @@ TrackButtons::populateButtons()
// reset track tokens
m_trackLabels[i]->setId(track->getId());
- setButtonMapping(m_trackLabels[i], track->getId());
+ setButtonMapping(TQT_TQOBJECT(m_trackLabels[i]), track->getId());
m_trackLabels[i]->setPosition(i);
}
@@ -297,7 +297,7 @@ TrackButtons::slotUpdateTracks()
if (trackHBox) {
trackHBox->show();
- m_layout->insertWidget(i, trackHBox);
+ m_tqlayout->insertWidget(i, trackHBox);
m_trackHBoxes.push_back(trackHBox);
}
} else
@@ -359,7 +359,7 @@ TrackButtons::slotUpdateTracks()
// RG_DEBUG << "TrackButtons::slotUpdateTracks - set button mapping at pos "
// << i << " to track id " << track->getId() << endl;
- setButtonMapping(m_trackLabels[i], track->getId());
+ setButtonMapping(TQT_TQOBJECT(m_trackLabels[i]), track->getId());
}
}
m_tracks = newNbTracks;
@@ -647,17 +647,17 @@ TrackButtons::populateInstrumentPopup(Instrument *thisTrackInstr, TQPopupMenu* i
KGlobal::dirs()->findResource("appdata", "pixmaps/");
connectedPixmap.load
- (TQString("%1/misc/connected.xpm").arg(pixmapDir));
+ (TQString("%1/misc/connected.xpm").tqarg(pixmapDir));
connectedUsedPixmap.load
- (TQString("%1/misc/connected-used.xpm").arg(pixmapDir));
+ (TQString("%1/misc/connected-used.xpm").tqarg(pixmapDir));
connectedSelectedPixmap.load
- (TQString("%1/misc/connected-selected.xpm").arg(pixmapDir));
+ (TQString("%1/misc/connected-selected.xpm").tqarg(pixmapDir));
unconnectedPixmap.load
- (TQString("%1/misc/unconnected.xpm").arg(pixmapDir));
+ (TQString("%1/misc/unconnected.xpm").tqarg(pixmapDir));
unconnectedUsedPixmap.load
- (TQString("%1/misc/unconnected-used.xpm").arg(pixmapDir));
+ (TQString("%1/misc/unconnected-used.xpm").tqarg(pixmapDir));
unconnectedSelectedPixmap.load
- (TQString("%1/misc/unconnected-selected.xpm").arg(pixmapDir));
+ (TQString("%1/misc/unconnected-selected.xpm").tqarg(pixmapDir));
havePixmaps = true;
}
@@ -706,7 +706,7 @@ TrackButtons::populateInstrumentPopup(Instrument *thisTrackInstr, TQPopupMenu* i
pname = strtoqstr(plugin->getDistinctiveConfigurationText());
}
if (pname != "") {
- pname = TQString("%1: %2").arg(label).arg(pname);
+ pname = TQString("%1: %2").tqarg(label).tqarg(pname);
} else {
pname = label;
}
@@ -1021,7 +1021,7 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
// Create a horizontal box for each track
//
trackHBox = new TQFrame(this);
- TQHBoxLayout *hblayout = new TQHBoxLayout(trackHBox);
+ TQHBoxLayout *hbtqlayout = new TQHBoxLayout(trackHBox);
trackHBox->setMinimumSize(labelWidth, m_cellSize * multiple - m_borderGap);
trackHBox->setFixedHeight(m_cellSize * multiple - m_borderGap);
@@ -1033,7 +1033,7 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
trackHBox->setFrameShadow(Raised);
// Insert a little gap
- hblayout->addSpacing(vuSpacing);
+ hbtqlayout->addSpacing(vuSpacing);
// Create a VU meter
vuMeter = new TrackVUMeter(trackHBox,
@@ -1044,10 +1044,10 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
m_trackMeters.push_back(vuMeter);
- hblayout->addWidget(vuMeter);
+ hbtqlayout->addWidget(vuMeter);
// Create another little gap
- hblayout->addSpacing(vuSpacing);
+ hbtqlayout->addSpacing(vuSpacing);
//
// 'mute' and 'record' leds
@@ -1056,12 +1056,12 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
mute = new KLedButton(Rosegarden::GUIPalette::getColour
(Rosegarden::GUIPalette::MuteTrackLED), trackHBox);
TQToolTip::add(mute, i18n("Mute track"));
- hblayout->addWidget(mute);
+ hbtqlayout->addWidget(mute);
record = new KLedButton(Rosegarden::GUIPalette::getColour
(Rosegarden::GUIPalette::RecordMIDITrackLED), trackHBox);
TQToolTip::add(record, i18n("Record on this track"));
- hblayout->addWidget(record);
+ hbtqlayout->addWidget(record);
record->setLook(KLed::Sunken);
mute->setLook(KLed::Sunken);
@@ -1072,8 +1072,8 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
m_recordSigMapper, TQT_SLOT(map()));
connect(mute, TQT_SIGNAL(stateChanged(bool)),
m_muteSigMapper, TQT_SLOT(map()));
- m_recordSigMapper->setMapping(record, track->getPosition());
- m_muteSigMapper->setMapping(mute, track->getPosition());
+ m_recordSigMapper->setMapping(TQT_TQOBJECT(record), track->getPosition());
+ m_muteSigMapper->setMapping(TQT_TQOBJECT(mute), track->getPosition());
// Store the KLedButton
//
@@ -1084,8 +1084,8 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
// Track label
//
trackLabel = new TrackLabel(trackId, track->getPosition(), trackHBox);
- hblayout->addWidget(trackLabel);
- hblayout->addSpacing(vuSpacing);
+ hbtqlayout->addWidget(trackLabel);
+ hbtqlayout->addSpacing(vuSpacing);
if (track->getLabel() == std::string("")) {
Rosegarden::Instrument *ins =
@@ -1111,7 +1111,7 @@ TQFrame* TrackButtons::makeButton(Rosegarden::TrackId trackId)
m_trackLabels.push_back(trackLabel);
// Connect it
- setButtonMapping(trackLabel, trackId);
+ setButtonMapping(TQT_TQOBJECT(trackLabel), trackId);
connect(trackLabel, TQT_SIGNAL(changeToInstrumentList()),
m_instListSigMapper, TQT_SLOT(map()));