Commit Graph

2878 Commits

Author SHA1 Message Date
Bastien Bouclet
ff217ea033 GUI: Don't show the "Open URL" button if there is no backend support 2016-09-10 07:46:52 +02:00
Thierry Crozat
1f2a50bcd3 CLOUD: Move openUrl to OSystem 2016-09-10 01:12:42 +01:00
Thierry Crozat
aa879ec307 I18N: Regenerate translations data file 2016-09-08 09:14:09 +01:00
Thierry Crozat
bd66e005c2 I18N: Regenerate translations data file 2016-09-05 21:42:09 +01:00
Torbjörn Andersson
d527a16e2f GUI: Fix indentation to silence GCC 6 warning 2016-09-05 18:08:51 +02:00
Lothar Serra Mari
f5ce9c167c I18N: Regenerate translations.dat 2016-09-05 10:22:01 +02:00
Lothar Serra Mari
265ff03459 GUI: Enable translation for download speed string in cloud feature 2016-09-05 10:17:03 +02:00
Lothar Serra Mari
460b786635 I18N: Regenerate translations.dat 2016-09-05 09:15:49 +02:00
Eugene Sandulenko
92452a4bba GUI: Fix warnings 2016-09-05 08:18:22 +02:00
Thierry Crozat
0bb84fb1e5 I18N: Improve French translation for cloud feature 2016-09-05 00:43:24 +01:00
Thierry Crozat
ed92175bf7 I18N: Initial French translation for cloud storage 2016-09-04 23:25:54 +01:00
Thierry Crozat
7ad922fb19 CLOUD: Improve some labels 2016-09-04 23:25:54 +01:00
Lothar Serra Mari
a7d1cc91da GUI: Replace _s() with _() in storagewizarddialog.cpp
This allows the translation of a few more strings
in the Cloud settings tab.

Thanks to sev- for the fix.
2016-09-04 19:56:26 +02:00
Lothar Serra Mari
30cf057cc8 I18N: Regenerate translations.dat 2016-09-04 19:56:26 +02:00
Eugene Sandulenko
58e38be05c GUI: Initialize the PicButtonWidget class properly 2016-09-04 12:41:05 +02:00
Eugene Sandulenko
3c619d8589 CREDITS: Regenerate 2016-09-02 23:36:11 +02:00
Thierry Crozat
1c0e4e8206 CLOUD: Disable the connect button initially as the code is empty
The connect button is enabled/disabled whenever the text in the
code widget is changed and it's validity assessed. But the initial
state was not correct.
2016-08-30 21:37:34 +01:00
Thierry Crozat
7edc96803e CLOUD: Fix crash when trying to connect without entering a code first 2016-08-30 21:37:34 +01:00
Bastien Bouclet
dac70196f0 GUI: Fix hidden files visibility getting out of sync in the files browser
- The checkbox state was not initialized when opening the dialog.
- The visibility state was initialized from ConfMan too early resuling
  in the value being incorrect when multiple file browsers are used.
2016-08-30 21:19:59 +02:00
Alexander Tkachev
faf849012c CLOUD: Add GUI for "rootpath" selection
Cloud tab now contains a button to select path, path label and a clear
button.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
126fe9c845 CLOUD: Add "minimal mode" in LocalWebserver
StorageWizardDialog now runs LocalWebserver in "minimal mode" for
security reasons. In this mode server uses only those handlers which
state to support it.

There are two handlers which support minimal mode: IndexPageHandler
(which handles `code` requests needed by StorageWizardDialog) and
ResourceHandler (which provides inner resources like `style.css` or
`logo.png` from `wwwroot.zip` archive).
2016-08-24 16:07:55 +06:00
Peter Bozsó
9665719b66 GUI: Set tooltip of local webserver button according to server state 2016-08-24 16:07:55 +06:00
Alexander Tkachev
b9bba9bd4b ALL: Move Clipboard support to OSystem
Commit adds kFeatureClipboardSupport. hasTextInClipboard() and
getTextFromClipboard().

OSystem_SDL has this feature if SDL2 is used.

EditableWidget and StorageWizardDialog use g_system to access clipboard
now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
527ab4cdf6 GUI: Fix StorageWizardDialog warning
Removed extra comma in the enum.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
091ff83ed6 GUI: Add Storage providers logos
StorageWizardDialog now shows logo of the Storage being connected (in
modern highres theme).
2016-08-24 16:07:55 +06:00
Alexander Tkachev
f39b6ed4ac GUI: Add Container in StorageWizardDialog
It now looks fine in both 640x400 and 320x200!
2016-08-24 16:07:55 +06:00
Alexander Tkachev
c74ba4652d GUI: Add "Paste" button in StorageWizardDialog
It pastes clipboard contents as code into 8 fields of that dialog.
(Clipboard support works with SDL2 only.)

"Open URL" and "Paste" buttons are placed in the left column under the
picture (because there is no room for 4 buttons in the bottom row).

Commit also adds "dropbox.bmp", which is just a square 115x115 picture.
Such pictures are would be used as Storages logos in that dialog.

In lowres there is no left column, so all 4 buttons are in the same row.
None of them are visible, because they are overflowed. Container has to
be added to continue working on them.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b665fc933d ALL: Make simpleSaveNames() a MetaEngineFeature
Added it into hasFeature() of all engines which returned `true` in
simpleSaveNames() before.

As mentioned in #788, SCI is not always using simple names, so it
doesn't have such feature now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
86f7b75dd7 GUI: Fix SDL_Net-related errors
Checked by rebuilding ScummVM without SDL_Net in MinGW.

Also fixes StorageWizardDialog's warning about _stopServerOnClose.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
c9b819b577 GUI: Make Options dialog stop LocalServer on close
Commit also adds a fix for StorageWizardDialog, where LocalServer was
used even if USE_SDL_NET was undefined.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
15c6772ff7 ALL: Fix debug, warning and error usage
Added prefixes, used debug(9).
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
53aa0c46f1 GUI: JANITORIAL: Fix code formatting 2016-08-24 16:07:55 +06:00
Eugene Sandulenko
e114d1a697 GUI: Fix format warning 2016-08-24 16:07:55 +06:00
Eugene Sandulenko
a65682a828 GUI: Fix warnings 2016-08-24 16:07:55 +06:00
Eugene Sandulenko
409dd27e76 GUI: Regenerate themes 2016-08-24 16:07:55 +06:00
Alexander Tkachev
772d8ee42b CLOUD: Fix redirect_uri selection code
Now it's not hardcoded based on USE_SDL_NET, but one or another value is
used depending on currently selected LocalWebserver's port.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
438ba985a4 JANITORIAL: Remove spaces at the end of the line
I knew there were some, but I wanted to fix them once, instead of doing
it all the time.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
c7fe842f9a GUI: Fix texts clipping
If it was completely clipped out (empty rectangle), it was drawing the
whole text ("empty means no clipping"), so I had to detect such cases
and change textArea to one small pixel.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
52503a2713 GUI: Add "Clear port" button in Cloud tab 2016-08-24 16:07:55 +06:00
Alexander Tkachev
85f4c69fc9 CLOUD: Update StorageWizardDialog
It now hides code fields not just when built with SDL_Net, but also when
LocalWebserver's using default port.

So that's why NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE is defined
in localwebserver.h now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
39865e6e6c CLOUD: Add port override for LocalWebserver
It's enabled only when NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE is
defined.

It's not defined, because override means we have to reconfigure our
redirect links somehow to use the override port.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b1264df120 CLOUD: Check whether Storage is working when replacing it
We do that in CloudManager::replaceStorage(), but I've tried to
eliminate such possibility by adding a check in the StorageWizardDialog.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
63311bac26 GUI: Add error callback in Options' Cloud tab
Shows OSD message.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
a11b004b6b GUI: Show warning in DownloadDialog
If user's connection seems limited, ScummVM shows a warning message to
prevent using that by accident.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
8de753b68a GUI: Add Cloud-related dialogs in classic theme's stx
Looks fine.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
75fbecf616 GUI: Add Ctrl+V handling in EditableWidget
In SDL2 there is SDL_GetClipboardText(), so EditableWidget could support
pasting into it.

No copying yet, as there is no selecting.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
40dfb0b4f1 GUI: Fix Cloud-related dialogs a little
Minor mistakes which lead to build failure in some cases.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
1b56f59add GUI: Update DownloadDialog
It now has download size and speed labels.

Commit also fixes minor mistake in ConnMan.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
c431ae6d84 CLOUD: Calculate FolderDownload download speed 2016-08-24 16:07:55 +06:00
Alexander Tkachev
0ca7917093 CLOUD: Update FolderDownloadRequest
It now keeps track of downloaded bytes.
2016-08-24 16:07:55 +06:00