ManaPlus
tabs.cpp
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2012-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 #include "actions/tabs.h"
23 
24 #include "actions/actiondef.h"
25 
29 
30 #include "debug.h"
31 
32 namespace Actions
33 {
34 
36 {
37  if (socialWindow != nullptr)
38  {
40  return true;
41  }
42  return false;
43 }
44 
46 {
47  if (socialWindow != nullptr)
48  {
50  return true;
51  }
52  return false;
53 }
54 
56 {
57  if (itemShortcutWindow != nullptr)
58  {
60  return true;
61  }
62  return false;
63 }
64 
66 {
67  if (itemShortcutWindow != nullptr)
68  {
70  return true;
71  }
72  return false;
73 }
74 
76 {
77  if (spellShortcutWindow != nullptr)
78  {
80  return true;
81  }
82  return false;
83 }
84 
86 {
87  if (spellShortcutWindow != nullptr)
88  {
90  return true;
91  }
92  return false;
93 }
94 
96 {
98  return true;
99 }
100 
102 {
104  return true;
105 }
106 
107 } // namespace Actions
#define impHandler0(name)
Definition: actiondef.h:34
static void nextTab()
static void prevTab()
bool prevSocialTab(InputEvent &event)
Definition: tabs.cpp:31
bool prevInvTab(InputEvent &event)
Definition: tabs.cpp:38
bool nextCommandsTab(InputEvent &event)
Definition: tabs.cpp:35
bool prevCommandsTab(InputEvent &event)
Definition: tabs.cpp:36
bool nextSocialTab(InputEvent &event)
Definition: tabs.cpp:32
bool prevShortcutsTab(InputEvent &event)
Definition: tabs.cpp:34
bool nextShortcutsTab(InputEvent &event)
Definition: tabs.cpp:33
bool nextInvTab(InputEvent &event)
Definition: tabs.cpp:37
ShortcutWindow * spellShortcutWindow
ShortcutWindow * itemShortcutWindow
SocialWindow * socialWindow