~ubuntu-branches/ubuntu/raring/simutrans/raring-proposed

« back to all changes in this revision

Viewing changes to gui/components/gui_flowtext.h

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2011-11-03 19:59:02 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111103195902-uopgwf488mfctb75
Tags: 111.0-1
* New upstream release.
* debian/rules: Update get-orig-source target for new upstream release.
* Use xz compression for source and binary packages.
* Use override_* targets to simplify debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include "gui_action_creator.h"
7
7
#include "gui_komponente.h"
8
8
#include "../../tpl/slist_tpl.h"
9
 
#include "action_listener.h"
10
9
 
11
10
 
12
11
/**
13
 
 * A component for floating text. It does not use any templates on purpose!
 
12
 * A component for floating text.
14
13
 * @author Hj. Malthaner
15
14
 */
16
15
class gui_flowtext_t :
62
61
 
63
62
        struct node_t
64
63
        {
65
 
                node_t(const std::string &text_, attributes att_) : text(text_), att(att_), next(0) {}
 
64
                node_t(const std::string &text_, attributes att_) : text(text_), att(att_) {}
66
65
 
67
66
                std::string text;
68
67
                attributes att;
69
 
                node_t*    next;
70
68
        };
71
69
 
72
70
        /**
75
73
         */
76
74
        struct hyperlink_t
77
75
        {
78
 
                hyperlink_t(const std::string &param_) : param(param_), next(0) {}
 
76
                hyperlink_t(const std::string &param_) : param(param_) {}
79
77
 
80
78
                koord        tl;    // top left display position
81
79
                koord        br;    // bottom right display position
82
80
                std::string  param;
83
 
                hyperlink_t* next;
84
81
        };
85
82
 
86
83
        slist_tpl<node_t>      nodes;