summaryrefslogtreecommitdiffstats
path: root/kword/KWFrameViewManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWFrameViewManager.h')
-rw-r--r--kword/KWFrameViewManager.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/kword/KWFrameViewManager.h b/kword/KWFrameViewManager.h
index 765b8688..43ec918e 100644
--- a/kword/KWFrameViewManager.h
+++ b/kword/KWFrameViewManager.h
@@ -17,10 +17,10 @@
*/
#ifndef kwframeviewmanager_h
#define kwframeviewmanager_h
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
-#include <qvaluevector.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
+#include <tqvaluevector.h>
#include <defs.h>
class KWDocument;
@@ -35,8 +35,8 @@ class KWFrameView;
class KoPoint;
class KoRect;
-class QPointer;
-class QRegion;
+class TQPointer;
+class TQRegion;
/**
* Class that knows about all the (visible) frames in the document and will act as
@@ -48,8 +48,9 @@ class QRegion;
* coordinates in pixels should first be converted in the KoZoomHandler (in KWord
* that's the KWDocument)
*/
-class KWFrameViewManager : public QObject {
+class KWFrameViewManager : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
KWFrameViewManager();
@@ -89,42 +90,42 @@ public:
/**
* Return all currently selected frames.
*/
- QValueList<KWFrameView*> selectedFrames() const;
+ TQValueList<KWFrameView*> selectedFrames() const;
/**
* Returns the first selected frame.
* Is the same as selectedFrames()[0]
*/
KWFrameView* selectedFrame() const;
- // this should be changed to a real iterator when Qt4 is used.
- const QValueList<KWFrameView*> frameViewsIterator() const { return m_frames; }
+ // this should be changed to a real iterator when TQt4 is used.
+ const TQValueList<KWFrameView*> frameViewsIterator() const { return m_frames; }
/**
* Return the MouseMeaning of what a click of the mouse would do at the @p point.
* All the frames that have a presence at the point are considered and depending on
* what kind of frame and where in the frame the mouse is the meaning is calculated.
* @param point the point where the mouse is hovering.
- * @param keyState the bitmask of keys that are pressed. Same as Event::state();
+ * @param keyState the bittqmask of keys that are pressed. Same as Event::state();
*/
MouseMeaning mouseMeaning( const KoPoint &point, int keyState) const;
/**
* Similar to mouseMeaning(), but instead of returning the meaning this will return
* a mouse cursor to represent the action.
* @param point the point where the mouse is hovering.
- * @param keyState the bitmask of keys that are pressed. Same as Event::state();
+ * @param keyState the bittqmask of keys that are pressed. Same as Event::state();
*/
- QCursor mouseCursor( const KoPoint &point, int keyState ) const;
+ TQCursor mouseCursor( const KoPoint &point, int keyState ) const;
/**
* Show a context-sensitive popup menu based on the location of 'point'.
* @param point the point at which the mouse was clicked. The context is based on
* what is present at that location.
- * @param keyState the bitmask of keys that are pressed. Same as Event::state();
- * @param popupPoint the point in the same coordinate system as the parent widget of
+ * @param keyState the bittqmask of keys that are pressed. Same as Event::state();
+ * @param popupPoint the point in the same coordinate system as the tqparent widget of
* where the popup menu should be located.
- * @param view the parent widget for the popup.
+ * @param view the tqparent widget for the popup.
*/
- void showPopup( const KoPoint &point, KWView *view, int keyState, const QPoint &popupPoint) const;
+ void showPopup( const KoPoint &point, KWView *view, int keyState, const TQPoint &popupPoint) const;
// listeners; see the fireEvents method signature for more info.
void addKWFramesListener(KWFramesListener *listener);
@@ -136,7 +137,7 @@ public:
* / or unselecting any frames based on this information.
* @param leftClick true if this select is due to the main button being clicked.
* @param point the point clicked.
- * @param keyState the bitmask of keys that are pressed. Same as Event::state();
+ * @param keyState the bittqmask of keys that are pressed. Same as Event::state();
*/
void selectFrames(const KoPoint &point, int keyState, bool leftClick);
@@ -169,9 +170,9 @@ signals:
/// emitted after a frameset that had at least one selected frame was renamed.
void sigFrameSetRenamed();
/// emitted after frames were resized
- void sigFrameResized(const QValueList<KWFrame*>&);
+ void sigFrameResized(const TQValueList<KWFrame*>&);
/// emitted after frames were moved
- void sigFrameMoved(const QValueList<KWFrame*>&);
+ void sigFrameMoved(const TQValueList<KWFrame*>&);
protected slots:
/**
@@ -212,7 +213,7 @@ private:
* @param point the location the frame should occupy
* @param borderOnly if true, only return frames that are hit in the border by point.
*/
- QValueVector<KWFrameView*> framesAt(const KoPoint &point, bool borderOnly = false) const;
+ TQValueVector<KWFrameView*> framesAt(const KoPoint &point, bool borderOnly = false) const;
/**
* This is a method used to sort a list using the STL sorting methods.
* @param f1 the first object
@@ -221,9 +222,9 @@ private:
static bool compareFrameViewZOrder(KWFrameView *f1, KWFrameView *f2);
private:
- QValueList<KWFrameView*> m_frames; // TODO QHash<KWFrame*,KWFrameView*>
- QValueList<KWFramesListener*> m_framesListener;
- QValueList<FrameEvent*> m_frameEvents;
+ TQValueList<KWFrameView*> m_frames; // TODO TQHash<KWFrame*,KWFrameView*>
+ TQValueList<KWFramesListener*> m_framesListener;
+ TQValueList<FrameEvent*> m_frameEvents;
bool m_queueRequested, m_blockEvents;
};