59 mIsMagicCommand(command !=
nullptr ?
70 mSymbolLabel(
new Label(this,
_(
"Symbol:"))),
74 mCommandLabel(
new Label(this,
_(
"Command:"))),
78 mCommentLabel(
new Label(this,
_(
"Comment:"))),
83 mTypeLabel(
new Label(this,
_(
"Target Type:"))),
96 mMagicLvlLabel(
new Label(this,
_(
"Magic level:"))),
100 mSchoolLabel(
new Label(this,
_(
"Magic School:"))),
101 mSchoolDropDown(
new DropDown(this, mMagicSchoolModel,
104 mSchoolLvlLabel(
new Label(this,
_(
"School level:"))),
113 mEnabledKeyboard(
keyboard.isEnabled())
156 if (command !=
nullptr)
257 const std::string &eventId =
event.getId();
258 if (eventId ==
"save")
263 else if (eventId ==
"cancel")
267 else if (eventId ==
"delete")
273 else if (eventId ==
"magic")
278 else if (eventId ==
"other")
std::string getSelectedString() const
void setSelected(int selected)
void setSelectedString(const std::string &str)
void setValue(const int value)
void setRange(const int minimum, const int maximum)
void setEnabled(const bool flag)
TextField * mCommentTextField
IntTextField * mManaField
TargetTypeModel * mTargetTypeModel
MagicSchoolModel * mMagicSchoolModel
DropDown * mSchoolDropDown
void action(const ActionEvent &event)
IntTextField * mMagicLvlField
TextField * mSymbolTextField
IntTextField * mSchoolLvlField
void showControls(const Visible show)
TextCommandEditor(TextCommand *const command)
TextField * mCommandTextField
unsigned getBaseLvl() const
unsigned int getMana() const
std::string getCommand() const
void setSchoolLvl(const unsigned int schoolLvl)
unsigned getSchoolLvl() const
void setBaseLvl(const unsigned int baseLvl)
void setSchool(const MagicSchoolT school)
MagicSchoolT getSchool() const
void setTargetType(const CommandTargetT targetType)
void setCommand(const std::string &command)
std::string getSymbol() const
void setComment(const std::string &comment)
TextCommandTypeT getCommandType() const
void setIcon(const std::string &icon)
std::string getComment() const
CommandTargetT getTargetType() const
void setSymbol(const std::string &symbol)
std::string getIcon() const
void setCommandType(const TextCommandTypeT commandType)
void setMana(const unsigned int mana)
const std::string & getText() const
void setText(const std::string &text)
ContainerPlacer getPlacer(const int x, const int y)
virtual void setVisible(Visible visible)
void reflowLayout(int w, int h)
void setWindowName(const std::string &name)
void enableVisibleSound(bool b)
virtual void scheduleDelete()
CommandTarget ::T CommandTargetT
const bool LoseFocusOnTab_true
MagicSchool ::T MagicSchoolT
SpellManager * spellManager
const unsigned int MAGIC_START_ID