ui_settings.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 <array>
  6. #include <vector>
  7. #include <QByteArray>
  8. #include <QString>
  9. #include <QStringList>
  10. namespace UISettings {
  11. using ContextualShortcut = std::pair<QString, int>;
  12. using Shortcut = std::pair<QString, ContextualShortcut>;
  13. struct Values {
  14. QByteArray geometry;
  15. QByteArray state;
  16. QByteArray renderwindow_geometry;
  17. QByteArray gamelist_header_state;
  18. QByteArray microprofile_geometry;
  19. bool microprofile_visible;
  20. bool single_window_mode;
  21. bool fullscreen;
  22. bool display_titlebar;
  23. bool show_filter_bar;
  24. bool show_status_bar;
  25. bool confirm_before_closing;
  26. bool first_start;
  27. QString roms_path;
  28. QString symbols_path;
  29. QString gamedir;
  30. bool gamedir_deepscan;
  31. QStringList recent_files;
  32. QString theme;
  33. // Shortcut name <Shortcut, context>
  34. std::vector<Shortcut> shortcuts;
  35. uint32_t callout_flags;
  36. };
  37. extern Values values;
  38. } // namespace UISettings