20 #include "../Engine/State.h" 26 class InteractiveSurface;
29 class ToggleTextButton;
46 Text *_txtTitle, *_txtFactor;
48 std::vector<Text *> _txtScale;
49 std::vector<ToggleTextButton *> _btnRegions, _btnCountries, _btnFinances;
50 std::vector<GraphButInfo *> _regionToggles, _countryToggles;
51 std::vector<bool> _financeToggles;
53 std::vector<Surface *> _alienRegionLines, _alienCountryLines;
54 std::vector<Surface *> _xcomRegionLines, _xcomCountryLines;
55 std::vector<Surface *> _financeLines, _incomeLines;
56 bool _alien, _income, _country, _finance;
57 static const size_t GRAPH_MAX_BUTTONS=16;
59 size_t _butRegionsOffset, _butCountriesOffset;
61 void scrollButtons(std::vector<GraphButInfo *> &toggles, std::vector<ToggleTextButton *> &buttons,
size_t &offset,
int step);
93 void updateScale(
double lowerLimit,
double upperLimit);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
void btnCountryListClick(Action *action)
Handler for clicking on a country button.
Definition: GraphsState.cpp:506
void btnRegionListClick(Action *action)
Handler for clicking on a region button.
Definition: GraphsState.cpp:476
A game state that receives user input and reacts accordingly.
Definition: State.h:44
void btnXcomRegionClick(Action *action)
Handler for clicking the xcom region icon.
Definition: GraphsState.cpp:390
GraphsState()
Creates the Graphs state.
Definition: GraphsState.cpp:56
void drawCountryLines()
Draw Country Lines.
Definition: GraphsState.cpp:648
Surface that the user can interact with.
Definition: InteractiveSurface.h:37
~GraphsState()
Cleans up the Graphs state.
Definition: GraphsState.cpp:311
List of Text's split into columns.
Definition: TextList.h:40
Definition: ToggleTextButton.h:27
void btnUfoRegionClick(Action *action)
Handler for clicking the ufo region icon.
Definition: GraphsState.cpp:348
Text string displayed on screen.
Definition: Text.h:40
void btnFinanceListClick(Action *action)
Handler for clicking on a finances button.
Definition: GraphsState.cpp:536
void btnGeoscapeClick(Action *action)
Handler for clicking the Geoscape icon.
Definition: GraphsState.cpp:339
void btnUfoCountryClick(Action *action)
Handler for clicking the ufo country icon.
Definition: GraphsState.cpp:369
void btnXcomCountryClick(Action *action)
Handler for clicking the xcom country icon.
Definition: GraphsState.cpp:411
void btnFinanceClick(Action *action)
Handler for clicking the finance icon.
Definition: GraphsState.cpp:454
void drawFinanceLines()
Draw Finances Lines.
Definition: GraphsState.cpp:974
void updateScale(double lowerLimit, double upperLimit)
Update the scale.
Definition: GraphsState.cpp:610
void shiftButtons(Action *action)
Mouse wheel handler for shifting up/down the buttons.
Definition: GraphsState.cpp:1119
void btnIncomeClick(Action *action)
Handler for clicking the income icon.
Definition: GraphsState.cpp:432
void drawRegionLines()
Draw Region Lines.
Definition: GraphsState.cpp:825
void resetScreen()
Reset all the elements on screen.
Definition: GraphsState.cpp:559
void drawLines()
Decide which lines to draw.
Definition: GraphsState.cpp:628
Definition: BaseInfoState.cpp:40
Definition: GraphsState.cpp:45
Graphs screen for displaying graphs of various monthly game data like activity and funding...
Definition: GraphsState.h:38