GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/gui/widgets/tabs/debugwindowtabs.h Lines: 8 9 88.9 %
Date: 2017-11-29 Branches: 3 6 50.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2004-2009  The Mana World Development Team
4
 *  Copyright (C) 2009-2010  The Mana Developers
5
 *  Copyright (C) 2011-2017  The ManaPlus Developers
6
 *
7
 *  This file is part of The ManaPlus Client.
8
 *
9
 *  This program is free software; you can redistribute it and/or modify
10
 *  it under the terms of the GNU General Public License as published by
11
 *  the Free Software Foundation; either version 2 of the License, or
12
 *  any later version.
13
 *
14
 *  This program is distributed in the hope that it will be useful,
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 *  GNU General Public License for more details.
18
 *
19
 *  You should have received a copy of the GNU General Public License
20
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
#ifndef GUI_WIDGETS_TABS_DEBUGWINDOWTABS_H
24
#define GUI_WIDGETS_TABS_DEBUGWINDOWTABS_H
25
26
#include "gui/widgets/container.h"
27
28
class Label;
29
30
12
class DebugTab notfinal : public Container
31
{
32
    friend class DebugWindow;
33
34
    public:
35
        A_DELETE_COPY(DebugTab)
36
37
        void logic() override
38
        {
39
        }
40
41
        void resize(const int x, const int y)
42

24
        { setDimension(Rect(0, 0, x, y)); }
43
44
    protected:
45
12
        explicit DebugTab(const Widget2 *const widget) :
46
12
            Container(widget)
47
24
        { setSelectable(false); }
48
};
49
50
16
class MapDebugTab final : public DebugTab
51
{
52
    friend class DebugWindow;
53
54
    public:
55
        explicit MapDebugTab(const Widget2 *const widget);
56
57
        A_DELETE_COPY(MapDebugTab)
58
59
        void logic() override final;
60
61
    private:
62
        Label *mMusicFileLabel A_NONNULLPOINTER;
63
        Label *mMapLabel A_NONNULLPOINTER;
64
        Label *mMapNameLabel A_NONNULLPOINTER;
65
        Label *mMinimapLabel A_NONNULLPOINTER;
66
        Label *mTileMouseLabel A_NONNULLPOINTER;
67
        Label *mParticleCountLabel A_NONNULLPOINTER;
68
        Label *mMapActorCountLabel A_NONNULLPOINTER;
69
        Label *mXYLabel A_NONNULLPOINTER;
70
        Label *mTexturesLabel A_NONNULLPOINTER;
71
        time_t mUpdateTime;
72
#ifdef DEBUG_DRAW_CALLS
73
        Label *mDrawCallsLabel A_NONNULLPOINTER;
74
#endif  // DEBUG_DRAW_CALLS
75
#ifdef DEBUG_BIND_TEXTURE
76
        Label *mBindsLabel A_NONNULLPOINTER;
77
#endif  // DEBUG_BIND_TEXTURE
78
79
        Label *mFPSLabel A_NONNULLPOINTER;
80
        Label *mLPSLabel A_NONNULLPOINTER;
81
        std::string mFPSText;
82
};
83
84
8
class TargetDebugTab final : public DebugTab
85
{
86
    friend class DebugWindow;
87
88
    public:
89
        explicit TargetDebugTab(const Widget2 *const widget);
90
91
        A_DELETE_COPY(TargetDebugTab)
92
93
        void logic() override final;
94
95
    private:
96
        Label *mTargetLabel A_NONNULLPOINTER;
97
        Label *mTargetIdLabel A_NONNULLPOINTER;
98
        Label *mTargetTypeLabel A_NONNULLPOINTER;
99
        Label *mTargetLevelLabel A_NONNULLPOINTER;
100
        Label *mTargetRaceLabel A_NONNULLPOINTER;
101
        Label *mTargetPartyLabel A_NONNULLPOINTER;
102
        Label *mTargetGuildLabel A_NONNULLPOINTER;
103
        Label *mAttackDelayLabel A_NONNULLPOINTER;
104
        Label *mMinHitLabel A_NONNULLPOINTER;
105
        Label *mMaxHitLabel A_NONNULLPOINTER;
106
        Label *mCriticalHitLabel A_NONNULLPOINTER;
107
        Label *mKarmaLabel A_NONNULLPOINTER;
108
        Label *mMannerLabel A_NONNULLPOINTER;
109
        Label *mEffectsLabel A_NONNULLPOINTER;
110
};
111
112
8
class NetDebugTab final : public DebugTab
113
{
114
    friend class DebugWindow;
115
116
    public:
117
        explicit NetDebugTab(const Widget2 *const widget);
118
119
        A_DELETE_COPY(NetDebugTab)
120
121
        void logic() override final;
122
123
    private:
124
        Label *mPingLabel A_NONNULLPOINTER;
125
        Label *mInPackets1Label A_NONNULLPOINTER;
126
        Label *mOutPackets1Label A_NONNULLPOINTER;
127
};
128
129
#endif  // GUI_WIDGETS_TABS_DEBUGWINDOWTABS_H