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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-08-21 08:50:08 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20130821085008-0qag7kvsz8iu9o10
Tags: 1.3.8.18-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include "gui/widgets/button.h"
34
34
 
 
35
class Image;
35
36
class Tab;
36
37
 
37
38
/**
95
96
 
96
97
        void addTab(const std::string &caption, gcn::Widget *const widget);
97
98
 
 
99
        void addTab(Image *const image, gcn::Widget *const widget);
 
100
 
98
101
        bool isTabSelected(const unsigned int index) const A_WARN_UNUSED;
99
102
 
100
103
        bool isTabSelected(Tab *const tab) const A_WARN_UNUSED;
104
107
         */
105
108
        void removeTab(Tab *const tab);
106
109
 
107
 
        void removeAll();
 
110
        void removeAll(bool del = true);
108
111
 
109
112
        /**
110
113
         * Overload the logic function since it's broken in guichan 0.8.
164
167
        bool getFollowDownScroll() const A_WARN_UNUSED
165
168
        { return mFollowDownScroll; }
166
169
 
167
 
        void fixSize()
168
 
        { adjustSize(); }
169
 
 
170
170
        void keyPressed(gcn::KeyEvent& keyEvent) override;
171
171
 
172
172
        void setBlockSwitching(const bool b)
185
185
        void setResizeHeight(bool b)
186
186
        { mResizeHeight = b; }
187
187
 
 
188
        void adjustWidget(gcn::Widget *const widget) const;
 
189
 
188
190
    private:
189
191
        typedef std::vector <std::pair<Tab*, gcn::Widget*> > TabContainer;
190
192