summaryrefslogtreecommitdiffstats
path: root/src/attic/qtmultilineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/attic/qtmultilineedit.cpp')
-rw-r--r--src/attic/qtmultilineedit.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/attic/qtmultilineedit.cpp b/src/attic/qtmultilineedit.cpp
index 27a65e4f5..0f52e6cf6 100644
--- a/src/attic/qtmultilineedit.cpp
+++ b/src/attic/qtmultilineedit.cpp
@@ -12,7 +12,7 @@
**********************************************************************/
#include "qtmultilineedit.h"
-#ifndef QT_NO_QTMULTILINEEDIT
+#ifndef TQT_NO_QTMULTILINEEDIT
#include "ntqpainter.h"
#include "ntqscrollbar.h"
#include "ntqclipboard.h"
@@ -320,7 +320,7 @@ static const char * const arrow_xpm[] = {
enum {
IdUndo,
IdRedo,
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
IdCut,
IdCopy,
IdPaste,
@@ -396,7 +396,7 @@ struct TQtMultiLineData
TQPixmap arrow;
TQPoint dnd_startpos;
TQTimer *blinkTimer, *scrollTimer;
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
TQTimer *dnd_timer;
#endif
};
@@ -584,7 +584,7 @@ TQtMultiLineEdit::TQtMultiLineEdit( TQWidget *parent , const char *name )
setWFlags( WResizeNoErase );
setKeyCompression( TRUE );
setFocusPolicy( WheelFocus );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( ibeamCursor );
verticalScrollBar()->setCursor( arrowCursor );
horizontalScrollBar()->setCursor( arrowCursor );
@@ -607,7 +607,7 @@ TQtMultiLineEdit::TQtMultiLineEdit( TQWidget *parent , const char *name )
d->scrollTimer = new TQTimer( this );
connect( d->scrollTimer, SIGNAL( timeout() ),
this, SLOT( scrollTimerTimeout() ) );
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
d->dnd_timer = new TQTimer( this );
connect( d->dnd_timer, SIGNAL( timeout() ),
this, SLOT( dndTimeout() ) );
@@ -691,7 +691,7 @@ void TQtMultiLineEdit::setReadOnly( bool on )
{
if ( readOnly != on ) {
readOnly = on;
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( on ? arrowCursor : ibeamCursor );
#endif
}
@@ -839,7 +839,7 @@ void TQtMultiLineEdit::paintCell( TQPainter *painter, int row, int )
cXPos + 2, cYPos + fm.height() - 2);
*/
-#ifndef QT_NO_TRANSFORMATIONS
+#ifndef TQT_NO_TRANSFORMATIONS
// TODO: set it other times, eg. when scrollbar moves view
TQWMatrix wm = painter->worldMatrix();
setMicroFocusHint( int(wm.dx()+cXPos),
@@ -933,7 +933,7 @@ void TQtMultiLineEdit::timerEvent( TQTimerEvent * )
// ############ Remove in 3.0!!!!!!!!
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
void TQtMultiLineEdit::doDrag()
{
if ( d->dnd_timer ) {
@@ -1243,7 +1243,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_Prior:
setTopCell( TQMAX( topCell() - pageSize, 0 ) );
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_C:
if ( echoMode() == Normal && (e->state()&ControlButton) )
copy();
@@ -1287,7 +1287,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_B:
cursorLeft( e->state() & ShiftButton );
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_C:
if ( echoMode() == Normal )
copy();
@@ -1333,7 +1333,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_P:
cursorUp( e->state() & ShiftButton );
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_V:
paste();
break;
@@ -1411,7 +1411,7 @@ void TQtMultiLineEdit::keyPressEvent( TQKeyEvent *e )
case Key_F14: // Undo key on Sun keyboards
undo();
break;
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
case Key_F16: // Copy key on Sun keyboards
if ( echoMode() == Normal )
copy();
@@ -2128,11 +2128,11 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
id[ IdUndo ] = popup->insertItem( tr( "Undo" ) );
id[ IdRedo ] = popup->insertItem( tr( "Redo" ) );
popup->insertSeparator();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
id[ IdCut ] = popup->insertItem( tr( "Cut" ) );
id[ IdCopy ] = popup->insertItem( tr( "Copy" ) );
id[ IdPaste ] = popup->insertItem( tr( "Paste" ) );
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
id[ IdPasteSpecial ] = popup->insertItem( tr( "Paste special..." ) );
#endif
#endif
@@ -2143,13 +2143,13 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
!this->d->undoList.isEmpty() );
popup->setItemEnabled( id[ IdRedo ],
!this->d->redoList.isEmpty() );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
popup->setItemEnabled( id[ IdCut ],
!isReadOnly() && hasMarkedText() );
popup->setItemEnabled( id[ IdCopy ], hasMarkedText() );
popup->setItemEnabled( id[ IdPaste ],
!isReadOnly() && (bool)TQApplication::clipboard()->text().length() );
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
// Any non-plain types?
TQMimeSource* ms = TQApplication::clipboard()->data();
bool ps = FALSE;
@@ -2179,14 +2179,14 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
undo();
else if ( r == id[ IdRedo ] )
redo();
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
else if ( r == id[ IdCut ] )
cut();
else if ( r == id[ IdCopy ] )
copy();
else if ( r == id[ IdPaste ] )
paste();
-# ifndef QT_NO_MIMECLIPBOARD
+# ifndef TQT_NO_MIMECLIPBOARD
else if ( r == id[ IdPasteSpecial ] )
pasteSpecial(TQCursor::pos());
# endif
@@ -2211,7 +2211,7 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
return;
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if (
inMark(newX, newY) // Click on highlighted text
&& echoMode() == Normal // No DnD of passwords, etc.
@@ -2299,7 +2299,7 @@ void TQtMultiLineEdit::stopAutoScroll()
*/
void TQtMultiLineEdit::mouseMoveEvent( TQMouseEvent *e )
{
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
d->dnd_timer->stop();
if ( d->dnd_primed &&
( d->dnd_startpos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) {
@@ -2360,7 +2360,7 @@ void TQtMultiLineEdit::extendSelectionWord( int &newX, int&newY)
void TQtMultiLineEdit::mouseReleaseEvent( TQMouseEvent *e )
{
stopAutoScroll();
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if ( d->dnd_timer->isActive() ) {
d->dnd_timer->stop();
d->dnd_primed = FALSE;
@@ -2374,7 +2374,7 @@ void TQtMultiLineEdit::mouseReleaseEvent( TQMouseEvent *e )
if ( markAnchorY == markDragY && markAnchorX == markDragX )
turnMark( FALSE );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
#if defined(_WS_X11_)
else if ( echoMode() == Normal )
copy();
@@ -2419,7 +2419,7 @@ void TQtMultiLineEdit::mouseDoubleClickEvent( TQMouseEvent *m )
}
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
/*
\reimp
@@ -2510,7 +2510,7 @@ void TQtMultiLineEdit::dropEvent( TQDropEvent* event )
}
}
-#endif // QT_NO_DRAGANDDROP
+#endif // TQT_NO_DRAGANDDROP
/*
@@ -2644,7 +2644,7 @@ void TQtMultiLineEdit::setBottomCell( int line )
setYOffset( TQMAX( newYPos, 0 ) );
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
/*
Copies text in MIME subtype \a subtype from the clipboard onto the current
@@ -2692,7 +2692,7 @@ void TQtMultiLineEdit::paste()
pasteSubType("plain");
}
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
/*
Prompts the user for a type from a list of text types available,
Then copies text from the clipboard onto the current cursor position.
@@ -2705,7 +2705,7 @@ void TQtMultiLineEdit::pasteSpecial(const TQPoint& pt)
pasteSubType(st);
}
#endif
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQCString TQtMultiLineEdit::pickSpecial(TQMimeSource* ms, bool always_ask, const TQPoint& pt)
{
if ( ms ) {
@@ -2734,8 +2734,8 @@ TQCString TQtMultiLineEdit::pickSpecial(TQMimeSource* ms, bool always_ask, const
}
return TQCString();
}
-#endif // QT_NO_MIME
-#endif // QT_NO_CLIPBOARD
+#endif // TQT_NO_MIME
+#endif // TQT_NO_CLIPBOARD
/*
@@ -2843,7 +2843,7 @@ void TQtMultiLineEdit::markWord( int posx, int posy )
markDragY = posy;
turnMark( markDragX != markAnchorX || markDragY != markAnchorY );
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
#if defined(_WS_X11_)
if ( echoMode() == Normal )
copy();
@@ -2865,7 +2865,7 @@ int TQtMultiLineEdit::charClass( TQChar ch )
else return 3;
}
-#ifndef QT_NO_CLIPBOARD
+#ifndef TQT_NO_CLIPBOARD
/*
Copies the marked text to the clipboard. Will copy only
if echoMode() is Normal.
@@ -4156,7 +4156,7 @@ void TQtMultiLineEdit::scrollTimerTimeout()
void TQtMultiLineEdit::dndTimeout()
{
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
doDrag();
#endif
}