66 mSubjectLabel(
new Label(this,
_(
"Subject:"))),
68 mMoneyLabel(
new Label(this,
_(
"Money:"))),
72 mMessageLabel(
new Label(this,
_(
"Message:"))),
82 settings.enableNewMailSystem ? -1 : 1)),
87 "mailedit_listbackground.xml")),
88 mUseMail2(
settings.enableNewMailSystem)
142 const std::string &eventId =
event.getId();
143 if (eventId ==
"close")
147 else if (eventId ==
"send")
151 else if (eventId ==
"add")
219 subject.append(
_(
"empty subject"));
233 if (tempItem !=
nullptr)
#define fromBool(val, name)
Widget * getSource() const
Item * getSelectedItem() const
Item * getItem(const int index) const
Item * findItem(const int itemId, const ItemColor color) const
int addItem(const int id, const ItemTypeT type, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment, const Equipped equipped)
static void showWindow(const ItemAmountWindowUsageT usage, Window *const parent, Item *const item, int maxRange, const int tag)
uint8_t getRefine() const
Favorite getFavorite() const
ItemColor getColor() const
Identified getIdentified() const
ItemTypeT getType() const
Damaged getDamaged() const
void focusLost(const Event &event)
void addItem(const Item *const item, const int amount)
ScrollArea * mItemScrollArea
Inventory * getInventory() const
void setMessage(const std::string &str)
IntTextField * mMoneyField
TextField * mMessageField
void setSubject(const std::string &str)
ItemContainer * mItemContainer
TextField * mSubjectField
void action(const ActionEvent &event)
void setTo(const std::string &str)
virtual std::string getCheckedName() const =0
virtual void queueCheckName(const MailQueueTypeT type, const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const =0
virtual void sendMail(const std::string &to, const std::string &title, const std::string &body, const int64_t &money) const =0
virtual void cancelWriteMail() const =0
virtual void setAttachMoney(const int money) const =0
virtual void send(const std::string &name, const std::string &title, std::string message) const =0
virtual void setAttach(const int index, const int amount) const =0
const std::string & getText() const
void setText(const std::string &text)
void setSaveVisible(const bool save)
void setResizable(const bool resize)
ContainerPlacer getPlacer(const int x, const int y)
virtual void setVisible(Visible visible)
void setWindowName(const std::string &name)
void setMinHeight(const int height)
void setMinWidth(const int width)
void enableVisibleSound(bool b)
void setCloseButton(const bool flag)
virtual void scheduleDelete()
void setStickyButtonLock(const bool sticky)
const bool Equipped_false
const bool ForceQuantity_false
InventoryWindow * inventoryWindow
const ItemColor ItemColor_one
const bool LoseFocusOnTab_true
Net::Mail2Handler * mail2Handler
MailEditWindow * mailEditWindow
Net::MailHandler * mailHandler
Inventory * getInventory()
const bool ShowEmptyRows_false