summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas/CompositionView.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/segment/segmentcanvas/CompositionView.h')
-rw-r--r--src/gui/editors/segment/segmentcanvas/CompositionView.h156
1 files changed, 78 insertions, 78 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/CompositionView.h b/src/gui/editors/segment/segmentcanvas/CompositionView.h
index ff0d440..c31cf96 100644
--- a/src/gui/editors/segment/segmentcanvas/CompositionView.h
+++ b/src/gui/editors/segment/segmentcanvas/CompositionView.h
@@ -30,23 +30,23 @@
#include "CompositionModel.h"
#include "CompositionItem.h"
#include "gui/general/RosegardenScrollView.h"
-#include <qbrush.h>
-#include <qcolor.h>
-#include <qpen.h>
-#include <qpixmap.h>
-#include <qpoint.h>
-#include <qrect.h>
-#include <qstring.h>
+#include <tqbrush.h>
+#include <tqcolor.h>
+#include <tqpen.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
+#include <tqrect.h>
+#include <tqstring.h>
#include "base/Event.h"
-class QWidget;
-class QWheelEvent;
-class QResizeEvent;
-class QPaintEvent;
-class QPainter;
-class QMouseEvent;
-class QEvent;
+class TQWidget;
+class TQWheelEvent;
+class TQResizeEvent;
+class TQPaintEvent;
+class TQPainter;
+class TQMouseEvent;
+class TQEvent;
namespace Rosegarden
@@ -66,31 +66,31 @@ class CompositionView : public RosegardenScrollView
Q_OBJECT
public:
CompositionView(RosegardenGUIDoc*, CompositionModel*,
- QWidget * parent=0, const char* name=0, WFlags f=0);
+ TQWidget * parent=0, const char* name=0, WFlags f=0);
void setPointerPos(int pos);
int getPointerPos() { return m_pointerPos; }
void setGuidesPos(int x, int y);
- void setGuidesPos(const QPoint& p);
+ void setGuidesPos(const TQPoint& p);
void setDrawGuides(bool d);
- QRect getSelectionRect() const { return m_selectionRect; }
- void setSelectionRectPos(const QPoint& pos);
+ TQRect getSelectionRect() const { return m_selectionRect; }
+ void setSelectionRectPos(const TQPoint& pos);
void setSelectionRectSize(int w, int h);
void setDrawSelectionRect(bool d);
SnapGrid& grid() { return m_model->grid(); }
- CompositionItem getFirstItemAt(QPoint pos);
+ CompositionItem getFirstItemAt(TQPoint pos);
SegmentToolBox* getToolBox() { return m_toolBox; }
CompositionModel* getModel() { return m_model; }
- void setTmpRect(const QRect& r);
- void setTmpRect(const QRect& r, const QColor &c);
- const QRect& getTmpRect() const { return m_tmpRect; }
+ void setTmpRect(const TQRect& r);
+ void setTmpRect(const TQRect& r, const TQColor &c);
+ const TQRect& getTmpRect() const { return m_tmpRect; }
/**
* Set the snap resolution of the grid to something suitable.
@@ -149,12 +149,12 @@ public:
* explicitly.
*
*/
- void setTextFloat(int x, int y, const QString &text);
+ void setTextFloat(int x, int y, const TQString &text);
void hideTextFloat() { m_drawTextFloat = false; }
void setShowSegmentLabels(bool b) { m_showSegmentLabels = b; }
- void setBackgroundPixmap(const QPixmap &m);
+ void setBackgroundPixmap(const TQPixmap &m);
void endAudioPreviewGeneration();
@@ -164,7 +164,7 @@ public slots:
void slotContentsMoving(int x, int y);
/// Set the current segment editing tool
- void slotSetTool(const QString& toolName);
+ void slotSetTool(const TQString& toolName);
// This method only operates if we're of the "Selector"
// tool type - it's called from the View to enable it
@@ -188,13 +188,13 @@ public slots:
void slotShowSplitLine(int x, int y);
void slotHideSplitLine();
- void slotExternalWheelEvent(QWheelEvent*);
+ void slotExternalWheelEvent(TQWheelEvent*);
// TextFloat timer
void slotTextFloatTimeout();
void slotUpdateSegmentsDrawBuffer();
- void slotUpdateSegmentsDrawBuffer(const QRect&);
+ void slotUpdateSegmentsDrawBuffer(const TQRect&);
void slotRefreshColourCache();
@@ -217,73 +217,73 @@ signals:
void setPointerPosition(timeT);
- void showContextHelp(const QString &);
+ void showContextHelp(const TQString &);
protected:
- virtual bool event(QEvent *);
+ virtual bool event(TQEvent *);
- virtual void contentsMousePressEvent(QMouseEvent*);
- virtual void contentsMouseReleaseEvent(QMouseEvent*);
- virtual void contentsMouseDoubleClickEvent(QMouseEvent*);
- virtual void contentsMouseMoveEvent(QMouseEvent*);
+ virtual void contentsMousePressEvent(TQMouseEvent*);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent*);
+ virtual void contentsMouseDoubleClickEvent(TQMouseEvent*);
+ virtual void contentsMouseMoveEvent(TQMouseEvent*);
- virtual void viewportPaintEvent(QPaintEvent*);
- virtual void resizeEvent(QResizeEvent*);
+ virtual void viewportPaintEvent(TQPaintEvent*);
+ virtual void resizeEvent(TQResizeEvent*);
- virtual void enterEvent(QEvent *);
- virtual void leaveEvent(QEvent *);
+ virtual void enterEvent(TQEvent *);
+ virtual void leaveEvent(TQEvent *);
- virtual void viewportPaintRect(QRect);
+ virtual void viewportPaintRect(TQRect);
/**
* if something changed, returns true and sets rect accordingly
* sets 'scroll' if some scrolling occurred
*/
- bool checkScrollAndRefreshDrawBuffer(QRect &, bool& scroll);
- void refreshSegmentsDrawBuffer(const QRect&);
- void refreshArtifactsDrawBuffer(const QRect&);
- void drawArea(QPainter * p, const QRect& rect);
- void drawAreaAudioPreviews(QPainter * p, const QRect& rect);
- void drawAreaArtifacts(QPainter * p, const QRect& rect);
- void drawRect(const QRect& rect, QPainter * p, const QRect& clipRect,
+ bool checkScrollAndRefreshDrawBuffer(TQRect &, bool& scroll);
+ void refreshSegmentsDrawBuffer(const TQRect&);
+ void refreshArtifactsDrawBuffer(const TQRect&);
+ void drawArea(TQPainter * p, const TQRect& rect);
+ void drawAreaAudioPreviews(TQPainter * p, const TQRect& rect);
+ void drawAreaArtifacts(TQPainter * p, const TQRect& rect);
+ void drawRect(const TQRect& rect, TQPainter * p, const TQRect& clipRect,
bool isSelected = false, int intersectLvl = 0, bool fill = true);
- void drawCompRect(const CompositionRect& r, QPainter *p, const QRect& clipRect,
+ void drawCompRect(const CompositionRect& r, TQPainter *p, const TQRect& clipRect,
int intersectLvl = 0, bool fill = true);
- void drawCompRectLabel(const CompositionRect& r, QPainter *p, const QRect& clipRect);
- void drawIntersections(const CompositionModel::rectcontainer&, QPainter * p, const QRect& clipRect);
+ void drawCompRectLabel(const CompositionRect& r, TQPainter *p, const TQRect& clipRect);
+ void drawIntersections(const CompositionModel::rectcontainer&, TQPainter * p, const TQRect& clipRect);
- void drawPointer(QPainter * p, const QRect& clipRect);
- void drawGuides(QPainter * p, const QRect& clipRect);
- void drawTextFloat(QPainter * p, const QRect& clipRect);
+ void drawPointer(TQPainter * p, const TQRect& clipRect);
+ void drawGuides(TQPainter * p, const TQRect& clipRect);
+ void drawTextFloat(TQPainter * p, const TQRect& clipRect);
void initStepSize();
void releaseCurrentItem();
- static QColor mixBrushes(QBrush a, QBrush b);
+ static TQColor mixBrushes(TQBrush a, TQBrush b);
SegmentSelector* getSegmentSelectorTool();
protected slots:
void slotSegmentsDrawBufferNeedsRefresh() {
m_segmentsDrawBufferRefresh =
- QRect(contentsX(), contentsY(), visibleWidth(), visibleHeight());
+ TQRect(contentsX(), contentsY(), visibleWidth(), visibleHeight());
}
- void slotSegmentsDrawBufferNeedsRefresh(QRect r) {
+ void slotSegmentsDrawBufferNeedsRefresh(TQRect r) {
m_segmentsDrawBufferRefresh |=
- (QRect(contentsX(), contentsY(), visibleWidth(), visibleHeight())
+ (TQRect(contentsX(), contentsY(), visibleWidth(), visibleHeight())
& r);
}
void slotArtifactsDrawBufferNeedsRefresh() {
m_artifactsDrawBufferRefresh =
- QRect(contentsX(), contentsY(), visibleWidth(), visibleHeight());
+ TQRect(contentsX(), contentsY(), visibleWidth(), visibleHeight());
updateContents();
}
- void slotArtifactsDrawBufferNeedsRefresh(QRect r) {
+ void slotArtifactsDrawBufferNeedsRefresh(TQRect r) {
m_artifactsDrawBufferRefresh |=
- (QRect(contentsX(), contentsY(), visibleWidth(), visibleHeight())
+ (TQRect(contentsX(), contentsY(), visibleWidth(), visibleHeight())
& r);
updateContents(r);
}
@@ -293,12 +293,12 @@ protected slots:
slotArtifactsDrawBufferNeedsRefresh();
}
- void slotAllDrawBuffersNeedRefresh(QRect r) {
+ void slotAllDrawBuffersNeedRefresh(TQRect r) {
slotSegmentsDrawBufferNeedsRefresh(r);
slotArtifactsDrawBufferNeedsRefresh(r);
}
- void slotToolHelpChanged(const QString &);
+ void slotToolHelpChanged(const TQString &);
protected:
@@ -318,42 +318,42 @@ protected:
int m_minWidth;
int m_stepSize;
- QColor m_rectFill;
- QColor m_selectedRectFill;
+ TQColor m_rectFill;
+ TQColor m_selectedRectFill;
int m_pointerPos;
- QColor m_pointerColor;
+ TQColor m_pointerColor;
int m_pointerWidth;
- QPen m_pointerPen;
+ TQPen m_pointerPen;
- QRect m_tmpRect;
- QColor m_tmpRectFill;
- QPoint m_splitLinePos;
+ TQRect m_tmpRect;
+ TQColor m_tmpRectFill;
+ TQPoint m_splitLinePos;
- QColor m_trackDividerColor;
+ TQColor m_trackDividerColor;
bool m_drawGuides;
- QColor m_guideColor;
+ TQColor m_guideColor;
int m_topGuidePos;
int m_foreGuidePos;
bool m_drawSelectionRect;
- QRect m_selectionRect;
+ TQRect m_selectionRect;
bool m_drawTextFloat;
- QString m_textFloatText;
- QPoint m_textFloatPos;
+ TQString m_textFloatText;
+ TQPoint m_textFloatPos;
- QPixmap m_segmentsDrawBuffer;
- QPixmap m_artifactsDrawBuffer;
- QRect m_segmentsDrawBufferRefresh;
- QRect m_artifactsDrawBufferRefresh;
+ TQPixmap m_segmentsDrawBuffer;
+ TQPixmap m_artifactsDrawBuffer;
+ TQRect m_segmentsDrawBufferRefresh;
+ TQRect m_artifactsDrawBufferRefresh;
int m_lastBufferRefreshX;
int m_lastBufferRefreshY;
int m_lastPointerRefreshX;
- QPixmap m_backgroundPixmap;
+ TQPixmap m_backgroundPixmap;
- QString m_toolContextHelp;
+ TQString m_toolContextHelp;
bool m_contextHelpShown;
mutable CompositionModel::AudioPreviewDrawData m_audioPreviewRects;