76 worldsScroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
105 if (event.getId() ==
"world")
115 else if (event.getId() ==
"login")
123 gcn::Key key = keyEvent.getKey();
static void setState(State state)
void setRowHeight(int n, int h)
LayoutCell & setPadding(int p)
Sets the padding around the cell content.
A list box, meant to be used inside a scroll area.
virtual void chooseServer(unsigned int server)=0
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.
Layout & getLayout()
Gets the layout handler for this window.
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.
The list model for the server list.
std::string getElementAt(int i) override
WorldListModel(Worlds worlds)
int getNumberOfElements() override
void action(const gcn::ActionEvent &event) override
Called when receiving actions from the widgets.
gcn::Button * mChangeLoginButton
void keyPressed(gcn::KeyEvent &keyEvent) override
~WorldSelectDialog() override
WorldSelectDialog(Worlds worlds)
void mouseClicked(gcn::MouseEvent &mouseEvent) override
std::unique_ptr< WorldListModel > mWorldListModel
gcn::ListBox * mWorldList
gcn::Button * mChooseWorld
bool isDoubleClick(int selected)
Returns whether this call and the last call were done for the same selected index and within a short ...
@ STATE_WORLD_SELECT_ATTEMPT
LoginHandler * getLoginHandler()
std::string toString(const T &arg)
Converts the given value to a string using std::stringstream.
std::vector< WorldInfo * > Worlds