ScummVM API documentation
browser.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef BROWSER_DIALOG_H
23
#define BROWSER_DIALOG_H
24
25
#include "gui/dialog.h"
26
#include "common/fs.h"
27
#include "common/str.h"
28
29
namespace
GUI
{
30
31
class
ListWidget;
32
class
EditTextWidget;
33
class
CheckboxWidget;
34
class
CommandSender;
35
36
class
BrowserDialog
:
public
Dialog
{
37
public
:
38
BrowserDialog
(
const
Common::U32String
&title,
bool
dirBrowser);
39
40
int
runModal()
override
;
41
void
open()
override
;
42
void
handleCommand(
CommandSender
*sender, uint32 cmd, uint32 data)
override
;
43
44
const
Common::FSNode
&getResult() {
return
_choice; }
45
46
protected
:
47
ListWidget
*_fileList;
48
EditTextWidget
*_currentPath;
49
Common::FSNode
_node;
50
Common::FSList
_nodeContent;
51
52
bool
_showHidden;
53
CheckboxWidget
*_showHiddenWidget;
54
55
Common::FSNode
_choice;
56
Common::U32String
_title;
57
bool
_isDirBrowser;
58
59
void
updateListing();
60
};
61
62
}
// End of namespace GUI
63
64
#endif
GUI::EditTextWidget
Definition:
edittext.h:32
GUI::CheckboxWidget
Definition:
widget.h:329
GUI
Definition:
system.h:46
Common::U32String
Definition:
ustr.h:57
Common::FSNode
Definition:
fs.h:69
GUI::ListWidget
Definition:
list.h:51
Common::FSList
Definition:
fs.h:57
GUI::BrowserDialog
Definition:
browser.h:36
GUI::Dialog
Definition:
dialog.h:49
GUI::CommandSender
Definition:
object.h:40
gui
browser.h
Generated on Mon Dec 23 2024 09:24:18 for ScummVM API documentation by
1.8.13