39 const std::string &
restrict soundEvent,
43 Window(title, modal, parent,
"confirm.xml"),
62 const std::string &
restrict soundEvent,
66 Window(title, modal, parent,
"confirm.xml"),
94 this,
_(
"Ignore"),
"ignore",
BUTTON_SKIN,
this) :
nullptr;
100 if (ignoreButton !=
nullptr)
101 inWidth += ignoreButton->
getWidth();
104 const int height = numRows * fontHeight;
112 int windowWidth = width;
113 if (windowWidth < mTextBox->
getMinWidth() + fontHeight)
118 height + fontHeight + noButton->
getHeight());
121 const int buttonPadding =
getOption(
"buttonPadding", 8);
122 yesButton->
setPosition((width - inWidth) / 2, height + buttonPadding);
124 + (2 *
mPadding), height + buttonPadding);
125 if (ignoreButton !=
nullptr)
128 + (2 *
mPadding), height + buttonPadding);
135 if (
mIgnore && (ignoreButton !=
nullptr))
const std::string & getId() const
virtual void add(Widget *const widget)
ConfirmDialog(const std::string &title, const std::string &msg, const std::string &soundEvent, const bool ignore, const Modal modal, Window *const parent)
void action(const ActionEvent &event)
int getWidth(const std::string &text) const
void playGuiSound(const std::string &name)
void setEditable(const bool editable)
void setOpaque(const Opaque opaque)
unsigned int getNumberOfRows() const
void setTextWrapped(const std::string &text, const int minDimension)
virtual void setVisible(Visible visible)
void setContentSize(int width, int height)
int getOption(const std::string &name, const int def) const
virtual void scheduleDelete()
const std::string & getCaption() const
bool msg(InputEvent &event)
SoundManager soundManager