summaryrefslogtreecommitdiffstats
path: root/kword/KWPartFrameSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWPartFrameSet.cpp')
-rw-r--r--kword/KWPartFrameSet.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kword/KWPartFrameSet.cpp b/kword/KWPartFrameSet.cpp
index 88367743..9aa65e63 100644
--- a/kword/KWPartFrameSet.cpp
+++ b/kword/KWPartFrameSet.cpp
@@ -35,7 +35,7 @@
#include <assert.h>
-KWPartFrameSet::KWPartFrameSet( KWDocument *_doc, KWDocumentChild *_child, const QString & name )
+KWPartFrameSet::KWPartFrameSet( KWDocument *_doc, KWDocumentChild *_child, const TQString & name )
: KWFrameSet( _doc ), m_child( 0 ), m_cmdMoveChild( 0 ), m_protectContent( false )
{
if ( _child )
@@ -48,11 +48,11 @@ KWPartFrameSet::KWPartFrameSet( KWDocument *_doc, KWDocumentChild *_child, const
m_name = name;
}
-KWPartFrameSet::KWPartFrameSet( KWDocument* doc, const QDomElement& frameTag,
- const QDomElement& objectTag, KoOasisContext& context )
+KWPartFrameSet::KWPartFrameSet( KWDocument* doc, const TQDomElement& frameTag,
+ const TQDomElement& objectTag, KoOasisContext& context )
: KWFrameSet( doc ), m_child( 0 ), m_cmdMoveChild( 0 ), m_protectContent( false )
{
- m_name = frameTag.attributeNS( KoXmlNS::draw, "name", QString::null );
+ m_name = frameTag.attributeNS( KoXmlNS::draw, "name", TQString() );
if ( doc->frameSetByName( m_name ) ) // already exists!
m_name = doc->generateFramesetName( m_name + " %1" );
@@ -76,8 +76,8 @@ void KWPartFrameSet::setChild( KWDocumentChild* child )
assert( !m_child );
m_child = child;
m_child->setPartFrameSet( this );
- QObject::connect( m_child, SIGNAL( changed( KoChild * ) ),
- this, SLOT( slotChildChanged() ) );
+ TQObject::connect( m_child, TQT_SIGNAL( changed( KoChild * ) ),
+ this, TQT_SLOT( slotChildChanged() ) );
}
KWPartFrameSet::~KWPartFrameSet()
@@ -93,8 +93,8 @@ KWordFrameSetIface* KWPartFrameSet::dcopObject()
}
-void KWPartFrameSet::drawFrameContents( KWFrame* frame, QPainter * painter, const QRect & /*crect TODO*/,
- const QColorGroup &, bool onlyChanged, bool,
+void KWPartFrameSet::drawFrameContents( KWFrame* frame, TQPainter * painter, const TQRect & /*crect TODO*/,
+ const TQColorGroup &, bool onlyChanged, bool,
KWFrameSetEdit *, KWViewMode * )
{
if (!onlyChanged)
@@ -109,9 +109,9 @@ void KWPartFrameSet::drawFrameContents( KWFrame* frame, QPainter * painter, cons
KoTextZoomHandler* zh = kWordDocument();
// We have to define better the merning of the rect that we pass. Does it include zooming ? (yes I think)
- // Does it define the area to be repainted only? (no, that's the painter clip rect)
+ // Does it define the area to be tqrepainted only? (no, that's the painter clip rect)
// So it defines the whole area covered by the embedded document, in pixels.
- QRect rframe( 0, 0,
+ TQRect rframe( 0, 0,
zh->zoomItX( frame->innerWidth() ),
zh->zoomItY( frame->innerHeight() ) );
//kdDebug(32001) << "rframe=" << rframe << endl;
@@ -127,19 +127,19 @@ void KWPartFrameSet::updateChildGeometry()
{
if( m_frames.isEmpty() ) // Deleted frameset
return;
- m_child->setGeometry( m_frames.first()->toQRect() );
+ m_child->setGeometry( m_frames.first()->toTQRect() );
}
void KWPartFrameSet::slotChildChanged()
{
// This is called when the KoDocumentChild is resized (using the KoFrame)
- QPtrListIterator<KWFrame> listFrame = frameIterator();
+ TQPtrListIterator<KWFrame> listFrame = frameIterator();
KWFrame *frame = listFrame.current();
if ( frame )
{
- frame->setRect( KoRect::fromQRect( getChild()->geometry() ) );
+ frame->setRect( KoRect::fromTQRect( getChild()->tqgeometry() ) );
- //kdDebug(32001) << "KWPartFrameSet::slotChildChanged child's geometry " << getChild()->geometry()
+ //kdDebug(32001) << "KWPartFrameSet::slotChildChanged child's tqgeometry " << getChild()->tqgeometry()
// << " frame set to " << *frame << endl;
m_doc->frameChanged( frame );
//there is just a frame
@@ -150,15 +150,15 @@ void KWPartFrameSet::slotChildChanged()
kdDebug(32001) << "Frame not found!" << endl;
}
-QDomElement KWPartFrameSet::save( QDomElement &parentElem, bool saveFrames )
+TQDomElement KWPartFrameSet::save( TQDomElement &tqparentElem, bool saveFrames )
{
if ( m_frames.isEmpty() ) // Deleted frameset -> don't save
- return QDomElement();
- KWFrameSet::saveCommon( parentElem, saveFrames );
+ return TQDomElement();
+ KWFrameSet::saveCommon( tqparentElem, saveFrames );
// Ok, this one is a bit hackish. KWDocument calls us for saving our stuff into
// the SETTINGS element, which it creates for us. So our save() doesn't really have
// the same behaviour as a normal KWFrameSet::save()....
- return QDomElement();
+ return TQDomElement();
}
void KWPartFrameSet::saveOasis( KoXmlWriter& writer, KoSavingContext& context, bool ) const
@@ -177,7 +177,7 @@ void KWPartFrameSet::saveOasis( KoXmlWriter& writer, KoSavingContext& context, b
writer.endElement(); // draw:frame
}
-void KWPartFrameSet::load( QDomElement &attributes, bool loadFrames )
+void KWPartFrameSet::load( TQDomElement &attributes, bool loadFrames )
{
KWFrameSet::load( attributes, loadFrames );
}
@@ -217,7 +217,7 @@ void KWPartFrameSet::moveFloatingFrame( int frameNum, const KoPoint &position )
if ( frame )
{
KWFrameSet::moveFloatingFrame( frameNum, position );
- m_child->setGeometry( frame->toQRect(), true /* avoid circular events */ );
+ m_child->setGeometry( frame->toTQRect(), true /* avoid circular events */ );
}
}
@@ -237,7 +237,7 @@ void KWPartFrameSet::printDebug()
kdDebug() << " Url : " << getChild()->document()->url().url()<<endl;
else
kdWarning() << "NO DOCUMENT" << endl;
- kdDebug() << " Rectangle : " << getChild()->geometry().x() << "," << getChild()->geometry().y() << " " << getChild()->geometry().width() << "x" << getChild()->geometry().height() << endl;
+ kdDebug() << " Rectangle : " << getChild()->tqgeometry().x() << "," << getChild()->tqgeometry().y() << " " << getChild()->tqgeometry().width() << "x" << getChild()->tqgeometry().height() << endl;
} else
kdWarning() << "NO CHILD" << endl;
}
@@ -256,7 +256,7 @@ void KWPartFrameSet::deleteFrame( unsigned int _num, bool remove, bool recalc )
m_child->setDeleted();
}
-void KWPartFrameSet::KWPartFrameSet::createEmptyRegion( const QRect &crect, QRegion &emptyRegion, KWViewMode *viewMode ) {
+void KWPartFrameSet::KWPartFrameSet::createEmptyRegion( const TQRect &crect, TQRegion &emptyRegion, KWViewMode *viewMode ) {
Q_UNUSED(crect);
Q_UNUSED(emptyRegion);
Q_UNUSED(viewMode);
@@ -271,8 +271,8 @@ KWPartFrameSetEdit::KWPartFrameSetEdit( KWPartFrameSet * fs, KWCanvas * canvas )
kdDebug(32001) << "KWPartFrameSetEdit::KWPartFrameSetEdit " << endl;
m_dcop=0L;
fs->startEditing();
- QObject::connect( m_canvas->gui()->getView(), SIGNAL( activated( bool ) ),
- this, SLOT( slotChildActivated( bool ) ) );
+ TQObject::connect( m_canvas->gui()->getView(), TQT_SIGNAL( activated( bool ) ),
+ this, TQT_SLOT( slotChildActivated( bool ) ) );
}
KWPartFrameSetEdit::~KWPartFrameSetEdit()
@@ -321,7 +321,7 @@ void KWPartFrameSet::storeInternal()
/* Class: KWDocumentChild */
/******************************************************************/
-KWDocumentChild::KWDocumentChild( KWDocument *_wdoc, const QRect& _rect, KoDocument *_doc )
+KWDocumentChild::KWDocumentChild( KWDocument *_wdoc, const TQRect& _rect, KoDocument *_doc )
: KoDocumentChild( _wdoc, _doc, _rect ), m_partFrameSet( 0 )
{
}
@@ -335,15 +335,15 @@ KWDocumentChild::~KWDocumentChild()
{
}
-void KWDocumentChild::setDocument( KoDocument *doc, const QRect &geometry )
+void KWDocumentChild::setDocument( KoDocument *doc, const TQRect &tqgeometry )
{
// When hitTest returns true, we want to activate the part right away.
// PartManager supports selecting parts, but not in a doc/view separated way.
doc->setSelectable( false );
- KoDocumentChild::setDocument( doc, geometry );
+ KoDocumentChild::setDocument( doc, tqgeometry );
}
-KoDocument* KWDocumentChild::hitTest( const QPoint& p, const QWMatrix& _matrix )
+KoDocument* KWDocumentChild::hitTest( const TQPoint& p, const TQWMatrix& _matrix )
{
Q_ASSERT( m_partFrameSet );
if ( isDeleted() || !document() ) {
@@ -355,12 +355,12 @@ KoDocument* KWDocumentChild::hitTest( const QPoint& p, const QWMatrix& _matrix )
#else
int keyState = 0;
if ( kapp->keyboardModifiers() & KApplication::ControlModifier )
- keyState = Qt::ControlButton;
+ keyState = TQt::ControlButton;
#endif
// Only activate when it's already selected, and when not clicking on the border.
// KWFrameView and the part frame policy have that logic already.
- KWView* kwView = ::qt_cast<KWView *>( parentDocument()->hitTestView() );
+ KWView* kwView = ::tqqt_cast<KWView *>( tqparentDocument()->hitTestView() );
Q_ASSERT( kwView );
if ( kwView ) {
KWFrame* frame = m_partFrameSet->frame(0);