summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
commit5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch)
treed36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/widgets/popup.h
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadmv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz
mv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2
mv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz
mv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/popup.h')
-rw-r--r--src/gui/widgets/popup.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h
index 39ced1119..61aac98c1 100644
--- a/src/gui/widgets/popup.h
+++ b/src/gui/widgets/popup.h
@@ -68,7 +68,7 @@ class Popup : public Container, public gcn::MouseListener,
/**
* Sets the window container to be used by new popups.
*/
- static void setWindowContainer(WindowContainer *windowContainer);
+ static void setWindowContainer(WindowContainer *const windowContainer);
/**
* Draws the popup.
@@ -83,14 +83,14 @@ class Popup : public Container, public gcn::MouseListener,
/**
* Sets the location relative to the given widget.
*/
- void setLocationRelativeTo(gcn::Widget *widget);
+ void setLocationRelativeTo(gcn::Widget *const widget);
void mouseMoved(gcn::MouseEvent &event);
/**
* Sets the minimum width of the popup.
*/
- void setMinWidth(int width);
+ void setMinWidth(const int width);
int getMinWidth() const
{ return mMinWidth; }
@@ -98,7 +98,7 @@ class Popup : public Container, public gcn::MouseListener,
/**
* Sets the minimum height of the popup.
*/
- void setMinHeight(int height);
+ void setMinHeight(const int height);
int getMinHeight() const
{ return mMinHeight; }
@@ -106,7 +106,7 @@ class Popup : public Container, public gcn::MouseListener,
/**
* Sets the maximum width of the popup.
*/
- void setMaxWidth(int width);
+ void setMaxWidth(const int width);
int getMaxWidth() const
{ return mMaxWidth; }
@@ -114,7 +114,7 @@ class Popup : public Container, public gcn::MouseListener,
/**
* Sets the minimum height of the popup.
*/
- void setMaxHeight(int height);
+ void setMaxHeight(const int height);
int getMaxHeight() const
{ return mMaxHeight; }
@@ -157,7 +157,7 @@ class Popup : public Container, public gcn::MouseListener,
* the popup. Prevents the popup from extending off-screen, if
* possible.
*/
- void position(int x, int y);
+ void position(const int x, const int y);
void hide();