summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/custmenu.h
blob: 09911a50787021e0ca4a8c323efaa5703407027d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// license:BSD-3-Clause
// copyright-holders:Maurizio Petrarota
/***************************************************************************

    ui/custmenu.h

    Internal UI user interface.


***************************************************************************/

#ifndef MAME_FRONTEND_UI_CUSTMENU_H
#define MAME_FRONTEND_UI_CUSTMENU_H

#pragma once


namespace ui {

// Software region
struct c_sw_region
{
	std::vector<std::string> ui;
	void set(std::string &str);
	std::string getname(std::string const &str) const;
};

// Software publishers
struct c_sw_publisher
{
	std::vector<std::string> ui;
	void set(std::string &str);
	std::string getname(std::string const &str) const;
};

// Software device type
struct c_sw_type
{
	std::vector<std::string> ui;
	void set(std::string &str);
};

// Software list
struct c_sw_list
{
	std::vector<std::string> name;
	std::vector<std::string> description;
};

// Software years
struct c_sw_year
{
	std::vector<std::string> ui;
	void set(std::string &str);
};

struct s_filter
{
	c_sw_region     region;
	c_sw_publisher  publisher;
	c_sw_year       year;
	c_sw_type       type;
	c_sw_list       swlist;
};

} // namespace ui

#endif  /* MAME_FRONTEND_UI_CUSTMENU_H */