mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 09:48:30 +12:00
Input: Move pairing dialog button and source (#1424)
This commit is contained in:
parent
90eb2e01f4
commit
0735237686
5 changed files with 12 additions and 15 deletions
38
src/gui/input/PairingDialog.h
Normal file
38
src/gui/input/PairingDialog.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
|
||||
#include <wx/button.h>
|
||||
#include <wx/dialog.h>
|
||||
#include <wx/gauge.h>
|
||||
#include <wx/stattext.h>
|
||||
|
||||
class PairingDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
PairingDialog(wxWindow* parent);
|
||||
~PairingDialog();
|
||||
|
||||
private:
|
||||
enum class PairingState
|
||||
{
|
||||
Pairing,
|
||||
Finished,
|
||||
NoBluetoothAvailable,
|
||||
BluetoothFailed,
|
||||
PairingFailed,
|
||||
BluetoothUnusable
|
||||
};
|
||||
|
||||
void OnClose(wxCloseEvent& event);
|
||||
void OnCancelButton(const wxCommandEvent& event);
|
||||
void OnGaugeUpdate(wxCommandEvent& event);
|
||||
|
||||
void WorkerThread();
|
||||
void UpdateCallback(PairingState state);
|
||||
|
||||
wxStaticText* m_text;
|
||||
wxGauge* m_gauge;
|
||||
wxButton* m_cancelButton;
|
||||
|
||||
std::thread m_thread;
|
||||
bool m_threadShouldQuit = false;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue