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
|
#ifndef gui_baum_edit_h
#define gui_baum_edit_h
#include "extend_edit.h"
#include "components/gui_label.h"
#include "../besch/baum_besch.h"
#include "../utils/cbuffer_t.h"
#include "../simwerkz.h"
#define MAX_BUILD_TYPE (6)
class wkz_plant_tree_t;
class baum_edit_frame_t : public extend_edit_gui_t
{
private:
static wkz_plant_tree_t baum_tool;
static char param_str[256];
const baum_besch_t *besch;
vector_tpl<const baum_besch_t *>baumlist;
void fill_list( bool translate );
virtual void change_item_info( sint32 i );
public:
baum_edit_frame_t(spieler_t* sp,karte_t* welt);
/**
* in top-level fenstern wird der Name in der Titelzeile dargestellt
* @return den nicht uebersetzten Namen der Komponente
* @author Hj. Malthaner
*/
const char* gib_name() const { return "baum builder"; }
/**
* Manche Fenster haben einen Hilfetext assoziiert.
* @return den Dateinamen fr die Hilfe, oder NULL
* @author Hj. Malthaner
*/
const char* gib_hilfe_datei() const { return "baum_build.txt"; }
/**
* This method is called if an action is triggered
* @author Hj. Malthaner
*
* Returns true, if action is done and no more
* components should be triggered.
* V.Meyer
*/
// bool action_triggered(gui_komponente_t *komp, value_t extra);
};
#endif
|