summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/statuswindow.h
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadmanaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/gui/statuswindow.h')
-rw-r--r--src/gui/statuswindow.h35
1 files changed, 20 insertions, 15 deletions
diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h
index 936ea68eb..4002ee741 100644
--- a/src/gui/statuswindow.h
+++ b/src/gui/statuswindow.h
@@ -59,31 +59,36 @@ class StatusWindow : public Window,
void processEvent(Channels channel, const DepricatedEvent &event);
- void setPointsNeeded(int id, int needed);
+ void setPointsNeeded(const int id, const int needed);
- void addAttribute(int id, const std::string &name, bool modifiable,
+ void addAttribute(const int id, const std::string &name,
+ const bool modifiable,
const std::string &description);
- static void updateHPBar(ProgressBar *bar, bool showMax = false);
+ static void updateHPBar(ProgressBar *const bar,
+ const bool showMax = false);
static void updateMPBar(ProgressBar *bar, bool showMax = false);
- static void updateJobBar(ProgressBar *bar, bool percent = true);
- static void updateXPBar(ProgressBar *bar, bool percent = true);
- static void updateWeightBar(ProgressBar *bar);
- static void updateInvSlotsBar(ProgressBar *bar);
- static void updateMoneyBar(ProgressBar *bar);
- static void updateArrowsBar(ProgressBar *bar);
- static void updateStatusBar(ProgressBar *bar, bool percent = true);
- static void updateProgressBar(ProgressBar *bar, int value, int max,
- bool percent);
- void updateProgressBar(ProgressBar *bar, int id,
- bool percent = true);
+ static void updateJobBar(ProgressBar *const bar,
+ const bool percent = true);
+ static void updateXPBar(ProgressBar *const bar,
+ const bool percent = true);
+ static void updateWeightBar(ProgressBar *const bar);
+ static void updateInvSlotsBar(ProgressBar *const bar);
+ static void updateMoneyBar(ProgressBar *const bar);
+ static void updateArrowsBar(ProgressBar *const bar);
+ static void updateStatusBar(ProgressBar *const bar,
+ const bool percent = true);
+ static void updateProgressBar(ProgressBar *const bar, const int value,
+ const int max, const bool percent);
+ void updateProgressBar(ProgressBar *const bar, const int id,
+ const bool percent = true) const;
void action(const gcn::ActionEvent &event);
void clearAttributes();
private:
- static std::string translateLetter(const char* letters);
+ static std::string translateLetter(const char *const letters);
static std::string translateLetter2(std::string letters);