From c3509de54b7ba51981f84c6981aa2ccae2f2bc2f Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 7 Jul 2011 21:14:06 +0000 Subject: Rename incorrect instances of tqrepaint[...] to repaint[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khexedit/lib/controller/keditor.cpp | 2 +- khexedit/lib/controller/knavigator.cpp | 2 +- khexedit/lib/controller/kvalueeditor.cpp | 2 +- khexedit/lib/kbytesedit.cpp | 4 ++-- khexedit/lib/kbytesedit.h | 4 ++-- khexedit/lib/kcolumnsview.cpp | 4 ++-- khexedit/lib/kcolumnsview.h | 2 +- khexedit/lib/khexedit.cpp | 28 +++++++++++++------------- khexedit/lib/khexedit.h | 6 +++--- khexedit/parts/kbytesedit/kbyteseditwidget.cpp | 4 ++-- khexedit/parts/kbytesedit/kbyteseditwidget.h | 2 +- 11 files changed, 30 insertions(+), 30 deletions(-) (limited to 'khexedit') diff --git a/khexedit/lib/controller/keditor.cpp b/khexedit/lib/controller/keditor.cpp index 02b9129..513f41d 100644 --- a/khexedit/lib/controller/keditor.cpp +++ b/khexedit/lib/controller/keditor.cpp @@ -187,7 +187,7 @@ void KEditor::doEditAction( KEditAction Action ) } } - HexEdit->tqrepaintChanged(); + HexEdit->repaintChanged(); HexEdit->ensureCursorVisible(); HexEdit->unpauseCursor(); diff --git a/khexedit/lib/controller/knavigator.cpp b/khexedit/lib/controller/knavigator.cpp index 3258ce9..156068e 100644 --- a/khexedit/lib/controller/knavigator.cpp +++ b/khexedit/lib/controller/knavigator.cpp @@ -127,7 +127,7 @@ void KNavigator::moveCursor( KMoveAction Action, bool Select ) if( Select ) BufferRanges->setSelectionEnd( BufferCursor->realIndex() ); - HexEdit->tqrepaintChanged(); + HexEdit->repaintChanged(); HexEdit->ensureCursorVisible(); HexEdit->unpauseCursor(); diff --git a/khexedit/lib/controller/kvalueeditor.cpp b/khexedit/lib/controller/kvalueeditor.cpp index 4f32789..9baff80 100644 --- a/khexedit/lib/controller/kvalueeditor.cpp +++ b/khexedit/lib/controller/kvalueeditor.cpp @@ -115,7 +115,7 @@ bool KValueEditor::handleKeyPress( TQKeyEvent *KeyEvent ) BufferCursor->gotoRealIndex(); KSection ChangedRange( Index,HexEdit->DataBuffer->size()-1 ); HexEdit->BufferRanges->addChangedRange( ChangedRange ); - HexEdit->tqrepaintChanged(); + HexEdit->repaintChanged(); HexEdit->ensureCursorVisible(); HexEdit->unpauseCursor(); HexEdit->updateCursor(); diff --git a/khexedit/lib/kbytesedit.cpp b/khexedit/lib/kbytesedit.cpp index db4b193..3eb49bd 100644 --- a/khexedit/lib/kbytesedit.cpp +++ b/khexedit/lib/kbytesedit.cpp @@ -129,7 +129,7 @@ void KBytesEdit::setKeepsMemory( bool KM ) bool KBytesEdit::isAutoDelete() const { return AutoDelete; } -void KBytesEdit::tqrepaintRange( int i1, int i2 ) +void KBytesEdit::repaintRange( int i1, int i2 ) { bool ChangeCursor = !(CursorPaused) && KSection(i1,i2).includes( BufferCursor->index() ); if( ChangeCursor ) @@ -137,7 +137,7 @@ void KBytesEdit::tqrepaintRange( int i1, int i2 ) BufferRanges->addChangedRange( i1, i2 ); - tqrepaintChanged(); + repaintChanged(); if( ChangeCursor ) unpauseCursor(); diff --git a/khexedit/lib/kbytesedit.h b/khexedit/lib/kbytesedit.h index 884f565..defb734 100644 --- a/khexedit/lib/kbytesedit.h +++ b/khexedit/lib/kbytesedit.h @@ -36,7 +36,7 @@ class KBytesEditPrivate; * * 1. used as viewer * a) static data ranges -> no changes for data pointer and length - * possible changes are told to the widget by tqrepaintRange + * possible changes are told to the widget by repaintRange * b) changing data ranges -> data pointer and length might change * changes told by * * resetData( char *, int size, bool tqrepaint ); @@ -138,7 +138,7 @@ class KHEXEDIT_EXPORT KBytesEdit : public KHexEdit void setKeepsMemory( bool KM = true ); /** tqrepaint the indizes from i1 to i2 */ - void tqrepaintRange( int i1, int i2 ); + void repaintRange( int i1, int i2 ); protected: /** deletes the databuffer */ diff --git a/khexedit/lib/kcolumnsview.cpp b/khexedit/lib/kcolumnsview.cpp index 90fa10c..2b0b157 100644 --- a/khexedit/lib/kcolumnsview.cpp +++ b/khexedit/lib/kcolumnsview.cpp @@ -129,10 +129,10 @@ void KColumnsView::updateView() } -void KColumnsView::tqrepaintView() +void KColumnsView::repaintView() { resizeContents( totalWidth(), totalHeight() ); - tqrepaintContents( false ); + repaintContents( false ); } diff --git a/khexedit/lib/kcolumnsview.h b/khexedit/lib/kcolumnsview.h index f3e00da..ea5f520 100644 --- a/khexedit/lib/kcolumnsview.h +++ b/khexedit/lib/kcolumnsview.h @@ -113,7 +113,7 @@ class KColumnsView : public TQScrollView protected: // painting void updateView(); - void tqrepaintView(); + void repaintView(); private: /** hiding it*/ diff --git a/khexedit/lib/khexedit.cpp b/khexedit/lib/khexedit.cpp index 49030bf..0a52090 100644 --- a/khexedit/lib/khexedit.cpp +++ b/khexedit/lib/khexedit.cpp @@ -737,7 +737,7 @@ bool KHexEdit::selectWord( /*unsigned TODO:change all unneeded signed into unsig BufferRanges->setFirstWordSelection( WordSection ); BufferCursor->gotoIndex( WordSection.end()+1 ); - tqrepaintChanged(); + repaintChanged(); unpauseCursor(); return true; @@ -757,7 +757,7 @@ void KHexEdit::select( KSection Section ) BufferRanges->setSelection( Section ); BufferCursor->gotoIndex( Section.end()+1 ); - tqrepaintChanged(); + repaintChanged(); unpauseCursor(); @@ -781,7 +781,7 @@ void KHexEdit::selectAll( bool Select ) BufferCursor->gotoEnd(); } - tqrepaintChanged(); + repaintChanged(); unpauseCursor(); @@ -967,7 +967,7 @@ void KHexEdit::insert( const TQByteArray &D ) if( Changed ) { BufferRanges->addChangedRange( ChangedRange ); - tqrepaintChanged(); + repaintChanged(); } ensureCursorVisible(); @@ -994,7 +994,7 @@ void KHexEdit::removeSelectedData() KSection ChangedRange = removeData( Selection ); BufferRanges->removeSelection(); - tqrepaintChanged(); + repaintChanged(); BufferCursor->gotoCIndex( Selection.start() ); @@ -1059,7 +1059,7 @@ void KHexEdit::setCursorPosition( int Index, bool Behind ) bool RangesModifed = BufferRanges->isModified(); if( RangesModifed ) { - tqrepaintChanged(); + repaintChanged(); viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor ); @@ -1201,7 +1201,7 @@ bool KHexEdit::eventFilter( TQObject *O, TQEvent *E ) // doc->setDefaultFormat( doc->formatCollection()->defaultFormat()->font(), c ); // lastFormatted = doc->firstParagraph(); // formatMore(); -// tqrepaintChanged(); +// repaintChanged(); // } // } @@ -1397,12 +1397,12 @@ void KHexEdit::keyPressEvent( TQKeyEvent *KeyEvent ) } -void KHexEdit::tqrepaintChanged() +void KHexEdit::repaintChanged() { if( !isUpdatesEnabled() || !viewport()->isUpdatesEnabled() || !BufferRanges->isModified() ) return; - // TODO: we do this only to let the scrollview handle new or removed lines. overlaps with tqrepaintRange + // TODO: we do this only to let the scrollview handle new or removed lines. overlaps with repaintRange resizeContents( totalWidth(), totalHeight() ); KPixelXs Xs( contentsX(), visibleWidth(), true ); @@ -1559,7 +1559,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e ) BufferRanges->setSelectionStart( BufferLayout->indexAtLineStart(DoubleClickLine) ); BufferCursor->gotoLineEnd(); BufferRanges->setSelectionEnd( BufferCursor->realIndex() ); - tqrepaintChanged(); + repaintChanged(); unpauseCursor(); return; @@ -1606,7 +1606,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e ) if( BufferRanges->isModified() ) { - tqrepaintChanged(); + repaintChanged(); viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor ); } @@ -1699,7 +1699,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e ) ClipboardMode = TQClipboard::Clipboard; // ensure selection changes to be drawn TODO: create a insert/pasteAtCursor that leaves out drawing - tqrepaintChanged(); + repaintChanged(); ensureCursorVisible(); unpauseCursor(); @@ -1803,7 +1803,7 @@ void KHexEdit::handleMouseMove( const TQPoint& Point ) // handles the move of th if( BufferRanges->selectionStarted() ) BufferRanges->setSelectionEnd( BufferCursor->realIndex() ); - tqrepaintChanged(); + repaintChanged(); unpauseCursor(); } @@ -1953,7 +1953,7 @@ void KHexEdit::handleInternalDrag( TQDropEvent *e ) BufferRanges->addChangedRange( ChangedRange ); BufferRanges->removeSelection(); - tqrepaintChanged(); + repaintChanged(); ensureCursorVisible(); // open ui diff --git a/khexedit/lib/khexedit.h b/khexedit/lib/khexedit.h index 80d36d9..00a25d6 100644 --- a/khexedit/lib/khexedit.h +++ b/khexedit/lib/khexedit.h @@ -216,7 +216,7 @@ class KHEXEDIT_EXPORT KHexEdit : public KColumnsView void placeCursor( const TQPoint &Point ); /***/ void setCursorColumn( KBufferColumnId ); -// void tqrepaintByte( int row, int column, bool Erase = true ); +// void repaintByte( int row, int column, bool Erase = true ); // void updateByte( int row, int column ); // void ensureByteVisible( int row, int column ); @@ -397,8 +397,8 @@ class KHEXEDIT_EXPORT KHexEdit : public KColumnsView /** handles screen update in case of a change to any of the width sizes */ void updateViewByWidth(); - /** tqrepaints all the parts that are signed as changed */ - void tqrepaintChanged(); + /** repaints all the parts that are signed as changed */ + void repaintChanged(); protected: // drawing related operations /** recreates the cursor pixmaps and paints active and inactive cursors if doable */ diff --git a/khexedit/parts/kbytesedit/kbyteseditwidget.cpp b/khexedit/parts/kbytesedit/kbyteseditwidget.cpp index 1e53c05..bfcb6be 100644 --- a/khexedit/parts/kbytesedit/kbyteseditwidget.cpp +++ b/khexedit/parts/kbytesedit/kbyteseditwidget.cpp @@ -247,9 +247,9 @@ bool KBytesEditWidget::hasSelectedData() const } -void KBytesEditWidget::tqrepaintRange( int i1, int i2 ) +void KBytesEditWidget::repaintRange( int i1, int i2 ) { - BytesEdit->tqrepaintRange( i1, i2 ); + BytesEdit->repaintRange( i1, i2 ); } diff --git a/khexedit/parts/kbytesedit/kbyteseditwidget.h b/khexedit/parts/kbytesedit/kbyteseditwidget.h index 616981f..9747ae6 100644 --- a/khexedit/parts/kbytesedit/kbyteseditwidget.h +++ b/khexedit/parts/kbytesedit/kbyteseditwidget.h @@ -87,7 +87,7 @@ class KBytesEditWidget : public TQWidget, public KHE::BytesEditInterface, virtual bool isReadOnly() const; virtual bool isModified() const; /** tqrepaint the indizes from i1 to i2 */ - virtual void tqrepaintRange( int i1, int i2 ); + virtual void repaintRange( int i1, int i2 ); public: // cursor interface /** */ -- cgit v1.2.3