ManaPlus
setup_theme.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2009 The Mana World Development Team
4  * Copyright (C) 2011-2019 The ManaPlus Developers
5  * Copyright (C) 2009-2021 Andrei Karas
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_SETUP_THEME_H
24 #define GUI_WIDGETS_TABS_SETUP_THEME_H
25 
27 
28 class Button;
29 class DropDown;
30 class FontsModel;
32 class Label;
33 class LangListModel;
34 class ThemesModel;
35 
36 class Setup_Theme final : public SetupTab
37 {
38  public:
39  explicit Setup_Theme(const Widget2 *const widget);
40 
42 
43  ~Setup_Theme() override final;
44 
45  void apply() override final;
46 
47  void cancel() override final;
48 
49  void action(const ActionEvent &event) override final;
50 
51  void updateInfo();
52 
53  private:
57  std::string mTheme;
59 
63  std::string mFont;
64 
66 
69  std::string mLang;
70 
73  std::string mBoldFont;
74 
77  std::string mParticleFont;
78 
81  std::string mHelpFont;
82 
85  std::string mSecureFont;
86 
89  std::string mNpcFont;
90 
93  std::string mJapanFont;
94 
97  std::string mChinaFont;
98 
103 
108 
110  std::string mThemeInfo;
111 };
112 
113 #endif // GUI_WIDGETS_TABS_SETUP_THEME_H
Definition: button.h:102
Definition: label.h:91
Label * mParticleFontLabel
Definition: setup_theme.h:75
DropDown * mSecureFontDropDown
Definition: setup_theme.h:84
std::string mThemeInfo
Definition: setup_theme.h:110
int mNpcFontSize
Definition: setup_theme.h:106
DropDown * mNpcFontDropDown
Definition: setup_theme.h:88
Label * mNpcFontLabel
Definition: setup_theme.h:87
DropDown * mParticleFontDropDown
Definition: setup_theme.h:76
std::string mLang
Definition: setup_theme.h:69
ThemeInfo * mInfo
Definition: setup_theme.h:58
DropDown * mLangDropDown
Definition: setup_theme.h:68
std::string mParticleFont
Definition: setup_theme.h:77
DropDown * mNpcFontSizeDropDown
Definition: setup_theme.h:107
std::string mBoldFont
Definition: setup_theme.h:73
std::string mTheme
Definition: setup_theme.h:57
std::string mFont
Definition: setup_theme.h:63
Label * mHelpFontLabel
Definition: setup_theme.h:79
Label * mSecureFontLabel
Definition: setup_theme.h:83
Label * mChinaFontLabel
Definition: setup_theme.h:95
FontsModel * mFontsModel
Definition: setup_theme.h:60
ThemesModel * mThemesModel
Definition: setup_theme.h:55
DropDown * mThemeDropDown
Definition: setup_theme.h:56
std::string mHelpFont
Definition: setup_theme.h:81
void updateInfo()
DropDown * mFontSizeDropDown
Definition: setup_theme.h:102
DropDown * mFontDropDown
Definition: setup_theme.h:62
DropDown * mChinaFontDropDown
Definition: setup_theme.h:96
LangListModel * mLangListModel
Definition: setup_theme.h:65
Setup_Theme(const Widget2 *const widget)
Definition: setup_theme.cpp:60
std::string mNpcFont
Definition: setup_theme.h:89
FontSizeChoiceListModel * mNpcFontSizeListModel
Definition: setup_theme.h:104
Label * mJapanFontLabel
Definition: setup_theme.h:91
Label * mLangLabel
Definition: setup_theme.h:67
std::string mJapanFont
Definition: setup_theme.h:93
DropDown * mJapanFontDropDown
Definition: setup_theme.h:92
Label * mNpcFontSizeLabel
Definition: setup_theme.h:105
FontSizeChoiceListModel * mFontSizeListModel
Definition: setup_theme.h:99
DropDown * mBoldFontDropDown
Definition: setup_theme.h:72
Button * mInfoButton
Definition: setup_theme.h:109
Label * mThemeLabel
Definition: setup_theme.h:54
Label * mFontSizeLabel
Definition: setup_theme.h:100
void action(const ActionEvent &event)
Label * mBoldFontLabel
Definition: setup_theme.h:71
std::string mChinaFont
Definition: setup_theme.h:97
DropDown * mHelpFontDropDown
Definition: setup_theme.h:80
Label * mFontLabel
Definition: setup_theme.h:61
std::string mSecureFont
Definition: setup_theme.h:85
#define A_NONNULLPOINTER
Definition: localconsts.h:266
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53