36 mCancelState(cancelState)
43 gcn::Label *label =
new Label(text);
44 auto *cancelButton =
new Button(
_(
"Cancel"),
"cancelButton",
this);
46 place(0, 0, progressIndicator);
static void setState(State state)
void action(const gcn::ActionEvent &) override
Called when the user presses Cancel.
ConnectionDialog(const std::string &text, State cancelState)
Constructor.
void draw(gcn::Graphics *graphics) override
LayoutCell & setHAlign(Alignment a)
Sets the horizontal alignment of the cell content.
A widget that indicates progress.
void center()
Positions the window in the center of it's parent.
virtual void setVisible(bool visible)
Overloads window setVisible by Guichan to allow sticky window handling.
void reflowLayout(int w=0, int h=0)
Computes the position of the widgets according to the current layout.
LayoutCell & place(int x, int y, gcn::Widget *, int w=1, int h=1)
Adds a widget to the window and sets it at given cell.
void setMinWidth(int width)
Sets the minimum width of the window.
void info(const char *log_text,...) LOG_PRINTF_ATTR