summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/skilldialog.cpp
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadManaVerse-747dc30f256606e28fd932a9626da7c328114036.tar.gz
ManaVerse-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
ManaVerse-747dc30f256606e28fd932a9626da7c328114036.tar.xz
ManaVerse-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp33
1 files changed, 28 insertions, 5 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index cb4d2e481..a6c01cbb5 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -63,6 +63,12 @@ class SkillEntry;
class SkillModel final : public gcn::ListModel
{
public:
+ SkillModel() :
+ mSkills(),
+ mVisibleSkills()
+ {
+ }
+
int getNumberOfElements()
{ return static_cast<int>(mVisibleSkills.size()); }
@@ -101,10 +107,9 @@ class SkillListBox final : public ListBox
mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
mTextColor(getThemeColor(Theme::TEXT)),
mTextPadding(mSkin ? mSkin->getOption("textPadding", 34) : 34),
- mSpacing(mSkin ? mSkin->getOption("spacing", 0) : 0)
+ mSpacing(mSkin ? mSkin->getOption("spacing", 0) : 0),
+ mRowHeight(getFont()->getHeight() * 2 + mSpacing + 2 * mPadding)
{
- mRowHeight = getFont()->getHeight() * 2
- + mSpacing + 2 * mPadding;
if (mRowHeight < 34)
mRowHeight = 34;
}
@@ -263,7 +268,9 @@ class SkillTab final : public Tab
SkillDialog::SkillDialog() :
Window(_("Skills"), false, nullptr, "skills.xml"),
gcn::ActionListener(),
+ mSkills(),
mTabs(new TabbedArea(this)),
+ mDeleteTabs(),
mPointsLabel(new Label(this, "0")),
mUseButton(new Button(this, _("Use"), "use", this)),
mIncreaseButton(new Button(this, _("Up"), "inc", this)),
@@ -692,8 +699,19 @@ void SkillDialog::playUpdateEffect(const int id)
}
SkillInfo::SkillInfo() :
- level(0), skillLevelWidth(0), id(0), modifiable(false),
- visible(false), model(nullptr), progress(0.0f), range(0)
+ level(0),
+ skillLevel(),
+ skillLevelWidth(0),
+ id(0),
+ modifiable(false),
+ visible(false),
+ model(nullptr),
+ skillExp(),
+ progress(0.0f),
+ range(0),
+ color(),
+ data(nullptr),
+ dataMap()
{
dataMap[0] = new SkillData();
data = dataMap[0];
@@ -778,7 +796,12 @@ SkillData *SkillInfo::getData1(const int lev)
}
SkillData::SkillData() :
+ name(),
+ shortName(),
+ dispName(),
+ description(),
icon(nullptr),
+ particle(),
soundHit("", 0),
soundMiss("", 0)
{