-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathEggSettings.hpp
More file actions
100 lines (86 loc) · 2.52 KB
/
EggSettings.hpp
File metadata and controls
100 lines (86 loc) · 2.52 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
* This file is part of PokéFinder
* Copyright (C) 2017-2024 by Admiral_Fish, bumba, and EzPzStreamz
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef EGGSETTINGS_HPP
#define EGGSETTINGS_HPP
#include <Core/Global.hpp>
#include <QWidget>
class Daycare;
enum class Game : u32;
namespace Ui
{
class EggSettings;
}
/**
* @brief Provides selection of settings for parents and other relevant daycare options
*/
class EggSettings : public QWidget
{
Q_OBJECT
signals:
/**
* @brief Emits whether inheritance should be shown
*/
void showInheritanceChanged(bool);
public:
/**
* @brief Construct a new EggSettings object
*
* @param parent Parent widget, which takes memory ownership
*/
EggSettings(QWidget *parent = nullptr);
/**
* @brief Destroy the EggSettings object
*/
~EggSettings() override;
/**
* @brief Determines if selected settings for valid for parents in the daycare
*
* @return true Parents are compatible
* @return false Parents are not compatible
*/
bool compatibleParents() const;
/**
* @brief Copies the values from another EggSettings
*
* @param other The EggSettings to copy values from
*/
void copyFrom(const EggSettings *other);
/**
* @brief Gets various parent information: IVs, ability, gender, item masuda, etc.
*
* @return Parent information
*/
Daycare getDaycare() const;
/**
* @brief Changes order of the parents to match what the game does
*
* @return true Parents were reordered
* @return false Parents were not reordered
*/
bool reorderParents();
/**
* @brief Configures what should be shown and enabled based on the \p game
*
* @param game Game
*/
void setup(Game game);
private:
Ui::EggSettings *ui;
};
#endif // EGGSETTINGS_HPP