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
28public:
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
34private:
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};
Definition: str.h:59
Definition: widget.h:338
Definition: object.h:40
Definition: widget.h:542
Definition: popup.h:39
Definition: widget.h:213
Definition: ThemeEval.h:37
Definition: libretro-options-widget.h:27
bool save() override
void load() override