configure_dialog.h 829 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <QDialog>
  7. class HotkeyRegistry;
  8. namespace Ui {
  9. class ConfigureDialog;
  10. }
  11. class ConfigureDialog : public QDialog {
  12. Q_OBJECT
  13. public:
  14. explicit ConfigureDialog(QWidget* parent, HotkeyRegistry& registry);
  15. ~ConfigureDialog() override;
  16. void ApplyConfiguration();
  17. private slots:
  18. void OnLanguageChanged(const QString& locale);
  19. signals:
  20. void LanguageChanged(const QString& locale);
  21. private:
  22. void changeEvent(QEvent* event) override;
  23. void RetranslateUI();
  24. void SetConfiguration();
  25. void UpdateVisibleTabs();
  26. void PopulateSelectionList();
  27. std::unique_ptr<Ui::ConfigureDialog> ui;
  28. HotkeyRegistry& registry;
  29. };