diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-25 23:42:57 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-25 23:42:57 +0100 |
commit | cd20fb3432498b8871401bdd65a143197e2a6538 (patch) | |
tree | 1edd3e20e3501de5315fa5bfc46b8673ad40d5dd /src/gui/popup.h | |
parent | 4ba8c80791c15c144d66e6a9b23e878d3313fa26 (diff) | |
download | mana-client-cd20fb3432498b8871401bdd65a143197e2a6538.tar.gz mana-client-cd20fb3432498b8871401bdd65a143197e2a6538.tar.bz2 mana-client-cd20fb3432498b8871401bdd65a143197e2a6538.tar.xz mana-client-cd20fb3432498b8871401bdd65a143197e2a6538.zip |
A host of code style fixes
Mostly putting & and * in the right place and making some getters const.
Diffstat (limited to 'src/gui/popup.h')
-rw-r--r-- | src/gui/popup.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/popup.h b/src/gui/popup.h index f2f5f49b..fcecf4d4 100644 --- a/src/gui/popup.h +++ b/src/gui/popup.h @@ -56,7 +56,7 @@ class Popup : public gcn::Container * a Popup will never go below its parent Window. * @param skin The location where the Popup's skin XML can be found. */ - Popup(const std::string& name = "", Window *parent = NULL, + Popup(const std::string &name = "", Window *parent = NULL, const std::string &skin = "graphics/gui/gui.xml"); /** @@ -87,42 +87,42 @@ class Popup : public gcn::Container /** * Sets the minimum width of the popup. */ - void setMinWidth(unsigned int width); + void setMinWidth(int width); /** * Sets the minimum height of the popup. */ - void setMinHeight(unsigned int height); + void setMinHeight(int height); /** * Sets the maximum width of the popup. */ - void setMaxWidth(unsigned int width); + void setMaxWidth(int width); /** * Sets the minimum height of the popup. */ - void setMaxHeight(unsigned int height); + void setMaxHeight(int height); /** * Gets the minimum width of the popup. */ - int getMinWidth() { return mMinWidth; } + int getMinWidth() const { return mMinWidth; } /** * Gets the minimum height of the popup. */ - int getMinHeight() { return mMinHeight; } + int getMinHeight() const { return mMinHeight; } /** * Gets the maximum width of the popup. */ - int getMaxWidth() { return mMaxWidth; } + int getMaxWidth() const { return mMaxWidth; } /** * Gets the minimum height of the popup. */ - int getMaxHeight() { return mMaxHeight; } + int getMaxHeight() const { return mMaxHeight; } /** * Gets the padding of the popup. The padding is the distance between @@ -140,14 +140,14 @@ class Popup : public gcn::Container * @param padding The padding of the popup. * @see getPadding */ - void setPadding(unsigned int padding) { mPadding = padding; } + void setPadding(int padding) { mPadding = padding; } /** * Returns the parent Window. * * @return The parent Window or <code>NULL</code> if there is none. */ - Window* getParentWindow() { return mParent; } + Window *getParentWindow() const { return mParent; } /** * Sets the name of the popup. This is only useful for debug purposes. @@ -157,7 +157,7 @@ class Popup : public gcn::Container /** * Returns the name of the popup. This is only useful for debug purposes. */ - const std::string& getPopupName() { return mPopupName; } + const std::string &getPopupName() const { return mPopupName; } /** * Schedule this popup for deletion. It will be deleted at the start @@ -179,7 +179,7 @@ class Popup : public gcn::Container int mMinHeight; /**< Minimum Popup height */ int mMaxWidth; /**< Maximum Popup width */ int mMaxHeight; /**< Maximum Popup height */ - unsigned int mPadding; /**< Holds the padding of the window. */ + int mPadding; /**< Holds the padding of the window. */ /** * The config listener that listens to changes relevant to all Popups. |