~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/widgets/sliderlist.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-07-11 10:09:41 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130711100941-f0rwuvcwgl8ulqo8
Tags: 1.3.7.7.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        SliderList(const Widget2 *const widget,
41
41
                   gcn::ListModel *const listModel = nullptr,
42
42
                   gcn::ActionListener *const listener = nullptr,
43
 
                   std::string eventId = "");
 
43
                   const std::string &eventId = "");
44
44
 
45
45
        A_DELETE_COPY(SliderList)
46
46
 
58
58
 
59
59
        void action(const gcn::ActionEvent &event) override;
60
60
 
61
 
        void setSelectedString(std::string str);
 
61
        void setSelectedString(const std::string &str);
62
62
 
63
63
        std::string getSelectedString() const A_WARN_UNUSED;
64
64
 
65
 
        void setSelected(int idx);
 
65
        void setSelected(const int idx);
66
66
 
67
67
        void adjustSize();
68
68
 
72
72
    protected:
73
73
        void updateLabel();
74
74
 
75
 
        int getMaxLabelWidth() A_WARN_UNUSED;
 
75
        int getMaxLabelWidth() const A_WARN_UNUSED;
76
76
 
77
77
        Button *mButtons[2];
78
78
        Label *mLabel;