Zach Hilman
6ff9008230
web_browser: Rename OpenPage to OpenPageLocal
This is more representative of what actually occurs, as web does support remote URLs which wouldn't need a romfs callback. This paves for easy future support of this with a call like 'OpenPageRemote' or similar.
7 years ago
Zach Hilman
11f2f0f45c
constants: Extract backup JPEG used by account services
7 years ago
Lioncash
cfc9d92b38
yuzu/software_keyboard: Remove unnecessary GetStatus() member function
Like with the profile selection dialog, we can just use the result of
QDialog's exec() function to determine whether or not a dialog was
accepted.
7 years ago
Lioncash
802dd3cc95
profile_select: Remove unnecessary GetStatus() member function
This behavior is already provided by the built-in exec() function. We
just need to check the return value of it.
7 years ago
Lioncash
139301c5a1
profile_select: Return int instead of u32 for GetIndex()
Qt uses a signed value to represent indices. We should follow this
convention where applicable to avoid unnecessary sign-conversion
warnings, as well as making it easier to interoperate with other aspects
of Qt.
While we're at it, we can also make a sign-conversion explicit.
7 years ago
Lioncash
bb06b98d81
yuzu/applets/software_keyboard: Remove unused assert header
This isn't actually used anywhere, so it can be removed.
7 years ago
Lioncash
16bf791939
yuzu/applets/software_keyboard: std::move argument in MainWindowFinishedText()
Given the std::optional can contain an object type that heap allocates,
we can use std::move to avoid an unnecessary copy/allocation from
occurring.
7 years ago
Lioncash
b3d7180164
yuzu/applets/software_keyboard: Resolve sign mismatch comparison
Qt uses a signed value to represent container sizes, so this was causing
a sign mismatch warning.
7 years ago
Lioncash
cf9cc41478
yuzu/applets/software_keyboard: Specify string conversions explicitly
Allows the software keyboard applet code to compile with implicit string
conversions disabled.
7 years ago
Lioncash
f5d416e071
yuzu/applets/error: Specify string conversions explicitly
Allows the error applet to build successfully with implicit string
conversions disabled.
7 years ago
Lioncash
22324e3ef1
yuzu/applets/profile_select: Mark header string as translatable
This is a user-facing string, so it should be marked as translatable.
7 years ago
Lioncash
d6d809db87
yuzu: Remove explicit types from locks where applicable
With C++17's deduction guides, the type doesn't need to be explicitly
specified within locking primitives anymore.
7 years ago
Zach Hilman
851c01c45e
profile_select: Port Service::Account::UUID to Common::UUID
7 years ago
Zach Hilman
2adb226b26
web_browser: Make OpenPage non-const
7 years ago
Zach Hilman
76452cd5b3
qt: Add dialog implementation of Error applet
7 years ago
Zach Hilman
f7540157e4
web_browser: Make OpenPage const
7 years ago
Lioncash
65ae1ac4e5
yuzu/applets/software_keyboard: Use QDialogButtonBox standard buttons instead of custom buttons
Like the previous change, this allows Qt to handle proper translations
of the UI buttons, rather than us needing to handle it.
7 years ago
Lioncash
a504bad3fb
yuzu/applets/profile_select: Use QDialogButtonBox standard buttons instead of custom buttons
Makes for shorter code, while also not requiring the buttons to be
directly translated, they'll be handled by Qt itself.
7 years ago
Lioncash
781ab8407b
general: Use deducation guides for std::lock_guard and std::unique_lock
Since C++17, the introduction of deduction guides for locking facilities
means that we no longer need to hardcode the mutex type into the locks
themselves, making it easier to switch mutex types, should it ever be
necessary in the future.
7 years ago
Adityarup Laha
57a4a2ae0f
yuzu: Make hotkeys configurable via the GUI
* Adds a new Hotkeys tab in the Controls group.
* Double-click a Hotkey to rebind it.
7 years ago
Zach Hilman
4130b07f88
web_browser: Add shortcut to Enter key to exit applet
Addresses issues where a user in fullscreen could not exit some web applets without leaving fullscreen.
7 years ago
Lioncash
a661025637
core/frontend/applets/web_browser: Make OpenPage() non-const
This is a function that definitely doesn't always have a non-modifying
behavior across all implementations, so this should be made non-const.
This gets rid of the need to mark data members as mutable to work around
the fact mutating data members needs to occur.
7 years ago
Lioncash
66978a772d
yuzu/web_browser: std::move std::function instances in OpenPage()
Avoids the need to potentially reallocate the contained callbacks.
7 years ago
Lioncash
e4fa77ef6a
yuzu/web_browser: Make slot functions private
These currently aren't used by anything other than the QtWebBrowser
class itself, and can be made private.
7 years ago
Zach Hilman
cb930c4b5a
web_browser: Add bounds checking to applet interface
7 years ago
Zach Hilman
e00e1fc755
qt: Implement Qt frontend to web browser
Using a custom reimplementation of QWebEngineView and an injector script.
7 years ago
Zach Hilman
e11e65b3d6
applets: Correct event ResetTypes from OneShot to Sticky
Fixes bugs relating to signalling in software keyboard.
7 years ago
Zach Hilman
bf90f2402d
qt: Implement GUI dialog frontend for ProfileSelector
Presents profiles in a list, similar to switch.
7 years ago
Lioncash
4dcdd3a837
yuzu/applets/software_keyboard: Override accept() and reject() instead of providing own differently named member functions
Uses Qt's built-in interface instead of rolling our own separate one on
top of it. This also fixes a bug in reject() where we were calling
accept() instead of reject().
7 years ago
Lioncash
3fa2b218ac
yuzu/applets/software_keyboard: std::move std::function instances where applicable
std::function instances can potentially allocate. std::moveing them
prevents an avoidable allocation in that case.
7 years ago
Lioncash
fe2609cb77
yuzu/applets/software_keyboard: Make slots private functions
These aren't required to be public.
7 years ago
Zach Hilman
56cf5b7b17
software_keyboard: Add max and current length display to dialog
7 years ago
Zach Hilman
19b2571aec
applet: Add operation completed callback
7 years ago
Zach Hilman
8b433beff3
software_keyboard: Make GetText asynchronous
a
7 years ago
Zach Hilman
7cfb29de23
am: Allow applets to push multiple and different channels of data
7 years ago
Zach Hilman
e696ed1f4d
am: Deglobalize software keyboard applet
7 years ago
Zach Hilman
a81645400f
qt/main: Register Qt Software Keyboard frontend with AM
Allows using Qt provider over default.
7 years ago
Zach Hilman
5454494adb
qt/applets: Provide Qt frontend implementation of software keyboard
Implements all of the features of the keyboard, including length, default text, character validation, and UTF-16 character support.
7 years ago