summaryrefslogtreecommitdiff
path: root/src/gui/table.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 20:23:25 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 20:23:25 +0200
commit6df16720da3ae3257636e000c10b62d0b99f752e (patch)
tree5fed84d7d00d2632335fb455e1c78440dd6cb69a /src/gui/table.cpp
parentc2697fef772f84db637f55b7501361ea94ed66ee (diff)
downloadmana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.gz
mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.bz2
mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.xz
mana-6df16720da3ae3257636e000c10b62d0b99f752e.zip
Fixed const-ness of TableModel related methods
Diffstat (limited to 'src/gui/table.cpp')
-rw-r--r--src/gui/table.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/table.cpp b/src/gui/table.cpp
index c25856a2..995c393c 100644
--- a/src/gui/table.cpp
+++ b/src/gui/table.cpp
@@ -154,12 +154,12 @@ void GuiTable::setSelected(int row, int column)
mSelectedRow = row;
}
-int GuiTable::getSelectedRow()
+int GuiTable::getSelectedRow() const
{
return mSelectedRow;
}
-int GuiTable::getSelectedColumn()
+int GuiTable::getSelectedColumn() const
{
return mSelectedColumn;
}
@@ -169,7 +169,7 @@ void GuiTable::setLinewiseSelection(bool linewise)
mLinewiseMode = linewise;
}
-int GuiTable::getRowHeight()
+int GuiTable::getRowHeight() const
{
if (mModel)
return mModel->getRowHeight() + 1; // border
@@ -177,7 +177,7 @@ int GuiTable::getRowHeight()
return 0;
}
-int GuiTable::getColumnWidth(int i)
+int GuiTable::getColumnWidth(int i) const
{
if (mModel)
return mModel->getColumnWidth(i) + 1; // border
@@ -238,7 +238,7 @@ void GuiTable::setSelectedColumn(int selected)
}
}
-void GuiTable::uninstallActionListeners(void)
+void GuiTable::uninstallActionListeners()
{
delete_all(mActionListeners);
mActionListeners.clear();
@@ -368,7 +368,7 @@ void GuiTable::moveToBottom(gcn::Widget *widget)
mTopWidget = NULL;
}
-gcn::Rectangle GuiTable::getChildrenArea()
+gcn::Rectangle GuiTable::getChildrenArea() const
{
return gcn::Rectangle(0, 0, getWidth(), getHeight());
}
@@ -478,7 +478,7 @@ void GuiTable::modelUpdated(bool completed)
}
}
-gcn::Widget *GuiTable::getWidgetAt(int x, int y)
+gcn::Widget *GuiTable::getWidgetAt(int x, int y) const
{
int row = getRowForY(y);
int column = getColumnForX(x);
@@ -498,7 +498,7 @@ gcn::Widget *GuiTable::getWidgetAt(int x, int y)
return NULL;
}
-int GuiTable::getRowForY(int y)
+int GuiTable::getRowForY(int y) const
{
int row = -1;
@@ -511,7 +511,7 @@ int GuiTable::getRowForY(int y)
return row;
}
-int GuiTable::getColumnForX(int x)
+int GuiTable::getColumnForX(int x) const
{
int column;
int delta = 0;