ManaPlus
setup_video.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2004-2009 The Mana World Development Team
4  * Copyright (C) 2009-2010 The Mana Developers
5  * Copyright (C) 2011-2019 The ManaPlus Developers
6  * Copyright (C) 2019-2021 Andrei Karas
7  *
8  * This file is part of The ManaPlus Client.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef GUI_WIDGETS_TABS_SETUP_VIDEO_H
25 #define GUI_WIDGETS_TABS_SETUP_VIDEO_H
26 
28 
29 #include "listeners/keylistener.h"
30 
31 class Button;
32 class CheckBox;
33 class DropDown;
34 class Label;
35 class ListBox;
36 class ModeListModel;
37 class OpenGLListModel;
38 class Slider;
39 class TextDialog;
40 
41 class Setup_Video final : public SetupTab,
42  public KeyListener
43 {
44  public:
45  explicit Setup_Video(const Widget2 *const widget);
46 
48 
49  ~Setup_Video() override final;
50 
51  void apply() override final;
52 
53  void cancel() override final;
54 
55  void action(const ActionEvent &event) override final;
56 
57  private:
60  int mFps;
61  int mAltFps;
72 #if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__)
74 #endif // !defined(ANDROID) && !defined(__APPLE__) &&
75  // !defined(__native_client__)
79  bool mNoFrame;
80 #ifdef USE_SDL2
81  bool mAllowHighDPI;
82  CheckBox *mAllowHighDPICheckBox;
83 #endif // USE_SDL2
87 };
88 
89 #endif // GUI_WIDGETS_TABS_SETUP_VIDEO_H
Definition: button.h:102
Definition: label.h:91
CheckBox * mFpsCheckBox
Definition: setup_video.h:67
void action(const ActionEvent &event)
RenderType mOpenGLEnabled
Definition: setup_video.h:59
ListBox * mModeList
Definition: setup_video.h:64
Setup_Video(const Widget2 *const widget)
Definition: setup_video.cpp:65
ModeListModel * mModeListModel
Definition: setup_video.h:62
bool mNoFrame
Definition: setup_video.h:79
CheckBox * mCustomCursorCheckBox
Definition: setup_video.h:84
Slider * mFpsSlider
Definition: setup_video.h:68
CheckBox * mEnableResizeCheckBox
Definition: setup_video.h:85
Label * mFpsLabel
Definition: setup_video.h:69
bool mFullScreenEnabled
Definition: setup_video.h:58
CheckBox * mNoFrameCheckBox
Definition: setup_video.h:86
Button * mDetectButton
Definition: setup_video.h:73
CheckBox * mFsCheckBox
Definition: setup_video.h:65
OpenGLListModel * mOpenGLListModel
Definition: setup_video.h:63
Label * mAltFpsLabel
Definition: setup_video.h:71
bool mEnableResize
Definition: setup_video.h:78
TextDialog * mDialog
Definition: setup_video.h:76
DropDown * mOpenGLDropDown
Definition: setup_video.h:66
bool mCustomCursorEnabled
Definition: setup_video.h:77
Slider * mAltFpsSlider
Definition: setup_video.h:70
Definition: slider.h:89
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
RenderType
Definition: rendertype.h:26