duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

hotkeysettingswidget.h (743B)


      1 // SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
      3 
      4 #pragma once
      5 
      6 #include <QtCore/QMap>
      7 #include <QtWidgets/QWidget>
      8 #include <array>
      9 #include <vector>
     10 
     11 class QScrollArea;
     12 class QGridLayout;
     13 class QVBoxLayout;
     14 
     15 class ControllerSettingsWindow;
     16 
     17 class HotkeySettingsWidget : public QWidget
     18 {
     19   Q_OBJECT
     20 
     21 public:
     22   HotkeySettingsWidget(QWidget* parent, ControllerSettingsWindow* dialog);
     23   ~HotkeySettingsWidget();
     24 
     25 private:
     26   void createUi();
     27   void createButtons();
     28 
     29   ControllerSettingsWindow* m_dialog;
     30   QScrollArea* m_scroll_area = nullptr;
     31   QWidget* m_container = nullptr;
     32   QVBoxLayout* m_layout = nullptr;
     33 
     34   QMap<QString, QGridLayout*> m_categories;
     35 };