~ubuntu-branches/debian/squeeze/simutrans/squeeze

« back to all changes in this revision

Viewing changes to gui/halt_detail.h

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2009-03-06 20:40:03 UTC
  • mfrom: (1.2.1 upstream) (6.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090306204003-tk31qp9fyr7cmv4g
Tags: 102.0-1
* New upstream release.
  + Refresh patches.
  + Update translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
#include "gui_frame.h"
14
14
#include "components/gui_scrollpane.h"
 
15
#include "components/gui_label.h"
15
16
 
16
17
#include "../halthandle_t.h"
17
18
#include "../utils/cbuffer_t.h"
27
28
 * @author Hj. Malthaner
28
29
 */
29
30
 
30
 
class halt_detail_t : public gui_frame_t
 
31
class halt_detail_t : public gui_frame_t, action_listener_t
31
32
{
32
33
private:
33
34
        halthandle_t halt;
 
35
        uint8 destination_counter;      // last destination counter of the halt; if mismatch to current, then redraw destinations
 
36
        spieler_t *cached_active_player; // So that, if different from current, change line links
34
37
 
 
38
        gui_container_t cont;
35
39
        gui_scrollpane_t scrolly;
36
40
        gui_textarea_t txt_info;
37
41
 
38
42
        cbuffer_t cb_info_buffer;
39
43
 
 
44
        slist_tpl<button_t *>posbuttons;
 
45
        slist_tpl<gui_label_t *>linelabels;
 
46
        slist_tpl<button_t *>linebuttons;
 
47
 
40
48
public:
41
49
        halt_detail_t(halthandle_t halt);
42
50
 
 
51
        ~halt_detail_t();
 
52
 
43
53
        void halt_detail_info(cbuffer_t & buf);
44
54
 
45
55
        /**
47
57
         * @return den Dateinamen f�r die Hilfe, oder NULL
48
58
         * @author Hj. Malthaner
49
59
         */
50
 
        const char * gib_hilfe_datei() const { return "station_details.txt"; }
51
 
 
52
 
        /**
53
 
         * Komponente neu zeichnen. Die �bergebenen Werte beziehen sich auf
54
 
         * das Fenster, d.h. es sind die Bildschirkoordinaten des Fensters
55
 
         * in dem die Komponente dargestellt wird.
56
 
         * @author Hj. Malthaner
57
 
         */
58
 
        void zeichnen(koord pos, koord gr);};
 
60
        const char * get_hilfe_datei() const { return "station_details.txt"; }
 
61
 
 
62
        // callback for posbuttons
 
63
        bool action_triggered( gui_action_creator_t *komp, value_t extra);
 
64
 
 
65
        // only defined to update schedule, if changed
 
66
        void zeichnen( koord pos, koord gr );
 
67
};
59
68
 
60
69
#endif