Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #6287 from spycrab/qt_gamecube
Qt/Settings: Implement "GameCube pane"
- Loading branch information
Showing
9 changed files
with
462 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| // Copyright 2018 Dolphin Emulator Project | ||
| // Licensed under GPLv2+ | ||
| // Refer to the license.txt file included. | ||
|
|
||
| #include <QFormLayout> | ||
| #include <QGroupBox> | ||
| #include <QHBoxLayout> | ||
| #include <QVBoxLayout> | ||
|
|
||
| #include "DolphinQt2/Config/Mapping/GCMicrophone.h" | ||
|
|
||
| #include "InputCommon/InputConfig.h" | ||
|
|
||
| #include "Core/HW/GCPad.h" | ||
| #include "Core/HW/GCPadEmu.h" | ||
|
|
||
| GCMicrophone::GCMicrophone(MappingWindow* window) : MappingWidget(window) | ||
| { | ||
| CreateMainLayout(); | ||
| } | ||
|
|
||
| void GCMicrophone::CreateMainLayout() | ||
| { | ||
| m_main_layout = new QHBoxLayout(); | ||
|
|
||
| m_main_layout->addWidget( | ||
| CreateGroupBox(tr("Microphone"), Pad::GetGroup(GetPort(), PadGroup::Mic))); | ||
|
|
||
| setLayout(m_main_layout); | ||
| } | ||
|
|
||
| void GCMicrophone::LoadSettings() | ||
| { | ||
| Pad::LoadConfig(); | ||
| } | ||
|
|
||
| void GCMicrophone::SaveSettings() | ||
| { | ||
| Pad::GetConfig()->SaveConfig(); | ||
| } | ||
|
|
||
| InputConfig* GCMicrophone::GetConfig() | ||
| { | ||
| return Pad::GetConfig(); | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // Copyright 2018 Dolphin Emulator Project | ||
| // Licensed under GPLv2+ | ||
| // Refer to the license.txt file included. | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "DolphinQt2/Config/Mapping/MappingWidget.h" | ||
|
|
||
| class QCheckBox; | ||
| class QFormLayout; | ||
| class QGroupBox; | ||
| class QHBoxLayout; | ||
| class QLabel; | ||
| class QVBoxLayout; | ||
|
|
||
| class GCMicrophone final : public MappingWidget | ||
| { | ||
| public: | ||
| explicit GCMicrophone(MappingWindow* window); | ||
|
|
||
| InputConfig* GetConfig() override; | ||
|
|
||
| private: | ||
| void LoadSettings() override; | ||
| void SaveSettings() override; | ||
| void CreateMainLayout(); | ||
|
|
||
| QHBoxLayout* m_main_layout; | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.