summaryrefslogtreecommitdiffstats
path: root/kspread
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-07 21:14:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-07 21:14:06 +0000
commitafbfdc507bfaafc8824a9808311d57a9ece87510 (patch)
tree47be45bbd69c321ce79e14b683e59318748be9cb /kspread
parent880d042b2902fae8007f202dd35ad9330499867b (diff)
downloadkoffice-afbfdc507bfaafc8824a9808311d57a9ece87510.tar.gz
koffice-afbfdc507bfaafc8824a9808311d57a9ece87510.zip
Rename incorrect instances of tqrepaint[...] to repaint[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread')
-rw-r--r--kspread/DESIGN.html8
-rw-r--r--kspread/doc/PAINTING.html2
-rw-r--r--kspread/kspread_canvas.cc14
-rw-r--r--kspread/kspread_canvas.h4
-rw-r--r--kspread/kspread_cell.cc2
-rw-r--r--kspread/kspread_doc.cc4
-rw-r--r--kspread/kspread_doc.h2
-rw-r--r--kspread/kspread_sheet.cc8
-rw-r--r--kspread/kspread_sheet.h10
-rw-r--r--kspread/kspread_sheetprint.cc4
-rw-r--r--kspread/kspread_sheetprint.h2
-rw-r--r--kspread/kspread_view.cc4
-rw-r--r--kspread/kspread_view.h2
13 files changed, 33 insertions, 33 deletions
diff --git a/kspread/DESIGN.html b/kspread/DESIGN.html
index 2358c3c2..586c9d68 100644
--- a/kspread/DESIGN.html
+++ b/kspread/DESIGN.html
@@ -184,7 +184,7 @@ recursive dependency calculation at almost no cost.</p>
<p>tqStatus: PLANNED.</p>
<p>Currently, every operation on a cell or on a range of cells is quite complex.
-You need to ensure correct tqrepainting, recalculation, iterate on a range and so on.</p>
+You need to ensure correct repainting, recalculation, iterate on a range and so on.</p>
<p>To address this issue, manipulators shall be implemented. A manipulator will
implement one operation (formatting change, sequence fill, ..., ...).</p>
@@ -230,7 +230,7 @@ because thanks to manipulators, each operation will automatically support these.
<p>tqStatus: PLANNED</p>
<p>As mentioned above, the interface between the core and the GUI needs to be kept
-at minimum. Also, the number of tqrepaints needs to be as low as possible, and tqrepaints
+at minimum. Also, the number of repaints needs to be as low as possible, and repaints
should be groupped whenever possible. To achieve all this, the following approach
can be used:</p>
@@ -246,8 +246,8 @@ methods - disableUpdates(), enableUpdates(), rangeListChanged() and
rangeListFormattingChanged(). All these will be used (solely?) by manipulators,
preferably by the base manipulator class, so that we don't have to call these
functions in each operation. After a call to disableUpdates(), there will
-be no tqrepainting and no dependency calculation. Note that a call to
-enableUpdates() won't cause any tqrepaints either, as the sheet cannot remember
+be no repainting and no dependency calculation. Note that a call to
+enableUpdates() won't cause any repaints either, as the sheet cannot remember
all the calls (due to loss of range information). Hence, the base manipulator
class needs to call the correct rangeList*Changed method to trigger an
update in an effective way. The base manipulator needs to be configurable by
diff --git a/kspread/doc/PAINTING.html b/kspread/doc/PAINTING.html
index 58bd1ed5..d3c739a8 100644
--- a/kspread/doc/PAINTING.html
+++ b/kspread/doc/PAINTING.html
@@ -16,7 +16,7 @@ supposed to work. At present, it is not a complete description.</p>
<h2>General</h2>
<p>Painting is started by KSpreadCanvas::paintUpdates(). This method
-calls paintCell() on all visible cells, i.e. it always tqrepaints the
+calls paintCell() on all visible cells, i.e. it always repaints the
entire sheet. This is inefficient, but is OK for most circumstances.
There is a bug in bugzilla (#xxxx) which points this out.</p>
diff --git a/kspread/kspread_canvas.cc b/kspread/kspread_canvas.cc
index d3cd8199..84c84fca 100644
--- a/kspread/kspread_canvas.cc
+++ b/kspread/kspread_canvas.cc
@@ -2157,7 +2157,7 @@ void Canvas::processEscapeKey(TQKeyEvent * event)
activeSheet()->setRegionPaintDirty( oldBoundingRect );
tqrepaint( oldBoundingRect );
- tqrepaintObject( d->m_resizeObject );
+ repaintObject( d->m_resizeObject );
d->m_ratio = 0.0;
d->m_resizeObject = 0;
d->m_isResizing = false;
@@ -3307,7 +3307,7 @@ void Canvas::selectObject( EmbeddedObject *obj )
if ( obj->sheet() != activeSheet() || obj->isSelected() )
return;
obj->setSelected( true );
- tqrepaintObject( obj );
+ repaintObject( obj );
d->mouseSelectedObject = true;
emit objectSelectedChanged();
@@ -3319,7 +3319,7 @@ void Canvas::deselectObject( EmbeddedObject *obj )
if ( obj->sheet() != activeSheet() || !obj->isSelected() )
return;
obj->setSelected( false );
- tqrepaintObject( obj );
+ repaintObject( obj );
d->mouseSelectedObject = false;
emit objectSelectedChanged();
@@ -3572,11 +3572,11 @@ void Canvas::resizeObject( ModifyType _modType, const KoPoint & point, bool keep
// {
// sp.setY( rect.bottom() );
// }
-// m_gl.tqrepaintSnapping( sp, snaptqStatus );
+// m_gl.repaintSnapping( sp, snaptqStatus );
// }
tqrepaint( oldBoundingRect );
- tqrepaintObject( obj );
+ repaintObject( obj );
emit objectSizeChanged();
}
}
@@ -3603,7 +3603,7 @@ void Canvas::finishResizeObject( const TQString &/*name*/, bool /*tqlayout*/ )
d->m_ratio = 0.0;
d->m_isResizing = false;
- tqrepaintObject( d->m_resizeObject );
+ repaintObject( d->m_resizeObject );
d->m_resizeObject = NULL;
}
}
@@ -3817,7 +3817,7 @@ bool Canvas::createEditor( EditorType ed, bool addFocus, bool captureArrowKeys )
return true;
}
-void Canvas::tqrepaintObject( EmbeddedObject *obj )
+void Canvas::repaintObject( EmbeddedObject *obj )
{
//Calculate where the object appears on the canvas widget and then tqrepaint that part of the widget
TQRect canvasRelativeGeometry = doc()->zoomRect( obj->tqgeometry() );
diff --git a/kspread/kspread_canvas.h b/kspread/kspread_canvas.h
index ce18e157..f5aa6746 100644
--- a/kspread/kspread_canvas.h
+++ b/kspread/kspread_canvas.h
@@ -354,7 +354,7 @@ public:
KoRect objectRect( bool all ) const;
- void tqrepaintObject( EmbeddedObject *obj );
+ void repaintObject( EmbeddedObject *obj );
/**
* This is intended to copy the selected objects to the clipboard so that they can be pasted into other
@@ -557,7 +557,7 @@ private:
* This function sets the paint dirty flag for a @p changedRegion in a
* @p sheet .
* The calculation which cells really should look different with the new
- * selection rather than tqrepainting the entire area has to be done before.
+ * selection rather than repainting the entire area has to be done before.
* @param sheet the sheet, which contains the cells
* @param changedRegion the cell region to be set as dirty
*/
diff --git a/kspread/kspread_cell.cc b/kspread/kspread_cell.cc
index d71e0185..9314d220 100644
--- a/kspread/kspread_cell.cc
+++ b/kspread/kspread_cell.cc
@@ -2535,7 +2535,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
TQRect zoomedCellRect = sheet()->doc()->zoomRect( cellRect );
//The highlight rect is just inside the main cell rect
- //This saves the hassle of tqrepainting nearby cells when the highlight is changed as the highlight areas
+ //This saves the hassle of repainting nearby cells when the highlight is changed as the highlight areas
//do not overlap
zoomedCellRect.setLeft(zoomedCellRect.left()+1);
//zoomedCellRect.setRight(zoomedCellRect.right()-1);
diff --git a/kspread/kspread_doc.cc b/kspread/kspread_doc.cc
index 825808b8..6a40cbd9 100644
--- a/kspread/kspread_doc.cc
+++ b/kspread/kspread_doc.cc
@@ -205,7 +205,7 @@ Doc::Doc( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent,
d->dcop = 0;
d->isLoading = false;
- d->numOperations = 1; // don't start tqrepainting before the GUI is done...
+ d->numOperations = 1; // don't start repainting before the GUI is done...
d->undoLocked = 0;
d->commandHistory = new KoCommandHistory( actionCollection() );
@@ -2400,7 +2400,7 @@ void Doc::tqrepaint( EmbeddedObject *obj )
{
Canvas* canvas = ((View*)it.current())->canvasWidget();
if ( obj->sheet() == canvas->activeSheet() )
- canvas->tqrepaintObject( obj );
+ canvas->repaintObject( obj );
}
}
diff --git a/kspread/kspread_doc.h b/kspread/kspread_doc.h
index f4cca795..57f95d8e 100644
--- a/kspread/kspread_doc.h
+++ b/kspread/kspread_doc.h
@@ -547,7 +547,7 @@ public:
* - No cell calculation will be done (maybe there are exceptions, such
* as the goalseek operation needs to calculate values)
* During an operation, calls to Sheet::setRegionPaintDirty mark
- * regions as needing tqrepainted. Once the emitEndOperation function is
+ * regions as needing repainted. Once the emitEndOperation function is
* called, those regions will be painted all at once, values being calculated
* as necessary.
* Calls to begin/endOperation may be nested. Calcualation/painting will
diff --git a/kspread/kspread_sheet.cc b/kspread/kspread_sheet.cc
index ca69af15..70323124 100644
--- a/kspread/kspread_sheet.cc
+++ b/kspread/kspread_sheet.cc
@@ -6155,7 +6155,7 @@ KCommand *Sheet::moveObject(View *_view, double diffx, double diffy)
br.moveBy( doc()->zoomItX( diffx ), doc()->zoomItY( diffy ) );
br.moveBy( doc()->zoomItX( -canvas->xOffset() ), doc()->zoomItY( -canvas->yOffset() ) );
canvas->tqrepaint( br ); // Previous position
- canvas->tqrepaintObject( it.current() ); // New position
+ canvas->repaintObject( it.current() ); // New position
createCommand=true;
}
}
@@ -6191,7 +6191,7 @@ KCommand *Sheet::moveObject(View *_view,const KoPoint &_move,bool key)
_objects.append( it.current() );
canvas->tqrepaint( oldBoundingRect );
- canvas->tqrepaintObject( it.current() );
+ canvas->repaintObject( it.current() );
}
}
@@ -8083,7 +8083,7 @@ void Sheet::emit_updateRow( RowFormat *_format, int _row, bool tqrepaint )
if ( tqrepaint )
{
- //All the cells in this row, or below this row will need to be tqrepainted
+ //All the cells in this row, or below this row will need to be repainted
//So add that region of the sheet to the paint dirty list.
setRegionPaintDirty( TQRect( 0 , _row , KS_colMax , KS_rowMax) );
@@ -8104,7 +8104,7 @@ void Sheet::emit_updateColumn( ColumnFormat *_format, int _column )
if ( c->column() == _column )
c->setLayoutDirtyFlag( true );
- //All the cells in this column or to the right of it will need to be tqrepainted if the column
+ //All the cells in this column or to the right of it will need to be repainted if the column
//has been resized or hidden, so add that region of the sheet to the paint dirty list.
setRegionPaintDirty( TQRect( _column , 0 , KS_colMax , KS_rowMax) );
diff --git a/kspread/kspread_sheet.h b/kspread/kspread_sheet.h
index 08fc0fe0..1ba2e3f5 100644
--- a/kspread/kspread_sheet.h
+++ b/kspread/kspread_sheet.h
@@ -1083,17 +1083,17 @@ public:
void update();
/**
- * tqrepaints all visible cells
+ * repaints all visible cells
*/
void updateView();
/**
- * tqrepaints all visible cells in the given rect
+ * repaints all visible cells in the given rect
*/
void updateView( TQRect const & rect );
/**
- * tqrepaints all visible cells in the given rect
+ * repaints all visible cells in the given rect
*/
void updateView(Region*);
@@ -1120,7 +1120,7 @@ public:
/**
* set a region of the spreadsheet to be 'paint dirty' meaning it
- * needs tqrepainted. This is not a flag on the cell itself since quite
+ * needs repainted. This is not a flag on the cell itself since quite
* often this needs set on a default cell
*/
void setRegionPaintDirty(TQRect const & range);
@@ -1132,7 +1132,7 @@ public:
void clearPaintDirtyData();
/**
- * Test whether a cell needs tqrepainted
+ * Test whether a cell needs repainted
*/
bool cellIsPaintDirty(TQPoint const & cell) const;
diff --git a/kspread/kspread_sheetprint.cc b/kspread/kspread_sheetprint.cc
index e66e7b2f..de8d4a17 100644
--- a/kspread/kspread_sheetprint.cc
+++ b/kspread/kspread_sheetprint.cc
@@ -285,7 +285,7 @@ bool SheetPrint::print( TQPainter &painter, KPrinter *_printer )
m_uprintPages = page_list.count();
- //Cache all object so they only need to be tqrepainted once.
+ //Cache all object so they only need to be repainted once.
TQPtrListIterator<EmbeddedObject> itObject( m_pDoc->embeddedObjects() );
for ( ; itObject.current(); ++itObject )
{
@@ -1141,7 +1141,7 @@ void SheetPrint::setPaperLayout( float _leftBorder, float _topBorder,
// for( ;it.current(); ++it )
// {
// View *v = static_cast<View *>( it.current() );
- // We need to trigger the appropriate tqrepaintings in the cells near the
+ // We need to trigger the appropriate repaintings in the cells near the
// border of the page. The easiest way for this is to turn the borders
// off and on (or on and off if they were off).
// bool bBorderWasShown = v->activeSheet()->isShowPageBorders();
diff --git a/kspread/kspread_sheetprint.h b/kspread/kspread_sheetprint.h
index 99991f75..d0779eb5 100644
--- a/kspread/kspread_sheetprint.h
+++ b/kspread/kspread_sheetprint.h
@@ -153,7 +153,7 @@ public:
KoPageLayout paperLayout() const;
/**
- * Changes the paper tqlayout and tqrepaints the currently displayed Sheet.
+ * Changes the paper tqlayout and repaints the currently displayed Sheet.
*/
void setPaperLayout( float _leftBorder, float _topBorder, float _rightBorder, float _bottomBoder,
KoFormat _paper, KoOrientation orientation );
diff --git a/kspread/kspread_view.cc b/kspread/kspread_view.cc
index c0c21005..b667214f 100644
--- a/kspread/kspread_view.cc
+++ b/kspread/kspread_view.cc
@@ -1877,7 +1877,7 @@ View::~View()
d->canvas->endChoose();
d->activeSheet = 0; // set the active sheet to 0L so that when during destruction
- // of embedded child documents possible tqrepaints in Sheet are not
+ // of embedded child documents possible repaints in Sheet are not
// performed. The repains can happen if you delete an embedded document,
// which leads to an regionInvalidated() signal emission in KoView, which calls
// tqrepaint, etc.etc. :-) (Simon)
@@ -6941,7 +6941,7 @@ void View::slotUpdateView( Sheet * _sheet, const Region& region )
void View::slotUpdateView( EmbeddedObject *obj )
{
- d->canvas->tqrepaintObject( obj );
+ d->canvas->repaintObject( obj );
}
void View::slotUpdateHBorder( Sheet * _sheet )
diff --git a/kspread/kspread_view.h b/kspread/kspread_view.h
index 04efd164..f82912b3 100644
--- a/kspread/kspread_view.h
+++ b/kspread/kspread_view.h
@@ -322,7 +322,7 @@ public:
/**
* Mark all selected cells / regions of cells as 'dirty' (ie. requiring a tqrepaint)
- * They will be tqrepainted on the next call to paintUpdates()
+ * They will be repainted on the next call to paintUpdates()
*/
void markSelectionAsDirty();