19 #ifndef OPENXCOM_LISTGAMESSTATE_H
20 #define OPENXCOM_LISTGAMESSTATE_H
22 #include "../Engine/State.h"
23 #include "OptionsBaseState.h"
26 #include "../Savegame/SavedGame.h"
27 #include "../Engine/Options.h"
47 Text *_txtTitle, *_txtName, *_txtDate, *_txtDelete, *_txtDetails;
50 OptionsOrigin _origin;
52 std::vector<SaveInfo> _saves;
54 bool _autoquick, _sortable;
Container for all the information associated with a given user action, like mouse clicks,...
Definition: Action.h:35
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:45
Base class for saved game screens which provides the common layout and listing.
Definition: ListGamesState.h:43
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: ListGamesState.cpp:276
ListGamesState(Game *game, OptionsOrigin origin, int firstValidRow, bool autoquick)
Creates the Saved Game state.
Definition: ListGamesState.cpp:87
void disableSort()
disables the sort buttons.
Definition: ListGamesState.cpp:361
void sortList(SaveSort sort)
Sorts the savegame list.
Definition: ListGamesState.cpp:234
virtual ~ListGamesState()
Cleans up the Saved Game state.
Definition: ListGamesState.cpp:176
void lstSavesMouseOver(Action *action)
Handler for moving the mouse over a list item.
Definition: ListGamesState.cpp:285
void lstSavesMouseOut(Action *action)
Handler for moving the mouse outside the list borders.
Definition: ListGamesState.cpp:300
void sortNameClick(Action *action)
Handler for clicking the Name arrow.
Definition: ListGamesState.cpp:321
virtual void updateList()
Updates the savegame list.
Definition: ListGamesState.cpp:258
void init()
Sets up the saves list.
Definition: ListGamesState.cpp:184
virtual void lstSavesPress(Action *action)
Handler for clicking the Saves list.
Definition: ListGamesState.cpp:309
void sortDateClick(Action *action)
Handler for clicking the Date arrow.
Definition: ListGamesState.cpp:343
void updateArrows()
Updates the sorting arrows based on the current setting.
Definition: ListGamesState.cpp:209
A game state that receives user input and reacts accordingly.
Definition: State.h:45
Coloured button with a text label.
Definition: TextButton.h:41
Text string displayed on screen.
Definition: Text.h:42
List of Text's split into columns.
Definition: TextList.h:43
Box with a coloured border and custom background.
Definition: Window.h:43
COPYING:
Definition: BaseInfoState.cpp:41
SaveSort
Savegame sorting modes.
Definition: Options.h:35