Mana
Loading...
Searching...
No Matches
setup_interface.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2004-2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana 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#pragma once
23
24#include "being.h"
25#include "guichanfwd.h"
26
28
29#include <guichan/actionlistener.hpp>
30#include <guichan/keylistener.hpp>
31
32class Setup_Interface : public SetupTab, public gcn::ActionListener,
33 public gcn::KeyListener
34{
35 public:
37 ~Setup_Interface() override;
38
39 void apply() override;
40 void cancel() override;
41
42 void action(const gcn::ActionEvent &event) override;
43
44 private:
51 double mOpacity;
53
54 std::unique_ptr<gcn::ListModel> mThemesListModel;
55 std::unique_ptr<gcn::ListModel> mFontSizeListModel;
56
58 gcn::CheckBox *mVisibleNamesCheckBox;
59 gcn::CheckBox *mNameCheckBox;
60 gcn::CheckBox *mNPCLogCheckBox;
61
62 gcn::Label *mPickupNotifyLabel;
63 gcn::CheckBox *mPickupChatCheckBox;
65
66 gcn::Slider *mSpeechSlider;
67 gcn::Label *mSpeechLabel;
68 gcn::Slider *mAlphaSlider;
69
70 gcn::DropDown *mThemeDropDown;
71 gcn::DropDown *mFontSizeDropDown;
72
73};
Speech
Definition being.h:83
A container for the contents of a tab in the setup window.
Definition setuptab.h:32
gcn::DropDown * mThemeDropDown
gcn::CheckBox * mVisibleNamesCheckBox
gcn::Slider * mAlphaSlider
gcn::CheckBox * mNameCheckBox
std::unique_ptr< gcn::ListModel > mThemesListModel
gcn::Label * mSpeechLabel
~Setup_Interface() override
void cancel() override
Called when the Cancel button is pressed in the setup window.
void apply() override
Called when the Apply button is pressed in the setup window.
std::unique_ptr< gcn::ListModel > mFontSizeListModel
gcn::DropDown * mFontSizeDropDown
gcn::CheckBox * mNPCLogCheckBox
gcn::CheckBox * mPickupChatCheckBox
Being::Speech mSpeechMode
gcn::Label * mPickupNotifyLabel
gcn::CheckBox * mPickupParticleCheckBox
void action(const gcn::ActionEvent &event) override
gcn::CheckBox * mShowMonsterDamageCheckBox
gcn::Slider * mSpeechSlider