summaryrefslogtreecommitdiffstats
path: root/src/gui/general/LinedStaff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/general/LinedStaff.h')
-rw-r--r--src/gui/general/LinedStaff.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/gui/general/LinedStaff.h b/src/gui/general/LinedStaff.h
index 359becf..e7dab8f 100644
--- a/src/gui/general/LinedStaff.h
+++ b/src/gui/general/LinedStaff.h
@@ -87,7 +87,7 @@ public:
protected:
/**
* Create a new LinedStaff for the given Segment, with a
- * linear layout.
+ * linear tqlayout.
*
* \a id is an arbitrary id for the staff in its view,
* not used within the LinedStaff implementation but
@@ -104,7 +104,7 @@ protected:
/**
* Create a new LinedStaff for the given Segment, with a
- * page layout.
+ * page tqlayout.
*
* \a id is an arbitrary id for the staff in its view,
* not used within the LinedStaff implementation but
@@ -117,7 +117,7 @@ protected:
* staff line should be
*
* \a pageWidth is the width of a page, to determine
- * when to break lines for page layout
+ * when to break lines for page tqlayout
*
* \a rowsPerPage is the number of rows to a page, or zero
* for a single continuous page
@@ -131,7 +131,7 @@ protected:
/**
* Create a new LinedStaff for the given Segment, with
- * either page or linear layout.
+ * either page or linear tqlayout.
*/
LinedStaff(TQCanvas *, Segment *, SnapGrid *,
int id, int resolution, int lineThickness, PageMode pageMode,
@@ -304,14 +304,14 @@ public:
virtual int getTitleHeight() const;
/**
- * Returns the width of the entire staff after layout. Call
+ * Returns the width of the entire staff after tqlayout. Call
* this only after you've done the full sizeStaff/positionElements
* procedure.
*/
virtual double getTotalWidth() const;
/**
- * Returns the height of the entire staff after layout. Call
+ * Returns the height of the entire staff after tqlayout. Call
* this only after you've done the full sizeStaff/positionElements
* procedure. If there are multiple rows, this will be the
* height of all rows, including any space between rows that
@@ -383,26 +383,26 @@ public:
virtual void setCurrent(bool current);
/**
- * Move the playback pointer to the layout-X coordinate
+ * Move the playback pointer to the tqlayout-X coordinate
* corresponding to the given time, and show it.
*/
virtual void setPointerPosition
(HorizontalLayoutEngine&, timeT);
/**
- * Move the playback pointer to the layout-X coordinate
+ * Move the playback pointer to the tqlayout-X coordinate
* corresponding to the given canvas coordinates, and show it.
*/
virtual void setPointerPosition(double x, int y);
/**
- * Move the playback pointer to the given layout-X
+ * Move the playback pointer to the given tqlayout-X
* coordinate, and show it.
*/
virtual void setPointerPosition(double x);
/**
- * Returns the layout-X coordinate corresponding to the current
+ * Returns the tqlayout-X coordinate corresponding to the current
* position of the playback pointer.
*/
virtual double getLayoutXOfPointer() const;
@@ -419,19 +419,19 @@ public:
virtual void hidePointer();
/**
- * Move the insertion cursor to the layout-X coordinate
+ * Move the insertion cursor to the tqlayout-X coordinate
* corresponding to the given time, and show it.
*/
virtual void setInsertCursorPosition(HorizontalLayoutEngine&, timeT);
/**
- * Move the insertion cursor to the layout-X coordinate
+ * Move the insertion cursor to the tqlayout-X coordinate
* corresponding to the given canvas coordinates, and show it.
*/
virtual void setInsertCursorPosition(double x, int y);
/**
- * Returns the layout-X coordinate corresponding to the current
+ * Returns the tqlayout-X coordinate corresponding to the current
* position of the insertion cursor. Returns -1 if this staff
* is not current or there is some other problem.
*/
@@ -454,8 +454,8 @@ public:
virtual void hideInsertCursor();
/**
- * Query the given horizontal layout object (which is assumed to
- * have just completed its layout procedure) to determine the
+ * Query the given horizontal tqlayout object (which is assumed to
+ * have just completed its tqlayout procedure) to determine the
* required extents of the staff and the positions of the bars,
* and create the bars and staff lines accordingly. It may be
* called either before or after renderElements and/or
@@ -464,7 +464,7 @@ public:
* No bars or staff lines will appear unless this method has
* been called.
*/
- virtual void sizeStaff(HorizontalLayoutEngine& layout);
+ virtual void sizeStaff(HorizontalLayoutEngine& tqlayout);
/**
* Generate or re-generate sprites for all the elements between
@@ -486,9 +486,9 @@ public:
/**
* Assign suitable coordinates to the elements on the staff
- * between the start and end times, based entirely on the layout
+ * between the start and end times, based entirely on the tqlayout
* X and Y coordinates they were given by the horizontal and
- * vertical layout processes.
+ * vertical tqlayout processes.
*
* The implementation is free to render any elements it
* chooses in this method as well.
@@ -519,21 +519,21 @@ public:
* Also return the clef and key in force at these coordinates.
*
* The default implementation should suit for subclasses that only
- * show a single element per layout X coordinate.
+ * show a single element per tqlayout X coordinate.
*/
virtual ViewElementList::iterator getClosestElementToCanvasCoords
(double x, int y,
Event *&clef, Event *&key,
bool notesAndRestsOnly = false, int proximityThreshold = 10) {
- LinedStaffCoords layoutCoords = getLayoutCoordsForCanvasCoords(x, y);
+ LinedStaffCoords tqlayoutCoords = getLayoutCoordsForCanvasCoords(x, y);
return getClosestElementToLayoutX
- (layoutCoords.first, clef, key,
+ (tqlayoutCoords.first, clef, key,
notesAndRestsOnly, proximityThreshold);
}
/**
* Return an iterator pointing to the nearest view element to the
- * given layout x-coordinate.
+ * given tqlayout x-coordinate.
*
* If notesAndRestsOnly is true, do not return any view element
* other than a note or rest.
@@ -564,12 +564,12 @@ public:
*
*
* The default implementation should suit for subclasses that only
- * show a single element per layout X coordinate.
+ * show a single element per tqlayout X coordinate.
*/
virtual ViewElementList::iterator getElementUnderCanvasCoords
(double x, int y, Event *&clef, Event *&key) {
- LinedStaffCoords layoutCoords = getLayoutCoordsForCanvasCoords(x, y);
- return getElementUnderLayoutX(layoutCoords.first, clef, key);
+ LinedStaffCoords tqlayoutCoords = getLayoutCoordsForCanvasCoords(x, y);
+ return getElementUnderLayoutX(tqlayoutCoords.first, clef, key);
}
/**
@@ -627,13 +627,13 @@ public:
protected:
// Methods that the subclass may (indeed, should) use to convert
- // between the layout coordinates of elements and their canvas
+ // between the tqlayout coordinates of elements and their canvas
// coordinates. These are deliberately not virtual.
- // Note that even linear-layout staffs have multiple rows; their
+ // Note that even linear-tqlayout staffs have multiple rows; their
// rows all have the same y coordinate but increasing x
// coordinates, instead of the other way around. (The only reason
- // for this is that it seems to be more efficient from the QCanvas
+ // for this is that it seems to be more efficient from the TQCanvas
// perspective to create and manipulate many relatively short
// canvas lines rather than a smaller number of very long ones.)
@@ -682,7 +682,7 @@ protected:
// signatures, override the deleteTimeSignatures and
// insertTimeSignature methods. For repeated clefs and keys at
// the start of each row, override deleteRepeatedClefsAndKeys
- // and insertRepeatedClefAndKey, but note that your layout class
+ // and insertRepeatedClefAndKey, but note that your tqlayout class
// will need to allot the space for them separately.
virtual void resizeStaffLines();
@@ -690,18 +690,18 @@ protected:
virtual void resizeStaffLineRow(int row, double offset, double length);
virtual void deleteBars();
- virtual void insertBar(double layoutX, double width, bool isCorrect,
+ virtual void insertBar(double tqlayoutX, double width, bool isCorrect,
const TimeSignature &,
int barNo, bool showBarNo);
// The default implementations of the following two are empty.
virtual void deleteTimeSignatures();
- virtual void insertTimeSignature(double layoutX,
+ virtual void insertTimeSignature(double tqlayoutX,
const TimeSignature &);
// The default implementations of the following two are empty.
virtual void deleteRepeatedClefsAndKeys();
- virtual void insertRepeatedClefAndKey(double layoutX, int barNo);
+ virtual void insertRepeatedClefAndKey(double tqlayoutX, int barNo);
void initCursors();
@@ -737,7 +737,7 @@ protected:
ItemMatrix m_staffLines;
ItemList m_staffConnectingLines;
- typedef std::pair<double, TQCanvasItem *> LineRec; // layout-x, line
+ typedef std::pair<double, TQCanvasItem *> LineRec; // tqlayout-x, line
typedef FastVector<LineRec> LineRecList;
typedef FastVector<BarLine *> BarLineList;//!!! should be multiset I reckon
static bool compareBars(const BarLine *, const BarLine *);