summaryrefslogtreecommitdiffstats
path: root/src/gui/rulers/ChordNameRuler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rulers/ChordNameRuler.cpp')
-rw-r--r--src/gui/rulers/ChordNameRuler.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/gui/rulers/ChordNameRuler.cpp b/src/gui/rulers/ChordNameRuler.cpp
index 001d5fd..121d911 100644
--- a/src/gui/rulers/ChordNameRuler.cpp
+++ b/src/gui/rulers/ChordNameRuler.cpp
@@ -62,9 +62,9 @@ ChordNameRuler::ChordNameRuler(RulerScale *rulerScale,
RosegardenGUIDoc *doc,
double xorigin,
int height,
- TQWidget *parent,
+ TQWidget *tqparent,
const char *name) :
- TQWidget(parent, name),
+ TQWidget(tqparent, name),
m_xorigin(xorigin),
m_height(height),
m_currentXOffset(0),
@@ -103,9 +103,9 @@ ChordNameRuler::ChordNameRuler(RulerScale *rulerScale,
std::vector<Segment *> &segments,
double xorigin,
int height,
- TQWidget *parent,
+ TQWidget *tqparent,
const char *name) :
- TQWidget(parent, name),
+ TQWidget(tqparent, name),
m_xorigin(xorigin),
m_height(height),
m_currentXOffset(0),
@@ -182,15 +182,15 @@ ChordNameRuler::slotScrollHoriz(int x)
if (dx > 0) { // moving right, so the existing stuff moves left
bitBlt(this, 0, 0, this, dx, 0, w - dx, h);
- repaint(w - dx, 0, dx, h);
+ tqrepaint(w - dx, 0, dx, h);
} else { // moving left, so the existing stuff moves right
bitBlt(this, -dx, 0, this, 0, 0, w + dx, h);
- repaint(0, 0, -dx, h);
+ tqrepaint(0, 0, -dx, h);
}
}
-QSize
-ChordNameRuler::sizeHint() const
+TQSize
+ChordNameRuler::tqsizeHint() const
{
double width =
m_rulerScale->getBarPosition(m_rulerScale->getLastVisibleBar()) +
@@ -203,8 +203,8 @@ ChordNameRuler::sizeHint() const
return res;
}
-QSize
-ChordNameRuler::minimumSizeHint() const
+TQSize
+ChordNameRuler::tqminimumSizeHint() const
{
double firstBarWidth = m_rulerScale->getBarWidth(0);
TQSize res = TQSize(int(firstBarWidth), m_height);
@@ -231,8 +231,8 @@ ChordNameRuler::recalculate(timeT from, timeT to)
} else if (m_regetSegmentsOnChange) {
- RefreshStatus &rs =
- m_composition->getRefreshStatus(m_compositionRefreshStatusId);
+ RefreshtqStatus &rs =
+ m_composition->getRefreshtqStatus(m_compositionRefreshStatusId);
if (rs.needsRefresh()) {
rs.setNeedsRefresh(false);
@@ -304,15 +304,15 @@ ChordNameRuler::recalculate(timeT from, timeT to)
if (m_segments.empty())
return ;
- SegmentRefreshStatus overallStatus;
- overallStatus.setNeedsRefresh(false);
+ SegmentRefreshtqStatus overalltqStatus;
+ overalltqStatus.setNeedsRefresh(false);
for (SegmentRefreshMap::iterator i = m_segments.begin();
i != m_segments.end(); ++i) {
- SegmentRefreshStatus &status =
- i->first->getRefreshStatus(i->second);
+ SegmentRefreshtqStatus &status =
+ i->first->getRefreshtqStatus(i->second);
if (status.needsRefresh()) {
- overallStatus.push(status.from(), status.to());
+ overalltqStatus.push(status.from(), status.to());
}
}
@@ -326,17 +326,17 @@ ChordNameRuler::recalculate(timeT from, timeT to)
if (from == to) {
NOTATION_DEBUG << "ChordNameRuler::recalculate: from==to, recalculating all" << endl;
level = RecalcWhole;
- } else if (overallStatus.from() == overallStatus.to()) {
- NOTATION_DEBUG << "ChordNameRuler::recalculate: overallStatus.from==overallStatus.to, ignoring" << endl;
+ } else if (overalltqStatus.from() == overalltqStatus.to()) {
+ NOTATION_DEBUG << "ChordNameRuler::recalculate: overalltqStatus.from==overalltqStatus.to, ignoring" << endl;
level = RecalcNone;
- } else if (overallStatus.from() >= from && overallStatus.to() <= to) {
- NOTATION_DEBUG << "ChordNameRuler::recalculate: change is " << overallStatus.from() << "->" << overallStatus.to() << ", I show " << from << "->" << to << ", recalculating visible area" << endl;
+ } else if (overalltqStatus.from() >= from && overalltqStatus.to() <= to) {
+ NOTATION_DEBUG << "ChordNameRuler::recalculate: change is " << overalltqStatus.from() << "->" << overalltqStatus.to() << ", I show " << from << "->" << to << ", recalculating visible area" << endl;
level = RecalcVisible;
- } else if (overallStatus.from() >= to || overallStatus.to() <= from) {
- NOTATION_DEBUG << "ChordNameRuler::recalculate: change is " << overallStatus.from() << "->" << overallStatus.to() << ", I show " << from << "->" << to << ", ignoring" << endl;
+ } else if (overalltqStatus.from() >= to || overalltqStatus.to() <= from) {
+ NOTATION_DEBUG << "ChordNameRuler::recalculate: change is " << overalltqStatus.from() << "->" << overalltqStatus.to() << ", I show " << from << "->" << to << ", ignoring" << endl;
level = RecalcNone;
} else {
- NOTATION_DEBUG << "ChordNameRuler::recalculate: change is " << overallStatus.from() << "->" << overallStatus.to() << ", I show " << from << "->" << to << ", recalculating whole" << endl;
+ NOTATION_DEBUG << "ChordNameRuler::recalculate: change is " << overalltqStatus.from() << "->" << overalltqStatus.to() << ", I show " << from << "->" << to << ", recalculating whole" << endl;
level = RecalcWhole;
}
}
@@ -346,7 +346,7 @@ ChordNameRuler::recalculate(timeT from, timeT to)
for (SegmentRefreshMap::iterator i = m_segments.begin();
i != m_segments.end(); ++i) {
- i->first->getRefreshStatus(i->second).setNeedsRefresh(false);
+ i->first->getRefreshtqStatus(i->second).setNeedsRefresh(false);
}
if (!m_currentSegment) { //!!! arbitrary, must do better