49 _(
"Money in bank: %s"),
" "))),
53 mWithdrawButton(
new Button(this,
_(
"Withdraw"),
"withdraw",
56 mDepositButton(
new Button(this,
_(
"Deposit"),
"deposit",
101 const std::string &eventId =
event.getId();
102 if (eventId ==
"deposit")
104 else if (eventId ==
"withdraw")
Net::BankHandler * bankHandler
void action(const ActionEvent &event)
void widgetShown(const Event &event)
IntTextField * mInputMoneyTextField
void bankMoneyChanged(const int money)
Widget * getSource() const
void setCaption(const std::string &caption)
virtual void deposit(const int money) const =0
virtual void check() const =0
virtual void withdraw(const int money) const =0
void registerWindowForReset(Window *const window)
ContainerPlacer getPlacer(const int x, const int y)
void setContentSize(int width, int height)
void reflowLayout(int w, int h)
void setWindowName(const std::string &name)
void enableVisibleSound(bool b)
void setCloseButton(const bool flag)
std::string formatCurrency(const int value)
SetupWindow * setupWindow
std::string strprintf(const char *const format,...)