summaryrefslogtreecommitdiff
path: root/src/gui/table.h
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.h
parentc2697fef772f84db637f55b7501361ea94ed66ee (diff)
downloadmana-client-6df16720da3ae3257636e000c10b62d0b99f752e.tar.gz
mana-client-6df16720da3ae3257636e000c10b62d0b99f752e.tar.bz2
mana-client-6df16720da3ae3257636e000c10b62d0b99f752e.tar.xz
mana-client-6df16720da3ae3257636e000c10b62d0b99f752e.zip
Fixed const-ness of TableModel related methods
Diffstat (limited to 'src/gui/table.h')
-rw-r--r--src/gui/table.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/gui/table.h b/src/gui/table.h
index 42fbab0e..4f3c29c6 100644
--- a/src/gui/table.h
+++ b/src/gui/table.h
@@ -70,13 +70,11 @@ public:
*/
void setModel(TableModel *m);
- const TableModel* getModel() {return mModel;}
-
void setSelected(int row, int column);
- int getSelectedRow();
+ int getSelectedRow() const;
- int getSelectedColumn();
+ int getSelectedColumn() const;
void setSelectedRow(int selected);
@@ -87,7 +85,7 @@ public:
void setWrappingEnabled(bool wrappingEnabled)
{mWrappingEnabled = wrappingEnabled;}
- gcn::Rectangle getChildrenArea(void);
+ gcn::Rectangle getChildrenArea() const;
/**
* Toggle whether to use linewise selection mode, in which the table selects
@@ -105,7 +103,7 @@ public:
// Inherited from Widget
virtual void draw(gcn::Graphics* graphics);
- virtual gcn::Widget *getWidgetAt(int x, int y);
+ virtual gcn::Widget *getWidgetAt(int x, int y) const;
virtual void moveToTop(gcn::Widget *child);
@@ -150,12 +148,12 @@ protected:
/** Installs all action listeners on inner widgets. */
virtual void installActionListeners();
- virtual int getRowHeight();
- virtual int getColumnWidth(int i);
+ virtual int getRowHeight() const;
+ virtual int getColumnWidth(int i) const;
private:
- int getRowForY(int y); // -1 on error
- int getColumnForX(int x); // -1 on error
+ int getRowForY(int y) const; // -1 on error
+ int getColumnForX(int x) const; // -1 on error
void recomputeDimensions();
bool mLinewiseMode;
bool mWrappingEnabled;