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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  The ManaPlus Client
 
3
 *  Copyright (C) 2013  The ManaPlus Developers
 
4
 *
 
5
 *  This file is part of The ManaPlus Client.
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; either version 2 of the License, or
 
10
 *  any later version.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
 
 
21
#ifndef WIDGETS_CHARACTERVIEWSMALL_H
 
22
#define WIDGETS_CHARACTERVIEWSMALL_H
 
23
 
 
24
#include "gui/widgets/characterviewbase.h"
 
25
 
 
26
#include "debug.h"
 
27
 
 
28
class CharacterViewBase;
 
29
 
 
30
class CharacterViewSmall final : public CharacterViewBase
 
31
{
 
32
    public:
 
33
        CharacterViewSmall(CharSelectDialog *const widget,
 
34
                           std::vector<CharacterDisplay*> *const entries,
 
35
                           const int padding);
 
36
        A_DELETE_COPY(CharacterViewSmall)
 
37
 
 
38
        ~CharacterViewSmall();
 
39
 
 
40
        void show(const int i);
 
41
 
 
42
        void resize();
 
43
 
 
44
        void action(const gcn::ActionEvent &event) override;
 
45
 
 
46
    private:
 
47
        CharacterDisplay *mSelectedEntry;
 
48
        Button *mPrevious;
 
49
        Button *mNext;
 
50
        Label *mNumber;
 
51
        std::vector<CharacterDisplay*> *mCharacterEntries;
 
52
};
 
53
 
 
54
#endif