ManaPlus
clanwindow.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2011-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef GUI_WINDOWS_CLANWINDOW_H
23 #define GUI_WINDOWS_CLANWINDOW_H
24 
25 #include "gui/widgets/window.h"
26 
27 class InfoClanTab;
28 class RelationClanTab;
29 class StatsClanTab;
30 class TabbedArea;
31 
37 class ClanWindow final : public Window
38 {
39  public:
43  ClanWindow();
44 
46 
47  ~ClanWindow() override final;
48 
49  void postInit() override final;
50 
54  void slowLogic();
55 
56  void widgetResized(const Event &event) override final;
57 
58  void resetClan();
59 
60  void updateClan();
61 
62  void updateClanMembers();
63 
64 #ifdef USE_PROFILER
65  void logicChildren();
66 #endif // USE_PROFILER
67 
68  private:
74 };
75 
76 extern ClanWindow *clanWindow;
77 
78 #endif // GUI_WINDOWS_CLANWINDOW_H
ClanWindow * clanWindow
Definition: clanwindow.cpp:38
virtual void logicChildren()
void slowLogic()
Definition: clanwindow.cpp:99
InfoClanTab * mInfoWidget
Definition: clanwindow.h:70
void resetClan()
Definition: clanwindow.cpp:144
TabbedArea * mTabs
Definition: clanwindow.h:69
RelationClanTab * mAllyWidget
Definition: clanwindow.h:72
RelationClanTab * mAntagonistWidget
Definition: clanwindow.h:73
void updateClan()
Definition: clanwindow.cpp:136
void postInit()
Definition: clanwindow.cpp:93
StatsClanTab * mStatsWidget
Definition: clanwindow.h:71
void widgetResized(const Event &event)
Definition: clanwindow.cpp:128
void updateClanMembers()
Definition: clanwindow.cpp:152
Definition: event.h:79
Definition: window.h:102
#define A_NONNULLPOINTER
Definition: localconsts.h:266
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53