mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 19:45:46 +00:00
configure_graphics: Partial runtime implementation
This commit is contained in:
parent
75d7e40113
commit
f8435d676f
10 changed files with 498 additions and 1133 deletions
|
@ -41,10 +41,20 @@ enum class CheckState {
|
|||
Count, // Simply the number of states, not a valid checkbox state
|
||||
};
|
||||
|
||||
QWidget* CreateWidget(Settings::BasicSetting* setting, const TranslationMap& translations,
|
||||
QWidget* parent, bool runtime_lock,
|
||||
std::forward_list<std::function<void(bool)>>& apply_funcs,
|
||||
std::list<CheckState>& trackers);
|
||||
enum class RequestType {
|
||||
Default,
|
||||
ComboBox,
|
||||
SpinBox,
|
||||
Slider,
|
||||
MaxEnum,
|
||||
};
|
||||
|
||||
std::pair<QWidget*, void*> CreateWidget(Settings::BasicSetting* setting,
|
||||
const TranslationMap& translations, QWidget* parent,
|
||||
bool runtime_lock,
|
||||
std::forward_list<std::function<void(bool)>>& apply_funcs,
|
||||
std::list<CheckState>& trackers,
|
||||
RequestType request = RequestType::Default);
|
||||
|
||||
// Global-aware apply and set functions
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue