Skip to content

Commit 7d2b117

Browse files
Rename Grid::moveTo to Grid::moveCursorTo
1 parent 0283477 commit 7d2b117

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

model/grid.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace minsky
8282
case right: offset+=colWidth-currentCell.width(); break;
8383
case centre: offset+=0.5*(colWidth-currentCell.width()); break;
8484
}
85-
moveTo(x+offset+0.5*padx,y);
85+
moveCursorTo(x+offset+0.5*padx,y);
8686
currentCell.show();
8787
colWidth=std::max(colWidth, currentCell.width()+padx);
8888
y=bottomRowMargin[row];

model/grid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace minsky
4343
class Grid: public JustificationStruct
4444
{
4545
/// move current cursor to \a x,y
46-
virtual void moveTo(double x, double y)=0;
46+
virtual void moveCursorTo(double x, double y)=0;
4747
CLASSDESC_ACCESS(Grid);
4848
public:
4949
virtual ~Grid()=default;

model/itemTab.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace minsky
6161

6262
ecolab::Pango& cell(unsigned row, unsigned col) override;
6363

64-
void moveTo(double x, double y) override {
64+
void moveCursorTo(double x, double y) override {
6565
if (surface.get())
6666
cairo_move_to(surface->cairo(),x,y);
6767
}

model/variablePane.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace minsky
103103
return surface.get();
104104
}
105105

106-
void VariablePane::moveTo(double x, double y)
106+
void VariablePane::moveCursorTo(double x, double y)
107107
{
108108
if (surface.get())
109109
{

model/variablePane.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace minsky
6868
unsigned numRows() const override {return m_numRows;}
6969
unsigned numCols() const override {return m_numCols;}
7070
bool evenHeight() const override {return false;}
71-
void moveTo(double,double) override;
71+
void moveCursorTo(double,double) override;
7272
void mouseDown(float,float) override;
7373
void mouseUp(float,float) override;
7474
void mouseMove(float,float) override;

0 commit comments

Comments
 (0)