ScummVM API documentation
libretro-options-widget.h
1
/* Copyright (C) 2024 Giovanni Cascione <ing.cascione@gmail.com>
2
*
3
* This program is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
*/
17
#include "gui/browser.h"
18
#include "gui/gui-manager.h"
19
#include "gui/ThemeEval.h"
20
#include "gui/widget.h"
21
#include "gui/widgets/list.h"
22
#include "gui/widgets/popup.h"
23
#include "gui/widgets/richtext.h"
24
25
#define COMMON_HOOKS_FOLDER "scummvm_hooks"
26
27
class
LibretroOptionsWidget
final :
public
GUI::OptionsContainerWidget
{
28
public
:
29
explicit
LibretroOptionsWidget
(GuiObject *boss,
const
Common::String
&name,
const
Common::String
&domain);
30
~
LibretroOptionsWidget
()
override
;
31
void
load
()
override
;
32
bool
save
()
override
;
33
34
private
:
35
void
defineLayout(
GUI::ThemeEval
&layouts,
const
Common::String
&layoutName,
const
Common::String
&overlayedLayout)
const override
;
36
void
handleCommand(
GUI::CommandSender
*sender, uint32 cmd, uint32 data)
override
;
37
bool
generatePlaylist(
Common::String
playlistPath);
38
bool
cleanFolder(
Common::String
&path);
39
40
GUI::StaticTextWidget
*_playlistPath;
41
GUI::StaticTextWidget
*_playlistStatus;
42
43
GUI::PopUpWidget
*_playlistVersion;
44
GUI::PopUpWidget
*_hooksLocation;
45
GUI::CheckboxWidget
*_hooksClear;
46
};
Common::String
Definition:
str.h:59
LibretroOptionsWidget::save
bool save() override
LibretroOptionsWidget
Definition:
libretro-options-widget.h:27
GUI::CheckboxWidget
Definition:
widget.h:329
GUI::StaticTextWidget
Definition:
widget.h:205
GUI::ThemeEval
Definition:
ThemeEval.h:37
GUI::OptionsContainerWidget
Definition:
widget.h:532
LibretroOptionsWidget::load
void load() override
GUI::PopUpWidget
Definition:
popup.h:39
GUI::CommandSender
Definition:
object.h:40
backends
platform
libretro
include
libretro-options-widget.h
Generated on Sun Nov 24 2024 09:04:53 for ScummVM API documentation by
1.8.13