Mana
Loading...
Searching...
No Matches
setup_video.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 "guichanfwd.h"
25
27#include "video.h"
28
29#include <guichan/actionlistener.hpp>
30#include <guichan/keylistener.hpp>
31
32class DropDown;
34class ScaleListModel;
35
36class Setup_Video : public SetupTab, public gcn::ActionListener,
37 public gcn::KeyListener
38{
39 public:
41 ~Setup_Video() override;
42
43 void apply() override;
44 void cancel() override;
45
46 void action(const gcn::ActionEvent &event) override;
47
48 private:
49 void refreshScaleList();
50
54 int mFps;
56
57 std::unique_ptr<gcn::ListModel> mWindowModeListModel;
58 std::unique_ptr<ResolutionListModel> mResolutionListModel;
59 std::unique_ptr<ScaleListModel> mScaleListModel;
60
61 gcn::DropDown *mWindowModeDropDown;
62 gcn::DropDown *mResolutionDropDown;
64 gcn::CheckBox *mVSyncCheckBox;
65 gcn::CheckBox *mOpenGLCheckBox;
66 gcn::CheckBox *mCustomCursorCheckBox;
68
69 gcn::CheckBox *mFpsCheckBox;
70 gcn::Slider *mFpsSlider;
71 gcn::Label *mFpsLabel;
72
76
80
82};
A drop down box from which you can select different values.
Definition dropdown.h:34
The list model for mode list.
The list model for choosing the scale.
A container for the contents of a tab in the setup window.
Definition setuptab.h:32
std::unique_ptr< ResolutionListModel > mResolutionListModel
Definition setup_video.h:58
bool mSDLTransparencyDisabled
Definition setup_video.h:55
gcn::CheckBox * mCustomCursorCheckBox
Definition setup_video.h:66
gcn::DropDown * mWindowModeDropDown
Definition setup_video.h:61
bool mParticleEffectsEnabled
Definition setup_video.h:53
gcn::Slider * mFpsSlider
Definition setup_video.h:70
void apply() override
Called when the Apply button is pressed in the setup window.
void cancel() override
Called when the Cancel button is pressed in the setup window.
gcn::DropDown * mResolutionDropDown
Definition setup_video.h:62
VideoSettings mVideoSettings
Definition setup_video.h:51
int mParticleDetail
Definition setup_video.h:77
gcn::Slider * mParticleDetailSlider
Definition setup_video.h:78
std::unique_ptr< ScaleListModel > mScaleListModel
Definition setup_video.h:59
gcn::CheckBox * mOpenGLCheckBox
Definition setup_video.h:65
gcn::Slider * mOverlayDetailSlider
Definition setup_video.h:74
DropDown * mScaleDropDown
Definition setup_video.h:63
void action(const gcn::ActionEvent &event) override
gcn::CheckBox * mParticleEffectsCheckBox
Definition setup_video.h:67
gcn::Label * mParticleDetailField
Definition setup_video.h:79
std::unique_ptr< gcn::ListModel > mWindowModeListModel
Definition setup_video.h:57
gcn::Label * mOverlayDetailField
Definition setup_video.h:75
gcn::CheckBox * mVSyncCheckBox
Definition setup_video.h:64
gcn::Label * mFpsLabel
Definition setup_video.h:71
gcn::CheckBox * mDisableSDLTransparencyCheckBox
Definition setup_video.h:81
~Setup_Video() override
void refreshScaleList()
int mOverlayDetail
Definition setup_video.h:73
gcn::CheckBox * mFpsCheckBox
Definition setup_video.h:69
bool mCustomCursorEnabled
Definition setup_video.h:52