1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
/*
* Copyright (c) 1997 - 2001 Hansjrg Malthaner
*
* This file is part of the Simutrans project under the artistic licence.
* (see licence.txt)
*/
#ifndef settings_frame_h
#define settings_frame_h
#include "gui_frame.h"
#include "components/gui_tab_panel.h"
#include "components/gui_button.h"
#include "components/gui_scrollpane.h"
#include "settings_stats.h"
#include "components/action_listener.h"
class settings_t;
/**
* All messages since the start of the program
* @author prissi
*/
class settings_frame_t : public gui_frame_t, action_listener_t
{
private:
settings_t* sets;
gui_tab_panel_t tabs;
settings_general_stats_t general;
gui_scrollpane_t scrolly_general;
settings_economy_stats_t economy;
gui_scrollpane_t scrolly_economy;
settings_routing_stats_t routing;
gui_scrollpane_t scrolly_routing;
settings_costs_stats_t costs;
gui_scrollpane_t scrolly_costs;
settings_climates_stats_t climates;
gui_scrollpane_t scrolly_climates;
button_t revert_to_default, revert_to_last_save;
public:
settings_frame_t(settings_t*);
/**
* Manche Fenster haben einen Hilfetext assoziiert.
* @return den Dateinamen fr die Hilfe, oder NULL
* @author Hj. Malthaner
*/
const char *get_hilfe_datei() const {return "settings.txt";}
/**
* resize window in response to a resize event
* @author Hj. Malthaner
*/
void resize(const koord delta);
bool action_triggered(gui_action_creator_t*, value_t) OVERRIDE;
// does not work during new world dialoge
virtual bool has_sticky() const { return false; }
bool infowin_event(event_t const*) OVERRIDE;
};
#endif
|