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" 40 TracksAndGPScreen() : Screen(
"tracks_and_gp.stkgui") {}
43 void buildTrackList();
45 std::deque<std::string> m_random_track_list;
54 const std::string& name,
55 const int playerID) OVERRIDE;
58 virtual void init() OVERRIDE;
61 virtual void beforeAddingWidget() OVERRIDE;
71 void setFocusOnTrack(
const std::string& trackName);
72 void setFocusOnGP(
const std::string& gpName);
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:31
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: tracks_and_gp_screen.hpp:50
A text field widget.
Definition: text_box_widget.hpp:52
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
virtual void onTextUpdated() OVERRIDE
Rebuild the list of tracks based on search text.
Definition: tracks_and_gp_screen.hpp:64
screen where the user can select a track or grand prix
Definition: tracks_and_gp_screen.hpp:31
Represents a single GUI screen.
Definition: screen.hpp:96
Definition: text_box_widget.hpp:41
Declares a class to be a singleton.
Definition: screen.hpp:58