ManaPlus
emotewindow.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2013-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_EMOTEWINDOW_H
23 #define GUI_WINDOWS_EMOTEWINDOW_H
24 
25 #include "gui/widgets/window.h"
26 
27 class ColorModel;
28 class ColorPage;
29 class EmotePage;
30 class ImageSet;
31 class ListBox;
32 class NamesModel;
33 class ScrollArea;
34 class TabbedArea;
35 
36 class EmoteWindow final : public Window
37 {
38  public:
39  EmoteWindow();
40 
42 
43  ~EmoteWindow() override final;
44 
45  void postInit() override final;
46 
47  void show();
48 
49  void hide();
50 
51  std::string getSelectedEmote() const;
52 
53  void clearEmote();
54 
55  std::string getSelectedColor() const;
56 
57  void clearColor();
58 
59  std::string getSelectedFont() const;
60 
61  int getSelectedTextIndex() const;
62 
63  void clearFont();
64 
65  void clearText();
66 
68 
69  void widgetResized(const Event &event) override final;
70 
71  void widgetMoved(const Event &event) override final;
72 
73  private:
86 };
87 
88 extern EmoteWindow *emoteWindow;
89 
90 #endif // GUI_WINDOWS_EMOTEWINDOW_H
TabbedArea * mTabs
Definition: emotewindow.h:74
ScrollArea * mScrollColorPage
Definition: emotewindow.h:78
NamesModel * mFontModel
Definition: emotewindow.h:79
void addListeners(ActionListener *const listener)
void widgetResized(const Event &event)
void postInit()
Definition: emotewindow.cpp:88
NamesModel * mTextModel
Definition: emotewindow.h:82
std::string getSelectedEmote() const
EmotePage * mEmotePage
Definition: emotewindow.h:75
ColorModel * mColorModel
Definition: emotewindow.h:76
ListBox * mTextPage
Definition: emotewindow.h:83
ScrollArea * mScrollTextPage
Definition: emotewindow.h:84
ImageSet * mImageSet
Definition: emotewindow.h:85
void clearFont()
std::string getSelectedFont() const
void clearEmote()
std::string getSelectedColor() const
void widgetMoved(const Event &event)
void clearText()
ColorPage * mColorPage
Definition: emotewindow.h:77
ScrollArea * mScrollFontPage
Definition: emotewindow.h:81
ListBox * mFontPage
Definition: emotewindow.h:80
void clearColor()
int getSelectedTextIndex() const
Definition: event.h:79
Definition: window.h:102
EmoteWindow * emoteWindow
Definition: emotewindow.cpp:49
#define A_NONNULLPOINTER
Definition: localconsts.h:266
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53