summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas/CompositionModel.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/segment/segmentcanvas/CompositionModel.h
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/editors/segment/segmentcanvas/CompositionModel.h')
-rw-r--r--src/gui/editors/segment/segmentcanvas/CompositionModel.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/CompositionModel.h b/src/gui/editors/segment/segmentcanvas/CompositionModel.h
index beafc2e..63412c0 100644
--- a/src/gui/editors/segment/segmentcanvas/CompositionModel.h
+++ b/src/gui/editors/segment/segmentcanvas/CompositionModel.h
@@ -29,11 +29,11 @@
#include "base/Composition.h"
#include "base/Segment.h"
#include <set>
-#include <qcolor.h>
-#include <qobject.h>
-#include <qimage.h>
-#include <qpoint.h>
-#include <qrect.h>
+#include <tqcolor.h>
+#include <tqobject.h>
+#include <tqimage.h>
+#include <tqpoint.h>
+#include <tqrect.h>
#include <utility>
#include <vector>
#include "base/Event.h"
@@ -50,10 +50,10 @@ namespace Rosegarden
{
class SnapGrid;
-typedef std::vector<QImage> PixmapArray;
+typedef std::vector<TQImage> PixmapArray;
-class CompositionModel : public QObject, public CompositionObserver, public SegmentObserver
+class CompositionModel : public TQObject, public CompositionObserver, public SegmentObserver
{
Q_OBJECT
public:
@@ -62,17 +62,17 @@ public:
bool operator()(const CompositionItem &c1, const CompositionItem &c2) const;
};
- typedef std::vector<QRect> rectlist;
+ typedef std::vector<TQRect> rectlist;
typedef std::vector<int> heightlist;
typedef std::vector<CompositionRect> rectcontainer;
typedef std::set<CompositionItem, CompositionItemCompare> itemcontainer;
struct AudioPreviewDrawDataItem {
- AudioPreviewDrawDataItem(PixmapArray p, QPoint bp, QRect r) :
+ AudioPreviewDrawDataItem(PixmapArray p, TQPoint bp, TQRect r) :
pixmap(p), basePoint(bp), rect(r), resizeOffset(0) {};
PixmapArray pixmap;
- QPoint basePoint;
- QRect rect;
+ TQPoint basePoint;
+ TQRect rect;
// when showing a segment that is being resized from the
// beginning, this contains the offset between the current
@@ -84,8 +84,8 @@ public:
struct RectRange {
std::pair<rectlist::iterator, rectlist::iterator> range;
- QPoint basePoint;
- QColor color;
+ TQPoint basePoint;
+ TQColor color;
};
typedef std::vector<RectRange> RectRanges;
@@ -104,14 +104,14 @@ public:
const std::vector<float> &getValues() const { return m_values; }
void setValues(const std::vector<float>&v) { m_values = v; }
- QRect getSegmentRect() { return m_segmentRect; }
- void setSegmentRect(const QRect& r) { m_segmentRect = r; }
+ TQRect getSegmentRect() { return m_segmentRect; }
+ void setSegmentRect(const TQRect& r) { m_segmentRect = r; }
protected:
std::vector<float> m_values;
bool m_showMinima;
unsigned int m_channels;
- QRect m_segmentRect;
+ TQRect m_segmentRect;
private:
// no copy ctor
@@ -122,13 +122,13 @@ public:
virtual ~CompositionModel() {};
virtual unsigned int getNbRows() = 0;
- virtual const rectcontainer& getRectanglesIn(const QRect& rect,
+ virtual const rectcontainer& getRectanglesIn(const TQRect& rect,
RectRanges* notationRects, AudioPreviewDrawData* audioRects) = 0;
- virtual heightlist getTrackDividersIn(const QRect& rect) = 0;
+ virtual heightlist getTrackDividersIn(const TQRect& rect) = 0;
- virtual itemcontainer getItemsAt (const QPoint&) = 0;
- virtual timeT getRepeatTimeAt (const QPoint&, const CompositionItem&) = 0;
+ virtual itemcontainer getItemsAt (const TQPoint&) = 0;
+ virtual timeT getRepeatTimeAt (const TQPoint&, const CompositionItem&) = 0;
virtual SnapGrid& grid() = 0;
@@ -140,9 +140,9 @@ public:
virtual bool haveSelection() const = 0;
virtual bool haveMultipleSelection() const = 0;
virtual void signalSelection() = 0;
- virtual void setSelectionRect(const QRect&) = 0;
+ virtual void setSelectionRect(const TQRect&) = 0;
virtual void finalizeSelectionRect() = 0;
- virtual QRect getSelectionContentsRect() = 0;
+ virtual TQRect getSelectionContentsRect() = 0;
virtual void signalContentChange() = 0;
virtual void addRecordingItem(const CompositionItem&) = 0;
@@ -163,7 +163,7 @@ public:
signals:
void needContentUpdate();
- void needContentUpdate(const QRect&);
+ void needContentUpdate(const TQRect&);
void needArtifactsUpdate();
protected: