Zach Hilman
76bf6c6ea9
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
bf2e779efb
constants: Extract backup JPEG used by account services
7 years ago
Lioncash
a4d4b67322
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
5cf1aab5a8
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
5f2adf1a9e
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
f4a1312c3c
yuzu/applets/software_keyboard: Remove unused assert header
This isn't actually used anywhere, so it can be removed.
7 years ago
Lioncash
c991a5d2b0
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
63eed87b61
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
cd72443889
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
0cfd78073f
yuzu/applets/error: Specify string conversions explicitly
Allows the error applet to build successfully with implicit string
conversions disabled.
7 years ago
Lioncash
db22039c4b
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
68cd911bd1
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
ad5e497bff
profile_select: Port Service::Account::UUID to Common::UUID
7 years ago
Zach Hilman
107d725af8
web_browser: Make OpenPage non-const
7 years ago
Zach Hilman
b508e60fe4
qt: Add dialog implementation of Error applet
7 years ago
Zach Hilman
663b24e0d2
web_browser: Make OpenPage const
7 years ago
Lioncash
746e7ee4df
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
e49a08ff6b
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
eb88e9d088
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
62287f8ee7
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
91b36c026a
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
ab2f154ff4
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
37cbee5e33
yuzu/web_browser: std::move std::function instances in OpenPage()
Avoids the need to potentially reallocate the contained callbacks.
7 years ago
Lioncash
a44dae2514
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
f49f3e509f
web_browser: Add bounds checking to applet interface
7 years ago
Zach Hilman
58180e39ff
qt: Implement Qt frontend to web browser
Using a custom reimplementation of QWebEngineView and an injector script.
7 years ago
Zach Hilman
b999d2df45
applets: Correct event ResetTypes from OneShot to Sticky
Fixes bugs relating to signalling in software keyboard.
7 years ago
Zach Hilman
b8da98046e
qt: Implement GUI dialog frontend for ProfileSelector
Presents profiles in a list, similar to switch.
7 years ago
Lioncash
22af607a8d
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
870fa5e657
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
a7602de1b5
yuzu/applets/software_keyboard: Make slots private functions
These aren't required to be public.
7 years ago
Zach Hilman
945fdd9361
software_keyboard: Add max and current length display to dialog
7 years ago
Zach Hilman
948e1b2f42
applet: Add operation completed callback
7 years ago
Zach Hilman
f0d2246b6a
software_keyboard: Make GetText asynchronous
a
7 years ago
Zach Hilman
04bc2fafbc
am: Allow applets to push multiple and different channels of data
7 years ago
Zach Hilman
efced53d38
am: Deglobalize software keyboard applet
7 years ago
Zach Hilman
b9c5a8bcf6
qt/main: Register Qt Software Keyboard frontend with AM
Allows using Qt provider over default.
7 years ago
Zach Hilman
56c85c996a
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