diff options
Diffstat (limited to 'src/gui/general/RosegardenScrollView.h')
-rw-r--r-- | src/gui/general/RosegardenScrollView.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/gui/general/RosegardenScrollView.h b/src/gui/general/RosegardenScrollView.h index 6a0dab7..a0aafbb 100644 --- a/src/gui/general/RosegardenScrollView.h +++ b/src/gui/general/RosegardenScrollView.h @@ -26,16 +26,16 @@ #ifndef _RG_ROSEGARDENSCROLLVIEW_H_ #define _RG_ROSEGARDENSCROLLVIEW_H_ -#include <qpoint.h> -#include <qscrollview.h> -#include <qdatetime.h> -#include <qtimer.h> +#include <tqpoint.h> +#include <tqscrollview.h> +#include <tqdatetime.h> +#include <tqtimer.h> -class QWidget; -class QWheelEvent; -class QScrollBar; -class QResizeEvent; +class TQWidget; +class TQWheelEvent; +class TQScrollBar; +class TQResizeEvent; namespace Rosegarden @@ -44,7 +44,7 @@ namespace Rosegarden /** - * A QScrollView with more elaborate auto-scrolling capabilities + * A TQScrollView with more elaborate auto-scrolling capabilities * and the ability to have a "fixed" (non-scrolling) widget at its bottom, * just above the bottom scrollbar. */ @@ -52,7 +52,7 @@ class RosegardenScrollView : public QScrollView { Q_OBJECT public: - RosegardenScrollView(QWidget* parent=0, const char* name=0, WFlags f=0); + RosegardenScrollView(TQWidget* parent=0, const char* name=0, WFlags f=0); /** * EditTool::handleMouseMove() returns a OR-ed combination of these @@ -74,12 +74,12 @@ public: * Sets the widget which will be between the scrollable part of the view * and the horizontal scrollbar */ - void setBottomFixedWidget(QWidget*); + void setBottomFixedWidget(TQWidget*); void updateBottomWidgetGeometry(); /// Map a point with the inverse world matrix -// QPoint inverseMapPoint(const QPoint& p) { return inverseWorldMatrix().map(p); } +// TQPoint inverseMapPoint(const TQPoint& p) { return inverseWorldMatrix().map(p); } void setSmoothScroll(bool s) { m_smoothScroll = s; } @@ -89,7 +89,7 @@ public: int getDeltaScroll() { return m_minDeltaScroll; } - virtual void wheelEvent(QWheelEvent *); + virtual void wheelEvent(TQWheelEvent *); public slots: /** @@ -122,7 +122,7 @@ public slots: /** * Set the x and y scrollbars to a particular position */ - void slotSetScrollPos(const QPoint &); + void slotSetScrollPos(const TQPoint &); void startAutoScroll(); void startAutoScroll(int directionConstraint); @@ -139,27 +139,27 @@ signals: protected: - virtual void resizeEvent(QResizeEvent*); - virtual void setHBarGeometry(QScrollBar &hbar, int x, int y, int w, int h); + virtual void resizeEvent(TQResizeEvent*); + virtual void setHBarGeometry(TQScrollBar &hbar, int x, int y, int w, int h); - virtual QScrollBar* getMainHorizontalScrollBar() { return horizontalScrollBar(); } + virtual TQScrollBar* getMainHorizontalScrollBar() { return horizontalScrollBar(); } //--------------- Data members --------------------------------- enum ScrollDirection { None, Top, Bottom, Left, Right }; - QWidget* m_bottomWidget; + TQWidget* m_bottomWidget; int m_currentBottomWidgetHeight; bool m_smoothScroll; int m_smoothScrollTimeInterval; float m_minDeltaScroll; - QTime m_scrollTimer; - QTime m_scrollAccelerationTimer; + TQTime m_scrollTimer; + TQTime m_scrollAccelerationTimer; - QTimer m_autoScrollTimer; + TQTimer m_autoScrollTimer; int m_autoScrollTime; int m_autoScrollAccel; - QPoint m_previousP; + TQPoint m_previousP; int m_autoScrollXMargin; int m_autoScrollYMargin; ScrollDirection m_currentScrollDirection; |