summaryrefslogtreecommitdiff
path: root/src/gui/widgets/guitable.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-03 20:08:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-03 20:08:44 +0300
commit0bc270da9261a36527261432780ea30e8d39aff7 (patch)
tree20eaef49174cfe0fcf6dfab4b9c96bb439cd61ea /src/gui/widgets/guitable.h
parentf0236e559472c3f963c92c9159f87c8b52830246 (diff)
downloadmv-0bc270da9261a36527261432780ea30e8d39aff7.tar.gz
mv-0bc270da9261a36527261432780ea30e8d39aff7.tar.bz2
mv-0bc270da9261a36527261432780ea30e8d39aff7.tar.xz
mv-0bc270da9261a36527261432780ea30e8d39aff7.zip
improve guitable.
Diffstat (limited to 'src/gui/widgets/guitable.h')
-rw-r--r--src/gui/widgets/guitable.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h
index 37b44410b..b5c8883c3 100644
--- a/src/gui/widgets/guitable.h
+++ b/src/gui/widgets/guitable.h
@@ -78,15 +78,15 @@ public:
*/
void setModel(TableModel *const m);
- void setSelected(int row, int column);
+ void setSelected(const int row, const int column);
int getSelectedRow() const A_WARN_UNUSED;
int getSelectedColumn() const A_WARN_UNUSED;
- void setSelectedRow(int selected);
+ void setSelectedRow(const int selected);
- void setSelectedColumn(int selected);
+ void setSelectedColumn(const int selected);
bool isWrappingEnabled() const A_WARN_UNUSED
{ return mWrappingEnabled; }
@@ -110,18 +110,18 @@ public:
void setLinewiseSelection(bool linewise);
// Inherited from Widget
- virtual void draw(gcn::Graphics* graphics) override;
+ void draw(gcn::Graphics* graphics) override;
- virtual gcn::Widget *getWidgetAt(int x, int y) override A_WARN_UNUSED;
+ gcn::Widget *getWidgetAt(int x, int y) override A_WARN_UNUSED;
- virtual void moveToTop(gcn::Widget *child) override;
+ void moveToTop(gcn::Widget *child) override;
- virtual void moveToBottom(gcn::Widget *child) override;
+ void moveToBottom(gcn::Widget *child) override;
- virtual void _setFocusHandler(gcn::FocusHandler* focusHandler) override;
+ void _setFocusHandler(gcn::FocusHandler* focusHandler) override;
// Inherited from KeyListener
- virtual void keyPressed(gcn::KeyEvent& keyEvent) override;
+ void keyPressed(gcn::KeyEvent& keyEvent) override;
/**
* Sets the table to be opaque, that is sets the table
@@ -129,7 +129,7 @@ public:
*
* @param opaque True if the table should be opaque, false otherwise.
*/
- virtual void setOpaque(bool opaque)
+ void setOpaque(bool opaque)
{ mOpaque = opaque; }
/**
@@ -138,31 +138,32 @@ public:
*
* @return True if the table is opaque, false otherwise.
*/
- virtual bool isOpaque() const A_WARN_UNUSED
+ bool isOpaque() const A_WARN_UNUSED
{ return mOpaque; }
// Inherited from MouseListener
- virtual void mousePressed(gcn::MouseEvent& mouseEvent) override;
+ void mousePressed(gcn::MouseEvent& mouseEvent) override;
- virtual void mouseWheelMovedUp(gcn::MouseEvent& mouseEvent) override;
+ void mouseWheelMovedUp(gcn::MouseEvent& mouseEvent) override;
- virtual void mouseWheelMovedDown(gcn::MouseEvent& mouseEvent) override;
+ void mouseWheelMovedDown(gcn::MouseEvent& mouseEvent) override;
- virtual void mouseDragged(gcn::MouseEvent& mouseEvent) override;
+ void mouseDragged(gcn::MouseEvent& mouseEvent) override;
// Constraints inherited from TableModelListener
- virtual void modelUpdated(bool) override;
+ void modelUpdated(bool) override;
void requestFocus();
protected:
/** Frees all action listeners on inner widgets. */
- virtual void uninstallActionListeners();
+ void uninstallActionListeners();
/** Installs all action listeners on inner widgets. */
- virtual void installActionListeners();
+ void installActionListeners();
- virtual int getRowHeight() const A_WARN_UNUSED;
- virtual int getColumnWidth(int i) const A_WARN_UNUSED;
+ int getRowHeight() const A_WARN_UNUSED;
+
+ int getColumnWidth(int i) const A_WARN_UNUSED;
private:
int getRowForY(int y) const A_WARN_UNUSED; // -1 on error