18#ifndef HEADER_TRACKS_AND_GP_SCREEN_HPP
19#define HEADER_TRACKS_AND_GP_SCREEN_HPP
21#include "guiengine/screen.hpp"
22#include "guiengine/widgets/text_box_widget.hpp"
45 std::deque<std::string> m_random_track_list;
54 const std::string& name,
55 const int playerID) OVERRIDE;
58 virtual void init() OVERRIDE;
71 void setFocusOnTrack(
const std::string& trackName);
72 void setFocusOnGP(
const std::string& gpName);
Definition: text_box_widget.hpp:42
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
Screen(bool pause_race=true)
Creates a dummy incomplete object; only use to override behaviour in sub-class.
Definition: screen.cpp:68
A text field widget.
Definition: text_box_widget.hpp:53
virtual EventPropagation focused(const int playerID)
override in children if you need to know when the widget is focused.
Definition: text_box_widget.cpp:177
screen where the user can select a track or grand prix
Definition: tracks_and_gp_screen.hpp:34
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: tracks_and_gp_screen.cpp:49
void buildTrackList()
adds the tracks from the current track group into the tracks ribbon
Definition: tracks_and_gp_screen.cpp:254
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: tracks_and_gp_screen.cpp:139
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: tracks_and_gp_screen.cpp:178
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: tracks_and_gp_screen.hpp:50
virtual void onTextUpdated() OVERRIDE
Rebuild the list of tracks based on search text.
Definition: tracks_and_gp_screen.hpp:64
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33