summaryrefslogtreecommitdiffstats
path: root/chalk
diff options
context:
space:
mode:
Diffstat (limited to 'chalk')
-rw-r--r--chalk/colorspaces/wetsticky/ws/canvas.c28
-rw-r--r--chalk/colorspaces/wetsticky/ws/canvas.h6
-rw-r--r--chalk/colorspaces/wetsticky/ws/engine.c2
-rw-r--r--chalk/colorspaces/wetsticky/ws/engine3.c2
-rw-r--r--chalk/ui/imageviewer.cc2
-rw-r--r--chalk/ui/kis_view.cc2
-rw-r--r--chalk/ui/layerlist.cpp2
7 files changed, 22 insertions, 22 deletions
diff --git a/chalk/colorspaces/wetsticky/ws/canvas.c b/chalk/colorspaces/wetsticky/ws/canvas.c
index 77cfa17d..d6940294 100644
--- a/chalk/colorspaces/wetsticky/ws/canvas.c
+++ b/chalk/colorspaces/wetsticky/ws/canvas.c
@@ -35,14 +35,14 @@ CELL canvas[CANVAS_WIDTH][CANVAS_HEIGHT];
and are removed by the next_cell_for_tqrepaint() function. The
pointer to the current tail of the list is updated by side-effect. */
-static POINT need_tqrepainting[REDRAW_LIMIT];
+static POINT need_repainting[REDRAW_LIMIT];
static int next_free = 0;
static int next_to_tqrepaint = 0;
/* *********************************************************************** */
-int number_of_tqrepaints_needed()
-/* Returns the number of cells that need to be tqrepainted. */
+int number_of_repaints_needed()
+/* Returns the number of cells that need to be repainted. */
{
return (next_free);
@@ -53,7 +53,7 @@ int number_of_tqrepaints_needed()
void need_to_tqrepaint(point)
/* The cell at this location needs to be redrawn since it has
been altered. Scan the list to see if it is already
- scheduled for a tqrepainting operation and only add it if
+ scheduled for a repainting operation and only add it if
it is not there. */
POINT point;
@@ -70,27 +70,27 @@ POINT point;
/* Check whether this point is already on the list. */
for (k=0; k < next_free; k++) {
- if ((need_tqrepainting[k].x == point.x) &&
- (need_tqrepainting[k].y == point.y)) break;
+ if ((need_repainting[k].x == point.x) &&
+ (need_repainting[k].y == point.y)) break;
}
if (k < next_free) return; /* Already in the list. */
/* Add this new cell address to the end of the list. */
- need_tqrepainting[next_free].x = point.x;
- need_tqrepainting[next_free].y = point.y;
+ need_repainting[next_free].x = point.x;
+ need_repainting[next_free].y = point.y;
next_free++;
}
/* *********************************************************************** */
void next_cell_for_tqrepaint(cell, locus)
-/* This routine returns the next cell to be tqrepainted, together with its
+/* This routine returns the next cell to be repainted, together with its
location on the canvas. This is determined by taking the next point
- from the need_tqrepainting list and accessing its cell. If the list is
+ from the need_repainting list and accessing its cell. If the list is
empty then return NIL.
- Note that the tqrepainting operation will clear out the list before
+ Note that the repainting operation will clear out the list before
any other new positions are added. */
CELL_PTR *cell;
@@ -103,9 +103,9 @@ void next_cell_for_tqrepaint(cell, locus)
return;
}
- *(cell) = get_cell(need_tqrepainting[next_to_tqrepaint]);
- locus->x = need_tqrepainting[next_to_tqrepaint].x;
- locus->y = need_tqrepainting[next_to_tqrepaint].y;
+ *(cell) = get_cell(need_repainting[next_to_tqrepaint]);
+ locus->x = need_repainting[next_to_tqrepaint].x;
+ locus->y = need_repainting[next_to_tqrepaint].y;
next_to_tqrepaint++;
}
diff --git a/chalk/colorspaces/wetsticky/ws/canvas.h b/chalk/colorspaces/wetsticky/ws/canvas.h
index c2f2bcbf..57453e7b 100644
--- a/chalk/colorspaces/wetsticky/ws/canvas.h
+++ b/chalk/colorspaces/wetsticky/ws/canvas.h
@@ -19,11 +19,11 @@ Wet and Sticky is free software; you can redistribute it and/or modify it under
*/
-extern int number_of_tqrepaints_needed();
-/* Returns the number of cells needing to tqrepainted. */
+extern int number_of_repaints_needed();
+/* Returns the number of cells needing to repainted. */
extern void need_to_tqrepaint (/* POINT */);
-/* Requests that the cell at the given point be tqrepainted
+/* Requests that the cell at the given point be repainted
at the next update as it has been modified. */
extern void next_cell_for_tqrepaint (/* *CELL_PTR, POINT_PTR */);
diff --git a/chalk/colorspaces/wetsticky/ws/engine.c b/chalk/colorspaces/wetsticky/ws/engine.c
index 2fb4917e..b3855bda 100644
--- a/chalk/colorspaces/wetsticky/ws/engine.c
+++ b/chalk/colorspaces/wetsticky/ws/engine.c
@@ -122,7 +122,7 @@ void donate_paint(source, srcLocus, amount, dest, destLocus)
to the destination cell. The destination cell must mix this
new paint with its existing paint to yield a new paint.
This routine is also responsible for recording which cells
- have been updated and so need tqrepainting.
+ have been updated and so need repainting.
A special case is recognised where the destination has not yet
had any paint applied. This causes the donated paint to become
diff --git a/chalk/colorspaces/wetsticky/ws/engine3.c b/chalk/colorspaces/wetsticky/ws/engine3.c
index 9fd274cd..fceb0c05 100644
--- a/chalk/colorspaces/wetsticky/ws/engine3.c
+++ b/chalk/colorspaces/wetsticky/ws/engine3.c
@@ -122,7 +122,7 @@ void donate_paint(source, srcLocus, amount, dest, destLocus)
to the destination cell. The destination cell must mix this
new paint with its existing paint to yield a new paint.
This routine is also responsible for recording which cells
- have been updated and so need tqrepainting.
+ have been updated and so need repainting.
A special case is recognised where the destination has not yet
had any paint applied. This causes the donated paint to become
diff --git a/chalk/ui/imageviewer.cc b/chalk/ui/imageviewer.cc
index b6d94ed9..cfe6905d 100644
--- a/chalk/ui/imageviewer.cc
+++ b/chalk/ui/imageviewer.cc
@@ -45,7 +45,7 @@ void ImageViewer::setImage(TQImage & image)
m_image = TQPixmap(image);
m_label->setPixmap(m_image);
resizeContents( m_image.width(), m_image.height() );
- tqrepaintContents(false);
+ repaintContents(false);
}
void ImageViewer::contentsMousePressEvent(TQMouseEvent *event)
diff --git a/chalk/ui/kis_view.cc b/chalk/ui/kis_view.cc
index a146ddcb..61966928 100644
--- a/chalk/ui/kis_view.cc
+++ b/chalk/ui/kis_view.cc
@@ -2236,7 +2236,7 @@ void KisView::paintToolOverlay(const TQRegion& region)
gc.setClipRegion(region);
gc.setClipping(true);
- // Prevent endless loop if the tool needs to have the canvas tqrepainted
+ // Prevent endless loop if the tool needs to have the canvas repainted
m_toolIsPainting = true;
m_toolManager->currentTool()->paint(gc, region.boundingRect());
m_toolIsPainting = false;
diff --git a/chalk/ui/layerlist.cpp b/chalk/ui/layerlist.cpp
index 976ec84d..886b27e4 100644
--- a/chalk/ui/layerlist.cpp
+++ b/chalk/ui/layerlist.cpp
@@ -1316,7 +1316,7 @@ void LayerItem::setSelected( bool selected )
LayerItem *LayerList::firstChild() const { return static_cast<LayerItem*>( super::firstChild() ); }
LayerItem *LayerList::lastChild() const { return static_cast<LayerItem*>( super::lastChild() ); }
LayerList *LayerItem::listView() const { return static_cast<LayerList*>( super::listView() ); }
-void LayerItem::update() const { listView()->tqrepaintItem( this ); }
+void LayerItem::update() const { listView()->repaintItem( this ); }
LayerItem *LayerItem::firstChild() const { return static_cast<LayerItem*>( super::firstChild() ); }
LayerItem *LayerItem::nextSibling() const { return static_cast<LayerItem*>( super::nextSibling() ); }
LayerItem *LayerItem::tqparent() const { return static_cast<LayerItem*>( super::tqparent() ); }