18 #ifndef HEADER_GRAND_PRIX_EDITOR_SCREEN_HPP
19 #define HEADER_GRAND_PRIX_EDITOR_SCREEN_HPP
21 #include "guiengine/screen.hpp"
22 #include "race/grand_prix_data.hpp"
23 #include "states_screens/dialogs/message_dialog.hpp"
26 namespace GUIEngine {
class Widget;
class LabelWidget; }
45 void loadTrackList(
const std::string& gpname);
49 void setNewGPWithName(
const irr::core::stringw& newName);
68 const int playerID) OVERRIDE;
71 virtual void init() OVERRIDE;
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:94
A text field widget.
Definition: text_box_widget.hpp:53
Simple class that hold the data relevant to a 'grand_prix', aka.
Definition: grand_prix_data.hpp:37
GPGroupType
Used to classify GPs into groups.
Definition: grand_prix_data.hpp:47
screen where the user can edit his own grand prix
Definition: grand_prix_editor_screen.hpp:38
void onConfirm() OVERRIDE
Implement to be notified of dialog confirmed.
Definition: grand_prix_editor_screen.cpp:315
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: grand_prix_editor_screen.cpp:48
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: grand_prix_editor_screen.cpp:63
static bool validateName(GUIEngine::LabelWidget *, GUIEngine::TextBoxWidget *)
Global function to validate grand prix names.
Definition: grand_prix_editor_screen.cpp:348
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: grand_prix_editor_screen.cpp:77
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: grand_prix_editor_screen.cpp:148
Listener interface to get notified of whether the user chose to confirm or cancel.
Definition: message_dialog.hpp:39
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33