40 Window(
_(
"Quit"), true, nullptr), mMyPointer(pointerToMe)
112 if (event.getId() ==
"ok")
138 const gcn::Key &key = keyEvent.getKey();
141 switch (key.getValue())
163 if ((*it)->isSelected())
173 if (it ==
mOptions.begin() && dir < 0)
181 (*it)->setSelected(
true);
static void setState(State state)
This class is a helper for adding widgets to nested tables in a window.
virtual void switchCharacter()=0
gcn::RadioButton * mSwitchAccountServer
void action(const gcn::ActionEvent &event) override
Called when receiving actions from the widgets.
std::vector< gcn::RadioButton * > mOptions
void placeOption(ContainerPlacer &place, gcn::RadioButton *option)
QuitDialog(QuitDialog **pointerToMe)
Constructor.
gcn::RadioButton * mForceQuit
void keyPressed(gcn::KeyEvent &keyEvent) override
gcn::RadioButton * mSwitchCharacter
gcn::RadioButton * mLogoutQuit
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.
ContainerPlacer getPlacer(int x, int y)
Returns a proxy for adding widgets in an inner table of the layout.
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 scheduleDelete()
Schedule this window for deletion.
CharHandler * getCharHandler()